6-8 probability and statistic math problem

w651374616
exampackage.zip

exam package/formula table.pdf

Table 1: Special Discrete Distributions

Notation and Parameters Discrete pdf f(x) Mean Variance MGF MX(t)

Binomial

X ∼ BIN(n, p) ( n x

) pxqn−x np npq (pet + q)n

0 < p < 1 x = 0, 1, . . . , n

q = 1− p Bernoulli

X ∼ BIN(1, p) pxq1−x p pq pet + q 0 < p < 1 x = 0, 1

q = 1− p Negative Binomial

X ∼ NB(r, p) ( x−1 r−1

) prqx−r r/p rq/p2

( pet

1−qet

)r 0 < p < 1 x = r, r + 1, . . .

r = 1, 2, . . .

Geometric

X ∼ GEO(p) pqx−1 1/p q/p2 pe t

1−qet

0 < p < 1 x = 1, 2, . . .

q = 1− p Hypergeometric

X ∼ HY P (n,M,N) ( M x

)( N−M n−x

) / ( N n

) nM/N nMN

( 1− MN

) N−n N−1 Not tractable

n = 1, 2, . . . , N x = 0, 1, . . . , n

M = 0, 1, . . . , N

Poisson

X ∼ POI(µ) e −µµx

x! µ µ e µ(et−1)

0 < µ x = 0, 1, . . .

Discrete Uniform

X ∼ DU(N) 1/N N+12 N2−1

12 1 N et−e(N+1)

t

1−et

N = 1, 2, . . . x = 1, 2, . . . , N

1

Table 2: Special Continuous Distributions

Notation and Parameters Continuous pdf f(x) Mean Variance MGF MX(t)

Uniform

X ∼ UNIF (a, b) 1b−a a+b

2 (b−a)2

12 ebt−eat (b−a)t

a < b a < x < b

Normal

X ∼ N(µ, σ2) 1√ 2πσ

e−[(x−µ)/σ] 2/2 µ σ2 eµt+σ

2t2/2

0 < σ2

Gamma

X ∼ GAM(θ, κ) 1θκΓ(κ)x κ−1e−x/θ κθ κθ2

( 1

1−θt

)κ 0 < θ 0 < x

0 < κ

Exponential

X ∼ EXP (θ) 1θ e −x/θ θ θ2 11−θt

0 < θ 0 < x

Two-Parameter Exponential

X ∼ EXP (θ, η) 1θ e −(x−η)/θ η + θ θ2 e

ηt

1−θt

0 < θ η < x

Double Exponential

X ∼ DE(θ, η) 12θ e −|x−η|/θ η 2θ2 e

ηt

1−θ2t2

0 < θ

2

Normal distribution: X ∼ N(µ, σ2)

f(x) = 1

σ √

2π e

1 2σ2

(x−µ)2 ;−∞ < x <∞,−∞ < µ <∞, σ > 0

Student t distribution: X ∼ t(v)

f(x) = Γ ( v+1

2

) √ vπΓ

( v 2

) 1( 1 + x

2

v

)(v+1)/2 ;−∞ < x <∞, v = 1, 2, . . . Chi-Square distribution: X ∼ χ2(v)

f(x) = 1

2v/2Γ ( v 2

)xv/2−1e−x/2;x > 0, v = 1, 2, . . . F distribution: X ∼ F (v1, v2)

f(x) = Γ ( v1+v2

2

) Γ ( v1 2

) Γ ( v2 2

) (v1 v2

)v1/2 xv1/2−1;x > 0, v1 = 1, 2, . . . , v2 = 1, 2, . . .

3

exam package/practice_example1/example1.pdf

Instructor: Piryatinska Review 2014

Math 340 1.A caterer prepared 60 beef tacos for a birthday party. Among these tacos, he made 45

with tomatoes, 30 with both tomatoes and onions, and 5 with neither tomatoes nor onions. Using a Venn diagram, how many tacos did he make with

(a) tomatoes or onions? (b) onions but not tomatoes?

2. A chess tournament has 10 competitors of which 4 are from Russia, 3 from the United States, 2 from Great Britain, and 1 from Brazil. If the tournament result lists just the nationalities of the players in the order in which they placed, how many outcomes are possible?

3. A certain federal agency employs three consulting firms (A, B and C) with probabilities 0.4, 0.35, and 0.25, respectively. From the past experience it is known that the probability of cost overruns for the firm are 0.05, 0.03 and 0.15, respectively. Suppose a cost overrun is experienced by agency. What is the probability that the consulting firm involved is company C?

4. Suppose that X is a discrete random variable with probability density function p(x) = cx2, x = 1, 2, 3, 4.

(a) Find the value of c: (b) Find E(X):

5. Suppose the random variables X and Y are jointly distributed according to the pdf

fX,Y (x, y) = 8xy, 0 < y < x < 1

Find a) P (X < 2Y ) b) Find P (Y < 1/4|X = 1/2).

6. A random variable X has the moment generating function MX(t) = (

2+et

3

)9 . Find

V ar(X)

7. The driver of a truck loaded with 900 boxes of books will be fined if the total weight of the boxes exceeds 36450 pounds. If the distribution of the weight of a box has a mean of 40 pounds and a variance of 36, find the approximate probability that the driver will be fined.

exam package/practice_example1/example1_solution.pdf

Instructor: Piryatinska Review 2014

Math 340 1.A caterer prepared 60 beef tacos for a birthday party. Among these tacos, he made 45

with tomatoes, 30 with both tomatoes and onions, and 5 with neither tomatoes nor onions. Using a Venn diagram, how many tacos did he make with

(a) tomatoes or onions? Let T be an event ” a taco has a tomato”, O be an event ”a taco has onion” Then (T ∪O)c

is the event ”taco has neither tomatoes nor onions” then N(T ∪ O) = 60 −N((T ∪ O)c) = 60− 5 = 55

(b) onions but not tomatoes? N(O ∩ T c) = 10

2. A chess tournament has 10 competitors of which 4 are from Russia, 3 from the United States, 2 from Great Britain, and 1 from Brazil. If the tournament result lists just the nationalities of the players in the order in which they placed, how many outcomes are possible?

You can think about this problem as you have four letters R, three letters U , two letters G and one B. How many permutations exist? You have to use the formula permutations with repetitions. The answer is

10!

4!3!2!1! = 12600.

3. A certain federal agency employs three consulting firms (A, B and C) with probabilities 0.4, 0.35, and 0.25, respectively. From the past experience it is known that the probability of cost overruns for the firm are 0.05, 0.03 and 0.15, respectively. Suppose a cost overrun is experienced by agency. What is the probability that the consulting firm involved is company C?

Let ”A” be an event ”federal agency employs consulting firm A”. Let ”B” be an event ”federal agency employs consulting firm B” and ”C” — ”federal agency employs consulting firm C”. Let ”O” be an event that there is the cost overrun. Then P (A) = 0.4, P (B) = 0.35, P (C) = 0.25, P (O|A) = 0.05, P (O|B) = 0.03, P (O|C) = 0.15.

Then by Bayes’ Theorem

P (C|O) = P (O|C)P (C) P (O|A)P (A) + P (O|B)P (B) + P (O|C)P (C)

= 0.15 ∗ 0.25

(0.4 ∗ 0.05 + 0.35 ∗ 0.03 + 0.25 ∗ 0.15) = 0.55

4. Suppose that X is a discrete random variable with probability density function p(x) = cx2, x = 1, 2, 3, 4.

(a) Find the value of c:

2

That is the discrete random variable, therefore

4∑ i=1

p(xi) = 1

. It means c(1 + 4 + 9 + 16) = 30c = 1

Therefore c = 1 30

(b) Find E(X): E(X) =

∑4 i=1 xip(xi) = (1 ∗ 1 + 2 ∗ 4 + 3 ∗ 9 + 4 ∗ 16)/30 = 3.333

5. Suppose the random variables X and Y are jointly distributed according to the pdf

fX,Y (x, y) = 8xy, 0 < y < x < 1

Find a) P (X < 2Y ) =

∫ 1 0

(∫ x x/2

8xydy ) dx = 0.75

b) Find P (Y < 1/4|X = 1/2). At first we will find fX(x) =

∫ x 0

8xydy = 4x3. Therefore fX(1/2) = 1/2. Then conditional pdf fY |X=1/2(y)is as follows

fY |X=1/2(y) = f(x, y)

fX(x)

∣∣∣∣ X=1/2

= 8y

Then P (Y < 1/4|X = 1/2) = ∫ 1/4 0

8ydy = 0.25.

6. A random variable X has the moment generating function MX(t) = (

2+et

3

)9 . Find

V ar(X) You can recognize that X has a binomial distribution with parameters n=9 and p=1/3

then the variance is np(1− p) = 9 ∗ 1/3 ∗ 2/3 = 2 You can also calculate V ar(X) = EX2 − (EX)2 = M ′′(0)− (M ′(0))2

7. The driver of a truck loaded with 900 boxes of books will be fined if the total weight of the boxes exceeds 36450 pounds. If the distribution of the weight of a box has a mean of 40 pounds and a variance of 36, find the approximate probability that the driver will be fined.

Due to the central limit theorem P (X > 36450) ≈ P (Y > 36450) , where Y ∼ N(900 ∗ 40, 900 ∗ 36).

Therefore P (Y > 36450) = P (Z > 36450−36000 180

) = P (Z > 2.5) = P (< −2.5) = 0.0062

exam package/practice_example2/example2.pdf

Instructor: Piryatinska Fall 2017

MATH 440 Final exam

1. Events A and B are defined on a sample space S such that P ((A ∪ B)C) = 0.5 and P (A ∩B) = 0.2.

a)( 3 points) What is the probability that either A or B but not both will occur? b) (3 points) If P (A) = 0.3, what does P ((A ∩B) | (A ∪B)C) equal? 2.(4 points)In how many ways can the letters of the word E L E E M O S Y N A R

Y be arranged so that the S is always immediately followed by Y. 3. (4 points) An urn contains six chips numbered 1 through 6. Two are chosen at random

and their numbers are added together. What is the probability that the resulting sum is equal to 5?

4. Suppose that 63 percent of customers at a McDonalds purchase a hamburger, and assume that the purchases of different customers are independent. (a) (3 points) What is the probability that the fifth customer of the day will be the second one to order a hamburger?(b) (4 points) What is the probability that at least 9 of the next 10 customers will order a hamburger? (c)(3 points) Out of the next 10 customers, what is the expected number of customers that will order a humburger?

5. (6 points) Suppose that in a group of students, 34 percent are Math majors, 28 percent are Physics majors, and 38 percent are Biology majors. Suppose that all Math and Physics majors and 73 percent of Biology majors have taken Calculus. Among the students in the group who have taken Calculus, what percentage are Biology majors?

6. Suppose the random variables X and Y are jointly distributed according to the pdf

fX,Y (x, y) = 2

3 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1

Find a)(4 points) P (X < 2Y ) b) (4 points)Find P (Y < 1/2|X = 1/2). c)(4 points) Find P (Y < 1/2|X < 1/2). 7. Suppose that the number of calls per hour to an answering service follows Poisson

distribution with rate 4. a) (4 points) What is the probability that fewer (i.e. <) than 2 calls came in the first

hour? b)(4 points) What is the probability that it will be no calls during next two hours? 8. Suppose the amount of revenue that a restaurant makes in a day has a mean of 3000

and a standard deviation of 500. Assume the restaurant’s revenue totals on different days are independent.

(a) (3 points) Find the expected value and standard deviation of the total amount of revenue that the restaurant takes in during the next 100 days.

(b) (3 points) Find the expected value and standard deviation of the restaurant’s average daily revenue over the next 100 days.

(c) (4 points) Find the probability that the restaurant’s average daily revenue over the next 100 days is between 3000 and 3100.

1

exam package/practice_example2/example2_solution.pdf

tallit P ACVB

c 0.5 PCA1131 0.2

I III visit isi PC B c PLA RBI e I O 5 O 2 0 3

f PCA1 0.3

P Canis I AUB P t to PCctvb

e

E 4 E E MO HARY consider as one letter

E 3 A 1

inmate BRI µ 6,652ooJy LO l I I c me.us s os

2,3 3,2 3

PLA To

p 63 a X NegativeBino m r 2 p 0.63

p 5 Y 0 6312 0 373 0 0804

b Hr Bin 10,0 63 P X 2 9 P KS PCX.ro

Y 0.6039 0.37 t too 0.63 F 0.0677

c EX up 10 O 63 6.3

A Math major P A 1 0.39 AI Physicsmajor PLAY 0.25 Az Biologymajor Play 3B B take a calculus P B Ai l P B Hc l P BlAz 0 73

PLA I B PlBlA3 P A3

Bayes P B

formula PLB P Bl Ae PLA tPlBlAz P Ar t

PCB Az P Az 1 0.34 1 0.275 1 O 73 0.38 0.75974

P Az 1B 0 730.312 0 30g O B 974

flag 5 28 EI It O 01W

a P X 224 A line y E

q

area's y

a 7 1

P X LY

g

Cx12g dy doc

Ig 2g dy da Goyt f te doe

E x 11 XI XI dx If't Ex txt 1 does

3 I t x lol Es f f I I E EE E

b P Yc'zlX I

41 41 a

t CE.gg f E

Ly x E x 12g dy _3 Cxyty fo

Zz Xyz 2 kt

f E 2

L

f fig 3 Etsy I Fy

Fy y

t f Ey O ye I

PCYctzlx tzl fkf.nl dy f I yay

y f tf lo't to 1 Is Is I c P YLE XLI P yet yet

PCxc E peyote X LIK I Cxt2y zcxy j to d SY's Ext axe I tix lo EHt f

o 2 1 34 B P X t fy xldx 3 Xtc da

3 a lo I ft SE

l

7 2 4

a P X L2 P X 0 104 1

e Y e.LI e 4t4e 4F5e Y

b Tn Exp 4 T time until next event

PLY 2 a Ye E da e f

e B

B Ju 3000 My 3000 6 500 Guy Inn

5 0 50

P 3000 IF I 3100 P E Z E

PL O E Z E 2 912 Q o

O 97 72 0.5 0.4772

exam package/textbook.pdf

AN INTRODUCTION TO MATHEMATICAL STATISTICS

AND ITS APPLICATIONS Sixth Edition

Richard J. Larsen Vanderbilt University

Morris L. Marx University of West Florida

Director, Portfolio Management: Deirdre Lynch Courseware Portfolio Manager: Patrick Barbera Courseware Portfolio Assistant: Justin Billing Content Producer: Kathleen A. Manley Managing Producer: Karen Wernholm Media Producer: Audra Walsh Product Marketing Manager: Yvonne Vannatta Product Marketing Assistant: Jennifer Myers Senior Author Support/Technology Specialist: Joe Vetere Cover and Text Design, Production Coordination, Composition, and Illustrations:

iEnergizer Aptara®, Ltd. Cover Image: Glow Green Circle Arcs © Shutterstock/R.T. Wohlstadter

Copyright © 2018, 2012, 2006 Pearson Education, Inc. All Rights Reserved. Printed in the United States of America. This publication is protected by copyright, and permission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise. For information regarding permissions, request forms and the appropriate contacts within the Pearson Education Global Rights & Permissions department, please visit www.pearsoned.com/permissions/.

PEARSON, ALWAYS LEARNING, and MyStatLab are exclusive trademarks owned by Pearson Education, Inc. or its affiliates in the U.S. and/or other countries.

Unless otherwise indicated herein, any third-party trademarks that may appear in this work are the property of their respective owners and any references to third-party trademarks, logos or other trade dress are for demonstrative or descriptive purposes only. Such references are not intended to imply any sponsorship, endorsement, authorization, or promotion of Pearson’s products by the owners of such marks, or any relationship between the owner and Pearson Education, Inc. or its affiliates, authors, licensees or distributors.

Library of Congress Cataloging-in-Publication Data

Names: Larsen, Richard J. | Marx, Morris L. Title: An introduction to mathematical statistics and its applications /

Richard J. Larsen, Vanderbilt University, Morris L. Marx, University of West Florida.

Description: Sixth edition. | Boston : Pearson, [2018] | Includes bibliographical references and index.

Identifiers: LCCN 2016035117 | ISBN 9780134114217 Subjects: LCSH: Mathematical statistics—Textbooks. Classification: LCC QA276 .L314 2018 | DDC 519.5—dc23 LC record available at https://lccn.loc.gov/2016035117

1 16

ISBN 13: 978-0-13-411421-7 ISBN 10: 0-13-411421-3

Contents Preface viii

1 Introduction 1 1.1 An Overview 1

1.2 Some Examples 2

1.3 A Brief History 6

1.4 A Chapter Summary 14

2 Probability 15 2.1 Introduction 15

2.2 Sample Spaces and the Algebra of Sets 17

2.3 The Probability Function 26

2.4 Conditional Probability 31

2.5 Independence 50

2.6 Combinatorics 65

2.7 Combinatorial Probability 89

2.8 Taking a Second Look at Statistics (Monte Carlo Techniques) 99

3 Random Variables 102 3.1 Introduction 102

3.2 Binomial and Hypergeometric Probabilities 103

3.3 Discrete Random Variables 116

3.4 Continuous Random Variables 127

3.5 Expected Values 137

3.6 The Variance 153

3.7 Joint Densities 160

3.8 Transforming and Combining Random Variables 174

3.9 Further Properties of the Mean and Variance 182

3.10 Order Statistics 192

3.11 Conditional Densities 199

3.12 Moment-Generating Functions 206

3.13 Taking a Second Look at Statistics (Interpreting Means) 215 iii

iv Contents

4 Special Distributions 218 4.1 Introduction 218

4.2 The Poisson Distribution 219

4.3 The Normal Distribution 235

4.4 The Geometric Distribution 257

4.5 The Negative Binomial Distribution 259

4.6 The Gamma Distribution 267

4.7 Taking a Second Look at Statistics (Monte Carlo Simulations) 271

Appendix 4.A.1 Properties of Frequently-Used pdfs 274

Appendix 4.A.2 A Proof of the Central Limit Theorem 276

5 Estimation 278 5.1 Introduction 278

5.2 Estimating Parameters: The Method of Maximum Likelihood and the Method of Moments 280

5.3 Interval Estimation 293

5.4 Properties of Estimators 308

5.5 Minimum-Variance Estimators: The Cramér-Rao Lower Bound 316

5.6 Sufficient Estimators 319

5.7 Consistency 326

5.8 Bayesian Estimation 329

5.9 Taking a Second Look at Statistics (Beyond Classical Estimation) 341

6 Hypothesis Testing 343 6.1 Introduction 343

6.2 The Decision Rule 344

6.3 Testing Binomial Data—H0: p = po 353 6.4 Type I and Type II Errors 359

6.5 A Notion of Optimality: The Generalized Likelihood Ratio 375

6.6 Taking a Second Look at Hypothesis Testing (Statistical Significance versus “Practical” Significance) 378

7 Inferences Based on the Normal Distribution 380 7.1 Introduction 380

7.2 Comparing Y−μ σ/

√ n

and Y−μ S/

√ n

381

7.3 Deriving the Distribution of Y−μ S/

√ n

383

Contents v

7.4 Drawing Inferences About μ 389

7.5 Drawing Inferences About σ2 404

7.6 Taking a Second Look at Statistics (Type II Error) 412

Appendix 7.A.1 Some Distribution Results for Y and S2 414

Appendix 7.A.2 A Proof That the One-Sample t Test Is a GLRT 416

Appendix 7.A.3 A Proof of Theorem 7.5.2 418

8 Types of Data: A Brief Overview 421 8.1 Introduction 421

8.2 Classifying Data 427

8.3 Taking a Second Look at Statistics (Why Samples Are Not “Valid”!) 448

9 Two-Sample Inferences 450 9.1 Introduction 450

9.2 Testing H0: μX = μY 451 9.3 Testing H0: σ2X = σ2Y—The F Test 463 9.4 Binomial Data: Testing H0: pX = pY 468 9.5 Confidence Intervals for the Two-Sample Problem 473

9.6 Taking a Second Look at Statistics (Choosing Samples) 478

Appendix 9.A.1 A Derivation of the Two-Sample t Test (A Proof of Theorem 9.2.2) 480

10 Goodness-of-Fit Tests 483 10.1 Introduction 483

10.2 The Multinomial Distribution 484

10.3 Goodness-of-Fit Tests: All Parameters Known 488

10.4 Goodness-of-Fit Tests: Parameters Unknown 498

10.5 Contingency Tables 507

10.6 Taking a Second Look at Statistics (Outliers) 517

11 Regression 520 11.1 Introduction 520

11.2 The Method of Least Squares 520

11.3 The Linear Model 543

11.4 Covariance and Correlation 563

vi Contents

11.5 The Bivariate Normal Distribution 570

11.6 Taking a Second Look at Statistics (How Not to Interpret the Sample Correlation Coefficient) 576

Appendix 11.A.1 A Proof of Theorem 11.3.3 577

12 The Analysis of Variance 580 12.1 Introduction 580

12.2 The F Test 582

12.3 Multiple Comparisons: Tukey’s Method 592

12.4 Testing Subhypotheses with Contrasts 596

12.5 Data Transformations 604

12.6 Taking a Second Look at Statistics (Putting the Subject of Statistics Together—The Contributions of Ronald A. Fisher) 606

Appendix 12.A.1 A Proof of Theorem 12.2.2 608

Appendix 12.A.2 The Distribution of SSTR/(k−1)SSE/(n−k) When H1 Is True 608

13 Randomized Block Designs 613 13.1 Introduction 613

13.2 The F Test for a Randomized Block Design 614

13.3 The Paired t Test 628

13.4 Taking a Second Look at Statistics (Choosing between a Two-Sample t Test and a Paired t Test) 634

14 Nonparametric Statistics 638 14.1 Introduction 638

14.2 The Sign Test 639

14.3 Wilcoxon Tests 645

14.4 The Kruskal-Wallis Test 658

14.5 The Friedman Test 662

14.6 Testing for Randomness 665

14.7 Taking a Second Look at Statistics (Comparing Parametric and Nonparametric Procedures) 669

Contents vii

15 Factorial Data (Available Online) 15-1 15.1 Introduction 15-1

15.2 The Two-Factor Factorial 15-4

15.3 Sums of Squares for Two-Factor Factorials 15-16

15.4 Expected Mean Squares 15-26

15.5 Examples 15-30

15.6 The Three-Factor Factorial Design 15-40

15.7 2n Designs 15-51

15.8 Fractional Factorials 15-72

Appendix A: Statistical Tables 674

Answers to Selected Odd-Numbered Questions 701

Bibliography 725

Index 737

Preface

John Tukey (1915–2000) was one of the most prominent (and quotable) statisticians of the last half of the twentieth century. He was once asked what he especially en- joyed about the profession he chose for his life’s work. “The best thing about being a statistician,” he said without hesitation, “is that you get to play in everyone’s back- yard.” That sentiment says much about Tukey’s well known eclectic interests; it also speaks to what this book is all about.

Our hope is that this text satisfies two objectives: 1) It introduces the basic tech- niques of probability and mathematical statistics in a comprehensive and interesting way at a level appropriate for students who have completed three semesters of cal- culus, and 2) it provides students with the skills and insights necessary to apply those principles. In our opinion, satisfying (1) but not (2) would be an inadequate “take- away” for a student’s two-semesters worth of time and effort.

It may seem that completing Objective 1 automatically confers on students the wherewithal to meet Objective 2. Not so. Mathematical statistics deals primarily with the nature of individual measurements or simple properties calculated from samples of measurements—means, variances, distributions, relationships to other measure- ments, and so on. Analyzing data, though, requires an additional knowledge of the experimental design to which an entire set of measurements belong. To borrow some terminology from economists, mathematical statistics is much like the micro aspect of the subject; experimental design is the macro aspect. There is enough time in a two-semester course to do justice to both.

Experimental designs come in many variations, but eight are especially impor- tant in terms of the frequency of their occurrence and their relationship to the math- ematical statistics covered in a first course. The initial step in teaching someone how to analyze data is helping them learn how to recognize those eight “data models”: One-sample data, Two-sample data, k-sample data, Paired data, Randomized block data, Regression/Correlation data, Categorical data, and Factorial data. We believe that mentioning them in passing is not sufficient. They need to be compared and de- scribed, altogether in one chapter, side-by-side, and illustrated with real-world data.

Identifying data models, of course, is not a difficult skill to acquire. Anyone in- volved in analyzing data learns it quickly. But for students taking their first course in statistics, ignoring the topic leaves them without a sense of where the subject is going and why. Fully addressing the issue before students encounter all the Z tests, t tests, χ2 tests, and F tests that come in rapid succession provides a very helpful framework for putting all that material in context.

The final step in dealing with Objective 2 is to show the application of math- ematical statistics and the methodologies it created to real-world data. Made-up or contrived data will not suffice. They do not provide the detail or complexity necessary to point out, for example, why one particular design was used rather than another or what to make of certain anomalies that appear to have occurred or what follow-up studies seem to be warranted. For their help and obvious expertise, we are deeply in- debted to all the researchers who have graciously allowed us to use portions of their data to base the more than 80 Case Studies scattered throughout the text. We hope these are as informative and helpful as the “backyards” that Professor Tukey found so enjoyable.

viii

Preface ix

New to This Edition

• Chapter 15, Factorial Data, is a new, downloadable chapter describing the the- ory and practice of the analysis of variance as it applies to factorial data. It covers two-factor factorials, three-factor factorials, 2n designs, and fractional factorials, all at the same mathematical level as the book’s other two treat- ments of the analysis of variance, Chapter 12 and Chapter 13. This is the most important of all the multifactor experimental designs.

• Chapter 2 contains ten new examples, including a repeated-independent-trials analysis of the often-quoted “Caesar’s last breath” problem.

• Overall, the Sixth Edition contains 18 new Case Studies for additional concept application.

• An Appendix has been added at the end of Chapter 4 summarizing all the important properties of the most frequently used pdfs.

• Much of Section 5.2 dealing with parameter estimation has been rewritten, and the margin of error portion of Section 5.3 has been completely redone.

• Discussions of the different data models in Chapter 8 have been expanded, and an eighth model (factorial data) has been added. The chapter includes seven new Case Studies.

• In Chapter 11, the section on nonlinear models has been thoroughly revised with an emphasis put on their relationship to different laws of growth.

• Because of space and cost considerations, journals and technical reports often display only summaries of an experiment’s results. A section has been added to Chapter 12 showing how the entire ANOVA table for a set of k-sample data can be “reconstructed” without knowing any of the individual measurements.

• The text companion website www.pearsonhighered.com/mathstatsresources/ has the online, downloadable Chapter 15 and data sets analyzed in the text, in generic form to copy for input into statistical software. The site also has ad- ditional resources to help students and instructors.

Acknowledgments

We would like to thank all of the following reviewers of the present and previous editions of this text for their many helpful comments and suggestions. Every edition benefited from your insight and your expertise.

Reviewers for this edition: Adam Bowers, University of California, San Diego Bree Ettinger, Emory University Eugene D. Gallagher, University of Massachusetts, Boston Mohammad Kazemi, University of North Carolina, Charlotte Ralph Russo, University of Iowa Neslihan Uler, University of Michigan, Ann Arbor Bin Wang, University of Southern Alabama

Reviewers of previous editions: Abera Abay, Rowan University Kyle Siegrist, University of Alabama in Huntsville Ditlev Monrad, University of Illinois at Urbana-Champaign

x Preface

Vidhu S. Prasad, University of Massachusetts, Lowell Wen-Qing Xu, California State University, Long Beach Katherine St. Clair, Colby College Yimin Xiao, Michigan State University Nicolas Christou, University of California, Los Angeles Daming Xu, University of Oregon Maria Rizzo, Ohio University Dimitris Politis, University of California, San Diego

We would also like to express our deepest gratitude to all those on the Pearson team who guided this project to completion. Your professionalism and friendliness made working on this endeavor a pleasure. Thanks to all of you!

What has not changed in this edition is our sincere hope that the reader will find mathematical statistics challenging, informative, interesting, and—maybe in a few places here and there when least expected—almost fun.

Richard J. Larsen Vanderbilt University

Morris L. Marx University of West Florida

Chapte r

1Introduction CHAPTER OUTLINE

1.1 An Overview 1.2 Some Examples 1.3 A Brief History 1.4 A Chapter Summary

“Until the phenomena of any branch of knowledge have been submitted to measurement and number it cannot assume the status and dignity of a science.”

—Francis Galton

1.1 AN OVERVIEW Sir Francis Galton was a preeminent biologist of the nineteenth century. A passionate advocate for the theory of evolution (his nickname was “Darwin’s bulldog”), Galton was also an early crusader for the study of statistics and believed the subject would play a key role in the advancement of science:

Some people hate the very name of statistics, but I find them full of beauty and inter- est. Whenever they are not brutalized, but delicately handled by the higher methods, and are warily interpreted, their power of dealing with complicated phenomena is extraordinary. They are the only tools by which an opening can be cut through the formidable thicket of difficulties that bars the path of those who pursue the Science of man.

Did Galton’s prediction come to pass? Absolutely—try reading a biology journal or the analysis of a psychology experiment before taking your first statistics course. Science and statistics have become inseparable, two peas in the same pod. What the good gentleman from London failed to anticipate, though, is the extent to which all of us—not just scientists—have become enamored (some would say obsessed) with numerical information. The stock market is awash in averages, indicators, trends, and exchange rates; federal education initiatives have taken standardized testing to new levels of specificity; Hollywood uses sophisticated demographics to see who’s watching what, and why; and pollsters regularly tally and track our every opinion, regardless of how irrelevant or uninformed. In short, we have come to expect every- thing to be measured, evaluated, compared, scaled, ranked, and rated—and if the results are deemed unacceptable for whatever reason, we demand that someone or something be held accountable (in some appropriately quantifiable way).

To be sure, many of these efforts are carefully carried out and make perfectly good sense; unfortunately, others are seriously flawed, and some are just plain nonsense. What they all speak to, though, is the clear and compelling need to know something about the subject of statistics, its uses and its misuses.

This book addresses two broad topics—the mathematics of statistics and the prac- tice of statistics. The two are quite different. The former refers to the probability the- ory that supports and justifies the various methods used to analyze data. For the most

1

2 Chapter 1 Introduction

part, this background material is covered in Chapters 2 through 7. The key result is the central limit theorem, which is one of the most elegant and far-reaching results in all of mathematics. (Galton believed the ancient Greeks would have personified and deified the central limit theorem had they known of its existence.) Also included in these chapters is a thorough introduction to combinatorics, the mathematics of sys- tematic counting. Historically, this was the very topic that launched the development of probability in the first place, back in the seventeenth century. In addition to its con- nection to a variety of statistical procedures, combinatorics is also the basis for every state lottery and every game of chance played with a roulette wheel, a pair of dice, or a deck of cards.

The practice of statistics refers to all the issues (and there are many!) that arise in the design, analysis, and interpretation of data. Discussions of these topics appear in several different formats. Included in most of the case studies throughout the text is a feature entitled ‘‘About the Data.’’ These are additional comments about either the particular data in the case study or some related topic suggested by those data. Then near the end of most chapters is a Taking a Second Look at Statistics section. Several of these deal with the misuses of statistics—specifically, inferences drawn incorrectly and terminology used inappropriately. The most comprehensive data-related discussion comes in Chapter 8, which is devoted entirely to the critical problem of knowing how to start a statistical analysis—that is, knowing which procedure should be used, and why.

More than a century ago, Galton described what he thought a knowledge of statistics should entail. Understanding “the higher methods,” he said, was the key to ensuring that data would be “delicately handled” and “warily interpreted.” The goal of this book is to help make that happen.

1.2 Some Examples Statistical methods are often grouped into two broad categories—descriptive statis- tics and inferential statistics. The former refers to all the various techniques for summarizing and displaying data. These are the familiar bar graphs, pie charts, scat- terplots, means, medians, and the like, that we see so often in the print media. The much more mathematical inferential statistics are procedures that make generaliza- tions and draw conclusions of various kinds based on the information contained in a set of data; moreover, they calculate the probability of the generalizations being correct.

Described in this section are three case studies. The first illustrates a very ef- fective use of several descriptive techniques. The latter two illustrate the sorts of questions that inferential procedures can help answer.

CASE STUDY 1.2.1

Pictured at the top of Figure 1.2.1 is the kind of information routinely recorded by a seismograph—listed chronologically are the occurrence times and Richter magnitudes for a series of earthquakes. As raw data, the numbers are largely meaningless: No patterns are evident, nor is there any obvious connection between the frequencies of tremors and their severities.

Shown at the bottom of the figure is the result of applying several descrip- tive techniques to an actual set of seismograph data recorded over a period of several years in southern California (73). Plotted above the Richter (R) value of 4.0, for example, is the average number (N) of earthquakes occurring per year in that region having magnitudes in the range 3.75 to 4.25. Similar points are

Section 1.2 Some Examples 3

30

20

10

0 4 5

Magnitude on Richter scale, R

A ve

ra ge

n um

be r

of s

ho ck

s pe

r ye

ar , N

6 7

N = 80,338.16e

Episode number Date Time Severity (Richter scale)

217 6/19 4:53 P .M. 2.7 218 7/2 6:07 A.M. 3.1 219 7/4 8:19 A.M. 2.0 220 8/7 1:10 A.M. 4.1 221 8/7 10:46 P .M. 3.6

– 1.981R

Figure 1.2.1

included for R-values centered at 4.5, 5.0, 5.5, 6.0, 6.5, and 7.0. Now we can see that earthquake frequencies and severities are clearly related: Describing the (N, R)’s exceptionally well is the equation

N = 80,338.16e−1.981R (1.2.1) which is found using a procedure described in Chapter 11. (Note: Geologists have shown that the model N = β0eβ1R describes the (N, R) relationship all over the world. All that changes from region to region are the numerical values for β0 and β1.)

Notice that Equation 1.2.1 is more than just an elegant summary of the ob- served (N, R) relationship. It also allows us to estimate the likelihood of future earthquake catastrophes having values of R that have never been observed. On the minds of all Californians, of course, is the Big One, the dreaded rip-roaring 10.5-Richter-scale monster megaquake that turns buildings into piles of rubble, sends busloads of tourists careening into the San Francisco Bay, and moves the intersection of Hollywood and Vine to somewhere in downtown El Segundo. How often might an earthquake of that magnitude be expected?

Letting R = 10.5 in Equation 1.2.1 gives N = 80,338.16e−1.981(10.5)

= 0.0000752 earthquakes/year (Continued on next page)

4 Chapter 1 Introduction

(Case Study 1.2.1 continued)

so the predicted frequency would be once every 13,300 years (= 1/0.0000752). On the one hand, the rarity of such a disaster has to be reassuring; on the other hand, not knowing when the last such earthquake occurred is a bit unsettling. Are we on borrowed time? What if the most recent megaquake occurred forty thousand years ago?

Comment The megaquake prediction prompted by Equation 1.2.1 raises an obviousquestion: Whyis thecalculationthat ledto themodel N = 80,338.16e−1.981R not considered an example of inferential statistics even though it did yield a prediction for R = 10.5? The answer is that Equation 1.2.1—by itself—does not tell us anything about the ‘‘error’’ associated with its predictions. In Chapter 11, a more elaborate probability method based on Equation 1.2.1 is described that does yield error estimates and qualifies as a bona fide inference procedure.

About the Data For the record, the strongest earthquake ever recorded in California occurred January 9, 1857 along the San Andreas fault near Fort Tejon, a sparsely populated settlement about seventy miles north of Los Angeles. Its magnitude was estimated to be between 7.9 and 8.0. The state’s most famous, deadliest, and costliest earthquake, though, occurred in San Francisco on April 18, 1906. It had a magnitude of 7.8, killed three thousand people, and destroyed 80% of the city. Over the years, a number of Hollywood movies featured that particular earthquake as part of their storylines, the best known being San Fran- cisco, a 1936 production starring Clark Gable and Spencer Tracy.

CASE STUDY 1.2.2

In folklore, the full moon is often portrayed as something sinister, a kind of evil force possessing the power to control our behavior. Over the centuries, many prominent writers and philosophers have shared this belief. Milton, in Paradise Lost, refers to

Demoniac frenzy, moping melancholy And moon-struck madness.

And Othello, after the murder of Desdemona, laments

It is the very error of the moon, She comes more near the earth than she was wont And makes men mad.

On a more scholarly level, Sir William Blackstone, the renowned eighteenth-century English barrister, defined a “lunatic” as

one who hath . . . lost the use of his reason and who hath lucid intervals, some- times enjoying his senses and sometimes not, and that frequently depending upon changes of the moon.

The possibility of lunar phases influencing human affairs is a theory not with- out supporters among the scientific community. Studies by reputable medical researchers have attempted to link the “Transylvania effect,” as it has come to be known, with higher suicide rates, pyromania, and epilepsy (not to mention the periodic unseemly behavior of werewolves . . .).

The possible relationship between lunar cycles and mental breakdowns has also been studied. Table 1.2.1 shows one year’s admission rates to the emergency room of a Virginia mental health clinic before, during, and after its twelve full moons (13).

Section 1.2 Some Examples 5

Table 1.2.1 Admission Rates (Patients/Day)

Month Before Full Moon During Full Moon After Full Moon

Aug. 6.4 5.0 5.8 Sept. 7.1 13.0 9.2 Oct. 6.5 14.0 7.9 Nov. 8.6 12.0 7.7 Dec. 8.1 6.0 11.0 Jan. 10.4 9.0 12.9 Feb. 11.5 13.0 13.5 Mar. 13.8 16.0 13.1 Apr. 15.4 25.0 15.8 May 15.7 13.0 13.3 June 11.7 14.0 12.8 July 15.8 20.0 14.5

Averages: 10.9 13.3 11.5

Notice for these data that the average admission rate “during” the full moon is, in fact, higher than the “before” and “after” admission rates: 13.3 as opposed to 10.9 and 11.5. Can it be inferred, then, from these averages that the data sup- port the existence of a Transylvania effect? No. Another explanation for the averages is possible—namely, that there is no such thing as a Transylvania effect and the observed differences among the three averages are due solely to chance.

Questions of this sort—that is, choosing between two conflicting explana- tions for a set of data—are resolved using a variety of techniques known as hy- pothesis testing. The insights that hypothesis tests provide are without question the most important contribution that the subject of statistics makes to the ad- vancement of science.

The particular hypothesis test appropriate for the data in Table 1.2.1 is known as a randomized block analysis of variance, which will be covered at length in Chapter 13. As we will see, the conclusion reached in this case is both unexpected and a bit disconcerting.

CASE STUDY 1.2.3

It may not be made into a movie anytime soon, but the way that statistical infer- ence was used to spy on the Nazis in World War II is a pretty good tale. And it certainly did have a surprise ending!

The story began in the early 1940s. Fighting in the European theatre was in- tensifying, and Allied commanders were amassing a sizeable collection of aban- doned and surrendered German weapons. When they inspected those weapons, the Allies noticed that each one bore a different number. Aware of the Nazis’ reputation for detailed record keeping, the Allies surmised that each number represented the chronological order in which the piece had been manufactured. But if that was true, might it be possible to use the “captured” serial numbers to estimate the total number of weapons the Germans had produced?

That was precisely the question posed to a group of government statisticians working out of Washington, D.C. Wanting to estimate an adversary’s manufac- turing capability was, of course, nothing new. Up to that point, though, the only sources of that information had been spies and traitors; using serial numbers was an approach entirely different.

(Continued on next page)

6 Chapter 1 Introduction

(Case Study 1.2.3 continued)

The answer turned out to be a fairly straightforward application of the prin- ciples that will be introduced in Chapter 5. If n is the total number of captured serial numbers and xmax is the largest captured serial number, then the estimate for the total number of items produced is given by the formula

estimated output = [(n + 1)/n]xmax − 1 (1.2.2)

Suppose, for example, that n = 5 tanks were captured and they bore the serial numbers 92, 14, 28, 300, and 146, respectively. Then xmax = 300 and the esti- mated total number of tanks manufactured is three hundred fifty-nine:

estimated output = [(5 + 1)/5]300 − 1 = 359

Did Equation 1.2.2 work? Better than anyone could have expected (prob- ably even the statisticians). When the war ended and the Third Reich’s “true” production figures were revealed, it was found that serial number estimates were far more accurate in every instance than all the information gleaned from tradi- tional espionage operations, spies, and informants. The serial number estimate for German tank production in 1942, for example, was 3400, a figure very close to the actual output. The “official” estimate, on the other hand, based on intel- ligence gathered in the usual ways, was a grossly inflated 18,000.

About the Data Large discrepancies, like 3400 versus 18,000 for the tank esti- mates, were not uncommon. The espionage-based estimates were consistently erring on the high side because of the sophisticated Nazi propaganda ma- chine that deliberately exaggerated the country’s industrial prowess. On spies and would-be adversaries, the Third Reich’s carefully orchestrated dissembling worked exactly as planned; on Equation 1.2.2, though, it had no effect whatso- ever! (69)

1.3 A Brief History For those interested in how we managed to get to where we are, Section 1.3 offers a brief history of probability and statistics. The two subjects were not mathematical littermates—they began at different times in different places by different people for different reasons. How and why they eventually came together makes for an inter- esting story, reacquaints us with some towering figures from the past, and introduces several others whose names will probably not be familiar but whose contributions were critically important in demonstrating the linkage between science and statistics.

PROBABILITY: THE EARLY YEARS

No one knows where or when the notion of chance first arose; it fades into our pre- history. Nevertheless, evidence linking early humans with devices for generating ran- dom events is plentiful: Archaeological digs, for example, throughout the ancient world consistently turn up a curious overabundance of astragali, the heel bones of sheep and other vertebrates. Why should the frequencies of these bones be so dis- proportionately high? One could hypothesize that our forebears were fanatical foot

Section 1.3 A Brief History 7

fetishists, but two other explanations seem more plausible: The bones were used for religious ceremonies and for gambling.

Astragali have six sides but are not symmetrical (see Figure 1.3.1). Those found in excavations typically have their sides numbered or engraved. For many ancient civilizations, astragali were the primary mechanism through which oracles solicited the opinions of their gods. In Asia Minor, for example, it was customary in divination rites to roll, or cast, five astragali. Each possible configuration was associated with the name of a god and carried with it the sought-after advice. An outcome of (1, 3, 3, 4, 4), for instance, was said to be the throw of the savior Zeus, and its appearance was taken as a sign of encouragement (37):

One one, two threes, two fours The deed which thou meditatest, go do it boldly. Put thy hand to it. The gods have given thee

favorable omens Shrink not from it in thy mind, for no evil

shall befall thee.

Sheep astragalus

Figure 1.3.1

A (4, 4, 4, 6, 6), on the other hand, the throw of the child-eating Cronos, would send everyone scurrying for cover:

Three fours and two sixes. God speaks as follows. Abide in thy house, nor go elsewhere, Lest a ravening and destroying beast come nigh thee. For I see not that this business is safe. But bide

thy time.

Gradually, over thousands of years, astragali were replaced by dice, and the latter became the most common means for generating random events. Pottery dice have been found in Egyptian tombs built before 2000 b.c.; by the time the Greek civiliza- tion was in full flower, dice were everywhere. (Loaded dice have also been found. Mastering the mathematics of probability would prove to be a formidable task for our ancestors, but they seemed quite adept at learning how to cheat!)

The lack of historical records blurs the distinction initially drawn between div- ination ceremonies and recreational gaming. Among more recent societies, though, gambling emerged as a distinct entity, and its popularity was irrefutable. The Greeks and Romans were consummate gamblers, as were the early Christians (99).

Rules for many of the Greek and Roman games have been lost, but we can recog- nize the lineage of certain modern diversions in what was played during the Middle Ages. The most popular dice game of that period was called hazard, the name de- riving from the Arabic al zhar, which means “a die.” Hazard is thought to have been brought to Europe by soldiers returning from the Crusades; its rules are much like those of our modern-day craps. Cards were first introduced in the fourteenth cen- tury and immediately gave rise to a game known as Primero, an early form of poker. Board games such as backgammon were also popular during this period.

8 Chapter 1 Introduction

Given this rich tapestry of games and the obsession with gambling that char- acterized so much of the Western world, it may seem more than a little puzzling that a formal study of probability was not undertaken sooner than it was. As we will see shortly, the first instance of anyone conceptualizing probability in terms of a mathematical model occurred in the sixteenth century. That means that more than two thousand years of dice games, card games, and board games passed by before someone finally had the insight to write down even the simplest of probabilistic abstractions.

Historians generally agree that, as a subject, probability got off to a rocky start because of its incompatibility with two of the most dominant forces in the evolution of our Western culture, Greek philosophy and early Christian theology. The Greeks were comfortable with the notion of chance (something the Christians were not), but it went against their nature to suppose that random events could be quantified in any useful fashion. They believed that any attempt to reconcile mathematically what did happen with what should have happened was, in their phraseology, an improper juxtaposition of the “earthly plane” with the “heavenly plane.”

Making matters worse was the antiempiricism that permeated Greek thinking. Knowledge, to them, was not something that should be derived by experimentation. It was better to reason out a question logically than to search for its explanation in a set of numerical observations. Together, these two attitudes had a deadening effect: The Greeks had no motivation to think about probability in any abstract sense, nor were they faced with the problems of interpreting data that might have pointed them in the direction of a probability calculus.

If the prospects for the study of probability were dim under the Greeks, they became even worse when Christianity broadened its sphere of influence. The Greeks and Romans at least accepted the existence of chance. However, they believed their gods to be either unable or unwilling to get involved in matters so mundane as the outcome of the roll of a die. Cicero writes:

Nothing is so uncertain as a cast of dice, and yet there is no one who plays often who does not make a Venus-throw1 and occasionally twice and thrice in succession. Then are we, like fools, to prefer to say that it happened by the direction of Venus rather than by chance?

For the early Christians, though, there was no such thing as chance: Every event that happened, no matter how trivial, was perceived to be a direct manifestation of God’s deliberate intervention. In the words of St. Augustine:

Nos eas causas quae dicuntur fortuitae . . . non dicimus nullas, sed latentes; easque tribuimus vel veri Dei . . .

(We say that those causes that are said to be by chance are not non-existent but are hidden, and we attribute them to the will of the true God . . .)

Taking Augustine’s position makes the study of probability moot, and it makes a probabilist a heretic. Not surprisingly, nothing of significance was accomplished in the subject for the next fifteen hundred years.

It was in the sixteenth century that probability, like a mathematical Lazarus, arose from the dead. Orchestrating its resurrection was one of the most eccen- tric figures in the entire history of mathematics, Gerolamo Cardano. By his own admission, Cardano personified the best and the worst—the Jekyll and the Hyde— of the Renaissance man. He was born in 1501 in Pavia. Facts about his personal life

1 When rolling four astragali, each of which is numbered on four sides, a Venus-throw was having each of the four numbers appear.

Section 1.3 A Brief History 9

are difficult to verify. He wrote an autobiography, but his penchant for lying raises doubts about much of what he says. Whether true or not, though, his “one-sentence” self-assessment paints an interesting portrait (135):

Nature has made me capable in all manual work, it has given me the spirit of a philosopher and ability in the sciences, taste and good manners, voluptuousness, gai- ety, it has made me pious, faithful, fond of wisdom, meditative, inventive, courageous, fond of learning and teaching, eager to equal the best, to discover new things and make independent progress, of modest character, a student of medicine, interested in curiosities and discoveries, cunning, crafty, sarcastic, an initiate in the mysterious lore, industrious, diligent, ingenious, living only from day to day, impertinent, con- temptuous of religion, grudging, envious, sad, treacherous, magician and sorcerer, miserable, hateful, lascivious, obscene, lying, obsequious, fond of the prattle of old men, changeable, irresolute, indecent, fond of women, quarrelsome, and because of the conflicts between my nature and soul I am not understood even by those with whom I associate most frequently.

Formally trained in medicine, Cardano’s interest in probability derived from his addiction to gambling. His love of dice and cards was so all-consuming that he is said to have once sold all his wife’s possessions just to get table stakes! Fortunately, something positive came out of Cardano’s obsession. He began looking for a math- ematical model that would describe, in some abstract way, the outcome of a random event. What he eventually formalized is now called the classical definition of prob- ability: If the total number of possible outcomes, all equally likely, associated with some action is n, and if m of those n result in the occurrence of some given event, then the probability of that event is m/n. If a fair die is rolled, there are n = 6 possible outcomes. If the event “outcome is greater than or equal to 5” is the one in which we are interested, then m = 2 (the outcomes 5 and 6) and the probability of the event is 26 , or

1 3 (see Figure 1.3.2).

1

3

5

2

4

6

Possible outcomes

Outcomes greater than or equal to 5; probability = 2/6

Figure 1.3.2

Cardano had tapped into the most basic principle in probability. The model he discovered may seem trivial in retrospect, but it represented a giant step forward: His was the first recorded instance of anyone computing a theoretical, as opposed to an empirical, probability. Still, the actual impact of Cardano’s work was minimal. He wrote a book in 1525, but its publication was delayed until 1663. By then, the focus of the Renaissance, as well as interest in probability, had shifted from Italy to France.

The date cited by many historians (those who are not Cardano supporters) as the “beginning” of probability is 1654. In Paris, a well-to-do gambler the Chevalier de Méré asked several prominent mathematicians, including Blaise Pascal, a series of questions, the best known of which is the problem of points:

Two people, A and B, agree to play a series of fair games until one person has won six games. They each have wagered the same amount of money, the intention being that the winner will be awarded the entire pot. But suppose, for whatever reason, the series is prematurely terminated, at which point A has won five games and B three. How should the stakes be divided?

10 Chapter 1 Introduction

(The correct answer is that A should receive seven-eighths of the total amount wa- gered. Hint: Suppose the contest were resumed. What scenarios would lead to A’s being the first person to win six games?)

Pascal was intrigued by de Méré’s questions and shared his thoughts with Pierre Fermat, a Toulouse civil servant and probably the most brilliant mathematician in Europe. Fermat graciously replied, and from the now-famous Pascal-Fermat corre- spondence came not only the solution to the problem of points but the foundation for more general results. More significantly, news of what Pascal and Fermat were working on spread quickly. Others got involved, of whom the best known was the Dutch scientist and mathematician Christiaan Huygens. The delays and the indiffer- ence that had plagued Cardano a century earlier were not going to happen again.

Best remembered for his work in optics and astronomy, Huygens, early in his career, was intrigued by the problem of points. In 1657 he published De Ratiociniis in Aleae Ludo (Calculations in Games of Chance), a very significant work, far more comprehensive than anything Pascal and Fermat had done. For almost fifty years it was the standard “textbook” in the theory of probability. Not surprisingly, Huygens has supporters who feel that he should be credited as the founder of probability.

Almost all the mathematics of probability was still waiting to be discovered. What Huygens wrote was only the humblest of beginnings, a set of fourteen propo- sitions bearing little resemblance to the topics we teach today. But the foundation was there. The mathematics of probability was finally on firm footing.

STATISTICS: FROM ARISTOTLE TO QUETELET

Historians generally agree that the basic principles of statistical reasoning began to coalesce in the middle of the nineteenth century. What triggered this emergence was the union of three different “sciences,” each of which had been developing along more or less independent lines (206).

The first of these sciences, what the Germans called Staatenkunde, involved the collection of comparative information on the history, resources, and military prowess of nations. Although efforts in this direction peaked in the seventeenth and eigh- teenth centuries, the concept was hardly new: Aristotle had done something similar in the fourth century b.c. Of the three movements, this one had the least influence on the development of modern statistics, but it did contribute some terminology: The word statistics, itself, first arose in connection with studies of this type.

The second movement, known as political arithmetic, was defined by one of its early proponents as “the art of reasoning by figures, upon things relating to government.” Of more recent vintage than Staatenkunde, political arithmetic’s roots were in seventeenth-century England. Making population estimates and construct- ing mortality tables were two of the problems it frequently dealt with. In spirit, political arithmetic was similar to what is now called demography.

The third component was the development of a calculus of probability. As we saw earlier, this was a movement that essentially started in seventeenth-century France in response to certain gambling questions, but it quickly became the “engine” for analyzing all kinds of data.

STAATENKUNDE: THE COMPARATIVE DESCRIPTION OF STATES

The need for gathering information on the customs and resources of nations has been obvious since antiquity. Aristotle is credited with the first major effort toward that objective: His Politeiai, written in the fourth century b.c., contained detailed descriptions of some one hundred fifty-eight different city-states. Unfortunately, the

Section 1.3 A Brief History 11

thirst for knowledge that led to the Politeiai fell victim to the intellectual drought of the Dark Ages, and almost two thousand years elapsed before any similar projects of like magnitude were undertaken.

The subject resurfaced during the Renaissance, and the Germans showed the most interest. They not only gave it a name, Staatenkunde, meaning “the compara- tive description of states,” but they were also the first (in 1660) to incorporate the subject into a university curriculum. A leading figure in the German movement was Gottfried Achenwall, who taught at the University of Göttingen during the middle of the eighteenth century. Among Achenwall’s claims to fame is that he was the first to use the word statistics in print. It appeared in the preface of his 1749 book Abriss der Statswissenschaft der heutigen vornehmsten europaishen Reiche und Republiken. (The word statistics comes from the Italian root stato, meaning “state,” implying that a statistician is someone concerned with government affairs.) As terminology, it seems to have been well-received: For almost one hundred years the word statistics contin- ued to be associated with the comparative description of states. In the middle of the nineteenth century, though, the term was redefined, and statistics became the new name for what had previously been called political arithmetic.

How important was the work of Achenwall and his predecessors to the devel- opment of statistics? That would be difficult to say. To be sure, their contributions were more indirect than direct. They left no methodology and no general theory. But they did point out the need for collecting accurate data and, perhaps more impor- tantly, reinforced the notion that something complex—even as complex as an entire nation—can be effectively studied by gathering information on its component parts. Thus, they were lending important support to the then-growing belief that induction, rather than deduction, was a more sure-footed path to scientific truth.

POLITICAL ARITHMETIC

In the sixteenth century the English government began to compile records, called bills of mortality, on a parish-to-parish basis, showing numbers of deaths and their underlying causes. Their motivation largely stemmed from the plague epidemics that had periodically ravaged Europe in the not-too-distant past and were threatening to become a problem in England. Certain government officials, including the very in- fluential Thomas Cromwell, felt that these bills would prove invaluable in helping to control the spread of an epidemic. At first, the bills were published only occasionally, but by the early seventeenth century they had become a weekly institution.2

Figure 1.3.3 shows a portion of a bill that appeared in London in 1665. The grav- ity of the plague epidemic is strikingly apparent when we look at the numbers at the top: Out of 97,306 deaths, 68,596 (over 70%) were caused by the plague. The breakdown of certain other afflictions, though they caused fewer deaths, raises some interesting questions. What happened, for example, to the twenty-three people who were “frighted” or to the three hundred ninety-seven who suffered from “rising of the lights”?

Among the faithful subscribers to the bills was John Graunt, a London merchant. Graunt not only read the bills, he studied them intently. He looked for patterns, com- puted death rates, devised ways of estimating population sizes, and even set up a primitive life table. His results were published in the 1662 treatise Natural and Polit- ical Observations upon the Bills of Mortality. This work was a landmark: Graunt had

2 An interesting account of the bills of mortality is given in Daniel Defoe’s A Journal of the Plague Year, which purportedly chronicles the London plague outbreak of 1665.

12 Chapter 1 Introduction

The bill for the year—A General Bill for this present year, ending the 19 of De- cember, 1665, according to the Report made to the King’s most excellent Majesty, by the Co. of Parish Clerks of Lond., & c.—gives the following summary of the results; the details of the several parishes we omit, they being made as in 1625, except that the out-parishes were now 12:—

Buried in the 27 Parishes within the walls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15,207 Whereof of the plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9,887 Buried in the 16 Parishes without the walls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41,351 Whereof of the plague. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28,838 At the Pesthouse, total buried . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 Of the plague. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 Buried in the 12 out-Parishes in Middlesex and surrey . . . . . . . . . . . . . . . . . . 18,554 Whereof of the plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21,420 Buried in the 5 Parishes in the City and Liberties of Westminster . . . . . . . . 12,194 Whereof the plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8,403 The total of all the christenings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9,967 The total of all the burials this year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97,306 Whereof of the plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68,596

Abortive and Stillborne . . . . . . . . . . 617 Griping in the Guts . . . . . . . . . . . . . . . . 1,288 Palsie . . . . . . . . . . . . . . . . . . . . . . 30 Aged . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1,545 Hang’d & made away themselved . . 7 Plague . . . . . . . . . . . . . . . . . . . . . 68,596 Ague & Feaver . . . . . . . . . . . . . . . . . . 5,257 Headmould shot and mould fallen. . 14 Plannet . . . . . . . . . . . . . . . . . . . . 6 Appolex and Suddenly . . . . . . . . . . . 116 Jaundice . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Plurisie . . . . . . . . . . . . . . . . . . . . 15 Bedrid . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Impostume . . . . . . . . . . . . . . . . . . . . . . . . 227 Poysoned . . . . . . . . . . . . . . . . . . 1 Blasted . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Kill by several accidents . . . . . . . . . . . . 46 Quinsie . . . . . . . . . . . . . . . . . . . . 35 Bleeding . . . . . . . . . . . . . . . . . . . . . . . . . 16 King’s Evill . . . . . . . . . . . . . . . . . . . . . . . . 86 Rickets . . . . . . . . . . . . . . . . . . . . 535 Cold & Cough . . . . . . . . . . . . . . . . . . . 68 Leprosie . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Rising of the Lights . . . . . . . . 397 Collick & Winde . . . . . . . . . . . . . . . . . 134 Lethargy . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Rupture. . . . . . . . . . . . . . . . . . . . 34 Comsumption & Tissick . . . . . . . . . . 4,808 Livergrown . . . . . . . . . . . . . . . . . . . . . . . . 20 Scurry . . . . . . . . . . . . . . . . . . . . . 105 Convulsion & Mother . . . . . . . . . . . . 2,036 Bloody Flux, Scowring & Flux . . . . . 18 Shingles & Swine Pox . . . . . . 2 Distracted . . . . . . . . . . . . . . . . . . . . . . . 5 Burnt and Scalded . . . . . . . . . . . . . . . . . 8 Sores, Ulcers, Broken and Dropsie & Timpany . . . . . . . . . . . . . . 1,478 Calenture . . . . . . . . . . . . . . . . . . . . . . . . . 3 Bruised Limbs . . . . . . . . . . . . . 82 Drowned . . . . . . . . . . . . . . . . . . . . . . . . 50 Cancer, Cangrene & Fistula . . . . . . . . 56 Spleen . . . . . . . . . . . . . . . . . . . . . 14 Executed . . . . . . . . . . . . . . . . . . . . . . . . 21 Canker and Thrush . . . . . . . . . . . . . . . . 111 Spotted Feaver & Purples . . 1,929 Flox & Smallpox . . . . . . . . . . . . . . . . . 655 Childbed . . . . . . . . . . . . . . . . . . . . . . . . . . 625 Stopping of the Stomach . . . 332 Found Dead in streets, fields, &c. . 20 Chrisomes and Infants . . . . . . . . . . . . . 1,258 Stone and Stranguary . . . . . . 98 French Pox. . . . . . . . . . . . . . . . . . . . . . . 86 Meagrom and Headach . . . . . . . . . . . . 12 Surfe . . . . . . . . . . . . . . . . . . . . . . 1,251 Frighted . . . . . . . . . . . . . . . . . . . . . . . . . 23 Measles . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Teeth & Worms . . . . . . . . . . . . 2,614 Gout & Sciatica . . . . . . . . . . . . . . . . . . 27 Murthered & Shot . . . . . . . . . . . . . . . . . 9 Vomiting . . . . . . . . . . . . . . . . . . . 51 Grief . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Overlaid & Starved . . . . . . . . . . . . . . . . 45 Wenn . . . . . . . . . . . . . . . . . . . . . . 8

Christened-Males . . . . . . . . . . . . . . . . 5,114 Females . . . . . . . . . . . . . . . . . . . . . . . . . . . 4,853 In all . . . . . . . . . . . . . . . . . . . . . . . 9,967 Buried-Males . . . . . . . . . . . . . . . . . . . . 58,569 Females . . . . . . . . . . . . . . . . . . . . . . . . . . . 48,737 In all . . . . . . . . . . . . . . . . . . . . . . . 97,306 Of the Plague . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68,596 Increase in the Burials in the 130 Parishes and the Pesthouse this year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79,009 Increase of the Plague in the 130 Parishes and the Pesthouse this year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68,590

Figure 1.3.3

launched the twin sciences of vital statistics and demography, and, although the name came later, it also signaled the beginning of political arithmetic. (Graunt did not have to wait long for accolades; in the year his book was published, he was elected to the prestigious Royal Society of London.)

High on the list of innovations that made Graunt’s work unique were his objec- tives. Not content simply to describe a situation, although he was adept at doing so, Graunt often sought to go beyond his data and make generalizations (or, in current statistical terminology, draw inferences). Having been blessed with this particular turn of mind, he almost certainly qualifies as the world’s first statistician. All Graunt really lacked was the probability theory that would have enabled him to frame his

Section 1.3 A Brief History 13

inferences more mathematically. That theory, though, was just beginning to unfold several hundred miles away in France (160).

Other seventeenth-century writers were quick to follow through on Graunt’s ideas. William Petty’s Political Arithmetick was published in 1690, although it had probably been written some fifteen years earlier. (It was Petty who gave the move- ment its name.) Perhaps even more significant were the contributions of Edmund Halley (of “Halley’s comet” fame). Principally an astronomer, he also dabbled in political arithmetic, and in 1693 wrote An Estimate of the Degrees of the Mortal- ity of Mankind, drawn from Curious Tables of the Births and Funerals at the city of Breslaw; with an attempt to ascertain the Price of Annuities upon Lives. (Book titles were longer then!) Halley shored up, mathematically, the efforts of Graunt and oth- ers to construct an accurate mortality table. In doing so, he laid the foundation for the important theory of annuities. Today, all life insurance companies base their pre- mium schedules on methods similar to Halley’s. (The first company to follow his lead was The Equitable, founded in 1765.)

For all its initial flurry of activity, political arithmetic did not fare particularly well in the eighteenth century, at least in terms of having its methodology fine-tuned. Still, the second half of the century did see some notable achievements in improving the quality of the databases: Several countries, including the United States in 1790, es- tablished a periodic census. To some extent, answers to the questions that interested Graunt and his followers had to be deferred until the theory of probability could develop just a little bit more.

QUETELET: THE CATALYST

With political arithmetic furnishing the data and many of the questions, and the the- ory of probability holding out the promise of rigorous answers, the birth of statistics was at hand. All that was needed was a catalyst—someone to bring the two together. Several individuals served with distinction in that capacity. Carl Friedrich Gauss, the superb German mathematician and astronomer, was especially helpful in showing how statistical concepts could be useful in the physical sciences. Similar efforts in France were made by Laplace. But the man who perhaps best deserves the title of “matchmaker” was a Belgian, Adolphe Quetelet.

Quetelet was a mathematician, astronomer, physicist, sociologist, anthropolo- gist, and poet. One of his passions was collecting data, and he was fascinated by the regularity of social phenomena. In commenting on the nature of criminal tendencies, he once wrote (76):

Thus we pass from one year to another with the sad perspective of seeing the same crimes reproduced in the same order and calling down the same punishments in the same proportions. Sad condition of humanity! . . . We might enumerate in advance how many individuals will stain their hands in the blood of their fellows, how many will be forgers, how many will be poisoners, almost we can enumerate in advance the births and deaths that should occur. There is a budget which we pay with a frightful regularity; it is that of prisons, chains and the scaffold.

Given such an orientation, it was not surprising that Quetelet would see in prob- ability theory an elegant means for expressing human behavior. For much of the nineteenth century he vigorously championed the cause of statistics, and as a mem- ber of more than one hundred learned societies, his influence was enormous. When he died in 1874, statistics had been brought to the brink of its modern era.

14 Chapter 1 Introduction

1.4 A Chapter Summary The concepts of probability lie at the very heart of all statistical problems. Acknowl- edging that fact, the next two chapters take a close look at some of those concepts. Chapter 2 states the axioms of probability and investigates their consequences. It also covers the basic skills for algebraically manipulating probabilities and gives an introduction to combinatorics, the mathematics of counting. Chapter 3 reformulates much of the material in Chapter 2 in terms of random variables, the latter being a concept of great convenience in applying probability to statistics. Over the years, particular measures of probability have emerged as being especially useful: The most prominent of these are profiled in Chapter 4.

Our study of statistics proper begins with Chapter 5, which is a first look at the theory of parameter estimation. Chapter 6 introduces the notion of hypothesis test- ing, a procedure that, in one form or another, commands a major share of the remain- der of the book. From a conceptual standpoint, these are very important chapters: Most formal applications of statistical methodology will involve either parameter estimation or hypothesis testing, or both.

Among the probability functions featured in Chapter 4, the normal distribu- tion—more familiarly known as the bell-shaped curve—is sufficiently important to merit even further scrutiny. Chapter 7 derives in some detail many of the properties and applications of the normal distribution as well as those of several related prob- ability functions. Much of the theory that supports the methodology appearing in Chapters 9 through 13 comes from Chapter 7.

Chapter 8 describes some of the basic principles of experimental “design.” Its purpose is to provide a framework for comparing and contrasting the various statis- tical procedures profiled in Chapters 9 through 15.

Chapters 9, 12, and 13 continue the work of Chapter 7, but with the emphasis on the comparison of several populations, similar to what was done in Case Study 1.2.2. Chapter 10 looks at the important problem of assessing the level of agreement between a set of data and the values predicted by the probability model from which those data presumably came. Linear relationships are examined in Chapter 11.

Chapter 14 is an introduction to nonparametric statistics. The objective there is to develop procedures for answering some of the same sorts of questions raised in Chapters 7, 9, 12, and 13, but with fewer initial assumptions.

Chapter 15 (available as a download) is new to the sixth edition. It introduces a broad class of multifactor experiments known as factorial designs. These are rooted in the mathematics developed in Chapters 12 and 13, but their interpretation is con- siderably more nuanced because of the “interactions” that may be present between some or all of the factors.

As a general format, each chapter contains numerous examples and case studies, the latter including actual experimental data taken from a variety of sources, primar- ily newspapers, magazines, and technical journals. We hope that these applications will make it abundantly clear that, while the general orientation of this text is theoret- ical, the consequences of that theory are never too far from having direct relevance to the “real world.”

Chapte r

2Probability CHAPTER OUTLINE

2.1 Introduction 2.2 Sample Spaces and

the Algebra of Sets 2.3 The Probability

Function 2.4 Conditional

Probability 2.5 Independence 2.6 Combinatorics 2.7 Combinatorial

Probability 2.8 Taking a Second Look

at Statistics (Monte Carlo Techniques)

One of the most influential of seventeenth-century mathematicians, Fermat earned his living as a lawyer and administrator in Toulouse. He shares credit with Descartes for the invention of analytic geometry, but his most important work may have been in number theory. Fermat did not write for publication, preferring instead to send letters and papers to friends. His correspondence with Pascal was the starting point for the development of a mathematical theory of probability.

—Pierre de Fermat (1601–1665)

Pascal was the son of a nobleman. A prodigy of sorts, he had already published a treatise on conic sections by the age of sixteen. He also invented one of the early calculating machines to help his father with accounting work. Pascal’s contributions to probability were stimulated by his correspondence, in 1654, with Fermat. Later that year he retired to a life of religious meditation.

—Blaise Pascal (1623–1662)

2.1 INTRODUCTION Experts have estimated that the likelihood of any given UFO sighting being genuine is on the order of one in one hundred thousand. Since the early 1950s, some ten thou- sand sightings have been reported to civil authorities. What is the probability that at least one of those objects was, in fact, an alien spacecraft? In 1978, Pete Rose of the Cincinnati Reds set a National League record by batting safely in forty-four consec- utive games. How unlikely was that event, given that Rose was a lifetime .303 hitter? By definition, the mean free path is the average distance a molecule in a gas travels before colliding with another molecule. How likely is it that the distance a molecule travels between collisions will be at least twice its mean free path? Suppose a boy’s mother and father both have genetic markers for sickle cell anemia, but neither par- ent exhibits any of the disease’s symptoms. What are the chances that their son will also be asymptomatic? What are the odds that a poker player is dealt a full house or that a craps-shooter makes his “point”? If a woman has lived to age seventy, how likely is it that she will die before her ninetieth birthday? In 1994, Tom Foley was Speaker of the House and running for re-election. The day after the election, his race had still not been “called” by any of the networks: he trailed his Republican challenger by 2174 votes, but 14,000 absentee ballots remained to be counted. Foley, however, conceded. Should he have waited for the absentee ballots to be counted, or was his defeat at that point a virtual certainty?

As the nature and variety of these questions would suggest, probability is a sub- ject with an extraordinary range of real-world, everyday applications. What began as an exercise in understanding games of chance has proven to be useful everywhere. Maybe even more remarkable is the fact that the solutions to all of these diverse

15

16 Chapter 2 Probability

questions are rooted in just a handful of definitions and theorems. Those results, together with the problem-solving techniques they empower, are the sum and sub- stance of Chapter 2. We begin, though, with a bit of history.

THE EVOLUTION OF THE DEFINITION OF PROBABILITY

Over the years, the definition of probability has undergone several revisions. There is nothing contradictory in the multiple definitions—the changes primarily reflected the need for greater generality and more mathematical rigor. The first formulation (often referred to as the classical definition of probability) is credited to Gerolamo Cardano (recall Section 1.3). It applies only to situations where (1) the number of possible outcomes is finite and (2) all outcomes are equally likely. Under those con- ditions, the probability of an event comprised of m outcomes is the ratio m/n, where n is the total number of (equally likely) outcomes. Tossing a fair, six-sided die, for example, gives m/n = 36 as the probability of rolling an even number (that is, either 2, 4, or 6).

While Cardano’s model was well-suited to gambling scenarios (for which it was intended), it was obviously inadequate for more general problems, where outcomes are not equally likely and/or the number of outcomes is not finite. Richard von Mises, a twentieth-century German mathematician, is often credited with avoid- ing the weaknesses in Cardano’s model by defining “empirical” probabilities. In the von Mises approach, we imagine an experiment being repeated over and over again under presumably identical conditions. Theoretically, a running tally could be kept of the number of times (m) the outcome belongs to a given event di- vided by n, the total number of times the experiment is performed. According to von Mises, the probability of the given event is the limit (as n goes to infinity) of the ratio m/n. Figure 2.1.1 illustrates the empirical probability of getting a head by tossing a fair coin: As the number of tosses continues to increase, the ratio m/n converges to 12 .

1

0 1

n = numbers of trials

2 3 4 5

1 2

m n

lim m/n n ̀

Figure 2.1.1

The von Mises approach definitely shores up some of the inadequacies seen in the Cardano model, but it is not without shortcomings of its own. There is some con- ceptual inconsistency, for example, in extolling the limit of m/n as a way of defining a probability empirically, when the very act of repeating an experiment under identical conditions an infinite number of times is physically impossible. And left unanswered is the question of how large n must be in order for m/n to be a good approximation for lim m/n.

Andrei Kolmogorov, the great Russian probabilist, took a different approach. Aware that many twentieth-century mathematicians were having success developing subjects axiomatically, Kolmogorov wondered whether probability might similarly be defined operationally, rather than as a ratio (like the Cardano model) or as a limit (like the von Mises model). His efforts culminated in a masterpiece of mathematical

Section 2.2 Sample Spaces and the Algebra of Sets 17

elegance when he published Grundbegriffe der Wahrscheinlichkeitsrechnung (Foundations of the Theory of Probability) in 1933. In essence, Kolmogorov was able to show that a maximum of four simple axioms is necessary and sufficient to define the way any and all probabilities must behave. (These will be our starting point in Section 2.3.)

We begin Chapter 2 with some basic (and, presumably, familiar) definitions from set theory. These are important because probability will eventually be defined as a set function—that is, a mapping from a set to a number. Then, with the help of Kolmogorov’s axioms in Section 2.3, we will learn how to calculate and manipu- late probabilities. The chapter concludes with an introduction to combinatorics—the mathematics of systematic counting—and its application to probability.

2.2 Sample Spaces and the Algebra of Sets The starting point for studying probability is the definition of four key terms: experiment, sample outcome, sample space, and event. The latter three, all carryovers from classical set theory, give us a familiar mathematical framework within which to work; the former is what provides the conceptual mechanism for casting real-world phenomena into probabilistic terms.

By an experiment we will mean any procedure that (1) can be repeated, theo- retically, an infinite number of times and (2) has a well-defined set of possible out- comes. Thus, rolling a pair of dice qualifies as an experiment and so does measuring a hypertensive’s blood pressure or doing a spectrographic analysis to determine the carbon content of moon rocks. Asking a would-be psychic to draw a picture of an image presumably transmitted by another would-be psychic does not qualify as an experiment, because the set of possible outcomes cannot be listed, characterized, or otherwise defined.

Each of the potential eventualities of an experiment is referred to as a sample outcome, s, and their totality is called the sample space, S. To signify the membership of s in S, we write s ∈ S. Any designated collection of sample outcomes, including individual outcomes, the entire sample space, and the null set, constitutes an event. The latter is said to occur if the outcome of the experiment is one of the members of the event.

Example 2.2.1

Consider the experiment of flipping a coin three times. What is the sample space? Which sample outcomes make up the event A: Majority of coins show heads?

Think of each sample outcome here as an ordered triple, its components repre- senting the outcomes of the first, second, and third tosses, respectively. Altogether, there are eight different triples, so those eight comprise the sample space:

S = {HHH, HHT, HTH, THH, HTT, THT, TTH, TTT}

By inspection, we see that four of the sample outcomes in S constitute the event A:

A = {HHH, HHT, HTH, THH}

Example 2.2.2

Imagine rolling two dice, the first one red, the second one green. Each sample out- come is an ordered pair (face showing on red die, face showing on green die), and the entire sample space can be represented as a 6 × 6 matrix (see Figure 2.2.1).

18 Chapter 2 Probability

A

Face showing on green die

F ac

e sh

ow in

g on

r ed

d ie

1 2 3 4 5 6

1 (1, 1) (1, 2) (1, 3) (1, 4) (1, 5) (1, 6)

2 (2, 1) (2, 2) (2, 3) (2, 4) (2, 5) (2, 6)

3 (3, 1) (3, 2) (3, 3) (3, 4) (3, 5) (3, 6)

4 (4, 1) (4, 2) (4, 3) (4, 4) (4, 5) (4, 6)

5 (5, 1) (5, 2) (5, 3) (5, 4) (5, 5) (5, 6)

6 (6, 1) (6, 2) (6, 3) (6, 4) (6, 5) (6, 6)

Figure 2.2.1

Gamblers are often interested in the event A that the sum of the faces showing is a 7. Notice in Figure 2.2.1 that the sample outcomes contained in A are the six diagonal entries, (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), and (6, 1).

Example 2.2.3

A local TV station advertises two newscasting positions. If three women (W1,W2,W3) and two men (M1, M2) apply, the “experiment” of hiring two coanchors generates a sample space of ten outcomes:

S = {(W1,W2), (W1,W3), (W2,W3), (W1, M1), (W1, M2), (W2, M1), (W2, M2), (W3, M1), (W3, M2), (M1, M2)}

Does it matter here that the two positions being filled are equivalent? Yes. If the station were seeking to hire, say, a sports announcer and a weather forecaster, the number of possible outcomes would be twenty: (W2, M1), for example, would repre- sent a different staffing assignment than (M1,W2).

Example 2.2.4

The number of sample outcomes associated with an experiment need not be fi- nite. Suppose that a coin is tossed until the first tail appears. If the first toss is itself a tail, the outcome of the experiment is T; if the first tail occurs on the second toss, the outcome is HT; and so on. Theoretically, of course, the first tail may never occur, and the infinite nature of S is readily apparent:

S = {T, HT, HHT, HHHT, . . .}

Example 2.2.5

There are three ways to indicate an experiment’s sample space. If the number of pos- sible outcomes is small, we can simply list them, as we did in Examples 2.2.1 through 2.2.3. In some cases it may be possible to characterize a sample space by showing the structure its outcomes necessarily possess. This is what we did in Example 2.2.4. A third option is to state a mathematical formula that the sample outcomes must satisfy.

A computer programmer is running a subroutine that solves a general quadratic equation, ax2 + bx + c = 0. Her “experiment” consists of choosing val- ues for the three coefficients a, b, and c. Define (1) S and (2) the event A: Equation has two equal roots.

First, we must determine the sample space. Since presumably no combinations of finite a, b, and c are inadmissible, we can characterize S by writing a series of inequalities:

S = {(a, b, c) : −∞ < a < ∞,−∞ < b < ∞,−∞ < c < ∞}

Section 2.2 Sample Spaces and the Algebra of Sets 19

Defining A requires the well-known result from algebra that a quadratic equation has equal roots if and only if its discriminant, b2 − 4ac, vanishes. Membership in A, then, is contingent on a, b, and c satisfying an equation:

A = {(a, b, c) : b2 − 4ac = 0}

Questions

2.2.1. A graduating engineer has signed up for three job interviews. She intends to categorize each one as being either a ‘‘success’’ or a ‘‘failure’’ depending on whether it leads to a plant trip. Write out the appropriate sample space. What outcomes are in the event A: Second success occurs on third interview? In B: First success never occurs? (Hint: Notice the similarity between this situation and the coin-tossing experiment described in Example 2.2.1.)

2.2.2. Three dice are tossed, one red, one blue, and one green. What outcomes make up the event A that the sum of the three faces showing equals 5?

2.2.3. An urn contains six chips numbered 1 through 6. Three are drawn out. What outcomes are in the event “Second smallest chip is a 3”? Assume that the order of the chips is irrelevant.

2.2.4. Suppose that two cards are dealt from a standard 52-card poker deck. Let A be the event that the sum of the two cards is 8 (assume that aces have a numerical value of 1). How many outcomes are in A?

2.2.5. In the lingo of craps-shooters (where two dice are tossed and the underlying sample space is the matrix pic- tured in Figure 2.2.1) is the phrase “making a hard eight.” What might that mean?

2.2.6. A poker deck consists of fifty-two cards, represent- ing thirteen denominations (2 through ace) and four suits (diamonds, hearts, clubs, and spades). A five-card hand is called a flush if all five cards are in the same suit but not all five denominations are consecutive. Pictured below is a flush in hearts. Let N be the set of five cards in hearts that are not flushes. How many outcomes are in N? [Note: In poker, the denominations (A, 2, 3, 4, 5) are considered to be consecutive (in addition to sequences such as (8, 9, 10, J, Q)).]

Denominations

2 3 4 5 6 7 8 9 10 J Q K A

D

H X X X X X Suits C

S

2.2.7. Let P be the set of right triangles with a 5′′ hy- potenuse and whose height and length are a and b, respec- tively. Characterize the outcomes in P.

2.2.8. Suppose a baseball player steps to the plate with the intention of trying to “coax” a base on balls by never swinging at a pitch. The umpire, of course, will necessar- ily call each pitch either a ball (B) or a strike (S). What outcomes make up the event A, that a batter walks on the sixth pitch? (Note: A batter “walks” if the fourth ball is called before the third strike.)

2.2.9. A telemarketer is planning to set up a phone bank to bilk widows with a Ponzi scheme. His past experience (prior to his most recent incarceration) suggests that each phone will be in use half the time. For a given phone at a given time, let 0 indicate that the phone is avail- able and let 1 indicate that a caller is on the line. Sup- pose that the telemarketer’s “bank” is comprised of four telephones. (a) Write out the outcomes in the sample space. (b) What outcomes would make up the event that exactly two phones are being used? (c) Suppose the telemarketer had k phones. How many outcomes would allow for the possibility that at most one more call could be received? (Hint: How many lines would have to be busy?)

2.2.10. Two darts are thrown at the following target:

2 4

1

(a) Let (u, v) denote the outcome that the first dart lands in region u and the second dart in region v. List the sample space of (u, v)’s. (b) List the outcomes in the sample space of sums, u + v. 2.2.11. A woman has her purse snatched by two teenagers. She is subsequently shown a police lineup consisting of five suspects, including the two perpetrators. What is the sample space associated with the experiment “Woman picks two suspects out of lineup”? Which outcomes are in the event A: She makes at least one incorrect identification?

2.2.12. Consider the experiment of choosing coefficients for the quadratic equation ax2 + bx + c = 0. Characterize the values of a, b, and c associated with the event A: Equa- tion has complex roots.

2.2.13. In the game of craps, the person rolling the dice (the shooter) wins outright if his first toss is a 7 or an 11. If his first toss is a 2, 3, or 12, he loses outright. If his first

20 Chapter 2 Probability

roll is something else, say a 9, that number becomes his “point” and he keeps rolling the dice until he either rolls another 9, in which case he wins, or a 7, in which case he loses. Characterize the sample outcomes contained in the event “Shooter wins with a point of 9.”

2.2.14. A probability-minded despot offers a convicted murderer a final chance to gain his release. The prisoner is given twenty chips, ten white and ten black. All twenty are to be placed into two urns, according to any allocation scheme the prisoner wishes, with the one proviso being that each urn contain at least one chip. The executioner will then pick one of the two urns at random and from that urn, one chip at random. If the chip selected is white, the

prisoner will be set free; if it is black, he “buys the farm.” Characterize the sample space describing the prisoner’s possible allocation options. (Intuitively, which allocation affords the prisoner the greatest chance of survival?)

2.2.15. Suppose that ten chips, numbered 1 through 10, are put into an urn at one minute to midnight, and chip number 1 is quickly removed. At one-half minute to mid- night, chips numbered 11 through 20 are added to the urn, and chip number 2 is quickly removed. Then at one-fourth minute to midnight, chips numbered 21 to 30 are added to the urn, and chip number 3 is quickly removed. If that pro- cedure for adding chips to the urn continues, how many chips will be in the urn at midnight (157)?

UNIONS, INTERSECTIONS, AND COMPLEMENTS

Associated with events defined on a sample space are several operations collectively referred to as the algebra of sets. These are the rules that govern the ways in which one event can be combined with another. Consider, for example, the game of craps described in Question 2.2.13. The shooter wins on his initial roll if he throws either a 7 or an 11. In the language of the algebra of sets, the event “Shooter rolls a 7 or an 11” is the union of two simpler events, “Shooter rolls a 7” and “Shooter rolls an 11.” If E denotes the union and if A and B denote the two events making up the union, we write E = A∪B. The next several definitions and examples illustrate those portions of the algebra of sets that we will find particularly useful in the chapters ahead.

Definition 2.2.1 Let A and B be any two events defined over the same sample space S. Then

a. The intersection of A and B, written A ∩ B, is the event whose outcomes belong to both A and B.

b. The union of A and B, written A ∪ B, is the event whose outcomes belong to either A or B or both.

Example 2.2.6

A single card is drawn from a poker deck. Let A be the event that an ace is selected:

A = {ace of hearts, ace of diamonds, ace of clubs, ace of spades} Let B be the event “Heart is drawn”:

B = {2 of hearts, 3 of hearts, . . . , ace of hearts} Then

A ∩ B = {ace of hearts} and

A ∪ B = {2 of hearts, 3 of hearts, . . . , ace of hearts, ace of diamonds, ace of clubs, ace of spades}

(Let C be the event “Club is drawn.” Which cards are in B ∪ C? In B ∩ C?)

Section 2.2 Sample Spaces and the Algebra of Sets 21

Example 2.2.7

Let A be the set of x’s for which x2 + 2x = 8; let B be the set for which x2 + x = 6. Find A ∩ B and A ∪ B.

Since the first equation factors into (x + 4)(x − 2) = 0, its solution set is A = {−4, 2}. Similarly, the second equation can be written (x + 3)(x − 2) = 0, making B = {−3, 2}. Therefore,

A ∩ B = {2} and

A ∪ B = {−4,−3, 2}

Example 2.2.8

Consider the electrical circuit pictured in Figure 2.2.2. Let Ai denote the event that switch i fails to close, i = 1, 2, 3, 4. Let A be the event “Circuit is not completed.” Express A in terms of the Ai’s.

1 3

2 4

Figure 2.2.2

Call the ① and ② switches line a; call the ③ and ④ switches line b. By inspection, the circuit fails only if both line a and line b fail. But line a fails only if either ① or ② (or both) fail. That is, the event that line a fails is the union A1 ∪ A2. Similarly, the failure of line b is the union A3 ∪ A4. The event that the circuit fails, then, is an intersection:

A = (A1 ∪ A2) ∩ (A3 ∪ A4)

Definition 2.2.2 Events A and B defined over the same sample space are said to be mutually exclusive if they have no outcomes in common—that is, if A ∩ B = ∅, where ∅ is the null set.

Example 2.2.9

Consider a single throw of two dice. Define A to be the event that the sum of the faces showing is odd. Let B be the event that the two faces themselves are odd. Then clearly, the intersection is empty, the sum of two odd numbers necessarily being even. In symbols, A ∩ B = ∅. (Recall the event B ∩ C asked for in Example 2.2.6.)

Definition 2.2.3 Let A be any event defined on a sample space S. The complement of A, written AC, is the event consisting of all the outcomes in S other than those contained in A.

Example 2.2.10

Let A be the set of (x, y)’s for which x2 + y2 < 1. Sketch the region in the xy-plane corresponding to AC.

From analytic geometry, we recognize that x2 + y2 < 1 describes the interior of a circle of radius 1 centered at the origin. Figure 2.2.3 shows the complement—the points on the circumference of the circle and the points outside the circle.

22 Chapter 2 Probability

AC : x2 +y2 $ 1

y

A x

Figure 2.2.3

The notions of union and intersection can easily be extended to more than two events. For example, the expression A1 ∪ A2 ∪ · · · ∪ Ak defines the set of out- comes belonging to any of the Ai’s (or to any combination of the Ai’s). Similarly, A1 ∩ A2 ∩ · · · ∩ Ak is the set of outcomes belonging to all of the Ai’s.

Example 2.2.11

Suppose the events A1, A2, . . . , Ak are intervals of real numbers such that

Ai = {x : 0 ≤ x < 1/i}, i = 1, 2, . . . , k Describe the sets A1 ∪ A2 ∪ · · · ∪ Ak = ∪ki=1Ai and A1 ∩ A2 ∩ · · · ∩ Ak = ∩ki=1Ai.

Notice that the Ai’s are telescoping sets. That is, A1 is the interval 0 ≤ x < 1, A2 is the interval 0 ≤ x < 12 , and so on. It follows, then, that the union of the k Ai’s is simply A1 while the intersection of the Ai’s (that is, their overlap) is Ak.

Questions

2.2.16. Sketch the regions in the xy-plane corresponding to A ∪ B and A ∩ B if

A = {(x, y): 0 < x < 3, 0 < y < 3} and

B = {(x, y): 2 < x < 4, 2 < y < 4} 2.2.17. Referring to Example 2.2.7, find A∩B and A∪B if the two equations were replaced by inequalities: x2 +2x ≤ 8 and x2 + x ≤ 6. 2.2.18. Find A ∩ B ∩ C if A = {x: 0 ≤ x ≤ 4}, B = {x: 2 ≤ x ≤ 6}, and C = {x: x = 0, 1, 2, . . .}. 2.2.19. An electronic system has four components divided into two pairs. The two components of each pair are wired in parallel; the two pairs are wired in series. Let Ai j denote the event “ith component in jth pair fails,” i = 1, 2; j = 1, 2. Let A be the event “System fails.” Write A in terms of the Ai j’s.

j = 1 j = 2

2.2.20. Define A = {x : 0 ≤ x ≤ 1}, B = {x : 0 ≤ x ≤ 3}, and C = {x : −1 ≤ x ≤ 2}. Draw diagrams showing each of the following sets of points: (a) AC ∩ B ∩ C (b) AC ∪ (B ∩ C) (c) A ∩ B ∩ CC (d) [(A ∪ B) ∩ CC]C 2.2.21. Let A be the set of five-card hands dealt from a fifty-two-card poker deck, where the denominations of the five cards are all consecutive—for example, (7 of hearts, 8 of spades, 9 of spades, 10 of hearts, jack of dia- monds). Let B be the set of five-card hands where the suits of the five cards are all the same. How many outcomes are in the event A ∩ B? 2.2.22. Suppose that each of the twelve letters in the word

T E S S E L L A T I O N

is written on a chip. Define the events F, R, and C as follows:

F : letters in first half of alphabet R: letters that are repeated V : letters that are vowels

Which chips make up the following events? (a) F ∩ R ∩ V (b) FC ∩ R ∩ VC (c) F ∩ RC ∩ V

Section 2.2 Sample Spaces and the Algebra of Sets 23

2.2.23. Let A, B, and C be any three events defined on a sample space S. Show that (a) the outcomes in A ∪ (B ∩ C) are the same as the out- comes in (A ∪ B) ∩ (A ∪ C). (b) the outcomes in A ∩ (B ∪ C) are the same as the out- comes in (A ∩ B) ∪ (A ∩ C). 2.2.24. Let A1, A2, . . . , Ak be any set of events defined on a sample space S. What outcomes belong to the event

(A1 ∪ A2 ∪ · · · ∪ Ak) ∪ ( AC1 ∩ AC2 ∩ · · · ∩ ACk

) 2.2.25. Let A, B, and C be any three events defined on a sample space S. Show that the operations of union and intersection are associative by proving that (a) A ∪ (B ∪ C) = (A ∪ B) ∪ C = A ∪ B ∪ C (b) A ∩ (B ∩ C) = (A ∩ B) ∩ C = A ∩ B ∩ C 2.2.26. Suppose that three events—A, B, and C—are de- fined on a sample space S. Use the union, intersection, and complement operations to represent each of the following events: (a) none of the three events occurs (b) all three of the events occur (c) only event A occurs (d) exactly one event occurs (e) exactly two events occur

2.2.27. What must be true of events A and B if (a) A ∪ B = B (b) A ∩ B = A 2.2.28. Let events A and B and sample space S be defined as the following intervals:

S = {x : 0 ≤ x ≤ 10} A = {x : 0 < x < 5} B = {x : 3 ≤ x ≤ 7}

Characterize the following events: (a) AC

(b) A ∩ B (c) A ∪ B (d) A ∩ BC (e) AC ∪ B (f) AC ∩ BC 2.2.29. A coin is tossed four times and the resulting se- quence of heads and/or tails is recorded. Define the events A, B, and C as follows:

A: exactly two heads appear B: heads and tails alternate C: first two tosses are heads

(a) Which events, if any, are mutually exclusive? (b) Which events, if any, are subsets of other sets?

2.2.30. Pictured below are two organizational charts de- scribing the way upper management vets new proposals. For both models, three vice presidents—1, 2, and 3—each voice an opinion.

1

1

2

2

3

3

(a)

(b)

For (a), all three must concur if the proposal is to pass; if any one of the three favors the proposal in (b), it passes. Let Ai denote the event that vice president i favors the proposal, i = 1, 2, 3, and let A denote the event that the proposal passes. Express A in terms of the Ai’s for the two office protocols. Under what sorts of situations might one system be preferable to the other?

EXPRESSING EVENTS GRAPHICALLY: VENN DIAGRAMS

Relationships based on two or more events can sometimes be difficult to express us- ing only equations or verbal descriptions. An alternative approach that can be highly effective is to represent the underlying events graphically in a format known as a Venn diagram. Figure 2.2.4 shows Venn diagrams for an intersection, a union, a com- plement, and two events that are mutually exclusive. In each case, the shaded interior of a region corresponds to the desired event.

Example 2.2.12

When two events A and B are defined on a sample space, we will frequently need to consider

a. the event that exactly one (of the two) occurs.

b. the event that at most one (of the two) occurs.

Getting expressions for each of these is easy if we visualize the corresponding Venn diagrams.

24 Chapter 2 Probability

Venn diagrams

A A > B

B S

A A < B

B S

S

A

A > B = ø

B S

AC

A

Figure 2.2.4

The shaded area in Figure 2.2.5 represents the event E that either A or B, but not both, occurs (that is, exactly one occurs).

S

A B

Figure 2.2.5

Just by looking at the diagram we can formulate an expression for E. The portion of A, for example, included in E is A ∩ BC. Similarly, the portion of B included in E is B ∩ AC. It follows that E can be written as a union:

E = (A ∩ BC) ∪ (B ∩ AC) (Convince yourself that an equivalent expression for E is (A ∩ B)C ∩ (A ∪ B).)

Figure 2.2.6 shows the event F that at most one (of the two events) occurs. Since the latter includes every outcome except those belonging to both A and B, we can write

F = (A ∩ B)C

A B

S

Figure 2.2.6

The final example in this section shows two ways of “verifying” identities involv- ing events. The first is nonrigorous and uses Venn diagrams; the second is a formal approach in which every outcome in the left-hand side of the presumed identity is shown to belong to the right-hand side, and vice versa. The particular identity being established is a very useful distributive property for intersections.

Example 2.2.13

Let A, B, and C be any three events defined over the same sample space S. Show that

A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) (2.2.1) Figure 2.2.7 pictures the set formed by intersecting A with the union of B and C. Simi- larly, Figure 2.2.8 shows the union of the intersection of A and B with the intersection

Section 2.2 Sample Spaces and the Algebra of Sets 25

of A and C. It would appear at this point that the identity is true: The rightmost diagrams in Figures 2.2.7 and 2.2.8 do show the same shaded region. Still, this is not a proof. How the events were initially drawn may not do justice to the problem in general. Can we be certain, for example, that Equation 2.2.1 remains true if C, for example, is mutually exclusive of A or B? Or if B is a proper subset of A?

A

S S

B

B < C A > (B < C)

C

A B

C

Figure 2.2.7

A

S S

B

A > C

A > B (A > B) < (A > C)

C

A B

C

Figure 2.2.8

For a rigorous solution, we need to take the algebraic approach of showing that

(1) A ∩ (B ∪ C) is contained in (A ∩ B) ∪ (A ∩ C) and

(2) (A ∩ B) ∪ (A ∩ C) is contained in A ∩ (B ∪ C). To that end, let s ∈ A∩ (B ∪ C). Then, s ∈ A and s ∈ B∪C. But if s ∈ B∪C, then

either s ∈ B or s ∈ C. If s ∈ B, then s ∈ A ∩ B and s ∈ (A ∩ B) ∪ (A ∩ C). Likewise, if s ∈ C, it follows that s ∈ (A ∩ B) ∪ (A ∩ C). Therefore, every sample outcome in A ∩ (B ∪ C) is also contained in (A ∩ B) ∪ (A ∩ C). Going the other way, assume that s ∈ (A ∩ B) ∪ (A ∩ C). Therefore, either s ∈ (A ∩ B) or s ∈ (A ∩ C) (or both). Suppose s ∈ A ∩ B. Then s ∈ A and s ∈ B, in which case s ∈ A ∩ (B ∪ C). The same conclusion holds if s ∈ (A ∩ C). Thus, every sample outcome in (A ∩ B) ∪ (A ∩ C) is in A ∩ (B ∪ C). It follows that A ∩ (B ∪ C) and (A ∩ B) ∪ (A ∩ C) are identical.

Questions

2.2.31. During orientation week, the latest Spiderman movie was shown twice at State University. Among the entering class of 6000 freshmen, 850 went to see it the first time, 690 the second time, while 4700 failed to see it either time. How many saw it twice?

2.2.32. Let A and B be any two events. Use Venn dia- grams to show that (a) the complement of their intersection is the union of their complements:

(A ∩ B)C = AC ∪ BC

(b) the complement of their union is the intersection of their complements:

(A ∪ B)C = AC ∩ BC

(These two results are known as DeMorgan’s laws.)

2.2.33. Let A, B, and C be any three events. Use Venn diagrams to show that

(a) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) (b) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) 2.2.34. Let A, B, and C be any three events. Use Venn diagrams to show that (a) A ∪ (B ∪ C) = (A ∪ B) ∪ C (b) A ∩ (B ∩ C) = (A ∩ B) ∩ C 2.2.35. Let A and B be any two events defined on a sam- ple space S. Which of the following sets are necessarily subsets of which other sets?

A B A ∪ B A ∩ B AC ∩ B A ∩ BC (AC ∪ BC)C

2.2.36. Use Venn diagrams to suggest an equivalent way of representing the following events: (a) (A ∩ BC)C (b) B ∪ (A ∪ B)C (c) A ∩ (A ∩ B)C

26 Chapter 2 Probability

2.2.37. A total of twelve hundred graduates of State Tech have gotten into medical school in the past several years. Of that number, one thousand earned scores of twenty-seven or higher on the MCAT and four hundred had GPAs that were 3.5 or higher. Moreover, three hundred had MCATs that were twenty-seven or higher and GPAs that were 3.5 or higher. What proportion of those twelve hundred graduates got into medical school with an MCAT lower than twenty-seven and a GPA below 3.5?

2.2.38. Let A, B, and C be any three events defined on a sample space S. Let N(A), N(B), N(C), N(A ∩ B), N(A ∩ C), N(B ∩ C), and N(A ∩ B ∩ C) denote the numbers of outcomes in all the different intersections in which A, B, and C are involved. Use a Venn diagram to suggest a formula for N(A ∪ B ∪ C). [Hint: Start with the sum N(A) + N(B) + N(C) and use the Venn diagram to identify the “adjustments” that need to be made to that sum before it can equal N(A ∪ B ∪ C).] As a precedent,

note that N(A ∪ B) = N(A) + N(B) − N(A ∩ B). There, in the case of two events, subtracting N(A ∩ B) is the “adjustment.”

2.2.39. A poll conducted by a potential presidential candidate asked two questions: (1) Do you support the candidate’s position on taxes? and (2) Do you support the candidate’s position on homeland security? A total of twelve hundred responses were received; six hundred said “yes” to the first question and four hundred said “yes” to the second. If three hundred respondents said “no” to the taxes question and “yes” to the homeland security ques- tion, how many said “yes” to the taxes question but “no” to the homeland security question?

2.2.40. For two events A and B defined on a sample space S, N(A ∩ BC) = 15, N(AC ∩ B) = 50, and N(A ∩ B) = 2. Given that N(S) = 120, how many outcomes belong to neither A nor B?

2.3 The Probability Function Having introduced in Section 2.2 the twin concepts of ‘‘experiment’’ and ‘‘sample space,’’ we are now ready to pursue in a formal way the all-important problem of assigning a probability to an experiment’s outcome—and, more generally, to an event. Specifically, if A is any event defined on a sample space S, the symbol P(A) will denote the probability of A, and we will refer to P as the probability function. It is, in effect, a mapping from a set (i.e., an event) to a number. The backdrop for our discussion will be the unions, intersections, and complements of set theory; the starting point will be the axioms referred to in Section 2.1 that were originally set forth by Kolmogorov.

If S has a finite number of members, Kolmogorov showed that as few as three axioms are necessary and sufficient for characterizing the probability function P:

Axiom 1. Let A be any event defined over S. Then P(A) ≥ 0. Axiom 2. P(S) = 1. Axiom 3. Let A and B be any two mutually exclusive events defined over S. Then

P(A ∪ B) = P(A) + P(B) When S has an infinite number of members, a fourth axiom is needed:

Axiom 4. Let A1, A2, . . . , be events defined over S. If Ai ∩Aj = ∅ for each i = j, then

P

( ∞⋃ i=1

Ai

) =

∞∑ i=1

P(Ai)

From these simple statements come the general rules for manipulating probability functions—rules that apply no matter what specific mathematical forms the functions may happen to take.

SOME BASIC PROPERTIES OF P

Some of the immediate consequences of Kolmogorov’s axioms are the results given in Theorems 2.3.1 through 2.3.6. Despite their simplicity, these properties prove to be extraordinarily useful in solving all sorts of problems.

Section 2.3 The Probability Function 27

Theorem 2.3.1

P(AC) = 1 − P(A). Proof By Axiom 2 and Definition 2.2.3,

P(S) = 1 = P(A ∪ AC) But A and AC are mutually exclusive, so

P(A ∪ AC) = P(A) + P(AC) and the result follows.

Theorem 2.3.2

P(∅) = 0. Proof Since ∅ = SC, P(∅) = P(SC) = 1 − P(S) = 0.

Theorem 2.3.3

If A ⊂ B, then P(A) ≤ P(B). Proof Note that the event B may be written in the form

B = A ∪ (B ∩ AC) where A and (B ∩ AC) are mutually exclusive. Therefore,

P(B) = P(A) + P(B ∩ AC) which implies that P(B) ≥ P(A) since P(B ∩ AC) ≥ 0.

Theorem 2.3.4

For any event A, P(A) ≤ 1. Proof The proof follows immediately from Theorem 2.3.3 because A ⊂ S and P(S) = 1.

Theorem 2.3.5

Let A1, A2, . . . , An be events defined over S. If Ai ∩ Aj = ∅ for i = j, then

P

( n⋃

i=1 Ai

) =

n∑ i=1

P(Ai)

Proof The proof is a straightforward induction argument with Axiom 3 being the starting point.

Theorem 2.3.6

P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Proof The Venn diagram for A ∪ B certainly suggests that the statement of the theorem is true (recall Figure 2.2.4). More formally, we have from Axiom 3 that

P(A) = P(A ∩ BC) + P(A ∩ B) and

P(B) = P(B ∩ AC) + P(A ∩ B) Adding these two equations gives

P(A) + P(B) = [P(A ∩ BC) + P(B ∩ AC) + P(A ∩ B)] + P(A ∩ B) By Theorem 2.3.5, the sum in the brackets is P(A ∪ B). If we subtract P(A ∩ B) from both sides of the equation, the result follows.

28 Chapter 2 Probability

The next result is a generalization of Theorem 2.3.6 that considers the probability of the union of n events. We have elected to retain the two-event case, P (A ∪ B), as a separate theorem simply for pedagogical reasons.

Theorem 2.3.7

Let A1, A2, . . . An be any n events defined on S. Then

P

( n⋃

i=1 Ai

) =

n∑ i=1

P (Ai) − ∑ i< j

P ( Ai ∩ Aj

) +

∑ i< j<k

P ( Ai ∩ Aj ∩ Ak

) − ∑ i< j<k<l

P ( Ai ∩ Aj ∩ Ak ∩ Al

) + · · · + (−1)n+1 · P (A1 ∩ A2 ∩ · · · ∩ An)

Proof The proof of Theorem 2.3.7 is basically an exercise in bookkeeping. By definition, A1 ∪ A2 ∪ · · · ∪ An is the set of outcomes belonging to any of the Ai’s individually or to any intersections of the Ai’s. The right-hand side of Theo- rem 2.3.7 is a counting scheme that alternately includes and excludes subsets of outcomes in such a way that each outcome in A1 ∪ A2 ∪ · · · ∪ An is included once and only once in the calculation of P (A1 ∪ A2 ∪ · · · ∪ An).

Consider, for example, the union of three events, A1, A2, and A3 as shown in Figure 2.3.1.

A1 A3

A2

Figure 2.3.1

Notice that simply adding P(A1), P(A2), and P(A3) results in adding P (A1 ∩ A2) twice, P (A1 ∩ A3) twice, and P (A2 ∩ A3) twice. It also results in P (A1 ∩ A2 ∩ A3) being added three times. The obvious “correction” is to subtract the probabilities associated with A1 ∩ A2, A1 ∩ A3, and A2 ∩ A3 and to add back the probability associated with A1 ∩ A2 ∩ A3 since those latter outcomes have pre- viously been added three times and subtracted three times. Therefore,

P (A1 ∪ A2 ∪ A3) = 3∑

i=1 P (Ai) −

∑ i< j

P ( Ai ∩ Aj

) + (−1)3+1 P (A1 ∩ A2 ∩ A3) = P (A1) + P (A2) + P (A3) − P (A1 ∩ A2) − P (A1 ∩ A3)

− P (A2 ∩ A3) + P (A1 ∩ A2 ∩ A3) . A formal proof of the theorem requires a knowledge of combinatorics and will be deferred until Section 2.6.

Example 2.3.1

Let A and B be two events defined on a sample space S such that P(A) = 0.3, P(B) = 0.5, and P(A ∪ B) = 0.7. Find (a) P(A ∩ B), (b) P(AC ∪ BC), and (c) P(AC ∩ B).

a. Transposing the terms in Theorem 2.3.6 yields a general formula for the proba- bility of an intersection:

P(A ∩ B) = P(A) + P(B) − P(A ∪ B)

Section 2.3 The Probability Function 29

Here

P(A ∩ B) = 0.3 + 0.5 − 0.7 = 0.1

b. The two cross-hatched regions in Figure 2.3.2 correspond to AC and BC. The union of AC and BC consists of those regions that have cross-hatching in either or both directions. By inspection, the only portion of S not included in AC ∪ BC is the intersection, A ∩ B. By Theorem 2.3.1, then

P(AC ∪ BC) = 1 − P(A ∩ B) = 1 − 0.1 = 0.9

S

AC

BC

A

B

Figure 2.3.2

S

AC

B

A

B

Figure 2.3.3

c. The event AC ∩ B corresponds to the region in Figure 2.3.3 where the cross- hatching extends in both directions—that is, everywhere in B except the inter- section with A. Therefore,

P(AC ∩ B) = P(B) − P(A ∩ B) = 0.5 − 0.1 = 0.4

Example 2.3.2

Show that

P(A ∩ B) ≥ 1 − P(AC) − P(BC) for any two events A and B defined on a sample space S.

From Example 2.3.1a and Theorem 2.3.1,

P(A ∩ B) = P(A) + P(B) − P(A ∪ B) = 1 − P(AC) + 1 − P(BC) − P(A ∪ B)

But P(A ∪ B) ≤ 1 from Theorem 2.3.4, so P(A ∩ B) ≥ 1 − P(AC) − P(BC)

30 Chapter 2 Probability

Example 2.3.3

Two cards are drawn from a poker deck without replacement. What is the probability that the second is higher in rank than the first?

Let A1, A2, and A3 be the events “First card is lower in rank,” “First card is higher in rank,” and “Both cards have same rank,” respectively. Clearly, the three Ai’s are mutually exclusive and they account for all possible outcomes, so from Theorem 2.3.5,

P(A1 ∪ A2 ∪ A3) = P(A1) + P(A2) + P(A3) = P(S) = 1 Once the first card is drawn, there are three choices for the second that would have the same rank—that is, P(A3) = 351 . Moreover, symmetry demands that P(A1) = P(A2), so

2P(A2) + 351 = 1

implying that P(A2) = 817 .

Example 2.3.4

Having endured (and survived) the mental trauma that comes from taking two years of chemistry, a year of physics, and a year of biology, Biff decides to test the medi- cal school waters and sends his MCATs to two colleges, X and Y . Based on how his friends have fared, he estimates that his probability of being accepted at X is 0.7, and at Y it is 0.4. He also suspects there is a 75% chance that at least one of his applica- tions will be rejected. What is the probability that he gets at least one acceptance?

Let A be the event “School X accepts him” and B the event “School Y accepts him.” We are given that P(A) = 0.7, P(B) = 0.4, and P(AC ∪ BC) = 0.75. The question is asking for P(A ∪ B).

From Theorem 2.3.6,

P(A ∪ B) = P(A) + P(B) − P(A ∩ B) Recall from Question 2.2.32 that AC ∪ BC = (A ∩ B)C, so

P(A ∩ B) = 1 − P[(A ∩ B)C] = 1 − 0.75 = 0.25 It follows that Biff’s prospects are not all that bleak—he has an 85% chance of getting in somewhere:

P(A ∪ B) = 0.7 + 0.4 − 0.25 = 0.85

Comment Notice that P(A ∪ B) varies directly with P(AC ∪ BC): P(A ∪ B) = P(A) + P(B) − [1 − P(AC ∪ BC)]

= P(A) + P(B) − 1 + P(AC ∪ BC) If P(A) and P(B), then, are fixed, we get the curious result that Biff’s chances of getting at least one acceptance increase if his chances of at least one rejection increase.

Questions

2.3.1. According to a family-oriented lobbying group, there is too much crude language and violence on tele- vision. Forty-two percent of the programs they screened had language they found offensive, 27% were too violent, and 10% were considered excessive in both language and

violence. What percentage of programs did comply with the group’s standards?

2.3.2. Let A and B be any two events defined on S. Sup- pose that P(A) = 0.4, P(B) = 0.5, and P(A ∩ B) = 0.1. What is the probability that A or B but not both occur?

Section 2.4 Conditional Probability 31

2.3.3. Express the following probabilities in terms of P(A), P(B), and P(A ∩ B). (a) P(AC ∪ BC) (b) P(AC ∩ (A ∪ B)) 2.3.4. Let A and B be two events defined on S. If the prob- ability that at least one of them occurs is 0.3 and the prob- ability that A occurs but B does not occur is 0.1, what is P(B)?

2.3.5. Suppose that three fair dice are tossed. Let Ai be the event that a 6 shows on the ith die, i = 1, 2, 3. Does P(A1 ∪ A2 ∪ A3) = 12 ? Explain. 2.3.6. Events A and B are defined on a sample space S such that P((A ∪ B)C) = 0.5 and P(A ∩ B) = 0.2. What is the probability that either A or B but not both will occur?

2.3.7. Let A1, A2, . . . , An be a series of events for which Ai ∩ Aj = ∅ if i = j and A1 ∪ A2 ∪ · · · ∪ An = S. Let B be any event defined on S. Express B as a union of intersections.

2.3.8. Draw the Venn diagrams that would correspond to the equations (a) P(A ∩ B) = P(B) and (b) P(A ∪ B) = P(B).

2.3.9. In the game of “odd man out” each player tosses a fair coin. If all the coins turn up the same except for one, the player tossing the different coin is declared the odd man out and is eliminated from the contest. Suppose that three people are playing. What is the probability that someone will be eliminated on the first toss? (Hint: Use Theorem 2.3.1.)

2.3.10. An urn contains twenty-four chips, numbered 1 through 24. One is drawn at random. Let A be the event that the number is divisible by 2 and let B be the event that the number is divisible by 3. Find P(A ∪ B). 2.3.11. If State’s football team has a 10% chance of win- ning Saturday’s game, a 30% chance of winning two weeks from now, and a 65% chance of losing both games, what are their chances of winning exactly once?

2.3.12. Events A1 and A2 are such that A1 ∪ A2 = S and A1 ∩ A2 = ∅. Find p2 if P(A1) = p1, P(A2) = p2, and 3p1 − p2 = 12 .

2.3.13. Consolidated Industries has come under consid- erable pressure to eliminate its seemingly discriminatory hiring practices. Company officials have agreed that dur- ing the next five years, 60% of their new employees will be females and 30% will be minorities. One out of four new employees, though, will be a white male. What percentage of their new hires will be minority females?

2.3.14. Three events—A, B, and C—are defined on a sam- ple space, S. Given that P(A) = 0.2, P(B) = 0.1, and P(C) = 0.3, what is the smallest possible value for P[(A ∪ B ∪ C)C]? 2.3.15. A coin is to be tossed four times. Define events X and Y such that

X : first and last coins have opposite faces Y : exactly two heads appear

Assume that each of the sixteen head/tail sequences has the same probability. Evaluate (a) P(XC ∩ Y) (b) P(X ∩ YC) 2.3.16. Two dice are tossed. Assume that each possible outcome has a 136 probability. Let A be the event that the sum of the faces showing is 6, and let B be the event that the face showing on one die is twice the face showing on the other. Calculate P(A ∩ BC). 2.3.17. Let A, B, and C be three events defined on a sam- ple space, S. Arrange the probabilities of the following events from smallest to largest: (a) A ∪ B (b) A ∩ B (c) A (d) S (e) (A ∩ B) ∪ (A ∩ C) 2.3.18. Lucy is currently running two dot-com scams out of a bogus chatroom. She estimates that the chances of the first one leading to her arrest are one in ten; the “risk” associated with the second is more on the order of one in thirty. She considers the likelihood that she gets busted for both to be 0.0025. What are Lucy’s chances of avoiding incarceration?

2.4 Conditional Probability In Section 2.3, we calculated probabilities of certain events by manipulating other probabilities whose values we were given. Knowing P(A), P(B), and P(A ∩ B), for example, allows us to calculate P(A∪B) (recall Theorem 2.3.6). For many real-world situations, though, the “given” in a probability problem goes beyond simply knowing a set of other probabilities. Sometimes, we know for a fact that certain events have already occurred, and those occurrences may have a bearing on the probability we are trying to find. In short, the probability of an event A may have to be “adjusted” if

32 Chapter 2 Probability

we know for certain that some related event B has already occurred. Any probability that is revised to take into account the (known) occurrence of other events is said to be a conditional probability.

Consider a fair die being tossed, with A defined as the event “6 appears.” Clearly, P(A) = 16 . But suppose that the die has already been tossed—by someone who re- fuses to tell us whether or not A occurred but does enlighten us to the extent of confirming that B occurred, where B is the event “Even number appears.” What are the chances of A now? Here, common sense can help us: There are three equally likely even numbers making up the event B—one of which satisfies the event A, so the “updated” probability is 13 .

Notice that the effect of additional information, such as the knowledge that B has occurred, is to revise—indeed, to shrink—the original sample space S to a new set of outcomes S′. In this example, the original S contained six outcomes, the conditional sample space, three (see Figure 2.4.1).

1 B

P (6, relative to S) = 1/6

3

5

6 4

2

S S' (= B)

P (6, relative to S') = 1/3

6 4

2

Figure 2.4.1

The symbol P(A|B)—read “the probability of A given B”—is used to denote a conditional probability. Specifically, P(A|B) refers to the probability that A will occur given that B has already occurred.

It will be convenient to have a formula for P(A|B) that can be evaluated in terms of the original S, rather than the revised S′. Suppose that S is a finite sample space with n outcomes, all equally likely. Assume that A and B are two events contain- ing a and b outcomes, respectively, and let c denote the number of outcomes in the intersection of A and B (see Figure 2.4.2). Based on the argument suggested in Fig- ure 2.4.1, the conditional probability of A given B is the ratio of c to b. But c/b can be written as the quotient of two other ratios,

S BA

ca b

Figure 2.4.2

c b

= c/n b/n

so, for this particular case,

P(A|B) = P(A ∩ B) P(B)

(2.4.1)

The same underlying reasoning that leads to Equation 2.4.1, though, holds true even when the outcomes are not equally likely or when S is uncountably infinite.

Section 2.4 Conditional Probability 33

Definition 2.4.1 Let A and B be any two events defined on S such that P(B) > 0. The conditional probability of A, assuming that B has already occurred, is written P(A|B) and is given by

P(A|B) = P(A ∩ B) P(B)

Comment Definition 2.4.1 can be cross multiplied to give a frequently useful ex- pression for the probability of an intersection. If P(A|B) = P(A ∩ B)/P(B), then

P(A ∩ B) = P(A|B)P(B) (2.4.2) Example

2.4.1 A card is drawn from a poker deck. What is the probability that the card is a club, given that the card is a king?

Intuitively, the answer is 14 : The king is equally likely to be a heart, diamond, club, or spade. More formally, let C be the event “Card is a club”; let K be the event “Card is a king.” By Definition 2.4.1,

P(C|K) = P(C ∩ K) P(K)

But P(K) = 452 and P(C ∩ K) = P(Card is a king of clubs) = 152 . Therefore, confirm- ing our intuition,

P(C|K) = 1/52 4/52

= 1 4

[Notice in this example that the conditional probability P(C|K) is numerically the same as the unconditional probability P(C)—they both equal 14 . This means that our knowledge that K has occurred gives us no additional insight about the chances of C occurring. Two events having this property are said to be independent. We will examine the notion of independence and its consequences in detail in Section 2.5.]

Example 2.4.2

Our intuitions can often be fooled by probability problems, even ones that appear to be simple and straightforward. The “two boys” problem described here is an often- cited case in point.

Consider the set of families having two children. Assume that the four possible birth sequences—(younger child is a boy, older child is a boy), (younger child is a boy, older child is a girl), and so on—are equally likely. What is the probability that both children are boys given that at least one is a boy?

The answer is not 12 . The correct answer can be deduced from Definition 2.4.1. By assumption, each of the four possible birth sequences—(b, b), (b, g), (g, b), and (g, g)—has a 14 probability of occurring. Let A be the event that both children are boys, and let B be the event that at least one child is a boy. Then

P(A|B) = P(A ∩ B)/P(B) = P(A)/P(B) since A is a subset of B (so the overlap between A and B is just A). But A has one outcome {(b, b)} and B has three outcomes {(b, g), (g, b), (b, b)}. Applying Defini- tion 2.4.1, then, gives

P(A|B) = (1/4)/(3/4) = 1 3

Another correct approach is to go back to the sample space and deduce the value of P(A|B) from first principles. Figure 2.4.3 shows events A and B defined on the four

34 Chapter 2 Probability

family types that comprise the sample space S. Knowing that B has occurred rede- fines the sample space to include three outcomes, each now having a 13 probability. Of those three possible outcomes, one—namely, (b, b)—satisfies the event A. It follows that P(A|B) = 13 .

A

B

(b, b)

(g, b)

(b, g)

(g, g)

S = sample space of two-child families [outcomes written as (first born, second born)]

Figure 2.4.3

Example 2.4.3

Two events A and B are defined such that (1) the probability that A occurs but B does not occur is 0.2, (2) the probability that B occurs but A does not occur is 0.1, and (3) the probability that neither occurs is 0.6. What is P(A|B)?

The three events whose probabilities are given are indicated on the Venn dia- gram shown in Figure 2.4.4. Since

P(Neither occurs) = 0.6 = P((A ∪ B)C) it follows that

P(A ∪ B) = 1 − 0.6 = 0.4 = P(A ∩ BC) + P(A ∩ B) + P(B ∩ AC) so

P(A ∩ B) = 0.4 − 0.2 − 0.1 = 0.1

S

A

B

Neither A nor B

B AC A BC

> >

Figure 2.4.4

From Definition 2.4.1, then,

P(A|B) = P(A ∩ B) P(B)

= P(A ∩ B) P(A ∩ B) + P(B ∩ AC)

= 0.1 0.1 + 0.1

= 0.5

Section 2.4 Conditional Probability 35

Example 2.4.4

The possibility of importing liquified natural gas (LNG) from Algeria has been sug- gested as one way of coping with a future energy crunch. Complicating matters, though, is the fact that LNG is highly volatile and poses an enormous safety haz- ard. Any major spill occurring near a U.S. port could result in a fire of catastrophic proportions. The question, therefore, of the likelihood of a spill becomes critical in- put for future policymakers who may have to decide whether or not to implement the proposal.

Two numbers need to be taken into account: (1) the probability that a tanker will have an accident near a port, and (2) the probability that a major spill will develop given that an accident has happened. Although no significant spills of LNG have yet occurred anywhere in the world, these probabilities can be approximated from records kept on similar tankers transporting less dangerous cargo. On the basis of such data, it has been estimated (47) that the probability is 8/50,000 that an LNG tanker will have an accident on any one trip. Given that an accident has occurred, it is suspected that only three times in fifteen thousand will the damage be sufficiently severe that a major spill would develop. What are the chances that a given LNG shipment would precipitate a catastrophic disaster?

Let A denote the event “Spill develops” and let B denote the event “Accident occurs.” Past experience is suggesting that P(B) = 8/50,000 and P(A|B) = 3/15,000. Of primary concern is the probability that an accident will occur and a spill will ensue—that is, P(A ∩ B). Using Equation 2.4.2, we find that the chances of a catas- trophic accident are on the order of three in one hundred million:

P(Accident occurs and spill develops) = P(A ∩ B) = P(A|B)P(B)

= 3 15,000

· 8 50,000

= 0.000000032

Example 2.4.5

Max and Muffy are two myopic deer hunters who shoot simultaneously at a nearby sheepdog that they have mistaken for a 10-point buck. Based on years of well- documented ineptitude, it can be assumed that Max has a 20% chance of hitting a stationary target at close range, Muffy has a 30% chance, and the probability is 0.06 that they will both be on target. Suppose that the sheepdog is hit and killed by exactly one bullet. What is the probability that Muffy fired the fatal shot?

Let A be the event that Max hit the dog, and let B be the event that Muffy hit the dog. Then P(A) = 0.2, P(B) = 0.3, and P(A ∩ B) = 0.06. We are trying to find

P(B|(AC ∩ B) ∪ (A ∩ BC)) where the event (AC ∩ B) ∪ (A ∩ BC) is the union of A and B minus the intersection—that is, it represents the event that either A or B but not both occur (recall Figure 2.4.4).

Notice, also, from Figure 2.4.4 that the intersection of B and (AC ∩ B) ∪ (A ∩ BC) is the event AC ∩ B. Therefore, from Definition 2.4.1,

P(B|(AC ∩ B) ∪ (A ∩ BC)) = [P(AC ∩ B)]/[P{(AC ∩ B) ∪ (A ∩ BC)}] = [P(B) − P(A ∩ B)]/[P(A ∪ B) − P(A ∩ B)] = [0.3 − 0.06]/[0.2 + 0.3 − 0.06 − 0.06] = 0.63

36 Chapter 2 Probability

CASE STUDY 2.4.1

Several years ago, a television program (inadvertently) spawned a conditional probability problem that led to more than a few heated discussions, even in the national media. The show was Let’s Make a Deal, and the question involved the strategy that contestants should take to maximize their chances of winning prizes.

On the program, a contestant would be presented with three doors, behind one of which was the prize. After the contestant had selected a door, the host, Monty Hall, would open one of the other two doors, showing that the prize was not there. Then he would give the contestant a choice—either stay with the door initially selected or switch to the “third” door, which had not been opened.

For many viewers, common sense seemed to suggest that switching doors would make no difference. By assumption, the prize had a one-third chance of being behind each of the doors when the game began. Once a door was opened, it was argued that each of the remaining doors now had a one-half probability of hiding the prize, so contestants gained nothing by switching their bets.

Not so. An application of Definition 2.4.1 shows that it did make a difference—contestants, in fact, doubled their chances of winning by switching doors. To see why, consider a specific (but typical) case: The contestant has bet on Door #2 and Monty Hall has opened Door #3. Given that sequence of events, we need to calculate and compare the conditional probability of the prize being behind Door #1 and Door #2, respectively. If the former is larger (and we will prove that it is), the contestant should switch doors.

Table 2.4.1 shows the sample space associated with the scenario just de- scribed. If the prize is actually behind Door #1, the host has no choice but to open Door #3; similarly, if the prize is behind Door #3, the host has no choice but to open Door #1. In the event that the prize is behind Door #2, though, the host would (theoretically) open Door #1 half the time and Door #3 half the time.

Table 2.4.1

(Prize Location, Door Opened) Probability

(1, 3) 1/3

(2, 1) 1/6

(2, 3) 1/6

(3, 1) 1/3

Notice that the four outcomes in S are not equally likely. There is neces- sarily a one-third probability that the prize is behind each of the three doors. However, the two choices that the host has when the prize is behind Door #2 necessitate that the two outcomes (2, 1) and (2, 3) share the one-third probabil- ity that represents the chances of the prize being behind Door #2. Each, then, has the one-sixth probability listed in Table 2.4.1.

Section 2.4 Conditional Probability 37

Let A be the event that the prize is behind Door #2, and let B be the event that the host opened Door #3. Then

P(A|B) = P(Contestant wins by not switching) = [P(A ∩ B)]/P(B) = [ 16 ] /[ 13 + 16 ] = 13

Now, let A∗ be the event that the prize is behind Door #1, and let B (as before) be the event that the host opens Door #3. In this case,

P(A∗|B) = P(Contestant wins by switching) = [P(A∗ ∩ B)]/P(B) = [ 13 ] /[ 13 + 16 ] = 23

Common sense would have led us astray again! If given the choice, contestants should have always switched doors. Doing so upped their chances of winning from one-third to two-thirds.

Questions

2.4.1. Suppose that two fair dice are tossed. What is the probability that the sum equals 10 given that it exceeds 8?

2.4.2. Find P(A ∩ B) if P(A) = 0.2, P(B) = 0.4, and P(A|B) + P(B|A) = 0.75. 2.4.3. If P(A|B) < P(A), show that P(B|A) < P(B). 2.4.4. Let A and B be two events such that P((A ∪ B)C) = 0.6 and P(A ∩ B) = 0.1. Let E be the event that either A or B but not both will occur. Find P(E|A ∪ B). 2.4.5. Suppose that in Example 2.4.2 we ignored the ages of the children and distinguished only three family types: (boy, boy), (girl, boy), and (girl, girl). Would the condi- tional probability of both children being boys given that at least one is a boy be different from the answer found on pp. 33–34? Explain.

2.4.6. Two events, A and B, are defined on a sample space S such that P(A|B) = 0.6, P(At least one of the events oc- curs) = 0.8, and P(Exactly one of the events occurs) = 0.6. Find P(A) and P(B).

2.4.7. An urn contains one red chip and one white chip. One chip is drawn at random. If the chip selected is red, that chip together with two additional red chips are put back into the urn. If a white chip is drawn, the chip is re- turned to the urn. Then a second chip is drawn. What is the probability that both selections are red?

2.4.8. Given that P(A) = a and P(B) = b, show that

P(A|B) ≥ a + b − 1 b

2.4.9. An urn contains one white chip and a second chip that is equally likely to be white or black. A chip is drawn

at random and returned to the urn. Then a second chip is drawn. What is the probability that a white appears on the second draw given that a white appeared on the first draw? (Hint: Let Wi be the event that a white chip is se- lected on the ith draw, i = 1, 2. Then P(W2|W1) = P(W1∩W2)P(W1) . If both chips in the urn are white, P(W1) = 1; otherwise, P(W1) = 12 .) 2.4.10. Suppose events A and B are such that P(A ∩ B) = 0.1 and P((A ∪ B)C) = 0.3. If P(A) = 0.2, what does P[(A ∩ B)|(A ∪ B)C] equal? (Hint: Draw the Venn diagram.)

2.4.11. One hundred voters were asked their opinions of two candidates, A and B, running for mayor. Their re- sponses to three questions are summarized below:

Number Saying “Yes”

Do you like A? 65 Do you like B? 55 Do you like both? 25

(a) What is the probability that someone likes neither? (b) What is the probability that someone likes exactly one? (c) What is the probability that someone likes at least one? (d) What is the probability that someone likes at most one? (e) What is the probability that someone likes exactly one given that he or she likes at least one?

38 Chapter 2 Probability

(f) Of those who like at least one, what proportion like both? (g) Of those who do not like A, what proportion like B?

2.4.12. A fair coin is tossed three times. What is the prob- ability that at least two heads will occur given that at most two heads have occurred?

2.4.13. Two fair dice are rolled. What is the probability that the number on the first die was at least as large as 4 given that the sum of the two dice was 8?

2.4.14. Four cards are dealt from a standard fifty-two-card poker deck. What is the probability that all four are aces given that at least three are aces? (Note: There are 270,725 different sets of four cards that can be dealt. Assume that the probability associated with each of those hands is 1/270,725.)

2.4.15. Given that P(A ∩ BC) = 0.3, P((A ∪ B)C) = 0.2, and P(A ∩ B) = 0.1, find P(A|B). 2.4.16. Given that P(A) + P(B) = 0.9, P(A|B) = 0.5, and P(B|A) = 0.4, find P(A). 2.4.17. Let A and B be two events defined on a sample space S such that P(A ∩ BC) = 0.1, P(AC ∩ B) = 0.3, and P((A ∪ B)C) = 0.2. Find the probability that at least one of the two events occurs given that at most one occurs.

2.4.18. Suppose two dice are rolled. Assume that each possible outcome has probability 1/36. Let A be the event that the sum of the two dice is greater than or equal to 8, and let B be the event that at least one of the dice shows a 5. Find P(A|B).

2.4.19. According to your neighborhood bookie, five horses are scheduled to run in the third race at the local track, and handicappers have assigned them the following probabilities of winning:

Horse Probability of Winning

Scorpion 0.10 Starry Avenger 0.25 Australian Doll 0.15 Dusty Stake 0.30 Outandout 0.20

Suppose that Australian Doll and Dusty Stake are scratched from the race at the last minute. What are the chances that Outandout will prevail over the reduced field?

2.4.20. Andy, Bob, and Charley have all been serving time for grand theft auto. According to prison scuttlebutt, the warden plans to release two of the three next week. They all have identical records, so the two to be released will be chosen at random, meaning that each has a two-thirds probability of being included in the two to be set free. Andy, however, is friends with a guard who will know ahead of time which two will leave. He offers to tell Andy the name of one prisoner other than himself who will be released. Andy, however, declines the offer, believing that if he learns the name of one prisoner scheduled to be re- leased, then his chances of being the other person set free will drop to one-half (since only two prisoners will be left at that point). Is his concern justified?

APPLYING CONDITIONAL PROBABILITY TO HIGHER-ORDER INTERSECTIONS

We have seen that conditional probabilities can be useful in evaluating intersection probabilities—that is, P(A ∩ B) = P(A|B)P(B) = P(B|A)P(A). A similar result holds for higher-order intersections. Consider P(A ∩ B ∩C). By thinking of A ∩ B as a single event—say, D—we can write

P(A ∩ B ∩ C) = P(D ∩ C) = P(C|D)P(D) = P(C|A ∩ B)P(A ∩ B) = P(C|A ∩ B)P(B|A)P(A)

Repeating this same argument for n events, A1, A2, . . . , An, gives a formula for the general case:

P(A1 ∩ A2 ∩ · · · ∩ An) = P(An|A1 ∩ A2 ∩ · · · ∩ An−1) · P(An−1|A1 ∩ A2 ∩ · · · ∩ An−2) · · · P(A2|A1) · P(A1)

(2.4.3)

Section 2.4 Conditional Probability 39

Example 2.4.6

An urn contains five white chips, four black chips, and three red chips. Four chips are drawn sequentially and without replacement. What is the probability of obtaining the sequence (white, red, white, black)?

Figure 2.4.5. shows the evolution of the urn’s composition as the desired sequence is assembled. Define the following four events:

W5 W

4 B

3 R

R4 W

4 B

3 R

W4 W

4 B

2 R

3 W

3 B

2 R

B3 W

4 B

2 R

Figure 2.4.5

A: white chip is drawn on first selection B: red chip is drawn on second selection C: white chip is drawn on third selection D: black chip is drawn on fourth selection

Our objective is to find P(A ∩ B ∩ C ∩ D). From Equation 2.4.3,

P(A ∩ B ∩ C ∩ D) = P(D|A ∩ B ∩ C) · P(C|A ∩ B) · P(B|A) · P(A) Each of the probabilities on the right-hand side of the equation here can be gotten by just looking at the urns pictured in Figure 2.4.5: P(D|A ∩ B∩ C) = 49 , P(C|A ∩ B) = 4

10 , P(B|A) = 311 , and P(A) = 512 . Therefore, the probability of drawing a (white, red, white, black) sequence is 0.02:

P(A ∩ B ∩ C ∩ D) = 4 9

· 4 10

· 3 11

· 5 12

= 240 11,880

= 0.02

CASE STUDY 2.4.2

Since the late 1940s, tens of thousands of eyewitness accounts of strange lights in the skies, unidentified flying objects, and even alleged abductions by little green men have made headlines. None of these incidents, though, has produced any hard evidence, any irrefutable proof that Earth has been visited by a race of extraterrestrials. Still, the haunting question remains—are we alone in the uni- verse? Or are there other civilizations, more advanced than ours, making the occasional flyby?

Until, or unless, a flying saucer plops down on the White House lawn and a strange-looking creature emerges with the proverbial “Take me to your leader” demand, we may never know whether we have any cosmic neighbors. Equa- tion 2.4.3, though, can help us speculate on the probability of our not being alone.

Recent discoveries suggest that planetary systems much like our own may be quite common. If so, there are likely to be many planets whose chemical make- ups, temperatures, pressures, and so on, are suitable for life. Let those planets be the points in our sample space. Relative to them, we can define three events:

A: life arises B: technical civilization arises (one capable of interstellar communication) C: technical civilization is flourishing now

(Continued on next page)

40 Chapter 2 Probability

(Case Study 2.4.2 continued)

In terms of A, B, and C, the probability that a habitable planet is presently sup- porting a technical civilization is the probability of an intersection—specifically, P(A ∩ B ∩ C). Associating a number with P(A ∩ B ∩ C) is highly problematic, but the task is simplified considerably if we work instead with the equivalent conditional formula, P(C|B ∩ A) · P(B|A) · P(A).

Scientists speculate (163) that life of some kind may arise on one-third of all planets having a suitable environment and that life on maybe 1% of all those planets will evolve into a technical civilization. In our notation, P(A) = 13 and P(B|A) = 1100 .

More difficult to estimate is P(C|A ∩ B). On Earth, we have had the ca- pability of interstellar communication (that is, radio astronomy) for only a few decades, so P(C|A ∩ B), empirically, is on the order of 1 × 10−8. But that may be an overly pessimistic estimate of a technical civilization’s ability to endure. It may be true that if a civilization can avoid annihilating itself when it first devel- ops nuclear weapons, its prospects for longevity are fairly good. If that were the case, P(C|A ∩ B) might be as large as 1 × 10−2.

Putting these estimates into the computing formula for P(A ∩ B ∩C) yields a range for the probability of a habitable planet currently supporting a technical civilization. The chances may be as small as 3.3×10−11 or as “large” as 3.3×10−5:

(1 × 10−8) (

1 100

) ( 1 3

) < P(A ∩ B ∩ C) < (1 × 10−2)

( 1

100

) ( 1 3

)

or

0.000000000033 < P(A ∩ B ∩ C) < 0.000033

A better way to put these figures in some kind of perspective is to think in terms of numbers rather than probabilities. Astronomers estimate there are 3 × 1011 habitable planets in our Milky Way galaxy. Multiplying that total by the two limits for P(A ∩ B ∩ C) gives an indication of how many cosmic neigh- bors we are likely to have. Specifically, 3 × 1011 · 0.000000000033 .= 10, while 3 × 1011 · 0.000033 .= 10,000,000. So, on the one hand, we may be a galactic rar- ity. At the same time, the probabilities do not preclude the very real possibility that the Milky Way is abuzz with activity and that our neighbors number in the millions.

About the Data In 2009, NASA launched the spacecraft Kepler, whose sole mission was to find other solar systems in the Milky Way galaxy. And find them it did! By 2015 it had documented over one thousand “exoplanets,” in- cluding more than a dozen belonging to so-called Goldilocks zones, mean- ing the planet’s size and configuration of its orbit would allow for liquid water to remain on its surface, thus making it a likely home for living organ- isms. Of particular interest is the planet Kepler 186f located in the constel- lation Cygnus, some five hundred light years away. Its size, orbit, and nature of its sun make it remarkably similar to Earth—maybe not quite a twin, as- tronomers say, but certainly a cousin. (So, maybe UFOs are real and maybe a few have landed, and maybe that weird guy your sister is dating isn’t really from Cleveland. . .)

Section 2.4 Conditional Probability 41

Questions

2.4.21. An urn contains six white chips, four black chips, and five red chips. Five chips are drawn out, one at a time and without replacement. What is the probability of getting the sequence (black, black, red, white, white)? Suppose that the chips are numbered 1 through 15. What is the probability of getting a specific sequence—say, (2, 6, 4, 9, 13)?

2.4.22. A man has n keys on a key ring, one of which opens the door to his apartment. Having celebrated a bit too much one evening, he returns home only to find himself unable to distinguish one key from another. Resourceful, he works out a fiendishly clever plan: He will choose a key at random and try it. If it fails to open the door, he will dis- card it and choose at random one of the remaining n − 1 keys, and so on. Clearly, the probability that he gains en- trance with the first key he selects is 1/n. Show that the probability the door opens with the third key he tries is also 1/n. (Hint: What has to happen before he even gets to the third key?)

2.4.23. Your favorite college football team has had a good season so far but they need to win at least two of their

last four games to qualify for a New Year’s Day bowl bid. Oddsmakers estimate the team’s probabilities of winning each of their last four games to be 0.60, 0.50, 0.40, and 0.70, respectively.

(a) What are the chances that you will get to watch your team play on Jan. 1? (b) Is the probability that your team wins all four games given that they have won at least three games equal to the probability that they win the fourth game? Explain. (c) Is the probability that your team wins all four games given that they won the first three games equal to the probability that they win the fourth game?

2.4.24. One chip is drawn at random from an urn that con- tains one white chip and one black chip. If the white chip is selected, we simply return it to the urn; if the black chip is drawn, that chip—together with another black—are re- turned to the urn. Then a second chip is drawn, with the same rules for returning it to the urn. Calculate the prob- ability of drawing two whites followed by three blacks.

CALCULATING “UNCONDITIONAL” AND “INVERSE” PROBABILITIES

We conclude this section with two very useful theorems that apply to partitioned sample spaces. By definition, a set of events A1, A2, . . . , An “partition” S if every outcome in the sample space belongs to one and only one of the Ai’s—that is, the Ai’s are mutually exclusive and their union is S (see Figure 2.4.6).

S

A2

A1

An

B

Figure 2.4.6

Let B, as pictured, denote any event defined on S. The first result, Theorem 2.4.1, gives a formula for the “unconditional” probability of B (in terms of the Ai’s). Then Theorem 2.4.2 calculates the set of conditional probabilities, P(Aj|B), j = 1, 2, . . . , n.

Theorem 2.4.1

Let {Ai}ni=1 be a set of events defined over S such that S = ⋃n

i=1 Ai, Ai ∩ Aj = ∅ for i = j, and P(Ai) > 0 for i = 1, 2, . . . , n. For any event B,

P(B) = n∑

i=1 P(B|Ai)P(Ai)

Proof By the conditions imposed on the Ai’s,

B = (B ∩ A1) ∪ (B ∩ A2) ∪ · · · ∪ (B ∩ An)

42 Chapter 2 Probability

and

P(B) = P(B ∩ A1) + P(B ∩ A2) + · · · + P(B ∩ An) But each P(B ∩ Ai) can be written as the product P(B|Ai)P(Ai), and the result follows.

Example 2.4.7

Urn I contains two red chips and four white chips; urn II, three red and one white. A chip is drawn at random from urn I and transferred to urn II. Then a chip is drawn from urn II. What is the probability that the chip drawn from urn II is red?

Let B be the event “Chip drawn from urn II is red”; let A1 and A2 be the events “Chip transferred from urn I is red” and “Chip transferred from urn I is white,” respectively. By inspection (see Figure 2.4.7), we can deduce all the probabilities appearing in the right-hand side of the formula in Theorem 2.4.1:

Red

Transfer one

Urn I Urn II

White Draw one

Figure 2.4.7

P(B|A1) = 45 P(B|A2) = 3 5

P(A1) = 26 P(A2) = 4 6

Putting all this information together, we see that the chances are two out of three that a red chip will be drawn from urn II:

P(B) = P(B|A1)P(A1) + P(B|A2)P(A2)

= 4 5

· 2 6

+ 3 5

· 4 6

= 2 3

Example 2.4.8

A standard poker deck is shuffled, and the card on top is removed. What is the prob- ability that the second card is an ace?

Define the following events:

B: second card is an ace A1: top card was an ace A2: top card was not an ace

Then P(B|A1) = 351 , P(B|A2) = 451 , P(A1) = 452 , and P(A2) = 4852 . Since the Ai’s partition the sample space of two-card selections, Theorem 2.4.1 applies. Substituting into the expression for P(B) shows that 452 is the probability that the second card is an ace:

P(B) = P(B|A1)P(A1) + P(B|A2)P(A2)

= 3 51

· 4 52

+ 4 51

· 48 52

= 4 52

Section 2.4 Conditional Probability 43

Comment Notice that P(B) = P(second card is an ace) is numerically the same as P(A1) = P(first card is an ace). The analysis in Example 2.4.8 illustrates a basic principle in probability that says, in effect, “What you don’t know, doesn’t matter.” Here, removal of the top card is irrelevant to any subsequent probability calculations if the identity of that card remains unknown.

Example 2.4.9

Ashley is hoping to land a summer internship with a public relations firm. If her interview goes well, she has a 70% chance of getting an offer. If the interview is a bust, though, her chances of getting the position drop to 20%. Unfortunately, Ashley tends to babble incoherently when she is under stress, so the likelihood of the interview going well is only 0.10. What is the probability that Ashley gets the internship?

Let B be the event “Ashley is offered internship,” let A1 be the event “Interview goes well,” and let A2 be the event “Interview does not go well.” By assumption,

P(B|A1) = 0.70 P(B|A2) = 0.20 P(A1) = 0.10 P(A2) = 1 − P(A1) = 1 − 0.10 = 0.90

According to Theorem 2.4.1, Ashley has a 25% chance of landing the internship:

P(B) = P(B|A1)P(A1) + P(B|A2)P(A2) = (0.70)(0.10) + (0.20)(0.90) = 0.25

Example 2.4.10

Three chips are placed in an urn. One is red on both sides, a second is blue on both sides, and the third is red on one side and blue on the other. One chip is selected at random and placed on a table. Suppose that the color showing on that chip is red. What is the probability that the color underneath is also red (see Figure 2.4.8)?

R e d

R e d

R e d

B l u e

B l u e

B l u e

Draw one

Red

Figure 2.4.8

At first glance, it may seem that the answer is one-half: We know that the blue/blue chip has not been drawn, and only one of the remaining two—the red/red chip—satisfies the event that the color underneath is red. If this game were played over and over, though, and records were kept of the outcomes, it would be found that the proportion of times that a red top has a red bottom is two-thirds, not the one-half that our intuition might suggest. The correct answer follows from an application of Theorem 2.4.1.

Define the following events:

A: bottom side of chip drawn is red B: top side of chip drawn is red A1: red/red chip is drawn A2: blue/blue chip is drawn A3: red/blue chip is drawn

From the definition of conditional probability,

P(A|B) = P(A ∩ B) P(B)

44 Chapter 2 Probability

But P(A ∩ B) = P(Both sides are red) = P (red/red chip) = 13 , and Theorem 2.4.1 can be used to find the denominator, P(B):

P(B) = P(B|A1)P(A1) + P(B|A2)P(A2) + P(B|A3)P(A3)

= 1 · 1 3

+ 0 · 1 3

+ 1 2

· 1 3

= 1 2

Therefore,

P(A|B) = 1/3 1/2

= 2 3

Comment The question posed in Example 2.4.10 gives rise to a simple but effective con game. The trick is to convince a “mark” that the initial analysis given earlier is correct, meaning that the bottom has a fifty-fifty chance of being the same color as the top. Under that incorrect presumption that the game is “fair,” both participants put up the same amount of money, but the gambler (knowing the correct analysis) always bets that the bottom is the same color as the top. In the long run, then, the con artist will be winning an even-money bet two-thirds of the time!

Questions

2.4.25. A toy manufacturer buys ball bearings from three different suppliers—50% of her total order comes from supplier 1, 30% from supplier 2, and the rest from supplier 3. Past experience has shown that the quality-control standards of the three suppliers are not all the same. Two percent of the ball bearings produced by supplier 1 are defective, while suppliers 2 and 3 produce defective bearings 3% and 4% of the time, respectively. What proportion of the ball bearings in the toy manufacturer’s inventory are defective?

2.4.26. A fair coin is tossed. If a head turns up, a fair die is tossed; if a tail turns up, two fair dice are tossed. What is the probability that the face (or the sum of the faces) showing on the die (or the dice) is equal to 6?

2.4.27. Foreign policy experts estimate that the probability is 0.65 that war will break out next year between two Middle East countries if either side significantly escalates its terrorist activities. Otherwise, the likelihood of war is estimated to be 0.05. Based on what has happened this year, the chances of terrorism reaching a critical level in the next twelve months are thought to be three in ten. What is the probability that the two countries will go to war?

2.4.28. A telephone solicitor is responsible for canvassing three suburbs. In the past, 60% of the completed calls to Belle Meade have resulted in contributions, compared to 55% for Oak Hill and 35% for Antioch. Her list of tele- phone numbers includes one thousand households from Belle Meade, one thousand from Oak Hill, and two thou- sand from Antioch. Suppose that she picks a number at random from the list and places the call. What is the prob- ability that she gets a donation?

2.4.29. If men constitute 47% of the population and tell the truth 78% of the time, while women tell the truth 63% of the time, what is the probability that a person selected at random will answer a question truthfully?

2.4.30. Urn I contains three red chips and one white chip. Urn II contains two red chips and two white chips. One chip is drawn from each urn and transferred to the other urn. Then a chip is drawn from the first urn. What is the probability that the chip ultimately drawn from urn I is red?

2.4.31. Medical records show that 0.01%of the general adult population not belonging to a high-risk group (for example, intravenous drug users) are HIV-positive. Blood tests for the virus are 99.9% accurate when given to someone infected and 99.99% accurate when given to someone not infected. What is the probability that a random adult not in a high- risk group will test positive for the HIV virus?

2.4.32. Recall the “survival” lottery described in Ques- tion 2.2.14. What is the probability of release associated with the prisoner’s optimal strategy?

2.4.33. In an upstate congressional race, the incumbent Republican (R) is running against a field of three Democrats (D1, D2, and D3) seeking the nomination. Political pundits estimate that the probabilities of D1, D2, or D3 winning the primary are 0.35, 0.40, and 0.25, respectively. Furthermore, results from a variety of polls are suggesting that R would have a 40% chance of defeating D1 in the general election, a 35% chance of defeating D2, and a 60% chance of defeating D3. Assuming all these estimates to be accurate, what are the chances that the Republican will retain his seat?

Section 2.4 Conditional Probability 45

2.4.34. An urn contains forty red chips and sixty white chips. Six chips are drawn out and discarded, and a sev- enth chip is drawn. What is the probability that the sev- enth chip is red?

2.4.35. A study has shown that seven out of ten people will say “heads” if asked to call a coin toss. Given that the coin is fair, though, a head occurs, on the average, only five times out of ten. Does it follow that you have the ad- vantage if you let the other person call the toss? Explain.

2.4.36. Based on pretrial speculation, the probability that a jury returns a guilty verdict in a certain high-profile mur- der case is thought to be 15% if the defense can discredit the police department and 80% if they cannot. Veteran court observers believe that the skilled defense attorneys have a 70% chance of convincing the jury that the po- lice either contaminated or planted some of the key evi- dence. What is the probability that the jury returns a guilty verdict?

2.4.37. As an incoming freshman, Marcus believes that he has a 25% chance of earning a GPA in the 3.5 to 4.0 range, a 35% chance of graduating with a 3.0 to 3.5 GPA, and a 40% chance of finishing with a GPA less than 3.0. From what the pre-med advisor has told him, Marcus has an eight in ten chance of getting into medical school if his GPA is above 3.5, a five in ten chance if his GPA is in the 3.0 to 3.5 range, and only a one in ten chance if his GPA

falls below 3.0. Based on those estimates, what is the prob- ability that Marcus gets into medical school?

2.4.38. The governor of a certain state has decided to come out strongly for prison reform and is preparing a new early release program. Its guidelines are simple: pris- oners related to members of the governor’s staff would have a 90% chance of being released early; the probability of early release for inmates not related to the governor’s staff would be 0.01. Suppose that 40% of all inmates are related to someone on the governor’s staff. What is the probability that a prisoner selected at random would be eligible for early release?

2.4.39. Following are the percentages of students of State College enrolled in each of the school’s main divisions. Also listed are the proportions of students in each divi- sion who are women.

Division % % Women

Humanities 40 60 Natural science 10 15 History 30 45 Social science 20 75

100

Suppose the registrar selects one person at random. What is the probability that the student selected will be a male?

BAYES’ THEOREM

The second result in this section that is set against the backdrop of a partitioned sam- ple space has a curious history. The first explicit statement of Theorem 2.4.2, coming in 1812, was due to Laplace, but it was named after the Reverend Thomas Bayes, whose 1763 paper (published posthumously) had already outlined the result. On one level, the theorem is a relatively minor extension of the definition of conditional probability. When viewed from a loftier perspective, though, it takes on some rather profound philosophical implications. The latter, in fact, have precipitated a schism among practicing statisticians: “Bayesians” analyze data one way; “non-Bayesians” often take a fundamentally different approach (see Section 5.8).

Our use of the result here will have nothing to do with its statistical interpreta- tion. We will apply it simply as the Reverend Bayes originally intended, as a formula for evaluating a certain kind of “inverse” probability. If we know P(B|Ai) for all i, the theorem enables us to compute conditional probabilities “in the other direction”— that is, we can deduce P(Aj|B) from the P(B|Ai)’s.

Theorem 2.4.2

(Bayes’) Let {Ai}ni=1 be a set of n events, each with positive probability, that partition S in such a way that ∪ni=1Ai = S and Ai ∩ Aj = ∅ for i = j. For any event B (also defined on S), where P(B) > 0,

P(Aj|B) = P(B|Aj)P(Aj)n∑ i=1

P(B|Ai)P(Ai)

for any 1 ≤ j ≤ n.

46 Chapter 2 Probability

Proof From Definition 2.4.1,

P(Aj|B) = P(Aj ∩ B)P(B) = P(B|Aj)P(Aj)

P(B)

But Theorem 2.4.1 allows the denominator to be written as n∑

i=1 P(B|Ai)P(Ai), and

the result follows.

Problem-Solving Hints

(Working with Partitioned Sample Spaces)

Students sometimes have difficulty setting up problems that involve partitioned sample spaces—in particular, ones whose solution requires an application of ei- ther Theorem 2.4.1 or 2.4.2—because of the nature and amount of information that need to be incorporated into the answers. The “trick” is learning to identify which part of the “given” corresponds to B and which parts correspond to the Ai’s. The following hints may help.

1. As you read the question, pay particular attention to the last one or two sentences. Is the problem asking for an unconditional probability (in which case Theorem 2.4.1 applies) or a conditional probability (in which case Theorem 2.4.2 applies)?

2. If the question is asking for an unconditional probability, let B denote the event whose probability you are trying to find; if the question is asking for a conditional probability, let B denote the event that has already happened.

3. Once event B has been identified, reread the beginning of the question and assign the Ai’s.

Example 2.4.11

A biased coin, twice as likely to come up heads as tails, is tossed once. If it shows heads, a chip is drawn from urn I, which contains three white chips and four red chips; if it shows tails, a chip is drawn from urn II, which contains six white chips and three red chips. Given that a white chip was drawn, what is the probability that the coin came up tails (see Figure 2.4.9)?

Urn I

White is drawn

3 W

4 R

Head s Tails

Urn II

6 W

3 R

Figure 2.4.9

Since P(heads) = 2P(tails), it must be true that P(heads) = 23 and P(tails) = 13 . Define the events

B: white chip is drawn A1: coin came up heads (i.e., chip came from urn I) A2: coin came up tails (i.e., chip came from urn II)

Section 2.4 Conditional Probability 47

Our objective is to find P(A2|B). From Figure 2.4.9,

P(B|A1) = 37 P(B|A2) = 6 9

P(A1) = 23 P(A2) = 1 3

so

P(A2|B) = P(B|A2)P(A2)P(B|A1)P(A1) + P(B|A2)P(A2)

= (6/9)(1/3) (3/7)(2/3) + (6/9)(1/3)

= 7 16

Example 2.4.12

During a power blackout, one hundred persons are arrested on suspicion of looting. Each is given a polygraph test. From past experience it is known that the polygraph is 90% reliable when administered to a guilty suspect and 98% reliable when given to someone who is innocent. Suppose that of the one hundred persons taken into cus- tody, only twelve were actually involved in any wrongdoing. What is the probability that a given suspect is innocent given that the polygraph says he is guilty?

Let B be the event “Polygraph says suspect is guilty,” and let A1 and A2 be the events “Suspect is guilty” and “Suspect is not guilty,” respectively. To say that the polygraph is “90% reliable when administered to a guilty suspect” means that P(B|A1) = 0.90. Similarly, the 98% reliability for innocent suspects implies that P(BC|A2) = 0.98, or, equivalently, P(B|A2) = 0.02.

We also know that P(A1) = 12100 and P(A2) = 88100 . Substituting into Theo- rem 2.4.2, then, shows that the probability a suspect is innocent given that the poly- graph says he is guilty is 0.14:

P(A2|B) = P(B|A2)P(A2)P(B|A1)P(A1) + P(B|A2)P(A2)

= (0.02)(88/100) (0.90)(12/100) + (0.02)(88/100)

= 0.14

Example 2.4.13

As medical technology advances and adults become more health conscious, the demand for diagnostic screening tests inevitably increases. Looking for problems, though, when no symptoms are present can have undesirable consequences that may outweigh the intended benefits.

Suppose, for example, a woman has a medical procedure performed to see whether she has a certain type of cancer. Let B denote the event that the test says she has cancer, and let A1 denote the event that she actually does (and A2, the event that she does not). Furthermore, suppose the prevalence of the disease and the precision of the diagnostic test are such that

P(A1) = 0.0001 [and P(A2) = 0.9999] P(B|A1) = 0.90 = P(Test says woman has cancer when, in fact, she does) P(B|A2) = P

( B|AC1

) = 0.001 = P(False positive) = P(Test says woman has cancer when, in fact, she does not)

48 Chapter 2 Probability

What is the probability that she does have cancer, given that the diagnostic procedure says she does? That is, calculate P(A1|B).

Although the method of solution here is straightforward, the actual numerical answer is not what we would expect. From Theorem 2.4.2,

P(A1|B) = P(B|A1)P(A1) P(B|A1)P(A1) + P

( B|AC1

) P

( AC1

) = (0.9)(0.0001)

(0.9)(0.0001) + (0.001)(0.9999) = 0.08

So, only 8% of those women identified as having cancer actually do! Table 2.4.2 shows the strong dependence of P(A1|B) on P(A1) and P(B|AC1 ).

Table 2.4.2

P(A1) P(B|AC1 ) P(A1|B) 0.0001 0.001 0.08

0.0001 0.47 0.001 0.001 0.47

0.0001 0.90 0.01 0.001 0.90

0.0001 0.99

In light of these probabilities, the practicality of screening programs directed at diseases having a low prevalence is open to question, especially when the diagnostic procedure, itself, poses a nontrivial health risk. (For precisely those two reasons, the use of chest X-rays to screen for tuberculosis is no longer advocated by the medical community.)

Example 2.4.14

According to the manufacturer’s specifications, your home burglar alarm has a 95% chance of going off if someone breaks into your house. During the two years you have lived there, the alarm has gone off on five different nights, each time for no apparent reason. Suppose the alarm goes off tomorrow night. What is the probability that someone is trying to break into your house? (Note: Police statistics show that the chances of any particular house in your neighborhood being burglarized on any given night are two in ten thousand.)

Let B be the event “Alarm goes off tomorrow night,” and let A1 and A2 be the events “House is being burglarized” and “House is not being burglarized,” respec- tively. Then

P(B|A1) = 0.95 P(B|A2) = 5/730 (i.e., five nights in two years)

P(A1) = 2/10, 000 P(A2) = 1 − P(A1) = 9998/10, 000

The probability in question is P(A1|B). Intuitively, it might seem that P(A1|B) should be close to 1 because the alarm’s

“performance” probabilities look good—P(B|A1) is close to 1 (as it should be) and

Section 2.4 Conditional Probability 49

P(B|A2) is close to 0 (as it should be). Nevertheless, P(A1|B) turns out to be surpris- ingly small:

P(A1|B) = P(B|A1)P(A1)P(B|A1)P(A1) + P(B|A2)P(A2)

= (0.95)(2/10,000) (0.95)(2/10,000) + (5/730)(9998/10,000)

= 0.027 That is, if you hear the alarm going off, the probability is only 0.027 that your house is being burglarized.

Computationally, the reason P(A1|B) is so small is that P(A2) is so large. The lat- ter makes the denominator of P(A1|B) large and, in effect, “washes out” the numer- ator. Even if P(B|A1) were substantially increased (by installing a more expensive alarm), P(A1|B) would remain largely unchanged (see Table 2.4.3).

Table 2.4.3

P(B|A1) 0.95 0.97 0.99 0.999

P(A1|B) 0.027 0.028 0.028 0.028

Questions

2.4.40. Urn I contains two white chips and one red chip; urn II has one white chip and two red chips. One chip is drawn at random from urn I and transferred to urn II. Then one chip is drawn from urn II. Suppose that a red chip is selected from urn II. What is the probability that the chip transferred was white?

2.4.41. Urn I contains three red chips and five white chips; urn II contains four reds and four whites; urn III contains five reds and three whites. One urn is chosen at random and one chip is drawn from that urn. Given that the chip drawn was red, what is the probability that III was the urn sampled?

2.4.42. A dashboard warning light is supposed to flash red if a car’s oil pressure is too low. On a certain model, the probability of the light flashing when it should is 0.99; 2% of the time, though, it flashes for no apparent reason. If there is a 10% chance that the oil pressure really is low, what is the probability that a driver needs to be concerned if the warning light goes on?

2.4.43. Building permits were issued last year to three contractors starting up a new subdivision: Tara Con- struction built two houses; Westview, three houses; and Hearthstone, six houses. Tara’s houses have a 60% prob- ability of developing leaky basements; homes built by Westview and Hearthstone have that same problem 50% of the time and 40% of the time, respectively. Yesterday, the Better Business Bureau received a complaint from one of the new homeowners that his basement is leaking. Who is most likely to have been the contractor?

2.4.44. Two sections of a senior probability course are be- ing taught. From what she has heard about the two in- structors listed, Francesca estimates that her chances of passing the course are 0.85 if she gets Professor X and 0.60 if she gets Professor Y . The section into which she is put is determined by the registrar. Suppose that her chances of being assigned to Professor X are four out of ten. Fifteen weeks later we learn that Francesca did, indeed, pass the course. What is the probability she was enrolled in Profes- sor X ’s section?

2.4.45. A liquor store owner is willing to cash personal checks for amounts up to $50, but she has become wary of customers who wear sunglasses. Fifty percent of checks written by persons wearing sunglasses bounce. In contrast, 98% of the checks written by persons not wearing sun- glasses clear the bank. She estimates that 10% of her cus- tomers wear sunglasses. If the bank returns a check and marks it “insufficient funds,” what is the probability it was written by someone wearing sunglasses?

2.4.46. Brett and Margo have each thought about murder- ing their rich Uncle Basil in hopes of claiming their in- heritance a bit early. Hoping to take advantage of Basil’s predilection for immoderate desserts, Brett has put rat poison into the cherries flambé; Margo, unaware of Brett’s activities, has laced the chocolate mousse with cyanide. Given the amounts likely to be eaten, the probability of the rat poison being fatal is 0.60; the cyanide, 0.90. Based on other dinners where Basil was presented with the same dessert options, we can assume that he has a 50% chance

50 Chapter 2 Probability

of asking for the cherries flambé, a 40% chance of order- ing the chocolate mousse, and a 10% chance of skipping dessert altogether. No sooner are the dishes cleared away than Basil drops dead. In the absence of any other evi- dence, who should be considered the prime suspect?

2.4.47. Josh takes a twenty-question multiple-choice exam where each question has five possible answers. Some of the answers he knows, while others he gets right just by making lucky guesses. Suppose that the conditional prob- ability of his knowing the answer to a randomly selected question given that he got it right is 0.92. How many of the twenty questions was he prepared for?

2.4.48. Recently the U.S. Senate Committee on Labor and Public Welfare investigated the feasibility of setting up a national screening program to detect child abuse. A team of consultants estimated the following probabilities: (1) one child in ninety is abused, (2) a screening program can detect an abused child 90% of the time, and (3) a screen- ing program would incorrectly label 3% of all nonabused children as abused. What is the probability that a child is actually abused given that the screening program makes that diagnosis? How does the probability change if the incidence of abuse is one in one thousand? Or one in fifty?

2.4.49. At State University, 30% of the students are ma- joring in humanities, 50% in history and culture, and 20% in science. Moreover, according to figures released by the registrar, the percentages of women majoring in human- ities, history and culture, and science are 75%, 45%, and 30%, respectively. Suppose Justin meets Anna at a frater- nity party. What is the probability that Anna is a history and culture major?

2.4.50. An “eyes-only” diplomatic message is to be trans- mitted as a binary code of 0’s and 1’s. Past experience with the equipment being used suggests that if a 0 is sent, it will be (correctly) received as a 0 90% of the time (and mis- takenly decoded as a 1 10% of the time). If a 1 is sent, it will be received as a 1 95% of the time (and as a 0 5%

of the time). The text being sent is thought to be 70% 1’s and 30% 0’s. Suppose the next signal sent is received as a 1. What is the probability that it was sent as a 0?

2.4.51. When Zach wants to contact his girlfriend and he knows she is not at home, he is twice as likely to send her an e-mail as he is to leave a message on her phone. The probability that she responds to his e-mail within three hours is 80%; her chances of being similarly prompt in an- swering a phone message increase to 90%. Suppose she responded within two hours to the message he left this morning. What is the probability that Zach was commu- nicating with her via e-mail?

2.4.52. A dot-com company ships products from three dif- ferent warehouses (A, B, and C). Based on customer com- plaints, it appears that 3% of the shipments coming from A are somehow faulty, as are 5% of the shipments com- ing from B, and 2% coming from C. Suppose a customer is mailed an order and calls in a complaint the next day. What is the probability the item came from Warehouse C? Assume that Warehouses A, B, and C ship 30%, 20%, and 50% of the dot-com’s sales, respectively.

2.4.53. A desk has three drawers. The first contains two gold coins, the second has two silver coins, and the third has one gold coin and one silver coin. A coin is drawn from a drawer selected at random. Suppose the coin selected was silver. What is the probability that the other coin in that drawer is gold?

2.4.54. An automobile insurance company has compiled the information summarized below on its policy-holders. Suppose someone calls to file a claim. To which age group does he or she most likely belong?

% of % Involved in Age Group Policyholders Accidents Last Year

Young (< 30) 20 35 Middle-aged (30–64) 50 15 Elderly (65+) 30 25

2.5 Independence Section 2.4 dealt with the problem of reevaluating the probability of a given event in light of the additional information that some other event has already occurred. It often is the case, though, that the probability of the given event remains unchanged, regardless of the outcome of the second event—that is, P(A|B) = P(A) = P(A|BC). Events sharing this property are said to be independent. Definition 2.5.1 gives a nec- essary and sufficient condition for two events to be independent.

Definition 2.5.1 Two events A and B are said to be independent if P(A ∩ B) = P(A) · P(B).

Section 2.5 Independence 51

Comment The fact that the probability of the intersection of two independent events is equal to the product of their individual probabilities follows immediately from our first definition of independence, that P(A|B) = P(A). Recall that the def- inition of conditional probability holds true for any two events A and B [provided that P(B) > 0]:

P(A|B) = P(A ∩ B) P(B)

But P(A|B) can equal P(A) only if P(A ∩ B) factors into P(A) times P(B).

Example 2.5.1

Let A be the event of drawing a king from a standard poker deck and B, the event of drawing a diamond. Then, by Definition 2.5.1, A and B are independent be- cause the probability of their intersection—drawing a king of diamonds—is equal to P(A) · P(B):

P(A ∩ B) = 1 52

= 1 4

· 1 13

= P(A) · P(B)

Example 2.5.2

Suppose that A and B are independent events. Does it follow that AC and BC are also independent? That is, does P(A ∩ B) = P(A) · P(B) guarantee that P(AC ∩ BC) = P(AC) · P(BC)?

Yes. The proof is accomplished by equating two different expressions for P(AC ∪ BC). First, by Theorem 2.3.6,

P(AC ∪ BC) = P(AC) + P(BC) − P(AC ∩ BC) (2.5.1) But the union of two complements is the complement of their intersection (recall Question 2.2.32). Therefore,

P(AC ∪ BC) = 1 − P(A ∩ B) (2.5.2) Combining Equations 2.5.1 and 2.5.2, we get

1 − P(A ∩ B) = 1 − P(A) + 1 − P(B) − P(AC ∩ BC) Since A and B are independent, P(A ∩ B) = P(A) · P(B), so

P(AC ∩ BC) = 1 − P(A) + 1 − P(B) − [1 − P(A) · P(B)] = [1 − P(A)][1 − P(B)] = P(AC) · P(BC)

the latter factorization implying that AC and BC are, themselves, independent.

Example 2.5.3

Electronics Warehouse is responding to affirmative-action litigation by establishing hiring goals by race and sex for its office staff. So far they have agreed to employ the 120 people characterized in Table 2.5.1. How many black women do they need in order for the events A: Employee is female and B: Employee is black to be independent?

Let x denote the number of black women necessary for A and B to be indepen- dent. Then

P(A ∩ B) = P(Black female) = x/(120 + x) must equal

P(A)P(B) = P(female)P(black) = [(40 + x)/(120 + x)] · [(30 + x)/(120 + x)]

52 Chapter 2 Probability

Setting x/(120 + x) = [(40 + x)/(120 + x)] · [(30 + x)/(120 + x)] implies that x = 24 black women need to be on the staff in order for A and B to be independent.

Table 2.5.1

White Black

Male 50 30 Female 40

Comment Having shown that “Employee is female” and “Employee is black” are independent, does it follow that, say, “Employee is male” and “Employee is white” are independent? Yes. By virtue of the derivation in Example 2.5.2, the independence of events A and B implies the independence of events AC and BC (as well as A and BC

and AC and B). It follows, then, that the x = 24 black women not only makes A and B independent, it also implies, more generally, that “race” and “sex” are independent.

Example 2.5.4

Suppose that two events, A and B, each having nonzero probability, are mutually exclusive. Are they also independent?

No. If A and B are mutually exclusive, then P(A ∩ B) = 0. But P(A) · P(B) > 0 (by assumption), so the equality spelled out in Definition 2.5.1 that characterizes independence is not met.

DEDUCING INDEPENDENCE

Sometimes the physical circumstances surrounding two events make it obvious that the occurrence (or nonoccurrence) of one has absolutely no influence or effect on the occurrence (or nonoccurrence) of the other. If that should be the case, then the two events will necessarily be independent in the sense of Definition 2.5.1.

Suppose a coin is tossed twice. Clearly, whatever happens on the first toss has no physical connection or influence on the outcome of the second. If A and B, then, are events defined on the second and first tosses, respectively, it would have to be the case that P(A|B) = P(A|BC) = P(A). For example, let A be the event that the second toss of a fair coin is a head, and let B be the event that the first toss of that coin is a tail. Then

P(A|B) = P(Head on second toss | tail on first toss)

= P(Head on second toss) = 1 2

Being able to infer that certain events are independent proves to be of enor- mous help in solving certain problems. The reason is that many events of interest are, in fact, intersections. If those events are independent, then the probability of that intersection reduces to a simple product (because of Definition 2.5.1)—that is, P(A ∩ B) = P(A) · P(B). For the coin tosses just described,

P(A ∩ B) = P(head on second toss ∩ tail on first toss) = P(A) · P(B) = P(head on second toss) · P(tail on first toss)

= 1 2

· 1 2

= 1 4

Section 2.5 Independence 53

Example 2.5.5

Myra and Carlos are summer interns working as proofreaders for a local newspaper. Based on aptitude tests, Myra has a 50% chance of spotting a hyphenation error, while Carlos picks up on that same kind of mistake 80% of the time. Suppose the copy they are proofing contains a hyphenation error. What is the probability it goes undetected?

Let A and B be the events that Myra and Carlos, respectively, catch the mis- take. By assumption, P(A) = 0.50 and P(B) = 0.80. What we are looking for is the probability of the complement of a union. That is,

P(Error goes undetected) = 1 − P(Error is detected) = 1 − P(Myra or Carlos or both see the mistake) = 1 − P(A ∪ B) = 1 − [P(A) + P(B) − P(A ∩ B)] (from Theorem 2.3.6)

Since proofreaders invariably work by themselves, events A and B are necessarily independent, so P(A ∩ B) would reduce to the product P(A) · P(B). It follows that such an error would go unnoticed 10% of the time:

P(Error goes undetected) = 1 − {0.50 + 0.80 − (0.50)(0.80)} = 1 − 0.90 = 0.10

Example 2.5.6

Suppose that one of the genes associated with the control of carbohydrate metabolism exhibits two alleles—a dominant W and a recessive w. If the probabil- ities of the WW, Ww, and ww genotypes in the present generation are p, q, and r, respectively, for both males and females, what are the chances that an individual in the next generation will be a ww?

Let A denote the event that an offspring receives a w allele from her father; let B denote the event that she receives the recessive allele from her mother. What we are looking for is P(A ∩ B).

According to the information given,

p = P(Parent has genotype WW) = P(WW) q = P(Parent has genotype Ww) = P(Ww) r = P(Parent has genotype ww) = P(ww)

If an offspring is equally likely to receive either of her parent’s alleles, the probabil- ities of A and B can be computed using Theorem 2.4.1:

P(A) = P(A | WW)P(WW) + P(A | Ww)P(Ww) + P(A | ww)P(ww)

= 0 · p + 1 2

· q + 1 · r

= r + q 2

= P(B) Lacking any evidence to the contrary, there is every reason here to assume that A and B are independent events, in which case

P(A ∩ B) = P(Offspring has genotype ww) = P(A) · P(B)

= (

r + q 2

)2

54 Chapter 2 Probability

(This particular model for allele segregation, together with the independence assumption, is called random Mendelian mating.)

The last two examples focused on events for which an a priori assumption of independence was eminently reasonable. Sometimes, though, what seems eminently reasonable turns out to be surprisingly incorrect. The next example is a case in point.

Example 2.5.7

A crooked gambler has nine dice in her coat pocket. Three are fair and six are not. The biased ones are loaded in such a way that the probability of rolling a 6 is 1/2. She takes out one die at random and rolls it twice. Let A be the event “6 appears on first roll” and let B be the event “6 appears on second roll.” Are A and B independent?

Our intuition here would probably answer “yes”: How can two rolls of a die not be independent? For every dice problem we have encountered so far, they have been. But this is not a typical dice problem. Repeated throws of a die do qualify as independent events if the probabilities associated with the different faces are known. In this situation, though, those probabilities are not known and depend in a random way on which die the gambler draws from her pocket.

To see what effect not knowing which die is being tossed has on the relationship between A and B requires an application of Theorem 2.4.1. Let F and L denote the events “fair die is selected” and “loaded die is selected”, respectively. Then

P (A ∩ B) = P (6 on first roll ∩ 6 on second roll) = P (A ∩ B | F ) P (F ) + P (A ∩ B | L) P (L)

Conditional on either F or L, A and B are independent, so

P(A ∩ B) = (1/6)(1/6)(3/9) + (1/2)(1/2)(6/9) = 19/108 Similarly,

P (A) = P (A | F ) P (F ) + P (A | L) P (L) = (1/6) (3/9) + (1/2) (6/9) = 7/18 = P (B)

But note that

P (A ∩ B) = 19/108 = 57/324 = P (A) · P (B) = (7/18) (7/18) = 49/324 proving that A and B are not independent.

Questions

2.5.1. Suppose that P(A ∩ B) = 0.2, P(A) = 0.6, and P(B) = 0.5. (a) Are A and B mutually exclusive? (b) Are A and B independent? (c) Find P(AC ∪ BC). 2.5.2. Spike is not a terribly bright student. His chances of passing chemistry are 0.35; mathematics, 0.40; and both, 0.12. Are the events “Spike passes chemistry” and “Spike passes mathematics” independent? What is the probabil- ity that he fails both subjects?

2.5.3. Two fair dice are rolled. What is the probability that the number showing on one will be twice the number ap- pearing on the other?

2.5.4. Emma and Josh have just gotten engaged. What is the probability that they have different blood types? Assume that blood types for both men and women are distributed in the general population according to the fol- lowing proportions:

Blood Type Proportion

A 40% B 10%

AB 5% O 45%

2.5.5. Dana and Cathy are playing tennis. The probabil- ity that Dana wins at least one out of two games is 0.3.

Section 2.5 Independence 55

What is the probability that Dana wins at least one out of four?

2.5.6. Three points, X1, X2, and X3, are chosen at random in the interval (0, a). A second set of three points, Y1, Y2, and Y3, are chosen at random in the interval (0, b). Let A be the event that X2 is between X1 and X3. Let B be the event that Y1 < Y2 < Y3. Find P(A ∩ B). 2.5.7. Suppose that P(A) = 14 and P(B) = 18 . (a) What does P(A ∪ B) equal if

1. A and B are mutually exclusive? 2. A and B are independent?

(b) What does P(A | B) equal if 1. A and B are mutually exclusive? 2. A and B are independent?

2.5.8. Suppose that events A, B, and C are independent. (a) Use a Venn diagram to find an expression for P(A ∪ B ∪ C) that does not make use of a complement. (b) Find an expression for P(A ∪ B ∪ C) that does make use of a complement.

2.5.9. A fair coin is tossed four times. What is the proba- bility that the number of heads appearing on the first two tosses is equal to the number of heads appearing on the second two tosses?

2.5.10. Suppose that two cards are drawn simultaneously from a standard fifty-two-card poker deck. Let A be the event that both are either a jack, queen, king, or ace of hearts, and let B be the event that both are aces. Are A and B independent? (Note: There are 1326 equally likely ways to draw two cards from a poker deck.)

DEFINING THE INDEPENDENCE OF MORE THAN TWO EVENTS

It is not immediately obvious how to extend Definition 2.5.1 to, say, three events. To call A, B, and C independent, should we require that the probability of the three-way intersection factors into the product of the three original probabilities,

P(A ∩ B ∩ C) = P(A) · P(B) · P(C) (2.5.3) or should we impose the definition we already have on the three pairs of events:

P(A ∩ B) = P(A) · P(B) P(B ∩ C) = P(B) · P(C) (2.5.4) P(A ∩ C) = P(A) · P(C)

Actually, neither condition by itself is sufficient. If three events satisfy Equa- tions 2.5.3 and 2.5.4, we will call them independent (or mutually independent), but Equation 2.5.3 does not imply Equation 2.5.4, nor does Equation 2.5.4 imply Equa- tion 2.5.3 (see Questions 2.5.11 and 2.5.12).

More generally, the independence of n events requires that the probabilities of all possible intersections equal the products of all the corresponding individual prob- abilities. Definition 2.5.2 states the result formally. Analogous to what was true in the case of two events, the practical applications of Definition 2.5.2 arise when n events are mutually independent, and we can calculate P(A1 ∩ A2 ∩ · · · ∩ An) by computing the product P(A1) · P(A2) · · · P(An).

Definition 2.5.2 Events A1, A2, . . ., An are said to be independent if for every set of indices i1, i2, . . ., ik between 1 and n, inclusive,

P(Ai1 ∩ Ai2 ∩ · · · ∩ Aik ) = P(Ai1 ) · P(Ai2 ) · · · · · P(Aik )

Example 2.5.8

An insurance company plans to assess its future liabilities by sampling the records of its current policyholders. A pilot study has turned up three clients—one living in Alaska, one in Missouri, and one in Vermont—whose estimated chances of surviving to the year 2020 are 0.7, 0.9, and 0.3, respectively. What is the probability that by the

56 Chapter 2 Probability

end of 2019 the company will have had to pay death benefits to exactly one of the three?

Let A1 be the event “Alaska client survives through 2019.” Define A2 and A3 analogously for the Missouri client and Vermont client, respectively. Then the event E: “Exactly one dies” can be written as the union of three intersections:

E = (A1 ∩ A2 ∩ AC3 ) ∪ (A1 ∩ AC2 ∩ A3) ∪ (AC1 ∩ A2 ∩ A3)

Since each of the intersections is mutually exclusive of the other two,

P(E) = P(A1 ∩ A2 ∩ AC3 ) + P(A1 ∩ AC2 ∩ A3) + P(AC1 ∩ A2 ∩ A3)

Furthermore, there is no reason to believe that for all practical purposes the fates of the three are not independent. That being the case, each of the intersection proba- bilities reduces to a product, and we can write

P(E) = P(A1) · P(A2)·P ( AC3

) + P(A1)·P(AC2 )·P(A3) + P(AC1 )·P(A2)·P(A3) = (0.7)(0.9)(0.7) + (0.7)(0.1)(0.3) + (0.3)(0.9)(0.3) = 0.543

Example 2.5.9

Protocol for making financial decisions in a certain corporation follows the “circuit” pictured in Figure 2.5.1. Any budget is first screened by 1. If he approves it, the plan is forwarded to 2, 3, and 5. If either 2 or 3 concurs, it goes to 4. If either 4 or 5 says “yes,” it moves on to 6 for a final reading. Only if 6 is also in agreement does the proposal pass. Suppose that 1, 5, and 6 each has a 50% chance of saying “yes,” whereas 2, 3, and 4 will each concur with a probability of 0.70. If everyone comes to a decision independently, what is the probability that a budget will pass?

2

3

4

6

5

1

Figure 2.5.1

Probabilities of this sort are calculated by reducing the circuit to its component unions and intersections. Moreover, if all decisions are made independently, which is the case here, then every intersection becomes a product.

Section 2.5 Independence 57

Let Ai be the event that person i approves the budget, i = 1, 2, . . . , 6. Looking at Figure 2.5.1, we see that

P(Budget passes) = P(A1 ∩ {[(A2 ∪ A3) ∩ A4] ∪ A5} ∩ A6) = P(A1)P{[(A2 ∪ A3) ∩ A4] ∪ A5}P(A6)

By assumption, P(A1) = 0.5, P(A2) = 0.7, P(A3) = 0.7, P(A4) = 0.7, P(A5) = 0.5, and P(A6) = 0.5, so

P{[(A2 ∪ A3) ∩ A4]} = [P(A2) + P(A3) − P(A2)P(A3)]P(A4) = [0.7 + 0.7 − (0.7)(0.7)](0.7) = 0.637

Therefore,

P(Budget passes) = (0.5){0.637 + 0.5 − (0.637)(0.5)}(0.5)

= 0.205

REPEATED INDEPENDENT EVENTS

We have already seen several examples where the event of interest was actually an intersection of independent simpler events (in which case the probability of the in- tersection reduced to a product). There is a special case of that basic scenario that deserves special mention because it applies to numerous real-world situations. If the events making up the intersection all arise from the same physical circumstances and assumptions (i.e., they represent repetitions of the same experiment), they are referred to as repeated independent trials. The number of such trials may be finite or infinite.

Example 2.5.10

Suppose the string of Christmas tree lights you just bought has twenty-four bulbs wired in series. If each bulb has a 99.9% chance of “working” the first time current is applied, what is the probability that the string itself will not work?

Let Ai be the event that the ith bulb fails, i = 1, 2, . . . , 24. Then P(String fails) = P(At least one bulb fails)

= P(A1 ∪ A2 ∪ · · · ∪ A24) = 1 − P(String works) = 1 − P(All twenty-four bulbs work) = 1 − P(AC1 ∩ AC2 ∩ · · · ∩ AC24)

If we assume that bulb failures are independent events,

P(String fails) = 1 − P(AC1 )P(AC2 ) · · · P(AC24) Moreover, since all the bulbs are presumably manufactured the same way, P(ACi ) is the same for all i, so

P(String fails) = 1 − [P(ACi )]24 = 1 − (0.999)24

= 1 − 0.98 = 0.02

58 Chapter 2 Probability

The chances are one in fifty, in other words, that the string will not work the first time current is applied.

Example 2.5.11

During the 1978 baseball season, Pete Rose of the Cincinnati Reds set a National League record by hitting safely in forty-four consecutive games. Assume that Rose was a .300 hitter and that he came to bat four times each game. If each at-bat is as- sumed to be an independent event, what probability might reasonably be associated with a hitting streak of that length?

For this problem we need to invoke the repeated independent trials model twice—once for the four at-bats making up a game and a second time for the forty- four games making up the streak. Let Ai denote the event “Rose hit safely in ith game,” i = 1, 2, . . . , 44. Then

P(Rose hit safely in forty-four consecutive games) = P(A1 ∩ A2 ∩ · · · ∩ A44) = P(A1) · P(A2) · · · · · P(A44)

(2.5.5)

Since all the P(Ai)’s are equal, we can further simplify Equation 2.5.5 by writing

P(Rose hit safely in forty-four consecutive games) = [P(A1)]44

To calculate P(A1) we should focus on the complement of A1. Specifically,

P(A1) = 1 − P ( AC1

) = 1 − P(Rose did not hit safely in game 1) = 1 − P(Rose made four outs) = 1 − (0.700)4 (Why?) = 0.76

Therefore, the probability of a .300 hitter putting together a forty-four-game streak (during a given set of forty-four games) is 0.0000057:

P(Rose hit safely in forty-four consecutive games) = (0.76)44

= 0.0000057

Comment The analysis described here has the basic “structure” of a repeated in- dependent trials problem, but the assumptions that the latter makes are not entirely satisfied by the data. Each at-bat, for example, is not really a repetition of the same experiment, nor is P(Ai) the same for all i. Rose would obviously have had dif- ferent probabilities of getting a hit against different pitchers. Moreover, although “four” was probably the typical number of official at-bats that he had during a game, there would certainly have been many instances where he had either fewer or more. Clearly, the day-to-day deviations from the assumed model would have sometimes been in Rose’s favor, sometimes not. Over the course of the hitting streak, the net ef- fect of those deviations would not be expected to have much effect on the 0.0000057 probability.

Example 2.5.12

In the game of craps, one of the ways a player can win is by rolling (with two dice) one of the sums 4, 5, 6, 8, 9, or 10, and then rolling that sum again before rolling a sum of 7. For example, the sequence of sums 6, 5, 8, 8, 6 would result in the player winning on his fifth roll. In gambling parlance, “6” is the player’s “point,” and he “made his point.” On the other hand, the sequence of sums 8, 4, 10, 7 would result in the player

Section 2.5 Independence 59

losing on his fourth roll: his point was an 8, but he rolled a sum of 7 before he rolled a second 8. What is the probability that a player wins with a point of 10?

Table 2.5.2 shows some of the ways a player can make a point of 10. Each se- quence, of course, is an intersection of independent events, so its probability becomes

Table 2.5.2

Sequence of Rolls Probability

(10, 10) (3/36)(3/36) (10, no 10 or 7, 10) (3/36)(27/36)(3/36)

(10, no 10 or 7, no 10 or 7, 10) (3/36)(27/36)(27/36)(3/36) ...

...

a product. The event “Player wins with a point of 10” is then the union of all the sequences that could have been listed in the first column. Since all those sequences are mutually exclusive, the probability of winning with a point of 10 reduces to the sum of an infinite number of products:

P(Player wins with a point of 10) = 3 36

· 3 36

+ 3 36

· 27 36

· 3 36

+ 3 36

· 27 36

· 27 36

· 3 36

+ · · ·

= 3 36

· 3 36

∞∑ k=0

( 27 36

)k (2.5.6)

Recall from algebra that if 0 < r < 1, ∞∑

k=0 rk = 1/(1 − r)

Applying the formula for the sum of a geometric series to Equation 2.5.6 shows that the probability of winning at craps with a point of 10 is 136 :

P(Player wins with a point of 10) = 3 36

· 3 36

· 1( 1 − 2736

) = 1

36

Table 2.5.3 shows the probabilities of a person “making” each of the possible six points—4, 5, 6, 8, 9, and 10. According to the rules of craps, a player wins by either

Table 2.5.3

Point P (makes point)

4 1/36 5 16/360 6 25/396 8 25/396 9 16/360

10 1/36

60 Chapter 2 Probability

(1) getting a sum of 7 or 11 on the first roll or (2) getting a 4, 5, 6, 8, 9, or 10 on the first roll and making the point. But P(sum = 7) = 6/36 and P(sum = 11) = 2/36, so

P(Player wins) = 6 36

+ 2 36

+ 1 36

+ 16 360

+ 25 396

+ 25 396

+ 16 360

+ 1 36

= 0.493 As even-money games go, craps is relatively fair—the probability of the shooter win- ning is not much less than 0.500.

Example 2.5.13

A transmitter is sending a binary code (+ and − signals) that must pass through three relay signals before being sent on to the receiver (see Figure 2.5.2). At each relay station, there is a 25% chance that the signal will be reversed—that is

P(+ is sent by relay i|− is received by relay i) = P(− is sent by relay i|+ is received by relay i) = 1/4, i = 1, 2, 3

Suppose + symbols make up 60% of the message being sent. If the signal + is re- ceived, what is the probability a + was sent?

1 2 3 (+ ?) (+)

Receiver

Figure 2.5.2

This is basically a Bayes’ theorem (Theorem 2.4.2) problem, but the three relay stations introduce a complex mechanism for transmission error. Let A be the event “+ is transmitted from tower” and B be the event “+ is received from relay 3.” Then

P(A|B) = P(B|A)P(A) P(B|A)P(A) + P(B|AC)P(AC)

Notice that a + can be received from relay 3 given that a + was initially sent from the tower if either (1) all relay stations function properly or (2) any two of the sta- tions make transmission errors. Table 2.5.4 shows the four mutually exclusive ways (1) and (2) can happen. The probabilities associated with the message transmissions at each relay station are shown in parentheses. Assuming the relay station outputs are independent events, the probability of an entire transmission sequence is simply the product of the probabilities in parentheses in any given row. These overall proba- bilities are listed in the last column; their sum, 36/64, is P(B|A). By a similar analysis, we can show that

P(B|AC) = P(+ is received from relay 3|− is transmitted from tower) = 28/64 Finally, since P(A) = 0.6 and P(AC) = 0.4, the conditional probability we are

looking for is 0.66:

P(A|B) = ( 36

64

) (0.6)( 36

64

) (0.6) + ( 2864) (0.4) = 0.66

Section 2.5 Independence 61

Table 2.5.4

Signal Transmitted by

Tower Relay 1 Relay 2 Relay 3 Probability

+ +(3/4) −(1/4) +(1/4) 3/64 + −(1/4) −(3/4) +(1/4) 3/64 + −(1/4) +(1/4) +(3/4) 3/64 + +(3/4) +(3/4) +(3/4) 27/64

36/64

Example 2.5.14

Andy, Bob, and Charley have gotten into a disagreement over a female acquaintance, Donna, and decide to settle their dispute with a three-cornered pistol duel. Of the three, Andy is the worst shot, hitting his target only 30% of the time. Charley, a little better, is on-target 50% of the time, while Bob never misses (see Figure 2.5.3). The rules they agree to are simple: They are to fire at the targets of their choice in succession, and cyclically, in the order Andy, Bob, Charley, and so on, until only one of them is left standing. On each “turn,” they get only one shot. If a combatant is hit, he no longer participates, either as a target or as a shooter.

Andy

P (Hits target) 0.3

CharleyBob

P (Hits target) 1.0 P (Hits target) 0.5

Figure 2.5.3

As Andy loads his revolver, he mulls over his options (his objective is clear—to max- imize his probability of survival). According to the rule he can shoot either Bob or Charley, but he quickly rules out shooting at the latter because it would be counter- productive to his future well-being: If he shot at Charley and had the misfortune of hitting him, it would be Bob’s turn, and Bob would have no recourse but to shoot at Andy. From Andy’s point of view, this would be a decidedly grim turn of events, since Bob never misses. Clearly, Andy’s only option is to shoot at Bob. This leaves two scenarios: (1) He shoots at Bob and hits him, or (2) he shoots at Bob and misses.

Consider the first possibility. If Andy hits Bob, Charley will proceed to shoot at Andy, Andy will shoot back at Charley, and so on, until one of them hits the other. Let CHi and CMi denote the events “Charley hits Andy with the ith shot” and “Charley misses Andy with the ith shot,” respectively. Define AHi and AMi analogously. Then Andy’s chances of survival (given that he has killed Bob) reduce to a countably infi- nite union of intersections:

P(Andy survives) = P[(CM1 ∩ AH1) ∪ (CM1 ∩ AM1 ∩ CM2 ∩ AH2) ∪ (CM1 ∩ AM1 ∩ CM2 ∩ AM2 ∩ CM3 ∩ AH3) ∪ · · · ]

62 Chapter 2 Probability

Note that each intersection is mutually exclusive of all of the others and that its com- ponent events are independent. Therefore,

P(Andy survives) = P(CM1)P(AH1) + P(CM1)P(AM1)P(CM2)P(AH2) + P(CM1)P(AM1)P(CM2)P(AM2)P(CM3)P(AH3) + · · ·

= (0.5)(0.3) + (0.5)(0.7)(0.5)(0.3) + (0.5)(0.7)(0.5)(0.7)(0.5)(0.3) + · · ·

= (0.5)(0.3) ∞∑

k=0 (0.35)k

= (0.15) (

1 1 − 0.35

) = 3

13

Now consider the second scenario. If Andy shoots at Bob and misses, Bob will undoubtedly shoot and hit Charley, since Charley is the more dangerous adversary. Then it will be Andy’s turn again. Whether he would see another tomorrow would depend on his ability to make that very next shot count. Specifically,

P(Andy survives) = P(Andy hits Bob on second turn) = 3/10 But 310 >

3 13 , so Andy is better off not hitting Bob with his first shot. And because we

have already argued that it would be foolhardy for Andy to shoot at Charley, Andy’s optimal strategy is clear—deliberately miss both Bob and Charley with the first shot.

Example 2.5.15

Scientists estimate that the Earth’s atmosphere contains on the order of 1044 molecules of which roughly 78% are Nitrogen (N2), 21% Oxygen (O2), and 1% Argon (A). Some 2 × 1022 of those molecules make up each and every breath you take. Rooted in those not particularly interesting facts is a bizarre question, one that has an equally bizarre answer.

On March 15, 44 b.c., Julius Caesar was assassinated by a group of Roman sen- ators, a mutiny led by one of his dearest friends, Marcus Brutus. In Shakespeare’s play describing the attack, the dying Caesar calls out his friend’s treachery with the famous lament, “Et tu, Brute.” In that final breath, Caesar presumably exhaled 2 × 1022 molecules.

So, here is the question, framed in the context of a typical balls-in-boxes problem. Suppose those last 2 × 1022 molecules that Caesar exhaled could all be colored red; and suppose the remaining 1044 − 2×1022 molecules in the atmosphere could all be colored blue. Furthermore, suppose the entire set of red and blue molecules remains unchanged over time, but the box (that is, the atmosphere) is stirred and shaken every day for the next 2060 years. By 2016, then, we can assume that Caesar’s last breath (of red molecules) has become randomly scattered throughout Earth’s atmosphere (of blue molecules). Given those assumptions, what is the probability that in your next breath there will be at least one molecule from Caesar’s last breath?

At first blush, everyone’s intuition would dismiss the question as absurd—using a sample as small as a single breath to “recapture” something from another breath that could be anywhere in the atmosphere would seem to be analogous to a blind person searching for an infinitesimally small needle in a Godzilla-sized haystack. For all practical purposes, the answer surely must be 0. Not so.

Imagine taking a random sample of 2 × 1022 molecules (your next breath) one- at-a-time from the 1044 molecules in the atmosphere (see Figure 2.5.4). Let Ai, i = 1, 2, . . . , 2×1022 be the event that the ith molecule taken in your next breath is not a

Section 2.5 Independence 63

Molecules from Caesar’s last breath (2 3 1022)

Molecules not from Caesar’s last breath (1044 – 2 3 1022)

Figure 2.5.4

“Caesar” molecule, and let A denote the event that your last breath ultimately does contain something from Caesar’s last breath. Then

P (A) = 1 − P (A1 ∩ A2 ∩ A3 ∩ · · · ∩ A2 ×1022 ) Clearly,

P (A1) = ( 1044 − 2 × 1022) /1044

P (A2|A1) = ( 1044 − 2 × 1022 − 1) / (1044 − 1)

P (A3|A1 ∩ A2) = ( 1044 − 2 × 1022 − 2) / (1044 − 2), and so on.

Also, from Equation 2.4.3,

P (A) = 1 − P (A1) P (A2|A1) P (A3|A1 ∩ A2) . . . P (A2 ×1022 |A1 ∩ A2 ∩ . . . A2 ×1022−1) Because of the huge disparity, though, between 1044 and 2 × 1022, all the condi-

tional probabilities are essentially equal to P(A1), which implies that

P (A) =̇ 1 − [P (A1)]2×10 22 = 1 − [(1044 − 2 × 1022)/1044]2×1022

= 1 − [(1 − 2/1022)]2×1022 Recall from calculus that if x is a very small number, 1 − x =̇ e−x. Therefore,

P (A) =̇ 1 − (e−2/1022 )2×1022 = 1 − e−4 = 0.98 (2.5.7) Equation 2.5.7 is a shocker to say the least: Given the assumptions that were

made, it shows that the probability your next breath contains something from Caesar’s last breath is almost a certainty. How can something so unbelievable have such a high probability of happening? The answer in a word is persistence. Think of your next breath as a raffle with anything from Caesar’s last breath being the top prize. What makes this “game” different than a weekly LOTTO drawing where you might have purchased a half-dozen tickets is that here your next breath, in effect, has purchased 20,000,000,000,000,000,000,000 tickets. Moreover, there is not just one jackpot, there are 20,000,000,000,000,000,000,000 jackpots.

The great Roman poet and philosopher Ovid was born a year before Caesar was murdered. Among his voluminous writings was an interesting reflection on the nature of probability, one suggesting that he might not have been surprised by the answer given in Equation 2.5.7. “Chance,” he wrote, “is always powerful. Let your hook be always cast; in the pool where you least expect it, there will be a fish.”

64 Chapter 2 Probability

Questions

2.5.11. Suppose that two fair dice (one red and one green) are rolled. Define the events

A: a 1 or a 2 shows on the red die B: a 3, 4, or 5 shows on the green die C: the dice total is 4, 11, or 12

Show that these events satisfy Equation 2.5.3 but not Equation 2.5.4.

2.5.12. A roulette wheel has thirty-six numbers colored red or black according to the pattern indicated below:

Roulette wheel pattern 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

R R R R R B B B B R R R R B B B B B

36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19

Define the events

A: red number appears B: even number appears C: number is less than or equal to 18

Show that these events satisfy Equation 2.5.4 but not Equation 2.5.3.

2.5.13. How many probability equations need to be veri- fied to establish the mutual independence of four events?

2.5.14. In a roll of a pair of fair dice (one red and one green), let A be the event the red die shows a 3, 4, or 5; let B be the event the green die shows a 1 or a 2; and let C be the event the dice total is 7. Show that A, B, and C are independent.

2.5.15. In a roll of a pair of fair dice (one red and one green), let A be the event of an odd number on the red die, let B be the event of an odd number on the green die, and let C be the event that the sum is odd. Show that any pair of these events is independent but that A, B, and C are not mutually independent.

2.5.16. On her way to work, a commuter encounters four traffic signals. Assume that the distance between each of the four is sufficiently great that her probability of getting a green light at any intersection is independent of what happened at any previous intersection. The first two lights are green for forty seconds of each minute; the last two, for thirty seconds of each minute. What is the probability that the commuter has to stop at least three times?

2.5.17. School board officials are debating whether to re- quire all high school seniors to take a proficiency exam before graduating. A student passing all three parts (mathematics, language skills, and general knowledge) would be awarded a diploma; otherwise, he or she would receive only a certificate of attendance. A practice test given to this year’s ninety-five hundred seniors resulted in the following numbers of failures:

Subject Area Number of Students Failing

Mathematics 3325

Language skills 1900

General knowledge 1425

If “Student fails mathematics,” “Student fails language skills,” and “Student fails general knowledge” are inde- pendent events, what proportion of next year’s seniors can be expected to fail to qualify for a diploma? Does inde- pendence seem a reasonable assumption in this situation?

2.5.18. Consider the following four-switch circuit:

A

In

1 A2

A3 A4

Out

If all switches operate independently and P(Switch closes) = p, what is the probability the circuit is com- pleted?

2.5.19. A fast-food chain is running a new promotion. For each purchase, a customer is given a game card that may win $10. The company claims that the probability of a per- son winning at least once in five tries is 0.32. What is the probability that a customer wins $10 on his or her first purchase?

2.5.20. Players A, B, and C toss a fair coin in order. The first to throw a head wins. What are their respective chances of winning?

2.5.21. In a certain developing nation, statistics show that only two out of ten children born in the early 1980s reached the age of twenty-one. If the same mortality rate is operative over the next generation, how many children does a woman need to bear if she wants to have at least a 75% probability that at least one of her offspring survives to adulthood?

2.5.22. According to an advertising study, 15% of televi- sion viewers who have seen a certain automobile commer- cial can correctly identify the actor who does the voice- over. Suppose that ten such people are watching TV and the commercial comes on. What is the probability that at least one of them will be able to name the actor? What is the probability that exactly one will be able to name the actor?

2.5.23. A fair die is rolled and then n fair coins are tossed, where n is the number showing on the die. What is the probability that no heads appear?

2.5.24. Each of m urns contains three red chips and four white chips. A total of r samples with replacement are

Section 2.6 Combinatorics 65

taken from each urn. What is the probability that at least one red chip is drawn from at least one urn?

2.5.25. If two fair dice are tossed, what is the smallest number of throws, n, for which the probability of getting at least one double 6 exceeds 0.5? (Note: This was one of the first problems that de Méré communicated to Pascal in 1654.)

2.5.26. A pair of fair dice are rolled until the first sum of 8 appears. What is the probability that a sum of 7 does not precede that first sum of 8?

2.5.27. An urn contains w white chips, b black chips, and r red chips. The chips are drawn out at random, one at a time, with replacement. What is the probability that a white appears before a red?

2.5.28. A Coast Guard dispatcher receives an SOS from a ship that has run aground off the shore of a small island. Before the captain can relay her exact position, though, her radio goes dead. The dispatcher has n helicopter crews he can send out to conduct a search. He suspects the ship is somewhere either south in area I (with probability p) or north in area II (with probability 1 − p). Each of the n rescue parties is equally competent and has probabil- ity r of locating the ship given it has run aground in the sector being searched. How should the dispatcher deploy the helicopter crews to maximize the probability that one of them will find the missing ship? (Hint: Assume that m search crews are sent to area I and n − m are sent to area II. Let B denote the event that the ship is found, let A1 be

the event that the ship is in area I, and let A2 be the event that the ship is in area II. Use Theorem 2.4.1 to get an expression for P(B); then differentiate with respect to m.)

2.5.29. A computer is instructed to generate a random sequence using the digits 0 through 9; repetitions are per- missible. What is the shortest length the sequence can be and still have at least a 70% probability of containing at least one 4?

2.5.30. A box contains a two-headed coin and eight fair coins. One coin is drawn at random and tossed n times. Suppose all n tosses come up heads. Show that the limit of the probability that the coin is fair is 0 as n goes to infinity.

2.5.31. Stanley’s statistics seminar is graded on a Pass/Fail basis. At the end of the semester each student is given the option of taking either a two-question exam (Final A) or a three-question exam (Final B). To pass the course, students must answer at least one question correctly on whichever exam they choose. The professor estimates that a typical student has a 45% chance of correctly answering each of the two questions on Final A and a 30% chance of correctly answering each of the three questions on Final B. Which exam should Stanley choose? Answer the question two different ways.

2.5.32. What is the smallest number of switches wired in parallel that will give a probability of at least 0.98 that a circuit will be completed? Assume that each switch op- erates independently and will function properly 60% of the time.

2.6 Combinatorics Combinatorics is a time-honored branch of mathematics concerned with counting, arranging, and ordering. While blessed with a wealth of early contributors (there are references to combinatorial problems in the Old Testament), its emergence as a separate discipline is often credited to the German mathematician and philoso- pher Gottfried Wilhelm Leibniz (1646–1716), whose 1666 treatise, Dissertatio de arte combinatoria, was perhaps the first monograph written on the subject (114).

Applications of combinatorics are rich in both diversity and number. Users range from the molecular biologist trying to determine how many ways genes can be po- sitioned along a chromosome, to a computer scientist studying queuing priorities, to a psychologist modeling the way we learn, to a weekend poker player wondering whether he should draw to a straight, or a flush, or a full house. Surprisingly enough, despite the considerable differences that seem to distinguish one question from an- other, solutions to all of these questions are rooted in the same set of four basic theorems and rules.

COUNTING ORDERED SEQUENCES: THE MULTIPLICATION RULE

More often than not, the relevant “outcomes” in a combinatorial problem are or- dered sequences. If two dice are rolled, for example, the outcome (4, 5)—that is, the first die comes up 4 and the second die comes up 5—is an ordered sequence of length two. The number of such sequences is calculated by using the most fundamental result in combinatorics, the multiplication rule.

66 Chapter 2 Probability

Multiplication Rule If operation A can be performed in m different ways and oper- ation B in n different ways, the sequence (operation A, operation B) can be performed in m · n different ways.

Proof At the risk of belaboring the obvious, we can verify the multiplication rule by considering a tree diagram (see Figure 2.6.1). Since each version of A can be followed by any of n versions of B, and there are m of the former, the total number of “A, B” sequences that can be pieced together is obviously the product m · n.

1

1

Operation BOperation A

2

1 2

n

2 n

1

m 2

n

Figure 2.6.1

Corollary 2.6.1

If operation Ai, i = 1, 2, . . . , k, can be performed in ni ways, i = 1, 2, . . . , k, respec- tively, then the ordered sequence (operation A1, operation A2, . . ., operation Ak) can be performed in n1 · n2 · · · · · nk ways.

Example 2.6.1

The combination lock on a briefcase has two dials, each marked off with sixteen notches (see Figure 2.6.2). To open the case, a person first turns the left dial in a certain direction for two revolutions and then stops on a particular mark. The right dial is set in a similar fashion, after having been turned in a certain direction for two revolutions. How many different settings are possible?

A

C

D B

A

C

D B

Figure 2.6.2

In the terminology of the multiplication rule, opening the briefcase corresponds to the four-step sequence (A1, A2, A3, A4) detailed in Table 2.6.1. Applying the pre- vious corollary, we see that one thousand twenty-four different settings are possible:

number of different settings = n1 · n2 · n3 · n4 = 2 · 16 · 2 · 16 = 1024

Section 2.6 Combinatorics 67

Table 2.6.1

Operation Purpose Number of Options

A1 Rotating the left dial in a particular direction 2

A2 Choosing an endpoint for the left dial 16

A3 Rotating the right dial in a particular direction 2

A4 Choosing an endpoint for the right dial 16

Comment The number of dials, as opposed to the number of notches on each dial, is the critical factor in determining how many different settings are possible. A two-dial lock, for example, where each dial has twenty notches, gives rise to only 2 ·20 ·2 ·20 = 1600 settings. If those forty notches, though, are distributed among four dials (ten to each dial), the number of different settings increases a hundredfold to 160,000 (= 2 · 10 · 2 · 10 · 2 · 10 · 2 · 10).

Example 2.6.2

Alphonse Bertillon, a nineteenth-century French criminologist, developed an identi- fication system based on eleven anatomical variables (height, head width, ear length, etc.) that presumably remain essentially unchanged during an individual’s adult life. The range of each variable was divided into three subintervals: small, medium, and large. A person’s Bertillon configuration is an ordered sequence of eleven letters, say,

s, s, m, m, l, s, l, s, s, m, s

where a letter indicates the individual’s “size” relative to a particular variable. How populated does a city have to be before it can be guaranteed that at least two citizens will have the same Bertillon configuration?

Viewed as an ordered sequence, a Bertillon configuration is an eleven-step classi- fication system, where three options are available at each step. By the multiplication rule, a total of 311, or 177,147, distinct sequences are possible. Therefore, any city with at least 177,148 adults would necessarily have at least two residents with the same pattern. (The limited number of possibilities generated by the configuration’s vari- ables proved to be one of its major weaknesses. Still, it was widely used in Europe for criminal identification before the development of fingerprinting.)

Example 2.6.3

In 1824 Louis Braille invented what would eventually become the standard alphabet for the blind. Based on an earlier form of “night writing” used by the French army for reading battlefield communiqués in the dark, Braille’s system replaced each written character with a six-dot matrix:

• • • • • •

where certain dots were raised, the choice depending on the character being tran- scribed. The letter e, for example, has two raised dots and is written

• • • • • •

68 Chapter 2 Probability

Punctuation marks, common words, suffixes, and so on, also have specified dot pat- terns. In all, how many different characters can be enciphered in Braille?

Think of the dots as six distinct operations, numbered 1 to 6 (see Figure 2.6.3). In forming a Braille letter, we have two options for each dot: We can raise it or not raise it. The letter e, for example, corresponds to the six-step sequence (raise, do not raise, do not raise, do not raise, raise, do not raise). The number of such sequences, with k = 6 and n1 = n2 = · · · = n6 = 2, is 26, or 64. One of those sixty-four configurations, though, has no raised dots, making it of no use to a blind person. Figure 2.6.4 shows the entire sixty-three-character Braille alphabet.

1 • 4 •

2 • 5 •

3 • 6 •

2 Sequences (2) 1

(2) 2

(2) 3

(2) 4

(2) 5

(2) 6

Options

Dot number

6

Figure 2.6.3

a 1

b 2

c 3

d 4

e 5

f 6

g 7

h 8

i 9

j 0

k l m n o p q r s t

u v x y z and for of the with

ch gh sh th wh ed er ou ow w

, ; : . en ! () "/? in ..

st ing # ar ' -

General accent

sign Used for

two-celled contractions

Italic sign;

decimal point

Letter sign

Capital sign

Figure 2.6.4

Section 2.6 Combinatorics 69

Example 2.6.4

The annual NCAA (“March Madness”) basketball tournament starts with a field of sixty-four teams. After six rounds of play, the squad that remains unbeaten is declared the national champion. How many different configurations of winners and losers are possible, starting with the first round? Assume that the initial pairing of the sixty-four invited teams into thirty-two first-round matches has already been done.

Counting the number of ways a tournament of this sort can play out is an exer- cise in applying the multiplication rule twice. Notice, first, that the thirty-two first- round games can be decided in 232 ways. Similarly, the resulting sixteen second-round games can generate 216 different winners, and so on. Overall, the tournament can be pictured as a six-step sequence, where the number of possible outcomes at the six steps are 232, 216, 28, 24, 22, and 21, respectively. It follows that the number of possi- ble tournaments (not all of which, of course, would be equally likely!) is the product 232 · 216 · 28 · 24 · 22 · 21, or 263.

Example 2.6.5

When they were first introduced, postal zip codes were five-digit numbers, theoreti- cally ranging from 00000 to 99999. (In reality, the lowest zip code was 00601 for San Juan, Puerto Rico; the highest was 99950 for Ketchikan, Alaska.) An additional four digits have since been added, so each zip code is now a nine-digit number: an initial five digits, followed by a hyphen, followed by a final four digits.

Let N(A) denote the number of zip codes in the set A, which contains all possible zip codes having at least one 7 among the first five digits; let N(B) denote the number of zip codes in the set B, which contains all possible zip codes having at least one 7 among the final four digits; and let N(T) denote the number of all possible nine-digit zip codes.

Find N(T), N(A), N(B), N(A ∩ B), and N(A ∪ B). Assume that any digit from 0 to 9 can appear any number of times in a zip code.

Since each of the nine positions in a zip code can be occupied by any of ten digits, N(T) = 109. Figure 2.6.5 shows examples of zip codes belonging to A, B, A ∩ B, and A ∪ B.

3 7 2 1 7 − 4 4 1 6 ∈ A 1 6 7 9 4 − 0 7 2 1 ∈ B 7 0 6 2 1 − 7 7 3 7 ∈ A ∩ B 2 9 7 5 5 − 6 6 7 4 ∈ A ∪ B

Figure 2.6.5

Notice that the number of zip codes in the set A is necessarily equal to the total number of zip codes minus all the zip codes that have no 7’s in the first five positions. That is,

N(A) = N(T) − 95 · 104 = 109 − 95 · 104

Likewise,

N(B) = N(T) − 105 · 94 = 109 − 105 · 94

By definition, A ∩ B is the set of outcomes having at least one 7 in the first five positions and at least one 7 in the last four positions (see Figure 2.6.6). By the

at leastone 7︷ ︸︸ ︷ 1 2 3 4 5

at leastone 7︷ ︸︸ ︷ 6 7 8 9

No. of ways: 105− 95 104− 94

Figure 2.6.6

70 Chapter 2 Probability

Multiplication rule, then,

N(A ∩ B) = (105 − 95) · (104 − 94) Finally,

N(A ∪ B) = N(A) + N(B) − N(A ∩ B) = 109 − 95 · 104 + 109 − 105 · 94 − (105 − 95)(104 − 94) = 612,579,511

As a partial check, N (A ∪ B) should be equal to the total number of zip codes minus the number of zip codes with no 7’s. But 109 − 99 = 612,579,511.

Problem-Solving Hints

(Doing combinatorial problems)

Combinatorial questions sometimes call for problem-solving techniques that are not routinely used in other areas of mathematics. The three listed below are especially helpful.

1. Draw a diagram that shows the structure of the outcomes that are being counted. Be sure to include (or indicate) all relevant variations. A case in point is Figure 2.6.3. Almost invariably, diagrams such as these will suggest the formula, or combination of formulas, that should be applied.

2. Use enumerations to “test” the appropriateness of a formula. Typically, the answer to a combinatorial problem—that is, the number of ways to do something—will be so large that listing all possible outcomes is not feasible. It often is feasible, though, to construct a simple, but analogous, problem for which the entire set of outcomes can be identified (and counted). If the pro- posed formula does not agree with the simple-case enumeration, we know that our analysis of the original question is incorrect.

3. If the outcomes to be counted fall into structurally different categories, the total number of outcomes will be the sum (not the product) of the number of outcomes in each category.

Questions

2.6.1. A chemical engineer wishes to observe the effects of temperature, pressure, and catalyst concentration on the yield resulting from a certain reaction. If she intends to in- clude two different temperatures, three pressures, and two levels of catalyst, how many different runs must she make in order to observe each temperature-pressure-catalyst combination exactly twice?

2.6.2. A coded message from a CIA operative to his Russian KGB counterpart is to be sent in the form Q4ET, where the first and last entries must be consonants; the second, an integer 1 through 9; and the third, one of the six vowels. How many different ciphers can be transmitted?

2.6.3. How many terms will be included in the expansion of

(a + b + c)(d + e + f )(x + y + u + v + w) Which of the following will be included in that number: aeu, cdx, bef, xvw?

2.6.4. Suppose that the format for license plates in a cer- tain state is two letters followed by four numbers. (a) How many different plates can be made? (b) How many different plates are there if the letters can be repeated but no two numbers can be the same?

Section 2.6 Combinatorics 71

(c) How many different plates can be made if repetitions of numbers and letters are allowed except that no plate can have four zeros?

2.6.5. How many integers between 100 and 999 have dis- tinct digits, and how many of those are odd numbers?

2.6.6. A fast-food restaurant offers customers a choice of eight toppings that can be added to a hamburger. How many different hamburgers can be ordered?

2.6.7. In baseball there are twenty-four different “base- out” configurations (runner on first—two outs, bases loaded—none out, and so on). Suppose that a new game, sleazeball, is played where there are seven bases (exclud- ing home plate) and each team gets five outs an inning. How many base-out configurations would be possible in sleazeball?

2.6.8. Recall the postal zip codes described in Example 2.6.5. (a) If viewed as nine-digit numbers, how many zip codes are greater than 700,000,000? (b) How many zip codes will the digits in the nine posi- tions alternate between even and odd? (c) How many zip codes will have the first five digits be all different odd numbers and the last four digits be two 2’s and two 4’s?

2.6.9. A restaurant offers a choice of four appetizers, four- teen entrees, six desserts, and five beverages. How many different meals are possible if a diner intends to order only three courses? (Consider the beverage to be a “course.”)

2.6.10. An octave contains twelve distinct notes (on a pi- ano, five black keys and seven white keys). How many different eight-note melodies within a single octave can be written if the black keys and white keys need to alternate?

2.6.11. Residents of a condominium have an automatic garage door opener that has a row of eight buttons. Each garage door has been programmed to respond to a par- ticular set of buttons being pushed. If the condominium

houses 250 families, can residents be assured that no two garage doors will open on the same signal? If so, how many additional families can be added before the eight- button code becomes inadequate? (Note: The order in which the buttons are pushed is irrelevant.)

2.6.12. In international Morse code, each letter in the al- phabet is symbolized by a series of dots and dashes: the letter a, for example, is encoded as “· –”. What is the min- imum number of dots and/or dashes needed to represent any letter in the English alphabet?

2.6.13. The decimal number corresponding to a sequence of n binary digits a0, a1, . . . , an−1, where each ai is either 0 or 1, is defined to be

a020 + a121 + · · · + an−12n−1

For example, the sequence 0 1 1 0 is equal to 6 (= 0 · 20 + 1 · 21 + 1 · 22 + 0 · 23). Suppose a fair coin is tossed nine times. Replace the resulting sequence of H’s and T’s with a binary sequence of 1’s and 0’s (1 for H, 0 for T). For how many sequences of tosses will the deci- mal corresponding to the observed set of heads and tails exceed 256?

2.6.14. Given the letters in the word

Z O M B I E S

in how many ways can two of the letters be arranged such that one is a vowel and one is a consonant?

2.6.15. Suppose that two cards are drawn—in order— from a standard 52-card poker deck. In how many ways can the first card be a club and the second card be an ace?

2.6.16. Monica’s vacation plans require that she fly from Nashville to Chicago to Seattle to Anchorage. Accord- ing to her travel agent, there are three available flights from Nashville to Chicago, five from Chicago to Seat- tle, and two from Seattle to Anchorage. Assume that the numbers of options she has for return flights are the same. How many round-trip itineraries can she schedule?

COUNTING PERMUTATIONS (WHEN THE OBJECTS ARE ALL DISTINCT)

Ordered sequences arise in two fundamentally different ways. The first is the scenario addressed by the multiplication rule—a process is comprised of k operations, each allowing ni options, i = 1, 2, . . . , k; choosing one version of each operation leads to n1n2 . . . nk possibilities.

The second occurs when an ordered arrangement of some specified length k is formed from a finite collection of objects. Any such arrangement is referred to as a permutation of length k. For example, given the three objects A, B, and C, there are six different permutations of length two that can be formed if the objects cannot be repeated: AB, AC, BC, BA, CA, and CB.

72 Chapter 2 Probability

Theorem 2.6.1

The number of permutations of length k that can be formed from a set of n distinct elements, repetitions not allowed, is denoted by the symbol nPk, where

nPk = n(n − 1)(n − 2) · · · (n − k + 1) = n!(n − k)!

Proof Any of the n objects may occupy the first position in the arrangement, any of n − 1 the second, and so on—the number of choices available for filling the kth position will be n − k + 1 (see Figure 2.6.7). The theorem follows, then, from the multiplication rule: There will be n(n − 1) · · · (n − k + 1) ordered arrangements.

n 1

n – 1 2

n – (k – 2) k – 1

n – (k – 1) k

Choices:

Position in sequence

Figure 2.6.7

Corollary 2.6.2

The number of ways to permute an entire set of n distinct objects is nPn = n(n − 1)(n − 2) · · · 1 = n!.

Example 2.6.6

How many permutations of length k = 3 can be formed from the set of n = 4 distinct elements, A, B,C, and D?

According to Theorem 2.6.1, the number should be 24:

n! (n − k)! =

4! (4 − 3)! =

4 · 3 · 2 · 1 1

= 24

Confirming that figure, Table 2.6.2 lists the entire set of twenty-four permutations and illustrates the argument used in the proof of the theorem.

Table 2.6.2

B C 1. (ABC) D 2. (ABD)

A C B 3. (ACB) D 4. (ACD)

D B 5. (ADB) C 6. (ADC)

A C 7. (BAC) D 8. (BAD)

B C A 9. (BCA) D 10. (BCD)

D A 11. (BDA) C 12. (BDC)

A B 13. (CAB) D 14. (CAD)

C B A 15. (CBA) D 16. (CBD)

D A 17. (CDA) B 18. (CDB)

A B 19. (DAB) C 20. (DAC)

D B A 21. (DBA) C 22. (DBC)

C A 23. (DCA) B 24. (DCB)

Section 2.6 Combinatorics 73

Example 2.6.7

In her sonnet with the famous first line, “How do I love thee? Let me count the ways,” Elizabeth Barrett Browning listed eight. Suppose Ms. Browning had decided that writing greeting cards afforded her a better format for expressing her feelings. For how many years could she have corresponded with her favorite beau on a daily basis and never sent the same card twice? Assume that each card contains exactly four of the eight “ways” and that order matters.

In selecting the verse for a card, Ms. Browning would be creating a permutation of length k = 4 from a set of n = 8 distinct objects. According to Theorem 2.6.1,

number of different cards = 8P4 = 8!(8 − 4)! = 8 · 7 · 6 · 5

= 1680 At the rate of a card a day, she could have kept the correspondence going for more than four and one-half years.

Example 2.6.8

Years ago—long before Rubik’s Cubes and electronic games had become epidemic—puzzles were much simpler. One of the more popular combinatorial- related diversions was a four-by-four grid consisting of fifteen movable squares and one empty space. The object was to maneuver as quickly as possible an arbitrary con- figuration (Figure 2.6.8a) into a specific pattern (Figure 2.6.8b). How many different ways could the puzzle be arranged?

Take the empty space to be square number 16 and imagine the four rows of the grid laid end to end to make a sixteen-digit sequence. Each permutation of that sequence corresponds to a different pattern for the grid. By the corollary to Theo- rem 2.6.1, the number of ways to position the tiles is 16!, or more than twenty trillion (20,922,789,888,000, to be exact). (Note: Not all of the 16! permutations can be gener- ated without physically removing some of the tiles. Think of the two-by-two version of Figure 2.6.8 with tiles numbered 1 through 3. How many of the 4! theoretical con- figurations can actually be formed?)

13 1 8 7

6 9 3 11

2 10 4

5 12 15 14

(a)

1 2 3 4

5 6 7 8

9 10 12

13 14 15

11

(b)

Figure 2.6.8

Example 2.6.9

A deck of fifty-two cards is shuffled and dealt face up in a row. For how many arrangements will the four aces be adjacent?

This is a good example illustrating the problem-solving benefits that come from drawing diagrams, as mentioned earlier. Figure 2.6.9 shows the basic structure that needs to be considered: The four aces are positioned as a “clump” somewhere between or around the forty-eight non-aces.

Clearly, there are forty-nine “spaces” that could be occupied by the four aces (in front of the first non-ace, between the first and second non-aces, and so on). Further- more, by the corollary to Theorem 2.6.1, once the four aces are assigned to one of those forty-nine positions, they can still be permuted in 4P4 = 4! ways. Similarly, the

74 Chapter 2 Probability

Non-aces

1 2 3 4 48

4 aces

Figure 2.6.9

forty-eight non-aces can be arranged in 48P48 = 48! ways. It follows from the multi- plication rule, then, that the number of arrangements having consecutive aces is the product 49 · 4! · 48!, or, approximately, 1.46 × 1064.

Comment Computing n! can be quite cumbersome, even for n’s that are fairly small: We saw in Example 2.6.8, for instance, that 16! is already in the trillions. For- tunately, an easy-to-use approximation is available. According to Stirling’s formula,

n! .= √

2πnn+1/2e−n

In practice, we apply Stirling’s formula by writing

log10(n!) .= log10

(√ 2π

) + (n + 1 2

) log10(n) − n log10(e)

and then exponentiating the right-hand side. In Example 2.6.9, the number of arrangements was calculated to be 49 · 4! · 48!,

or 24 · 49!. Substituting into Stirling’s formula, we can write

log10(49!) .= log10

(√ 2π

) + (49 + 1 2

) log10(49) − 49 log10(e)

≈ 62.783366 Therefore,

24 · 49! .= 24 · 1062.78337

= 1.46 × 1064

Example 2.6.10

In chess a rook can move vertically and horizontally (see Figure 2.6.10). It can cap- ture any unobstructed piece located anywhere in its own row or column. In how many ways can eight distinct rooks be placed on a chessboard (having eight rows and eight columns) so that no two can capture one another?

Figure 2.6.10

Section 2.6 Combinatorics 75

To start with a simpler problem, suppose that the eight rooks are all identical. Since no two rooks can be in the same row or same column (why?), it follows that each row must contain exactly one. The rook in the first row, however, can be in any of eight columns; the rook in the second row is then limited to being in one of seven columns, and so on. By the multiplication rule, then, the number of noncapturing configurations for eight identical rooks is 8P8, or 8! (see Figure 2.6.11).

Choices

8

7

6

5

4

3

2

1

Total number = 8 7 6 5 4 3 2 1

Figure 2.6.11 Now imagine the eight rooks to be distinct—they might be numbered, for ex-

ample, 1 through 8. The rook in the first row could be marked with any of eight numbers; the rook in the second row with any of the remaining seven numbers; and so on. Altogether, there would be 8! numbering patterns for each configuration. The total number of ways to position eight distinct, noncapturing rooks, then, is 8! · 8!, or 1,625,702,400.

Example 2.6.11

A group of n families, each having m members, are to be lined up in a row for a pho- tograph at a family reunion. In how many ways can those nm individuals be arranged if members of a family must stay together?

Figure 2.6.12 shows one such arrangement. Notice, first of all, that the families— as n distinct groups—can be positioned in n! ways. Also, the individual members

Family 1

1 2 m

Family 2

1 2 m

Family n

1 2 m

Figure 2.6.12

of each family can be rearranged in m! ways. By the multiplication rule, then, the total number of different pictures the photographer could take would be n!(m!)n. Is the latter a big number? Yes, indeed. If only n = 5 families attended, each hav- ing only m = 4 members, the photographer would have almost a billion different arrangements to choose from:

5! (4!)5 = 955,514,880 Even more amazing, though, is how the number of different arrangements would

increase if members of different families were allowed to intermingle. Under those rules, each possible photograph would simply be a permutation of nm people— where in this case nm = 5(4) = 20. But the number of permutations of 20 distinct objects is 20!, or 2.4329 × 1018.

Currently, the total world population is approximately eight billion people, or 8.0 × 109. Since

2.4329 × 1018/8.0 × 109 = 3.04 × 108

76 Chapter 2 Probability

it would be cheaper—in terms of film costs—to take 300,000,000 pictures of every person living on the planet than it would be to take the picture of all possible ways for twenty people to be lined up in a row.

Example 2.6.12

Consider the set of nine-digit numbers that can be formed by rearranging without repetition the integers 1 through 9. For how many of those permutations will the 1 and the 2 precede the 3 and the 4? That is, we want to count sequences like 7 2 5 1 3 6 9 4 8 but not like 6 8 1 5 4 2 7 3 9.

At first glance, this seems to be a problem well beyond the scope of Theo- rem 2.6.1. With the help of a symmetry argument, though, its solution is surprisingly simple.

Think of just the digits 1 through 4. By the corollary on p. 72, those four numbers give rise to 4!(= 24) permutations. Of those twenty-four, only four—(1, 2, 3, 4), (2, 1, 3, 4), (1, 2, 4, 3), and (2, 1, 4, 3)—have the property that the 1 and the 2 come before the 3 and the 4. It follows that 424 of the total number of nine-digit permutations should satisfy the condition being imposed on 1, 2, 3, and 4. Therefore,

number of permutations where 1 and 2 precede 3 and 4 = 4 24

· 9!

= 60,480

Questions

2.6.17. The board of a large corporation has six members willing to be nominated for office. How many different “president/vice president/treasurer” slates could be sub- mitted to the stockholders?

2.6.18. How many ways can a set of four tires be put on a car if all the tires are interchangeable? How many ways are possible if two of the four are snow tires?

2.6.19. Use Stirling’s formula to approximate 30!. (Note: The exact answer is 265,252,859,812,191,058,636, 308,480,000,000.)

2.6.20. The nine members of the music faculty baseball team, the Mahler Maulers, are all incompetent, and each can play any position equally poorly. In how many differ- ent ways can the Maulers take the field?

2.6.21. A three-digit number is to be formed from the dig- its 1 through 7, with no digit being used more than once. How many such numbers would be less than 289?

2.6.22. Four men and four women are to be seated in a row of chairs numbered 1 through 8. (a) How many total arrangements are possible? (b) How many arrangements are possible if the men are required to sit in alternate chairs?

2.6.23. An engineer needs to take three technical elec- tives sometime during his final four semesters. The three are to be selected from a list of ten. In how many ways can he schedule those classes, assuming that he never wants to take more than one technical elective in any given term?

2.6.24. How many ways can a twelve-member cheerlead- ing squad (six men and six women) pair up to form six male-female teams? How many ways can six male- female teams be positioned along a sideline? What might the number 6!6!26 represent? What might the number 6!6!26212 represent?

2.6.25. Suppose that a seemingly interminable German opera is recorded on all six sides of a three-record album. In how many ways can the six sides be played so that at least one is out of order?

2.6.26. A new horror movie, Friday the 13th, Part X, will star Jason’s great-grandson (also named Jason) as a psy- chotic trying to dispatch (as gruesomely as possible) eight camp counselors, four men and four women. (a) How many scenarios (i.e., victim orders) can the screenwriters devise, assuming they want Jason to do away with all the men before going after any of the women? (b) How many scripts are possible if the only restriction imposed on Jason is that he save Muffy for last?

2.6.27. Suppose that ten people, including you and a friend, line up for a group picture. How many ways can the photographer rearrange the line if she wants to keep exactly three people between you and your friend?

2.6.28. Use an induction argument to prove Theo- rem 2.6.1. (Note: This was the first mathematical result known to have been proved by induction. It was done in 1321 by Levi ben Gerson.)

2.6.29. In how many ways can a pack of fifty-two cards be dealt to thirteen players, four to each, so that every player has one card of each suit?

Section 2.6 Combinatorics 77

2.6.30. If the definition of n! is to hold for all nonnegative integers n, show that it follows that 0! must equal 1.

2.6.31. The crew of Apollo 17 consisted of a pilot, a copi- lot, and a geologist. Suppose that NASA had actually trained nine aviators and four geologists as candidates for the flight. How many different crews could they have assembled?

2.6.32. Uncle Harry and Aunt Minnie will both be attend- ing your next family reunion. Unfortunately, they hate each other. Unless they are seated with at least two people between them, they are likely to get into a shouting match. The side of the table at which they will be seated has seven

chairs. How many seating arrangements are available for those seven people if a safe distance is to be maintained between your aunt and your uncle?

2.6.33. In how many ways can the digits 1 through 9 be arranged such that (a) all the even digits precede all the odd digits? (b) all the even digits are adjacent to each other? (c) two even digits begin the sequence and two even digits end the sequence? (d) the even digits appear in either ascending or descend- ing order?

COUNTING PERMUTATIONS (WHEN THE OBJECTS ARE NOT ALL DISTINCT)

The corollary to Theorem 2.6.1 gives a formula for the number of ways an entire set of n objects can be permuted if the objects are all distinct. Fewer than n! permutations are possible, though, if some of the objects are identical. For example, there are 3! = 6 ways to permute the three distinct objects A, B, and C:

ABC ACB BAC BCA CAB CBA

If the three objects to permute, though, are A, A, and B—that is, if two of the three are identical—the number of permutations decreases to three:

AAB ABA BAA

As we will see, there are many real-world applications where the n objects to be permuted belong to r different categories, each category containing one or more identical objects.

Theorem 2.6.2

The number of ways to arrange n objects, n1 being of one kind, n2 of a second kind, . . . , and nr of an rth kind, is

n! n1! n2! · · · nr!

where r∑

i=1 ni = n.

Proof Let N denote the total number of such arrangements. For any one of those N, the similar objects (if they were actually different) could be arranged in n1! n2! · · · nr! ways. (Why?) It follows that N · n1! n2! · · · nr! is the total number of ways to arrange n (distinct) objects. But n! equals that same number. Setting N · n1! n2! · · · nr! equal to n! gives the result.

78 Chapter 2 Probability

Comment Ratios like n!/(n1! n2! · · · nr!) are called multinomial coefficients because the general term in the expansion of

(x1 + x2 + · · · + xr)n is

n! n1!n2! · · · nr!x

n1 1 x

n2 2 · · · xnrr

Example 2.6.13

A pastry in a vending machine costs 85¢. In how many ways can a customer put in two quarters, three dimes, and one nickel?

Order in which coins are deposited

1 2 3 5 64

Figure 2.6.13

If all coins of a given value are considered identical, then a typical deposit se- quence, say, QDDQND (see Figure 2.6.13), can be thought of as a permutation of n = 6 objects belonging to r = 3 categories, where

n1 = number of nickels = 1 n2 = number of dimes = 3 n3 = number of quarters = 2

By Theorem 2.6.2, there are sixty such sequences:

n! n1!n2!n3!

= 6! 1!3!2!

= 60

Of course, had we assumed the coins were distinct (having been minted at different places and different times), the number of distinct permutations would have been 6!, or 720.

Example 2.6.14

Prior to the seventeenth century there were no scientific journals, a state of affairs that made it difficult for researchers to document discoveries. If a scientist sent a copy of his work to a colleague, there was always a risk that the colleague might claim it as his own. The obvious alternative—wait to get enough material to publish a book— invariably resulted in lengthy delays. So, as a sort of interim documentation, scien- tists would sometimes send each other anagrams—letter puzzles that, when properly unscrambled, summarized in a sentence or two what had been discovered.

When Christiaan Huygens (1629–1695) looked through his telescope and saw the ring around Saturn, he composed the following anagram (203):

aaaaaaa, ccccc, d, eeeee, g, h, iiiiiii, llll, mm,

nnnnnnnnn, oooo, pp, q, rr, s, ttttt, uuuuu

How many ways can the sixty-two letters in Huygens’s anagram be arranged? Let n1(= 7) denote the number of a’s, n2(= 5) the number of c’s, and so on.

Substituting into the appropriate multinomial coefficient, we find

N = 62! 7!5!1!5!1!1!7!4!2!9!4!2!1!2!1!5!5!

Section 2.6 Combinatorics 79

as the total number of arrangements. To get a feeling for the magnitude of N, we need to apply Stirling’s formula to the numerator. Since

62! .= √

2πe−626262.5

then

log(62!) .= log (√2π) − 62 · log(e) + 62.5 · log(62) .= 85.49731

The antilog of 85.49731 is 3.143 × 1085, so

N .= 3.143 × 10 85

7!5!1!5!1!1!7!4!2!9!4!2!1!2!1!5!5!

is a number on the order of 3.6 × 1060. Huygens was clearly taking no chances! (Note: When appropriately rearranged, the anagram becomes “Annulo cingitur tenui, plano, nusquam cohaerente, ad eclipticam inclinato,” which translates to “Surrounded by a thin ring, flat, suspended nowhere, inclined to the ecliptic.”)

Example 2.6.15

What is the coefficient of x23 in the expansion of (1 + x5 + x9)100? To understand how this question relates to permutations, consider the simpler

problem of expanding (a + b)2: (a + b)2 = (a + b)(a + b)

= a · a + a · b + b · a + b · b = a2 + 2ab + b2

Notice that each term in the first (a + b) is multiplied by each term in the second (a+b). Moreover, the coefficient that appears in front of each term in the expansion corresponds to the number of ways that term can be formed. For example, the 2 in the term 2ab reflects the fact that the product ab can result from two different multiplications:

(a + b)(a + b︸ ︷︷ ︸ ab

) or (a + b) (a︸︷︷︸ ab

+ b)

By analogy, the coefficient of x23 in the expansion of (1 + x5 + x9)100 will be the number of ways that one term from each of the one hundred factors (1+x5 +x9) can be multiplied together to form x23. The only factors that will produce x23, though, are the set of two x9’s, one x5, and ninety-seven 1’s:

x23 = x9 · x9 · x5 · 1 · 1 · · · 1 It follows that the coefficient of x23 is the number of ways to permute two x9’s, one x5, and ninety-seven 1’s. So, from Theorem 2.6.2,

coefficient of x23 = 100! 2!1!97!

= 485,100

Example 2.6.16

A palindrome is a phrase whose letters are in the same order whether they are read backward or forward, such as Napoleon’s lament

Able was I ere I saw Elba.

80 Chapter 2 Probability

or the often-cited

Madam, I’m Adam.

Words themselves can become the units in a palindrome, as in the sentence

Girl, bathing on Bikini, eyeing boy,

finds boy eyeing bikini on bathing girl.

Suppose the members of a set consisting of four objects of one type, six of a sec- ond type, and two of a third type are to be lined up in a row. How many of those permutations are palindromes?

Think of the twelve objects to arrange as being four A’s, six B’s, and two C’s. If the arrangement is to be a palindrome, then half of the A’s, half of the B’s, and half of the C’s must occupy the first six positions in the permutation. Moreover, the final six members of the sequence must be in the reverse order of the first six. For example, if the objects comprising the first half of the permutation were

C A B A B B

then the last six would need to be in the order

B B A B A C

It follows that the number of palindromes is the number of ways to permute the first six objects in the sequence, because once the first six are positioned, there is only one arrangement of the last six that will complete the palindrome. By Theorem 2.6.2, then,

number of palindromes = 6!/(2!3!1!) = 60

Example 2.6.17

A deliveryman is currently at Point X and needs to stop at Point 0 before driving through to Point Y (see Figure 2.6.14). How many different routes can he take with- out ever going out of his way?

X

O

Y

Figure 2.6.14

Notice that any admissible path from, say, X to 0 is an ordered sequence of 11 “moves”—nine east and two north. Pictured in Figure 2.6.14, for example, is the particular X to 0 route

E E N E E E E N E E E

Similarly, any acceptable path from 0 to Y will necessarily consist of five moves east and three moves north (the one indicated is E E N N E N E E).

Since each path from X to 0 corresponds to a unique permutation of nine E’s and two N’s, the number of such paths (from Theorem 2.6.2) is the quotient

11!/(9!2!) = 55

Section 2.6 Combinatorics 81

For the same reasons, the number of different paths from 0 to Y is

8!/(5!3!) = 56 By the multiplication rule, then, the total number of admissible routes from X to Y that pass through 0 is the product of 55 and 56, or 3080.

Example 2.6.18

Stacy is worried that her recently-released-from-prison stalker-out-for-revenge ex- boyfriend Psycho Bob is trying to hack into her e-mail account. Crazy, but not stupid, Bob has programmed an algorithm capable of checking three billion passwords a second, which he intends to run 24/7. Suppose Stacy intends to change her password every month. What is the probability her e-mail gets broken into at least once in the next six months?

Stacy’s e-mail provider requires 10-digit passwords—four letters (each having two options, lower case or upper case), four numbers, and two symbols (chosen from a list of eight). Figure 2.6.15 shows one such admissible sequence.

7 3 B * Q a # 6 a 1

Figure 2.6.15

Counting the number of admissible passwords is an exercise in using the mul- tiplication rule. Clearly, the identities of the four numbers and two symbols can be chosen in 10 · 10 · 10 · 10 and 8 · 8 ways, respectively, while the letters can be cho- sen in 26 · 26 · 26 · 26 · 24 ways. Moreover, by Theorem 2.6.2 the positions for the four numbers, two symbols, and four letters can be assigned in 10!/(4!4!2!) ways. The total number of different passwords, then, is the product

104 · 82 · (26)4 · 24 · (10!/(4!4!2!)), or 1.474 × 1016

The probability that Bob’s cyberattack identifies whatever password Stacy is using in a given month is simply equal to the number of passwords his algorithm can check in thirty days divided by the total number of passwords admissible. The former is equal to

3,000,000,000 passwords/sec × 60 sec/min × 60 min /hr × 24 hrs/day × 30 days/mo. = 7.776 × 1015 passwords/mo

so the probability that Stacy’s e-mail privacy is compromised in any given month is the quotient

7.776 × 1015/1.474 × 1016, or 0.53 Of course, Bob’s success (or failure) in one month is independent of what hap-

pens in any other month, so

P(e-mail is hacked into at least once in six months) = 1 − P(e-mail is not hacked into for any of the six months) = 1 − (0.47)6 = 0.989

CIRCULAR PERMUTATIONS

Thus far the enumeration results we have seen have dealt with what might be called linear permutations—objects being lined up in a row. This is the typical context in which permutation problems arise, but sometimes nonlinear arrangements of one

82 Chapter 2 Probability

sort or another need to be counted. The next theorem gives the basic result associated with circular permutations.

Theorem 2.6.3

There are (n − 1)! ways to arrange n distinct objects in a circle. Proof Fix any object at the “top” of the circle. The remaining n – 1 objects can then be permuted in (n – 1)! ways. Since any arrangement with a different object at the top can be reproduced by simply rotating one of the original (n − 1)! per- mutations, the statement of the theorem holds.

Example 2.6.19

How many different firing orders are theoretically possible in a six-cylinder engine? (If the cylinders are numbered from 1 to 6, a firing order is a list such as 1, 4, 2, 5, 3, 6 giving the sequence in which fuel is ignited in the six cylinders.)

By a direct application of Theorem 2.6.3, the number of distinct firing orders is (6 – 1)!, or 120.

Comment According to legend (84), perhaps the first person for whom the problem of arranging objects in a circle took on life or death significance was Flavius Josephus, an early Jewish scholar and historian. In 66 a.d., Josephus found himself a somewhat reluctant leader of an attempt to overthrow the Roman administration in the town of Judea. But the coup failed, and Josephus and forty of his comrades ended up trapped in a cave, surrounded by an angry Roman army.

Faced with the prospect of imminent capture, others in the group were intent on committing mass suicide, but Josephus’s devotion to the cause did not extend quite that far. Still, he did not want to appear cowardly, so he proposed an alternate plan: All forty one would arrange themselves in a circle; then, one by one, the group would go around the circle and kill every seventh remaining person, starting with whoever was seated at the head of the circle. That way, only one of them would have to commit suicide, and the entire action would make more of an impact on the Romans.

To his relief, the group accepted his suggestion and began forming a circle. Jose- phus, who was reputed to have had some genuine mathematical ability, quickly made his way to the twenty-fifth position. Forty murders later, he was the only person left alive!

Is the story true? Maybe yes, maybe no. Any conclusion would be little more than idle speculation. It is known, though, that Josephus was the sole survivor of the siege, and that he surrendered and eventually rose to a position of considerable in- fluence in the Roman government. And, whether true or not, the legend has given rise to some mathematical terminology: Cyclic cancellations of a fixed set of num- bers having the property that a specified number is left at the end are referred to as Josephus permutations.

Questions

2.6.34. Which state name can generate more permuta- tions, TENNESSEE or FLORIDA?

2.6.35. How many numbers greater than four million can be formed from the digits 2, 3, 4, 4, 5, 5, 5?

2.6.36. An interior decorator is trying to arrange a shelf containing eight books, three with red covers, three with blue covers, and two with brown covers. (a) Assuming the titles and the sizes of the books are irrel- evant, in how many ways can she arrange the eight books?

Section 2.6 Combinatorics 83

(b) In how many ways could the books be arranged if they were all considered distinct? (c) In how many ways could the books be arranged if the red books were considered indistinguishable, but the other five were considered distinct?

2.6.37. Four Nigerians (A, B, C, D), three Chinese (#, ∗, &), and three Greeks (α, β, γ) are lined up at the box of- fice, waiting to buy tickets for the World’s Fair. (a) How many ways can they position themselves if the Nigerians are to hold the first four places in line; the Chinese, the next three; and the Greeks, the last three? (b) How many arrangements are possible if members of the same nationality must stay together? (c) How many different queues can be formed? (d) Suppose a vacationing Martian strolls by and wants to photograph the ten for her scrapbook. A bit myopic, the Martian is quite capable of discerning the more ob- vious differences in human anatomy but is unable to dis- tinguish one Nigerian (N) from another, one Chinese (C) from another, or one Greek (G) from another. Instead of perceiving a line to be B∗βAD#&Cαγ, for example, she would see NCGNNCCNGG. From the Martian’s perspec- tive, in how many different ways can the ten funny-looking Earthlings line themselves up?

2.6.38. How many ways can the letters in the word

S LU M GU L L I O N

be arranged so that the three L’s precede all the other consonants?

2.6.39. A tennis tournament has a field of 2n entrants, all of whom need to be scheduled to play in the first round. How many different pairings are possible?

2.6.40. What is the coefficient of x12 in the expansion of (1 + x3 + x6)18? 2.6.41. In how many ways can the letters of the word

E L E E M O SY N A RY

be arranged so that the S is always immediately followed by a Y?

2.6.42. In how many ways can the word ABRA- CADABRA be formed in the array pictured above? Assume that the word must begin with the top A and progress diagonally downward to the bottom A.

A

B B

R R R

A A A A

C C C C C

A A A A A A

D D D D D

A A A A

B B B

R R

A

2.6.43. Suppose a pitcher faces a batter who never swings. For how many different ball/strike sequences will the bat- ter be called out on the fifth pitch?

2.6.44. What is the coefficient of w2x3yz3 in the expansion of (w + x + y + z)9? 2.6.45. Imagine six points in a plane, no three of which lie on a straight line. In how many ways can the six points be used as vertices to form two triangles? (Hint: Number the points 1 through 6. Call one of the triangles A and the other B. What does the permutation

A A B B A B 1 2 3 4 5 6

represent?)

2.6.46. Show that (k!)! is divisible by k!(k−1)!. (Hint: Think of a related permutation problem whose solution would require Theorem 2.6.2.)

2.6.47. In how many ways can the letters of the word

B R O B D I N G N A G I A N

be arranged without changing the order of the vowels?

2.6.48. Make an anagram out of the familiar expression STATISTICS IS FUN. In how many ways can the letters in the anagram be permuted?

2.6.49. Linda is taking a five-course load her first semester: English, math, French, psychology, and history. In how many different ways can she earn three A’s and two B’s? Enumerate the entire set of possibilities. Use Theorem 2.6.2 to verify your answer.

COUNTING COMBINATIONS

Order is not always a meaningful characteristic of a collection of elements. Consider a poker player being dealt a five-card hand. Whether he receives a 2 of hearts, 4 of clubs, 9 of clubs, jack of hearts, and ace of diamonds in that order, or in any one of the other 5! − 1 permutations of those particular five cards is irrelevant, the hand is still the same. As the last set of examples in this section bears out, there are many such

84 Chapter 2 Probability

situations—problems where our only legitimate concern is with the composition of a set of elements, not with any particular arrangement of them.

We call a collection of k unordered elements a combination of size k. For exam- ple, given a set of n = 4 distinct elements—A, B, C, and D—there are six ways to form combinations of size 2:

A and B B and C A and C B and D A and D C and D

A general formula for counting combinations can be derived quite easily from what we already know about counting permutations.

Theorem 2.6.4

The number of ways to form combinations of size k from a set of n distinct objects, repetitions not allowed, is denoted by the symbols

( n k

) or nCk, where(n

k

) = nCk = n!k!(n − k)!

Proof Let the symbol ( n

k

) denote the number of combinations satisfying the con-

ditions of the theorem. Since each of those combinations can be ordered in k! ways, the product k!

( n k

) must equal the number of permutations of length k that can be

formed from n distinct elements. But n distinct elements can be formed into per- mutations of length k in n(n − 1) · · · (n − k + 1) = n!/(n − k)! ways. Therefore,

k! (n

k

) = n!

(n − k)! Solving for

( n k

) gives the result.

Comment It often helps to think of combinations in the context of drawing ob- jects out of an urn. If an urn contains n chips labeled 1 through n, the number of ways we can reach in and draw out different samples of size k is

( n k

) . In deference

to this sampling interpretation for the formation of combinations, ( n

k

) is usually read

“n things taken k at a time” or “n choose k.”

Comment The symbol ( n

k

) appears in the statement of a familiar theorem from

algebra,

(x + y)n = n∑

k=0

(n k

) xkyn−k

Since the expression being raised to a power involves two terms, x and y, the con- stants

( n k

) , k = 0, 1, . . ., n, are commonly referred to as binomial coefficients.

Example 2.6.20

Eight politicians meet at a fund-raising dinner. How many greetings can be ex- changed if each politician shakes hands with every other politician exactly once?

Imagine the politicians to be eight chips—1 through 8—in an urn. A handshake corresponds to an unordered sample of size 2 chosen from that urn. Since repeti- tions are not allowed (even the most obsequious and overzealous of campaigners

Section 2.6 Combinatorics 85

would not shake hands with himself!), Theorem 2.6.4 applies, and the total number of handshakes is (

8 2

) = 8!

2!6!

or 28.

Example 2.6.21

A chemist is trying to synthesize a part of a straight-chain aliphatic hydrocarbon polymer that consists of twenty-one radicals—ten ethyls (E), six methyls (M), and five propyls (P). Assuming all arrangements of radicals are physically possible, how many different polymers can be formed if no two of the methyl radicals are to be adjacent?

Imagine arranging the E’s and the P’s without the M’s. Figure 2.6.16 shows one such possibility. Consider the sixteen “spaces” between and outside the E’s and P’s as indicated by the arrows in Figure 2.6.16. In order for the M’s to be nonadjacent, they must occupy any six of these locations. But those six spaces can be chosen in(

16 6

) ways. And for each of the

( 16 6

) positionings of the M’s, the E’s and P’s can be

permuted in 15!10!5! ways (Theorem 2.6.2).

E E P P P P PE E E E E E E E

Figure 2.6.16

So, by the multiplication rule, the total number of polymers having nonadjacent methyl radicals is 24,048,024:(

16 6

) · 15!

10!5! = 16!

10!6! 15!

10!5! = (8008)(3003) = 24, 048, 024

Example 2.6.22

Binomial coefficients have many interesting properties. Perhaps the most familiar is Pascal’s triangle,1 a numerical array where each entry is equal to the sum of the two numbers appearing diagonally above it (see Figure 2.6.17). Notice that each entry in Pascal’s triangle can be expressed as a binomial coefficient, and the relationship just described appears to reduce to a simple equation involving those coefficients:(

n + 1 k

) =

(n k

) +

( n

k − 1 )

(2.6.1)

Prove that Equation 2.6.1 holds for all positive integers n and k.

1

1 1

1 2 1

1 3 3 1

1 4 6 4 1

0

1

2

3

4

Row 0 0( )

1 0( )

1 1( )

2 0( )

2 1( )

2 2( )

3 0( )

3 1( )( )

4 0( )

4 1( )

4 2( )

3 2( )

3 3( )( )

4 3( )

4 4( )

Figure 2.6.17 1 Despite its name, Pascal’s triangle was not discovered by Pascal. Its basic structure had been known hundreds of years before the French mathematician was born. It was Pascal, though, who first made extensive use of its properties.

86 Chapter 2 Probability

Consider a set of n + 1 distinct objects A1, A2, . . ., An+1. We can obviously draw samples of size k from that set in

(n+1 k

) different ways. Now, consider any particular

object—for example, A1. Relative to A1, each of those (n+1

k

) samples belongs to one

of two categories: those containing A1 and those not containing A1. To form samples containing A1, we need to select k − 1 additional objects from the remaining n. This can be done in

( n k−1

) ways. Similarly, there are

(n k

) ways to form samples not containing

A1. Therefore, (n+1

k

) must equal

( n k

) + ( nk−1). Example 2.6.23

The answers to combinatorial questions can sometimes be obtained using quite dif- ferent approaches. What invariably distinguishes one solution from another is the way in which outcomes are characterized.

For example, suppose you have just ordered a roast beef sub at a sandwich shop, and now you need to decide which, if any, of the available toppings (lettuce, tomato, onions, etc.) to add. If the shop has eight “extras” to choose from, how many different subs can you order?

One way to answer this question is to think of each sub as an ordered sequence of length eight, where each position in the sequence corresponds to one of the top- pings. At each of those positions, you have two choices—“add” or “do not add” that particular topping. Pictured in Figure 2.6.18 is the sequence corresponding to the sub that has lettuce, tomato, and onion but no other toppings. Since two choices (“add” or “do not add”) are available for each of the eight toppings, the multiplication rule tells us that the number of different roast beef subs that could be requested is 28, or 256.

Add? Y Y Y N N N N N

Lettuce Tomato Onion Mustard Relish Mayo Pickles Peppers

Figure 2.6.18

An ordered sequence of length 8, though, is not the only model capable of char- acterizing a roast beef sandwich. We can also distinguish one roast beef sub from another by the particular combination of toppings that each one has. For example,

there are (

8 4

) = 70 different subs having exactly four toppings. It follows that the

total number of different sandwiches is the total number of different combinations of size k, where k ranges from 0 to 8. Reassuringly, that sum agrees with the ordered sequence answer:

total number of different roast beef subs = (

8 0

) +

( 8 1

) +

( 8 2

) + · · · +

( 8 8

) = 1 + 8 + 28 + · · · + 1 = 256

What we have just illustrated here is another property of binomial coefficients, namely, that

n∑ k=0

(n k

) = 2n (2.6.2)

The proof of Equation 2.6.2 is a direct consequence of Newton’s binomial expansion (see the second comment following Theorem 2.6.4).

Section 2.6 Combinatorics 87

Example 2.6.24

Recall Theorem 2.3.7, the formula for the probability of the union of n events, P(A1 ∪ A2 ∪ · · · ∪ An). As the special-case discussion on p. 28 indicated, it needs to be proved in general that the formula adds—once and only once—the probability of every outcome represented in the Venn diagram for A1 ∪ A2 ∪ · · · ∪ An.

To that end, consider the set of outcomes in A1 ∪ A2 ∪ · · · ∪ An that belong to a specified k of the Ai’s and to no others. If it can be established that the right-hand- side of Theorem 2.3.7 counts that particular set of outcomes one time, the theorem is proved since k was arbitrary.

Consider such a set of outcomes. Relative to the summations making up the right-hand side of Theorem 2.3.7, those outcomes get counted ( k1 ) times in

n∑ i=1

P(Ai), ( k 2 ) times in

∑ i< j

P(Ai ∩ Aj), (k3) times in ∑

i< j<k P(Ai ∩ Aj ∩ Ak), and so on.

According to the theorem, then, they will be counted a total of( k 1

) −

( k 2

) +

( k 3

) − · · · + (−1)k+1

( k k

) times.

Expressing that sum as a binomial expansion, we can write

(−1 + 1)k = 0k = k∑

j=0

( k j

) (−1) j(1)k− j

= (

k 0

) −

( k 1

) +

( k 2

) − · · · + (−1)k

( k k

) or, equivalently, (

k 1

) −

( k 2

) + · · · + (−1)k+1

( k k

) =

( k 0

) = 1

and the theorem is proved.

Example 2.6.25

In Example 2.6.23, the fact that n∑

k=0 (nk) is equal to 2

n was established by showing that

both expressions count the number of ways to complete the same task. Analytically, Equation 2.6.2 could have been derived by simplifying the expansion of (x + y)n. That is,

(x + y)n = n∑

k=0

(n k

) xkyn−k

Letting x = y = 1 gives

(1 + 1)n = 2n = n∑

k=0

(n k

) 1k · 1n–k =

n∑ k=0

(n k

) Concluding this section are two other examples of binomial coefficient identi-

ties. The first is proven analytically; the second is done by appealing to a sampling experiment.

a. Prove that (n 1

) + 2

(n 2

) + · · · + n

(n n

) = n2n−1

Consider the expansion of (1 + x)n:

(1 + x)n = n∑

k=0

(n k

) xk(1)n−k (2.6.3)

88 Chapter 2 Probability

Differentiating both sides of Equation 2.6.3 with respect to x gives

n(1 + x)n−1 = n∑

x=0

(n k

) kxk−1 (2.6.4)

Let x = 1. Then Equation 2.6.4 reduces to n · 2n−1 = 1

(n 1

) + 2

(n 2

) + · · · + n

(n n

) b. Prove that (n

0

)2 +

(n 1

)2 + · · · +

(n n

)2 =

( 2n n

) Imagine drawing a sample of size n from a population of 2n objects, divided into a first set of n objects and a second set of n objects. The desired sample could be formed by drawing zero objects from the first set and n objects from the second set or one object from the first set and n − 1 objects from the second set, and so on. Clearly(n

0

)(n n

) +

(n 1

)( n n − 1

) +

(n 2

)( n n − 2

) + · · · +

(n n

)(n 0

) =

( 2n n

) But ( nk ) = ( nn − k ) for all k, so(n

0

)2 +

(n 1

)2 + · · · +

(n n

)2 =

( 2n n

)

Questions

2.6.50. How many straight lines can be drawn between five points (A, B, C, D, and E), no three of which are collinear?

2.6.51. The Alpha Beta Zeta sorority is trying to fill a pledge class of nine new members during fall rush. Among the twenty-five available candidates, fifteen have been judged marginally acceptable and ten highly desirable. How many ways can the pledge class be chosen to give a two-to-one ratio of highly desirable to marginally accept- able candidates?

2.6.52. A boat has a crew of eight: Two of those eight can row only on the stroke side, while three can row only on the bow side. In how many ways can the two sides of the boat be manned?

2.6.53. Nine students, five men and four women, interview for four summer internships sponsored by a city newspaper. (a) In how many ways can the newspaper choose a set of four interns? (b) In how many ways can the newspaper choose a set of four interns if it must include two men and two women in each set? (c) How many sets of four can be picked such that not ev- eryone in a set is of the same sex?

2.6.54. The final exam in History 101 consists of five essay questions that the professor chooses from a pool of seven that are given to the students a week in advance. For how

many possible sets of questions does a student need to be prepared? In this situation, does order matter?

2.6.55. Ten basketball players meet in the school gym for a pickup game. How many ways can they form two teams of five each?

2.6.56. Your statistics teacher announces a twenty-page reading assignment on Monday that is to be finished by Thursday morning. You intend to read the first x1 pages Monday, the next x2 pages Tuesday, and the final x3 pages Wednesday, where x1 + x2 + x3 = 20, and each xi ≥ 1. In how many ways can you complete the assignment? That is, how many different sets of values can be chosen for x1, x2, and x3?

2.6.57. In how many ways can the letters in

M I S S I S S I P P I

be arranged so that no two I’s are adjacent?

2.6.58. Prove that( n + 1

k

) =

(n k

) +

( n

k − 1 )

directly without appealing to any combinatorial argu- ments.

2.6.59. Find a recursion formula for ( nk+1 ) in terms of ( n k).

2.6.60. Show that n(n − 1)2n−2 = n∑

k=2 k(k − 1)(nk).

Section 2.7 Combinatorial Probability 89

2.6.61. Prove that successive terms in the sequence ( n

0

) ,( n

1

) , . . .,

( n n

) first increase and then decrease. [Hint: Exam-

ine the ratio of two successive terms, (

n j+1

)/( n j

) .]

2.6.62. Mitch is trying to add a little zing to his cabaret act by telling four jokes at the beginning of each show. His current engagement is booked to run four months. If he gives one performance a night and never wants to

repeat the same set of jokes on any two nights, what is the minimum number of jokes he needs in his repertoire?

2.6.63. Compare the coefficients of tk in (1 + t)d(1 + t)e = (1 + t)d+e to prove that

k∑ j=0

( d j

)( e

k − j )

= (

d + e k

)

2.7 Combinatorial Probability In Section 2.6 our concern focused on counting the number of ways a given opera- tion, or sequence of operations, could be performed. In Section 2.7 we want to couple those enumeration results with the notion of probability. Putting the two together makes a lot of sense—there are many combinatorial problems where an enumera- tion, by itself, is not particularly relevant. A poker player, for example, is not inter- ested in knowing the total number of ways he can draw to a straight; he is interested, though, in his probability of drawing to a straight.

In a combinatorial setting, making the transition from an enumeration to a prob- ability is easy. If there are n ways to perform a certain operation and a total of m of those satisfy some stated condition—call it A—then P(A) is defined to be the ratio m/n. This assumes, of course, that all possible outcomes are equally likely.

Historically, the “m over n” idea is what motivated the early work of Pascal, Fermat, and Huygens (recall Section 1.3). Today we recognize that not all probabil- ities are so easily characterized. Nevertheless, the m/n model—the so-called classi- cal definition of probability—is entirely appropriate for describing a wide variety of phenomena.

Example 2.7.1

An urn contains eight chips, numbered 1 through 8. A sample of three is drawn with- out replacement. What is the probability that the largest chip in the sample is a 5?

Let A be the event “Largest chip in sample is a 5.” Figure 2.7.1 shows what must happen in order for A to occur: (1) the 5 chip must be selected, and (2) two chips must be drawn from the subpopulation of chips numbered 1 through 4. By the mul- tiplication rule, the number of samples satisfying event A is the product

(1 1

) · (42). 6 8

Choose 1

1

5

34 2

7

Choose 2

Figure 2.7.1

The sample space S for the experiment of drawing three chips from the urn con-

tains (

8 3

) outcomes, all equally likely. In this situation, then, m =

( 1 1

) · (

4 2

) , n =

( 8 3

) ,

and

P(A) = (1

1

) · (42)(8 3

) = 0.11

90 Chapter 2 Probability

Example 2.7.2

An urn contains n red chips numbered 1 through n, n white chips numbered 1 through n, and n blue chips numbered 1 through n (see Figure 2.7.2). Two chips are drawn at random and without replacement. What is the probability that the two drawn are either the same color or the same number?

Draw two

without replacement

r1

rn

r2

w1

wn

w2

b1

bn

b2

Figure 2.7.2

Let A be the event that the two chips drawn are the same color; let B be the event that they have the same number. We are looking for P(A ∪ B).

Since A and B here are mutually exclusive,

P(A ∪ B) = P(A) + P(B) With 3n chips in the urn, the total number of ways to draw an unordered sample of

size 2 is (

3n 2

) . Moreover,

P(A) = P(2 reds ∪ 2 whites ∪ 2 blues) = P(2 reds) + P(2 whites) + P(2 blues)

= 3 (n

2

) /(3n 2

) and

P(B) = P(two 1’s ∪ two 2’s ∪ · · · ∪ two n’s)

= n (

3 2

) / (3n 2

) Therefore,

P(A ∪ B) = 3

(n 2

) + n

( 3 2

) (

3n 2

)

= n + 1 3n − 1

Example 2.7.3

Twelve fair dice are rolled. What is the probability that

a. the first six dice all show one face and the last six dice all show a second face?

b. not all the faces are the same?

c. each face appears exactly twice?

a. The sample space that corresponds to the “experiment” of rolling twelve dice is the set of ordered sequences of length twelve, where the outcome at every position in the sequence is one of the integers 1 through 6. If the dice are fair, all 612 such sequences are equally likely.

Section 2.7 Combinatorial Probability 91

Let A be the set of rolls where the first six dice show one face and the second six show another face. Figure 2.7.3 shows one of the sequences in the event A. Clearly, the face that appears for the first half of the sequence could be any of the six integers from 1 through 6.

Faces 2 2 2 2 2 2 4 4 4 4 4 4

1 2 3 4 5 6 7 8 9 10 11 12 Position in sequence

Figure 2.7.3

Five choices would be available for the last half of the sequence (since the two faces cannot be the same). The number of sequences in the event A, then, is 6P2 = 6 · 5 = 30. Applying the “m/n” rule gives

P(A) = 30/612 = 1.4 × 10−8

b. Let B be the event that not all the faces are the same. Then

P(B) = 1 − P(BC) = 1 − 6/126

since there are six sequences—(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,), . . ., (6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,)—where the twelve faces are all the same.

c. Let C be the event that each face appears exactly twice. From Theorem 2.6.2, the number of ways each face can appear exactly twice is 12!/(2! · 2! · 2! · 2! · 2! · 2!). Therefore,

P(C) = 12!/(2! · 2! · 2! · 2! · 2! · 2!) 612

= 0.0034

Example 2.7.4

A fair die is tossed n times. What is the probability that the sum of the faces showing is n + 2?

The sample space associated with rolling a die n times has 6n outcomes, all of which in this case are equally likely because the die is presumed fair. There are two “types” of outcomes that will produce a sum of n + 2: (a) n − 1 1’s and one 3 and (b) n − 2 1’s and two 2’s (see Figure 2.7.4). By Theorem 2.6.2 the number of sequences having n − 1 1’s and one 3 is n!1!(n−1)! = n; likewise, there are n!2!(n−2)! =

( n 2

) outcomes

having n − 2 1’s and two 2’s. Therefore,

P(sum = n + 2) = n + (n

2

) 6n

1 1

1 2

1 3

1 n – 1

3 n

Sum = n + 2

1 1

1 2

1 3

1 n – 2

2 n – 1

2 n

Sum = n + 2

Figure 2.7.4

92 Chapter 2 Probability

Example 2.7.5

Two monkeys, Mickey and Marian, are strolling along a moonlit beach when Mickey sees an abandoned Scrabble set. Investigating, he notices that some of the letters are missing, and what remain are the following fifty-nine tiles:

A B C D E F G H I J K L M 4 1 2 2 7 1 1 3 5 0 3 5 1

N O P Q R S T U V W X Y Z 3 2 0 0 2 8 4 2 0 1 0 2 0

Mickey, being of a romantic bent, would like to impress Marian, so he rearranges the letters hoping to spell something endearing. For some unknown reason, Marian can read, but Mickey is dumb as dirt, so all he can do is scramble the fifty-nine tiles at random and hope for the best. What is the probability he gets lucky and spells out

She walks in beauty, like the night Of cloudless climes and starry skies

As we might imagine, Mickey would have to get very lucky. The total number of ways to permute fifty-nine letters—four A’s, one B, two C’s, and so on—is a direct application of Theorem 2.6.2:

59! 4!1!2! . . . 2!0!

But of that number of ways, only one is the couplet he is hoping for. So, since he is ar- ranging the letters randomly, making all permutations equally likely, the probability of his spelling out Byron’s lines is

1 59!

4!1!2! . . . 2!0!

or, using Stirling’s formula, about 1.7×10−61. Love may conquer all, but it won’t beat those odds: Mickey would be well advised to start working on Plan B.

Example 2.7.6

Suppose k people are selected at random. What are the chances that at least two of those k were born on the same day of the year? Known as the birthday problem, this is a particularly intriguing example of combinatorial probability because its statement is so simple, its analysis is straightforward, yet its solution is strongly contrary to our intuition.

Picture the k individuals lined up in a row to form an ordered sequence. If leap year is omitted, each person might have any of 365 birthdays. By the multiplication rule, the group as a whole generates a sample space of 365k birthday sequences (see Figure 2.7.5).

(365) 1

(365) 2

(365) k

Person

Possible birthdays: 365 k different

sequences

Figure 2.7.5

Define A to be the event “At least two people have the same birthday.” If each person is assumed to have the same chance of being born on any given day, the 365k

sequences in Figure 2.7.5 are equally likely, and

P(A) = number of sequences in A 365k

Section 2.7 Combinatorial Probability 93

Counting the number of sequences in the numerator here is prohibitively diffi- cult because of the complexity of the event A; fortunately, counting the number of sequences in Ac is quite easy. Notice that each birthday sequence in the sample space belongs to exactly one of two categories (see Figure 2.7.6):

1. At least two people have the same birthday.

2. All k people have different birthdays.

(July 13, Sept. 2, , July 13) • (April 4, April 4, , Aug. 17) •

Sequences where at least two people have the same birthday

(June 14, Jan. 10, , Oct. 28) • (Aug. 10, March 1, , Sept. 8) •

A

Ac

Sequences where all k people have different birthdays

Sample space: all birthday sequences of length k (contains 365k outcomes).

Figure 2.7.6

It follows that

number of sequences in A = 365k − number of sequences where all k people have different birthdays

The number of ways to form birthday sequences for k people subject to the re- striction that all k birthdays must be different is simply the number of ways to form permutations of length k from a set of 365 distinct objects:

365Pk = 365(364) · · · (365 − k + 1) Therefore,

P(A) = P(At least two people have the same birthday)

= 365 k − 365(364) · · · (365 − k + 1)

365k

Table 2.7.1 shows P(A) for k values of 15, 22, 23, 40, 50, and 70. Notice how the P(A)’s greatly exceed what our intuition would suggest.

Table 2.7.1

k P(A) = P (At least two have same birthday) 15 0.253 22 0.476 23 0.507 40 0.891 50 0.970 70 0.999

Comment The values for P(A) in Table 2.7.1 are actually slight underestimates for the true probabilities that at least two of k people will be born on the same day. The assumption made earlier that all 365k birthday sequences are equally likely is not

94 Chapter 2 Probability

entirely correct: Births are somewhat more common during the summer than they are during the winter. It has been proven, though, that any sort of deviation from the equally likely model will serve only to increase the chances that two or more people will share the same birthday. So, if k = 40, for example, the probability is slightly greater than 0.891 that at least two were born on the same day.

Comment Presidential biographies offer one opportunity to “confirm” the unex- pectedly large values that Table 2.7.1 gives for P(A). Among our first k = 40 presi- dents, two did have the same birthday: Harding and Polk were both born on Novem- ber 2. More surprising, though, are the death dates of the presidents: John Adams, Jefferson, and Monroe all died on July 4, and Fillmore and Taft both died on March 8.

Example 2.7.7

One of the more instructive—and to some, one of the more useful—applications of combinatorics is the calculation of probabilities associated with various poker hands. It will be assumed in what follows that five cards are dealt from a poker deck and that no other cards are showing, although some may already have been dealt. The sample space is the set of

(52 5

) = 2,598,960 different hands, each having probability 1/2,598,960. What are the chances of being dealt (a) a full house, (b) one pair, and (c) a straight? [Probabilities for the various other kinds of poker hands (two pairs, three-of-a-kind, flush, and so on) are gotten in much the same way.]

a. Full house. A full house consists of three cards of one denomination and two of another. Figure 2.7.7 shows a full house consisting of three 7’s and two queens. Denominations for the three-of-a-kind can be chosen in

(13 1

) ways. Then, given that

a denomination has been decided on, the three requisite suits can be selected in (4

3

) ways. Applying the same reasoning to the pair gives

(12 1

) available denominations,

each having (4

2

) possible choices of suits. Thus, by the multiplication rule,

P(full house) =

( 13 1

)( 4 3

)( 12 1

)( 4 2

) (

52 5

) = 0.00144 2 3 4 5 6 7 8 9 10 J Q K A

D H × × C × S × ×

Figure 2.7.7

b. One pair. To qualify as a one-pair hand, the five cards must include two of the same denomination and three “single” cards—cards whose denominations match neither the pair nor each other. Figure 2.7.8 shows a pair of 6’s. For the pair, there are

(13 1

) possible denominations and, once selected,

(4 2

) possible

suits. Denominations for the three single cards can be chosen (12

3

) ways (see

Question 2.7.16), and each card can have any of (4

1

) suits. Multiplying these fac-

tors together and dividing by (52

2

) gives a probability of 0.42:

P(one pair) =

( 13 1

)( 4 2

)( 12 3

)( 4 1

)( 4 1

)( 4 1

) (

52 5

) = 0.42

Section 2.7 Combinatorial Probability 95

2 3 4 5 6 7 8 9 10 J Q K A

D × × H × × C × S

Figure 2.7.8

c. Straight. A straight is five cards having consecutive denominations but not all in the same suit—for example, a 4 of diamonds, 5 of hearts, 6 of hearts, 7 of clubs, and 8 of diamonds (see Figure 2.7.9). An ace may be counted “high” or “low,” which means that (10, jack, queen, king, ace) is a straight and so is (ace, 2, 3, 4, 5). (If five consecutive cards are all in the same suit, the hand is called a straight flush. The latter is considered a fundamentally different type of hand in the sense that a straight flush “beats” a straight.) To get the numerator for P(straight), we will first ignore the condition that all five cards not be in the same suit and simply count the number of hands having consecutive denominations. Note there are ten sets of consecutive denominations of length five: (ace, 2, 3, 4, 5), (2, 3, 4, 5, 6), . . ., (10, jack, queen, king, ace). With no restrictions on the suits, each card can be either a diamond, heart, club, or spade. It follows, then, that the number of

five-card hands having consecutive denominations is 10 · (41)5. But forty (= 10 ·4) of those hands are straight flushes. Therefore,

P(straight) = 10 ·

( 4 1

)5 − 40(

52 5

) = 0.00392 Table 2.7.2 shows the probabilities associated with all the different poker hands. Hand i beats hand j if P(hand i) < P(hand j).

2 3 4 5 6 7 8 9 10 J Q K A

D × × H × × C × S

Figure 2.7.9

Table 2.7.2

Hand Probability

One pair 0.42 Two pairs 0.048 Three-of-a-kind 0.021 Straight 0.0039 Flush 0.0020 Full house 0.0014 Four-of-a-kind 0.00024 Straight flush 0.000014 Royal flush 0.0000015

96 Chapter 2 Probability

Example 2.7.8

A somewhat inebriated conventioneer finds himself in the embarrassing position of being unable to discern whether he is walking forward or backward—or, what is worst, to predict in which of those directions his next step will be. If he is equally likely to walk forward or backward, what is the probability that after hazarding n such maneuvers, he will have moved forward a distance of r steps?

Let x denote the number of steps he takes forward and y denote the number backward. Then

x + y = n and

x − y = r Solving these equations simultaneously, we get x = (n+r)/2 and y = (n−r)/2. Thus, out of the 2n total ways he can take n steps, the number of permutations for which he ends up r steps forward is n!

/[( n+r 2

) ! ( n−r

2

) ! ]

(recall Theorem 2.6.2). The probability that he shows a net advance of r steps is the quotient(

n n + r

2

)

2n

Comment Example 2.7.8 is describing a one-dimensional random walk problem. Over the years, the mathematical properties of random walks in various numbers of dimensions have been a useful tool for modeling such disparate phenomena as Brownian motion, the movements of individual animals and populations of animals, and daily fluctuations in the stock market. The term random walk was coined in 1905 by the renowned British statistician, Karl Pearson.

Example 2.7.9

To a purist, buying a LOTTO ticket at your local supermarket is not quite the gam- bling equivalent of playing a round of Texas Hold’Em in some smoke-filled road- house, but there is no denying that the amount of money spent on lotteries each year (estimated to be upwards of $50 billion in the United States alone) is major-league. And to be fair, lotteries do have an interesting history that goes back thousands of years, long before the first poker game was ever played. Evidence suggests that lot- teries helped finance the building of the Great Wall of China. Closer to home, the first permanent English settlement on the North American continent–Jamestown, founded in 1607–was funded by the Virginia Company of London, a group of in- vestors who acquired the rights to sponsor the expedition by winning a lottery.

In recent years, one of the most popular versions of “drawing lots” has been Powerball. For the price of a ticket, a player gets to pick five (distinct) numbers from the integers 1 through 59 and one additional number from the integers 1 through 35. Then at a regularly-scheduled time, five white balls are drawn from a drum containing fifty-nine balls, numbered 1 through 59, and a sixth selection (the Powerball) is drawn from a second drum containing thirty-five balls, numbered 1 through 35. If and how much a player wins depends on the nature of the matches between the ticket numbers picked and the balls actually drawn.

For example, the fourth prize is worth $100 and awarded to anyone whose ticket correctly matches four of the five white balls but not the Powerball. Calculating the probability of that happening is a straightforward exercise in applying the multipli- cation rule to the numbers of ways to form various combinations. Since(

59 5

) = number of ways to choose five white balls from the first drum

Section 2.7 Combinatorial Probability 97

and ( 35 1

) = number of ways to choose a Powerball from the second drum

the product ( 595 )( 35 1 ) = 175, 223, 510 is the total number of (equally-likely) outcomes

possible in a LOTTO drawing. Your particular ticket has the potential to (1) match exactly four of the white balls drawn in ( 54 ) = 5 different ways, (2) not match the fifth white ball in ( 541 ) = 54 different ways and (3) not match the Powerball in ( 341 ) = 34 different ways. The probability, then, that your ticket will win the $100 prize is the ratio (

5 4

) ( 54 1

) ( 34 1

) [( 59 5

) ( 35 1

)] = 9180/175,223,510 = 0.00005239/

The entire set of winning combinations, associated probabilities, and payoffs are listed in Table 2.7.3. Adding the entries in the middle column would show that your probability of winning something is 0.0314.

Table 2.7.3

Winning Pick Probability Payoff

1. Match all five white balls and Powerball [( 55 )( 1 1 )]/[(

59 5 )(

35 1 )] Depends on the

number of winners 2. Match all five white balls but not Powerball [( 55 )(

34 1 )]/[(

59 5 )(

35 1 )] $1,000,000

3. Match four white balls and Powerball [( 54 )( 54 1 )(

1 1 )]/[(

59 5 )(

35 1 )] $10,000

4. Match four white balls but not Powerball [( 54 )( 54 1 )(

34 1 )]/[(

59 5 )(

35 1 )] $100

5. Match three white balls and Powerball [( 53 )( 54 2 )(

1 1 )]/[(

59 5 )(

35 1 )] $100

6. Match three white balls but not Powerball [( 53 )( 54 2 )(

34 1 )]/[(

59 5 )(

35 1 )] $7

7. Match two white balls and Powerball [( 52 )( 54 3 )(

1 1 )]/[(

59 5 )(

35 1 )] $7

8. Match one white ball and Powerball [( 51 )( 54 4 )(

1 1 )]/[(

59 5 )(

35 1 )] $4

9. Match zero white balls and Powerball [( 50 )( 54 5 )(

1 1 )]/[(

59 5 )(

35 1 )] $4

Comment While the six numbers drawn in Powerball are random, records show that the six numbers picked by ticket-buyers are not random. Why? Because Power- ball players have a tendency to bet on their birthdays, which results in their entries tending to have smaller digits and be disproportionately over-represented (and du- plicated) in the population of all possible entries. Does that matter? It depends. If one ticket or one hundred thousand tickets qualify for the fourth prize, for example, each of those players will still receive $100. But if n players qualify for the jackpot, each will receive only l/nth of the jackpot money. So, unless you feel a burning desire to be magnanimous and share your possible (albeit highly improbable) multi-millions of dollars of jackpot winnings with total strangers, betting on your birthday is a bad idea.

Problem-Solving Hints

(Doing combinatorial probability problems)

Listed on p. 70 are several hints that can be helpful in counting the number of ways to do something. Those same hints apply to the solution of combinatorial probability problems, but a few others should be kept in mind as well.

(Continued on next page)

98 Chapter 2 Probability

(Continued)

1. The solution to a combinatorial probability problem should be set up as a quotient of numerator and denominator enumerations. Avoid the tempta- tion to multiply probabilities associated with each position in the sequence. The latter approach will always “sound” reasonable, but it will frequently oversimplify the problem and give the wrong answer.

2. Keep the numerator and denominator consistent with respect to order—if permutations are being counted in the numerator, be sure that permutations are being counted in the denominator; likewise, if the outcomes in the numerator are combinations, the outcomes in the denominator must also be combinations.

3. The number of outcomes associated with any problem involving the rolling of n six-sided dice is 6n; similarly, the number of outcomes associated with tossing a coin n times is 2n. The number of outcomes associated with dealing a hand of n cards from a standard fifty-two-card poker deck is 52Cn.

Questions

2.7.1. Ten equally qualified marketing assistants are can- didates for promotion to associate buyer; seven are men and three are women. If the company intends to promote four of the ten at random, what is the probability that exactly two of the four are women?

2.7.2. An urn contains six chips, numbered 1 through 6. Two are chosen at random and their numbers are added together. What is the probability that the resulting sum is equal to 5?

2.7.3. An urn contains twenty chips, numbered 1 through 20. Two are drawn simultaneously. What is the probability that the numbers on the two chips will differ by more than 2?

2.7.4. A bridge hand (thirteen cards) is dealt from a stan- dard fifty-two-card deck. Let A be the event that the hand contains four aces; let B be the event that the hand con- tains four kings. Find P(A ∪ B). 2.7.5. Consider a set of ten urns, nine of which contain three white chips and three red chips each. The tenth con- tains five white chips and one red chip. An urn is picked at random. Then a sample of size 3 is drawn without replace- ment from that urn. If all three chips drawn are white, what is the probability that the urn being sampled is the one with five white chips?

2.7.6. A committee of fifty politicians is to be chosen from among our one hundred U.S. senators. If the selection is done at random, what is the probability that each state will be represented?

2.7.7. Suppose that n fair dice are rolled. What are the chances that all n faces will be the same?

2.7.8. Five fair dice are rolled. What is the probability that the faces showing constitute a “full house”—that is, three faces show one number and two faces show a second number?

2.7.9. Imagine that the test tube pictured contains 2n grains of sand, n white and n black. Suppose the tube is vigorously shaken. What is the probability that the two colors of sand will completely separate; that is, all of one color fall to the bottom, and all of the other color lie on top? (Hint: Consider the 2n grains to be aligned in a row. In how many ways can the n white and the n black grains be permuted?)

2.7.10. Does a monkey have a better chance of rearranging

AC C L LU U S to spell C A LC U LU S

or

A A B E G L R to spell A L G E B R A?

2.7.11. An apartment building has eight floors. If seven people get on the elevator on the first floor, what is the probability they all want to get off on different floors? On the same floor? What assumption are you making? Does it seem reasonable? Explain.

2.7.12. If the letters in the phrase

A R O L L I N G S T O N E G A T H E R S N O M O S S

are arranged at random, what are the chances that not all the S’s will be adjacent?

2.7.13. Suppose each of ten sticks is broken into a long part and a short part. The twenty parts are arranged into ten pairs and glued back together so that again there are ten sticks. What is the probability that each long part will be paired with a short part? (Note: This problem is a model for the effects of radiation on a living cell. Each

Section 2.8 Taking a Second Look at Statistics (Monte Carlo Techniques) 99

chromosome, as a result of being struck by ionizing radi- ation, breaks into two parts, one part containing the cen- tromere. The cell will die unless the fragment containing the centromere recombines with a fragment not contain- ing a centromere.)

2.7.14. Six dice are rolled one time. What is the probability that each of the six faces appears?

2.7.15. Suppose that a randomly selected group of k peo- ple are brought together. What is the probability that exactly one pair has the same birthday?

2.7.16. For one-pair poker hands, why is the number of denominations for the three single cards

(12 3

) rather than(12

1

)(11 1

)(10 1

) ?

2.7.17. Dana is not the world’s best poker player. Dealt a 2 of diamonds, an 8 of diamonds, an ace of hearts, an ace of clubs, and an ace of spades, she discards the three aces. What are her chances of drawing to a flush?

2.7.18. A poker player is dealt a 7 of diamonds, a queen of diamonds, a queen of hearts, a queen of clubs, and an ace of hearts. He discards the 7. What is his probability of drawing to either a full house or four-of-a-kind?

2.7.19. Tim is dealt a 4 of clubs, a 6 of hearts, an 8 of hearts, a 9 of hearts, and a king of diamonds. He discards the 4

and the king. What are his chances of drawing to a straight flush? To a flush?

2.7.20. Five cards are dealt from a standard 52-card deck. What is the probability that the sum of the faces on the five cards is 48 or more?

2.7.21. Nine cards are dealt from a 52-card deck. Write a formula for the probability that three of the five even nu- merical denominations are represented twice, one of the three face cards appears twice, and a second face card appears once. (Note: Face cards are the jacks, queens, and kings; 2, 4, 6, 8, and 10 are the even numerical denominations.)

2.7.22. A coke hand in bridge is one where none of the thirteen cards is an ace or is higher than a 9. What is the probability of being dealt such a hand?

2.7.23. A pinochle deck has forty-eight cards, two of each of six denominations (9, J, Q, K, 10, A) and the usual four suits. Among the many hands that count for meld is a roundhouse, which occurs when a player has a king and queen of each suit. In a hand of twelve cards, what is the probability of getting a “bare” roundhouse (a king and queen of each suit and no other kings or queens)?

2.8 Taking a Second Look at Statistics (Monte Carlo Techniques)

Recall the von Mises definition of probability given on p. 16. If an experiment is repeated n times under identical conditions, and if the event E occurs on m of those repetitions, then

P(E) = lim n→∞

m n

(2.8.1)

To be sure, Equation 2.8.1 is an asymptotic result, but it suggests an obvious (and very useful) approximation—if n is finite,

P(E) .= m n

In general, efforts to estimate probabilities by simulating repetitions of an ex- periment (usually with a computer) are referred to as Monte Carlo studies. Usually the technique is used in situations where an exact probability is difficult to calculate. It can also be used, though, as an empirical justification for choosing one proposed solution over another.

For example, consider the game described in Example 2.4.10. An urn contains a red chip, a blue chip, and a two-color chip (red on one side, blue on the other). One chip is drawn at random and placed on a table. The question is, if blue is showing, what is the probability that the color underneath is also blue?

Pictured in Figure 2.8.1 are two ways of conceptualizing the question just posed. The outcomes in (a) are assuming that a chip was drawn. Starting with that premise,

100 Chapter 2 Probability

the answer to the question is 12 —the red chip is obviously eliminated and only one of the two remaining chips is blue on both sides.

Chip drawn

red blue

two-color

Side drawn

red/red blue/blue red/blue

P(B|B) = 1/2 P(B|B) = 2/3

(a) (b)

Figure 2.8.1

By way of contrast, the outcomes in (b) are assuming that the side of a chip was drawn. If so, the blue color showing could be any of three blue sides, two of which are blue underneath. According to model (b), then, the probability of both sides being blue is 23 .

The formal analysis on p. 43, of course, resolves the debate—the correct answer is 23 . But suppose that such a derivation was unavailable. How might we assess the relative plausibilities of 12 and

2 3 ? The answer is simple—just play the game a

number of times and see what proportion of outcomes that show blue on top have blue underneath.

To that end, Table 2.8.1 summarizes the results of one hundred random drawings. For a total of fifty-two trials, blue was showing (S) when the chip was placed on a

Table 2.8.1

Trial # S U Trial # S U Trial # S U Trial # S U

1 R B 26 B R 51 B R 76 B B* 2 B B* 27 R R 52 R B 77 B B* 3 B R 28 R B 53 B B* 78 R R 4 R R 29 R B 54 R B 79 B B* 5 R B 30 R R 55 R R 80 R R 6 R B 31 R B 56 R B 81 R B 7 R R 32 B B* 57 R R 82 R B 8 R R 33 R B 58 B B* 83 R R 9 B B* 34 B B* 59 B R 84 B R

10 B R 35 B B* 60 B B* 85 B R 11 R R 36 R R 61 B R 86 R R 12 B B* 37 B R 62 R B 87 B B* 13 R R 38 B B* 63 R R 88 R B 14 B R 39 R R 64 R R 89 B R 15 B B* 40 B B* 65 B B* 90 R R 16 B B* 41 B B* 66 B R 91 R B 17 R B 42 B R 67 R R 92 R R 18 B R 43 B B* 68 B B* 93 R R 19 B B* 44 B B* 69 B B* 94 R B 20 B B* 45 B B* 70 R R 95 B B* 21 R R 46 R R 71 R R 96 B B* 22 R R 47 B B* 72 B B* 97 B R 23 B B* 48 B B* 73 R B 98 R R 24 B R 49 R R 74 R R 99 B B* 25 B B* 50 R R 75 B B* 100 B B*

Section 2.8 Taking a Second Look at Statistics (Monte Carlo Techniques) 101

table; for thirty-six of the trials (those marked with an asterisk), the color underneath (U) was also blue. Using the approximation suggested by Equation 2.8.1,

P(Blue is underneath | Blue is on top) = P(B | B) .= 36 52

= 0.69

a figure much more consistent with 23 than with 1 2 .

The point of this example is not to downgrade the importance of rigorous deriva- tions and exact answers. Far from it. The application of Theorem 2.4.1 to solve the problem posed in Example 2.4.10 is obviously superior to the Monte Carlo approximation illustrated in Table 2.8.1. Still, replications of experiments can of- ten provide valuable insights and call attention to nuances that might otherwise go unnoticed.

Chapte r

3Random Variables CHAPTER OUTLINE

3.1 Introduction 3.2 Binomial and

Hypergeometric Probabilities

3.3 Discrete Random Variables

3.4 Continuous Random Variables

3.5 Expected Values 3.6 The Variance 3.7 Joint Densities 3.8 Transforming and

Combining Random Variables

3.9 Further Properties of the Mean and Variance

3.10 Order Statistics 3.11 Conditional Densities 3.12 Moment-Generating

Functions 3.13 Taking a Second

Look at Statistics (Interpreting Means)

One of a Swiss family producing eight distinguished scientists, Jakob (Jacques) Bernoulli (1654–1705) was forced by his father to pursue theological studies, but his love of mathematics eventually led him to a university career. He and his brother, Johann, were the most prominent champions of Leibniz’s calculus on continental Europe, the two using the new theory to solve numerous problems in physics and mathematics. Bernoulli’s main work in probability, Ars Conjectandi, was published after his death by his nephew, Nikolaus, in 1713.

3.1 INTRODUCTION Throughout Chapter 2, probabilities were assigned to events—that is, to sets of sam- ple outcomes. The events we dealt with were composed of either a finite or a count- ably infinite number of sample outcomes, in which case the event’s probability was simply the sum of the probabilities assigned to its outcomes. One particular proba- bility function that came up over and over again in Chapter 2 was the assignment of 1 n as the probability associated with each of the n points in a finite sample space. This is the model that typically describes games of chance (and all of our combinatorial probability problems in Chapter 2).

The first objective of this chapter is to look at several other useful ways for as- signing probabilities to sample outcomes. In so doing, we confront the desirability of “redefining” sample spaces using functions known as random variables. How and why these are used—and what their mathematical properties are—become the focus of virtually everything covered in Chapter 3.

As a case in point, suppose a medical researcher is testing eight elderly adults for their allergic reaction (yes or no) to a new drug for controlling blood pressure. One of the 28 = 256 possible sample points would be the sequence (yes, no, no, yes, no, no, yes, no), signifying that the first subject had an allergic reaction, the second did not, the third did not, and so on. Typically, in studies of this sort, the particular subjects experiencing reactions is of little interest: what does matter is the number who show a reaction. If that were true here, the outcome’s relevant information (i.e., the number of allergic reactions) could be summarized by the number 3.1

Suppose X denotes the number of allergic reactions among a set of eight adults. Then X is said to be a random variable and the number 3 is the value of the random variable for the outcome (yes, no, no, yes, no, no, yes, no).

1 By Theorem 2.6.2, of course, there would be a total of fifty-six (= 8!/3!5!) outcomes having exactly three yeses. All fifty-six would be equivalent in terms of what they imply about the drug’s likelihood of causing allergic reactions.

102

Section 3.2 Binomial and Hypergeometric Probabilities 103

In general, random variables are functions that associate numbers with some at- tribute of a sample outcome that is deemed to be especially important. If X denotes the random variable and s denotes a sample outcome, then X (s) = t, where t is a real number. For the allergy example, s = (yes, no, no, yes, no, no, yes, no) and t = 3.

Random variables can often create a dramatically simpler sample space. That certainly is the case here—the original sample space has 256 (= 28) outcomes, each being an ordered sequence of length eight. The random variable X , on the other hand, has only nine possible values, the integers from 0 to 8, inclusive.

In terms of their fundamental structure, all random variables fall into one of two broad categories, the distinction resting on the number of possible values the random variable can equal. If the latter is finite or countably infinite (which would be the case with the allergic reaction example), the random variable is said to be discrete; if the outcomes can be any real number in a given interval, the number of possibilities is uncountably infinite, and the random variable is said to be continuous. The difference between the two is critically important, as we will learn in the next several sections.

The purpose of Chapter 3 is to introduce the important definitions, concepts, and computational techniques associated with random variables, both discrete and continuous. Taken together, these ideas form the bedrock of modern probability and statistics.

3.2 Binomial and Hypergeometric Probabilities This section looks at two specific probability scenarios that are especially important, both for their theoretical implications as well as for their ability to describe real-world problems. What we learn in developing these two models will help us understand random variables in general, the formal discussion of which begins in Section 3.3.

THE BINOMIAL PROBABILITY DISTRIBUTION

Binomial probabilities apply to situations involving a series of independent and iden- tical trials, where each trial can have only one of two possible outcomes. Imagine three distinguishable coins being tossed, each having a probability p of coming up heads. The set of possible outcomes are the eight listed in Table 3.2.1. If the proba- bility of any of the coins coming up heads is p, then the probability of the sequence (H, H, H) is p3, since the coin tosses qualify as independent trials. Similarly, the probability of (T, H, H) is (1 − p)p2. The fourth column of Table 3.2.1 shows the probabilities associated with each of the three-coin sequences.

Table 3.2.1

1st Coin 2nd Coin 3rd Coin Probability Number of Heads

H H H p3 3 H H T p2(1 − p) 2 H T H p2(1 − p) 2 T H H p2(1 − p) 2 H T T p(1 − p)2 1 T H T p(1 − p)2 1 T T H p(1 − p)2 1 T T T (1 − p)3 0

Suppose our main interest in the coin tosses is the number of heads that oc- cur. Whether the actual sequence is, say, (H, H, T) or (H, T, H) is immaterial, since

104 Chapter 3 Random Variables

each outcome contains exactly two heads. The last column of Table 3.2.1 shows the number of heads in each of the eight possible outcomes. Notice that there are three outcomes with exactly two heads, each having an individual probability of p2(1 − p). The probability, then, of the event “two heads” is the sum of those three individual probabilities—that is, 3p2(1− p). Table 3.2.2 lists the probabilities of tossing k heads, where k = 0, 1, 2, or 3.

Table 3.2.2

Number of Heads Probability

0 (1 − p)3 1 3p(1 − p)2 2 3p2(1 − p) 3 p3

Now, more generally, suppose that n coins are tossed, in which case the number of heads can equal any integer from 0 through n. By analogy,

P(k heads) = ⎛ ⎝ number ofways to arrange k

heads and n − k tails

⎞ ⎠ ·

⎛ ⎜⎜⎝

probability of any particular sequence

having k heads and n − k tails

⎞ ⎟⎟⎠

= ⎛ ⎝ number of waysto arrange k

heads and n − k tails

⎞ ⎠ · pk(1 − p)n−k

The number of ways to arrange k H’s and n − k T’s, though, is n!k!(n−k)! , or (n

k

) (recall

Theorem 2.6.2).

Theorem 3.2.1

Consider a series of n independent trials, each resulting in one of two possible out- comes, “success” or “failure.” Let p = P (success occurs at any given trial) and assume that p remains constant from trial to trial. Then

P(k successes) = (n

k

) pk(1 − p)n−k, k = 0, 1, . . . , n

Comment The probability assignment given by the equation in Theorem 3.2.1 is known as the binomial distribution.

Example 3.2.1

In communications of various kinds, a sent message may not be received correctly be- cause the communications channel is “noisy.” In particular, a bit transmitted might be changed with probability p. One method of coping with this problem is to send the bit five times, then use the majority of these five received bits as the intended message. Under this scheme, what is the probability that the message is received correctly?

The five bits received form a sequence of five Bernoulli trials with probability p that the bit is changed (success). Then the message is received correctly if the number of changed bits (successes) is 0, 1, or 2. The probability of this is

2∑ k=0

( 5 k

) pk(1 − p)5−k

The following chart gives values of this sum for some choices for p.

Section 3.2 Binomial and Hypergeometric Probabilities 105

p Probability

0.01 0.99999 0.05 0.99884 0.10 0.99144 0.15 0.97339

Example 3.2.2

Kingwest Pharmaceuticals is experimenting with a new affordable AIDS medica- tion, PM-17, that may have the ability to strengthen a victim’s immune system. Thirty monkeys infected with the HIV complex have been given the drug. Researchers in- tend to wait six weeks and then count the number of animals whose immunological responses show a marked improvement. Any inexpensive drug capable of being ef- fective 60% of the time would be considered a major breakthrough; medications whose chances of success are 50% or less are not likely to have any commercial potential.

Yet to be finalized are guidelines for interpreting results. Kingwest hopes to avoid making either of two errors: (1) rejecting a drug that would ultimately prove to be marketable and (2) spending additional development dollars on a drug whose effectiveness, in the long run, would be 50% or less. As a tentative “decision rule,” the project manager suggests that unless sixteen or more of the monkeys show im- provement, research on PM-17 should be discontinued.

a. What are the chances that the “sixteen or more” rule will cause the company to reject PM-17, even if the drug is 60% effective?

b. How often will the “sixteen or more” rule allow a 50%-effective drug to be per- ceived as a major breakthrough?

a. Each of the monkeys is one of n = 30 independent trials, where the out- come is either a “success” (Monkey’s immune system is strengthened) or a “failure” (Monkey’s immune system is not strengthened). By assumption, the probability that PM-17 produces an immunological improvement in any given monkey is p = P (success) = 0.60.

By Theorem 3.2.1, the probability that exactly k monkeys (out of thirty)

will show improvement after six weeks is (

30 k

) (0.60)k(0.40)30−k. The proba-

bility, then, that the “sixteen or more” rule will cause a 60%-effective drug to be discarded is the sum of “binomial” probabilities for k values ranging from 0 to 15:

P(60%-effective drug fails “sixteen or more” rule) = 15∑

k=0

( 30 k

) (0.60)k(0.40)30−k

= 0.1754

Roughly 18% of the time, in other words, a “breakthrough” drug such as PM-17 will produce test results so mediocre (as measured by the “sixteen or more” rule) that the company will be misled into thinking it has no potential.

b. The other error Kingwest can make is to conclude that PM-17 warrants fur- ther study when, in fact, its value for p is below a marketable level. The chance that particular incorrect inference will be drawn here is the probability that

106 Chapter 3 Random Variables

the number of successes will be greater than or equal to sixteen when p = 0.5. That is,

P(50%-effective PM-17 appears to be marketable)

= P(Sixteen or more successes occur)

= 30∑

k=16

( 30 k

) (0.5)k(0.5)30−k

= 0.43 Thus, even if PM-17’s success rate is an unacceptably low 50%, it has a 43%

chance of performing sufficiently well in thirty trials to satisfy the “sixteen or more” criterion.

Example 3.2.3

The Stanley Cup playoff in professional hockey is a seven-game series, where the first team to win four games is declared the champion. The series, then, can last any- where from four to seven games (just like the World Series in baseball). Calculate the likelihoods that the series will last four, five, six, or seven games. Assume that (1) each game is an independent event and (2) the two teams are evenly matched.

Consider the case where Team A wins the series in six games. For that to happen, they must win exactly three of the first five games and they must win the sixth game. Because of the independence assumption, we can write

P(Team A wins in six games) = P(Team A wins three of first five) · P(Team A wins sixth)

= [(

5 3

) (0.5)3(0.5)2

] · (0.5) = 0.15625

Since the probability that Team B wins the series in six games is the same (why?),

P(Series ends in six games) = P(Team A wins in six games ∪ Team B wins in six games)

= P(A wins in six) + P(B wins in six) (why?) = 0.15625 + 0.15625 = 0.3125

A similar argument allows us to calculate the probabilties of four-, five-, and seven- game series:

P(four-game series) = 2(0.5)4 = 0.125

P(five-game series) = 2 [(

4 3

) (0.5)3(0.5)

] (0.5) = 0.25

P(seven-game series) = 2 [(

6 3

) (0.5)3(0.5)3

] (0.5) = 0.3125

Having calculated the “theoretical” probabilities associated with the possible lengths of a Stanley Cup playoff raises an obvious question: How do those likelihoods compare with the actual distribution of playoff lengths? Between 1947 and 2015 there were sixty-eight playoffs (the 2004–05 season was cancelled). Column 2 in Table 3.2.3 shows the proportion of playoffs that have lasted four, five, six, and seven games, respectively.

Section 3.2 Binomial and Hypergeometric Probabilities 107

Table 3.2.3

Series Length Observed Proportion Theoretical Probability

4 17/68 = 0.250 0.125 5 16/68 = 0.235 0.250 6 21/68 = 0.309 0.3125 7 14/68 = 0.206 0.3125

Data from: http://statshockey.homestead.com/trophies/stanleycup.html

Clearly, the agreement between the entries in columns 2 and 3 is not very good: Particularly noticeable is the excess of short playoffs (four games) and the deficit of long playoffs (seven games). What this “lack of fit” suggests is that one or more of the binomial distribution assumptions is not satisfied. Consider, for example, the param- eter p, which we assumed to equal 12 . In reality, its value might be something quite different—just because the teams playing for the championship won their respective divisions, it does not necessarily follow that the two are equally good. Indeed, if the two contending teams were frequently mismatched, the consequence would be an increase in the number of short playoffs and a decrease in the number of long play- offs. It may also be the case that momentum is a factor in a team’s chances of winning a given game. If so, the independence assumption implicit in the binomial model is rendered invalid.

Example 3.2.4

A university discovers that its colleges don’t each require a full time technical support person. In fact, it estimates that any one of the ten colleges has only a 0.2 probability of needing a technical support person in any given day. They decide to create a pool of five support personnel to be called upon by the colleges. What is the probability that a college will have to wait on someone to get free?

Assume the needs of the colleges for service are independent. Then the number of support persons needed per day is a sequence of n Bernoulli trials, where a success means that a college needs a technical support person. Here n = 10, and p = 0.2. A group has to wait if the number of “successes” is strictly greater than 5. But the

probability of more than five successes is 10∑

k=6

( 10 k

) (0.2)k(0.8)10−k = 0.006.

In a month, there are approximately two hundred college-days, so typically in only one of those college-days per month will there be some wait time.

Such analyses can easily be modified to observe the effects of other assumptions on n and p. (See Question 3.2.17.)

Questions

3.2.1. An investment analyst has tracked a certain blue- chip stock for the past six months and found that on any given day, it either goes up a point or goes down a point. Furthermore, it went up on 25% of the days and down on 75%. What is the probability that at the close of trading four days from now, the price of the stock will be the same as it is today? Assume that the daily fluctuations are inde- pendent events.

3.2.2. In a nuclear reactor, the fission process is controlled by inserting special rods into the radioactive core to ab- sorb neutrons and slow down the nuclear chain reaction.

When functioning properly, these rods serve as a first- line defense against a core meltdown. Suppose a reac- tor has ten control rods, each operating independently and each having an 0.80 probability of being properly in- serted in the event of an “incident.” Furthermore, suppose that a meltdown will be prevented if at least half the rods perform satisfactorily. What is the probability that, upon demand, the system will fail?

3.2.3. In 2009 a donor who insisted on anonymity gave seven-figure donations to twelve universities. A media report of this generous but somewhat mysterious act

108 Chapter 3 Random Variables

identified that all of the universities awarded had fe- male presidents. It went on to say that with about 23% of U.S. college presidents being women, the probabil- ity of a dozen randomly selected institutions having fe- male presidents is about 1/50,000,000. Is this probability approximately correct?

3.2.4. An entrepreneur owns six corporations, each with more than $10 million in assets. The entrepreneur con- sults the U.S. Internal Revenue Data Book and discovers that the IRS audits 15.3% of businesses of that size. What is the probability that two or more of these businesses will be audited?

3.2.5. The probability is 0.10 that ball bearings in a machine component will fail under certain adverse con- ditions of load and temperature. If a component contain- ing eleven ball bearings must have at least eight of them functioning to operate under the adverse conditions, what is the probability that it will break down?

3.2.6. Suppose that since the early 1950s some ten-thousand independent UFO sightings have been re- ported to civil authorities. If the probability that any sighting is genuine is on the order of one in one hun- dred thousand, what is the probability that at least one of the ten-thousand was genuine?

3.2.7. Doomsday Airlines (“Come Take the Flight of Your Life”) has two dilapidated airplanes, one with two engines, and the other with four. Each plane will land safely only if at least half of its engines are working. Each engine on each aircraft operates independently and each has probability p = 0.4 of failing. Assuming you wish to maximize your survival probability, which plane should you fly on?

3.2.8. Two lighting systems are being proposed for an employee work area. One requires fifty bulbs, each hav- ing a probability of 0.05 of burning out within a month’s time. The second has one hundred bulbs, each with a 0.02 burnout probability. Whichever system is installed will be inspected once a month for the purpose of replac- ing burned-out bulbs. Which system is likely to require less maintenance? Answer the question by comparing the probabilities that each will require at least one bulb to be replaced at the end of thirty days.

3.2.9. The great English diarist Samuel Pepys asked his friend Sir Isaac Newton the following question: Is it more likely to get at least one 6 when six dice are rolled, at least two 6’s when twelve dice are rolled, or at least three 6’s when eighteen dice are rolled? After considerable cor- respondence [see (167)], Newton convinced the skeptical Pepys that the first event is the most likely. Compute the three probabilities.

3.2.10. The gunner on a small assault boat fires six mis- siles at an attacking plane. Each has a 20% chance of being on-target. If two or more of the shells find their mark, the

plane will crash. At the same time, the pilot of the plane fires ten air-to-surface rockets, each of which has a 0.05 chance of critically disabling the boat. Would you rather be on the plane or the boat?

3.2.11. If a family has four children, is it more likely they will have two boys and two girls or three of one sex and one of the other? Assume that the probability of a child being a boy is 12 and that the births are independent events.

3.2.12. Experience has shown that only 13 of all patients having a certain disease will recover if given the standard treatment. A new drug is to be tested on a group of twelve volunteers. If the FDA requires that at least seven of these patients recover before it will license the new drug, what is the probability that the treatment will be discredited even if it has the potential to increase an individual’s recovery rate to 12 ?

3.2.13. Transportation to school for a rural county’s seventy-six children is provided by a fleet of four buses. Drivers are chosen on a day-to-day basis and come from a pool of local farmers who have agreed to be “on call.” What is the smallest number of drivers who need to be in the pool if the county wants to have at least a 95% proba- bility on any given day that all the buses will run? Assume that each driver has an 80% chance of being available if contacted.

3.2.14. The captain of a Navy gunboat orders a volley of twenty-five missiles to be fired at random along a five-hundred-foot stretch of shoreline that he hopes to establish as a beachhead. Dug into the beach is a thirty- foot-long bunker serving as the enemy’s first line of de- fense. The captain has reason to believe that the bunker will be destroyed if at least three of the missiles are on- target. What is the probability of that happening?

3.2.15. A computer has generated seven random numbers over the interval 0 to 1. Is it more likely that (a) exactly three will be in the interval 12 to 1 or (b) fewer than three will be greater than 34 ?

3.2.16. Listed in the following table is the length distribu- tion of World Series competition for the sixty-four series from 1950 to 2014 (there was no series in 1994).

World Series Lengths

Number of Games, k Number of Years

4 13 5 11 6 14 7 26

Data from: www.baseball-almanac.com

Assuming that each World Series game is an independent event and that the probability of either team’s winning

Section 3.2 Binomial and Hypergeometric Probabilities 109

any particular contest is 0.5, find the probability of each series length. How well does the model fit the data? (Compute the “expected” frequencies, that is, multiply the probability of a given-length series times 64).

3.2.17. Redo Example 3.2.4 assuming n = 12 and p = 0.3. 3.2.18. Suppose a series of n independent trials can end in one of three possible outcomes. Let k1 and k2 denote the number of trials that result in outcomes 1 and 2, re- spectively. Let p1 and p2 denote the probabilities associ- ated with outcomes 1 and 2. Generalize Theorem 3.2.1 to

deduce a formula for the probability of getting k1 and k2 occurrences of outcomes 1 and 2, respectively.

3.2.19. Repair calls for central air conditioners fall into three general categories: coolant leakage, compressor failure, and electrical malfunction. Experience has shown that the probabilities associated with the three are 0.5, 0.3, and 0.2, respectively. Suppose that a dispatcher has logged in ten service requests for tomorrow morning. Use the an- swer to Question 3.2.18 to calculate the probability that three of those ten will involve coolant leakage and five will be compressor failures.

THE HYPERGEOMETRIC DISTRIBUTION

The second ‘‘special’’ distribution that we want to look at formalizes the urn problems that frequented Chapter 2. Our solutions to those earlier problems tended to be enumerations in which we listed the entire set of possible samples, and then counted the ones that satisfied the event in question. The inefficiency and redundancy of that approach should now be painfully obvious. What we are seeking here is a general formula that can be applied to any and all such problems, much like the expression in Theorem 3.2.1 can handle the full range of questions arising from the binomial model.

In the binomial model, if p is a rational number, then the experiment can be cast as an urn model. Suppose that p = r/N, where r and N are positive integers with r < N. Consider an urn with r red balls and w white balls, where r + w = N. Draw a ball; note its color; return it to the urn; mix the urn; draw another ball. If we continue in this way for n trials, we have a Bernoulli experiment. Then the probability of drawing k red balls is binomial.

Now let us examine a variation of the above scheme. The urn is the same, but n balls are drawn from the urn simultaneously. We again count the number of red balls in the sample. The result is unordered sampling without replacement. The probabilities associated with the number of red balls drawn are known as hypergeometric, and not surprisingly, rely on combinations. We formalize this discussion in the following theorem.

Theorem 3.2.2

Suppose an urn contains r red chips and w white chips, where r + w = N. If n chips are drawn out at random, without replacement, and if k denotes the number of red chips selected, then

P(k red chips are chosen) = ( r

k

)( w

n−k )

(N n

) (3.2.1) where k varies over all the integers for which

( r k

) and

( w

n−k )

are defined. The proba- bilities appearing on the right-hand side of Equation 3.2.1 are known as the hyper- geometric distribution.

Proof Since this model concerns unordered selections, Theorem 2.6.3 applies. The number of ways to select a sample of size n from N elements is

( N n

) . Now,

ignoring the white balls, the number of ways to select k red balls from the r in the urn is

( r k

) . Similarly, the selection of white balls can be done in

( w

n−k )

ways.

The number of ways to choose the red and white balls together is (

r k

) · ( wn−k ) by the multiplication principle. Finally, the desired probability is

( r k

)( w

n−k )(

N n

) .

110 Chapter 3 Random Variables

Comment A third urn model is to draw the sample in order but without replace- ment. In this case, the probabilities are also hypergeometric (See Question 3.2.28).

Comment The name hypergeometric derives from a series introduced in 1769 by the Swiss mathematician and physicist Leonhard Euler:

1 + ab c

x + a(a + 1)b(b + 1) 2!c(c + 1) x

2 + a(a + 1)(a + 2)b(b + 1)(b + 2) 3!c(c + 1)(c + 2) x

3 + · · ·

This is an expansion of considerable flexibility: Given appropriate values for a, b, and c, it reduces to many of the standard infinite series used in analysis. In particular, if a is set equal to 1, and b and c are set equal to each other, it reduces to the familiar geometric series,

1 + x + x2 + x3 + · · · hence the name hypergeometric. The relationship of the probability function in Theo- rem 3.2.2 to Euler’s series becomes apparent if we set a = −n, b = −r, c = w − n + 1, and multiply the series by

( w

n

) / (N

n

) . Then the coefficient of xk will be(r

k

)( w

n−k )

(N n

) the value the theorem gives for P(k red chips are chosen).

Example 3.2.5

A hung jury is one that is unable to reach a unanimous decision. Suppose that a pool of twenty-five potential jurors is assigned to a murder case where the evidence is so overwhelming against the defendant that twenty-three of the twenty-five would return a guilty verdict. The other two potential jurors would vote to acquit regardless of the facts. What is the probability that a twelve-member panel chosen at random from the pool of twenty-five will be unable to reach a unanimous decision?

Think of the jury pool as an urn containing twenty-five chips, twenty-three of which correspond to jurors who would vote “guilty” and two of which correspond to jurors who would vote “not guilty.” If either or both of the jurors who would vote “not guilty” are included in the panel of twelve, the result would be a hung jury. Applying Theorem 3.2.2 (twice) gives 0.74 as the probability that the jury impanelled would not reach a unanimous decision:

P(Hung jury) = P(Decision is not unanimous)

= (

2 1

)( 23 11

)/( 25 12

) + (

2 2

)( 23 10

)/( 25 12

) = 0.74

Example 3.2.6

The Florida Lottery features a number of games of chance, one of which is called Fantasy Five. The player chooses five numbers from a card containing the numbers 1 through 36. Each day five numbers are chosen at random, and if the player matches all five, the winnings can be as much as $200,000 for a $1 bet.

Lottery games like this one have spawned a mini-industry looking for biases in the selection of the winning numbers. Websites post various “analyses” claiming cer- tain numbers are “hot” and should be played. One such examination focused on the frequency of winning numbers between 1 and 12. The probability of such occurrences

Section 3.2 Binomial and Hypergeometric Probabilities 111

fits the hypergeometric distribution, where r = 12, w = 24, n = 5, and N = 36. For example, the probability that three of the five numbers are 12 or less is(

12 3

) ( 24 2

) (

36 5

) = 60,720 376,992

= 0.161

Notice how that compares to the observed proportion of drawings with exactly three numbers between 1 and 12. Of one leap year’s daily drawings—366 of them —there were sixty-five with three numbers 12 or less, giving a relative frequency of 65/366 = 0.178.

The full breakdown of observed and expected probabilities for winning numbers between 1 and 12 is given in Table 3.2.4.

Table 3.2.4

No. Drawn ≤ 12 Observed Proportion Hypergeometric Probability 0 0.128 0.113 1 0.372 0.338 2 0.279 0.354 3 0.178 0.161 4 0.038 0.032 5 0.005 0.002

Data from: www.flalottery.com/exptkt/ff.html

The naive or dishonest commentator might claim that the lottery “likes” num- bers ≤ 12 since the proportion of tickets drawn with three, four, or five numbers ≤ 12 is

0.178 + 0.038 + 0.005 = 0.221 This figure is in excess of the sum of the hypergeometric probabilities for k = 3,

4, and 5:

0.161 + 0.032 + 0.002 = 0.195 However, we shall see in Chapter 10 that such variation is well within the random fluctuations expected for truly random drawings. No bias can be inferred from these results.

Example 3.2.7

When a bullet is fired it becomes scored with minute striations produced by imper- fections in the gun barrel. Appearing as a series of parallel lines, these striations have long been recognized as a basis for matching a bullet with a gun, since repeated firings of the same weapon will produce bullets having substantially the same configuration of markings. Until recently, deciding how close two patterns had to be before it could be concluded the bullets came from the same weapon was largely subjective. A bal- listics expert would simply look at the two bullets under a microscope and make an informed judgment based on past experience. Today, however, criminologists are beginning to address the problem more quantitatively, partly with the help of the hypergeometric distribution.

Suppose a bullet is recovered from the scene of a crime, along with the suspect’s gun. Under a microscope, a grid of m cells, numbered 1 to m, is superimposed over the bullet. If m is chosen large enough that the width of the cells is sufficiently small, each of that evidence bullet’s ne striations will fall into a different cell (see Figure 3.2.1a). Then the suspect’s gun is fired, yielding a test bullet, which will have a total of nt striations located in a possibly different set of cells (see Figure 3.2.1b). How might we assess the similarities in cell locations for the two striation patterns?

112 Chapter 3 Random Variables

1 2 3 4 5 m

Striations (total of ne)

Evidence bullet

(a)

1 2 3 4 5 m

Striations (total of nt)

Test bullet

(b)

Figure 3.2.1

As a model for the striation pattern on the evidence bullet, imagine an urn con- taining m chips, with ne corresponding to the striation locations. Now, think of the striation pattern on the test bullet as representing a sample of size nt from the evi- dence urn. By Theorem 3.2.2, the probability that k of the cell locations will be shared by the two striation patterns is (ne

k

)(m−ne nt−k

) (m

nt

) Suppose the bullet found at a murder scene is superimposed with a grid having

m = 25 cells, ne = 4 of which contain striations. The suspect’s gun is fired and the bullet is found to have nt = 3 striations, one of which matches the location of one of the striations on the evidence bullet. What do you think a ballistics expert would conclude?

Intuitively, the similarity between the two bullets would be reflected in the prob- ability that one or more striations in the suspect’s bullet match the evidence bullet. The smaller that probability is, the stronger would be our belief that the two bullets were fired by the same gun. Based on the values given for m, ne, and nt ,

P(one or more matches) = (4

1

)(21 2

) (25

3

) + (4

2

)(21 1

) (25

3

) + (4

3

)(21 0

) (25

3

) = 0.42

If P(one or more matches) had been a very small number—say, 0.001—the infer- ence would have been clear-cut: The same gun fired both bullets. But, here with the probability of one or more matches being so large, we cannot rule out the possibility that the bullets were fired by two different guns (and, presumably, by two different people).

Example 3.2.8

A tax collector, finding himself short of funds, delayed depositing a large property tax payment ten different times. The money was subsequently repaid, and the whole amount deposited in the proper account. The tip-off to this behavior was the delay of the deposit. During the period of these irregularities, there was a total of 470 tax collections.

An auditing firm was preparing to do a routine annual audit of these transactions. They decided to randomly sample nineteen of the collections (approximately 4%) of the payments. The auditors would assume a pattern of malfeasance only if they

Section 3.2 Binomial and Hypergeometric Probabilities 113

saw three or more irregularities. What is the probability that three or more of the delayed deposits would be chosen in this sample?

This kind of audit sampling can be considered a hypergeometric experiment. Here, N = 470, n = 19, r = 10, and w = 460. In this case it is better to calculate the desired probability via the complement—that is,

1 − (

10 0

) ( 460 19

) (

470 19

) − (

10 1

) ( 460 18

) (

470 19

) − (

10 2

) ( 460 17

) (

470 19

) The calculation of the first hypergeometric term is(

10 0

) ( 460 19

) (

470 19

) = 1 · 460! 19!441!

· 19!451 470!

= 451 470

· 450 469

· . . . · 442 461

= 0.6592

To compute hypergeometric probabilities where the numbers are large, a useful device is a recursion formula. To that end, note that the ratio of the k + 1 term to the k term is ( r

k+1 ) (

w

n−k−1 )(

N n

) ÷ ( r

k

) ( w

n−k )(

N n

) = n − k k + 1 ·

r − k w − n + k + 1

(See Question 3.2.30.) Therefore,(

10 1

) ( 460 18

) (

470 19

) = 0.6592 · 19 + 0 1 + 0 ·

10 − 0 460 − 19 + 0 + 1 = 0.2834

and ( 10 2

) ( 460 17

) (

470 19

) = 0.2834 · 19 − 1 1 + 1 ·

10 − 1 460 − 19 + 1 + 1 = 0.0518

The desired probability, then, is 1 − 0.6592 − 0.2834 − 0.0518 = 0.0056, which shows that a larger audit sample would be necessary to have a reasonable chance of detect- ing this sort of impropriety.

CASE STUDY 3.2.1

Biting into a plump, juicy apple is one of the innocent pleasures of autumn. Crit- ical to that enjoyment is the firmness of the apple, a property that growers and shippers monitor closely. The apple industry goes so far as to set a lowest ac- ceptable limit for firmness, which is measured (in lbs) by inserting a probe into the apple. For the Red Delicious variety, for example, firmness is supposed to be at least 12 lbs; in the state of Washington, wholesalers are not allowed to sell apples if more than 10% of their shipment falls below that 12-lb limit.

All of this raises an obvious question: How can shippers demonstrate that their apples meet the 10% standard? Testing each one is not an option—the probe that measures firmness renders an apple unfit for sale. That leaves sam- pling as the only viable strategy.

(Continued on next page)

114 Chapter 3 Random Variables

(Case Study 3.2.1 continued)

Suppose, for example, a shipper has a supply of one hundred forty-four ap- ples. She decides to select fifteen at random and measure each one’s firmness, with the intention of selling the remaining apples if two or fewer in the sample are substandard. What are the consequences of her plan? More specifically, does it have a good chance of “accepting” a shipment that meets the 10% rule and “rejecting” one that does not? (If either or both of those objectives are not met, the plan is inappropriate.)

For example, suppose there are actually ten defective apples among the orig- inal one hundred forty-four. Since 10144 × 100 = 6.9%, that shipment would be suitable for sale because fewer than 10% failed to meet the firmness standard. The question is, how likely is it that a sample of fifteen chosen at random from that shipment will pass inspection?

Notice, here, that the number of substandard apples in the sample has a hy- pergeometric distribution with r = 10, w = 134, n = 15, and N = 144. Therefore,

P(Sample passes inspection) = P(Two or fewer substandard apples are found)

= (10

0

)(134 15

) (144

15

) + (10

1

)(134 14

) (144

15

) + (10

2

)(134 13

) (144

15

) = 0.320 + 0.401 + 0.208 = 0.929

So, the probability is reassuringly high that a supply of apples this good would, in fact, be judged acceptable to ship. Of course, it also follows from this calcula- tion that roughly 7% of the time, the number of substandard apples found will be greater than two, in which case the apples would be (incorrectly) assumed to be unsuitable for sale (earning them an undeserved one-way ticket to the apple- sauce factory . . . ).

How good is the proposed sampling plan at recognizing apples that would, in fact, be inappropriate to ship? Suppose, for example, that 30, or 21%, of the one hundred forty-four apples would fall below the 12-lb limit. Ideally, the probability here that a sample passes inspection should be small. The number of substandard apples found in this case would be hypergeometric with r = 30, w = 114, n = 15, and N = 144, so

P(Sample passes inspection) = (30

0

)(114 15

) (144

15

) + (30

1

)(114 14

) (144

15

) + (30

2

)(114 13

) (144

15

) = 0.024 + 0.110 + 0.221 = 0.355

Here the bad news is that the sampling plan will allow a 21% defective supply to be shipped 36% of the time. The good news is that 64% of the time, the number of substandard apples in the sample will exceed two, meaning that the correct decision “not to ship” will be made.

Figure 3.2.2 shows P(Sample passes) plotted against the percentage of de- fectives in the entire supply. Graphs of this sort are called operating characteristic (or OC) curves: They summarize how a sampling plan will respond to all possible levels of quality.

Section 3.2 Binomial and Hypergeometric Probabilities 115

1

0.8

P (

Sa m

pl e

pa ss

es )

0.6

0.4

0.2

0 0 10 20 30 40 50 60

Presumed percent defective 70 80 90 100

Figure 3.2.2

Comment Every sampling plan invariably allows for two kinds of errors— rejecting shipments that should be accepted and accepting shipments that should be rejected. In practice, the probabilities of committing these errors can be manipulated by redefining the decision rule and/or changing the sample size. Some of these options will be explored in Chapter 6.

Questions

3.2.20. A corporate board contains twelve members. The board decides to create a five-person Committee to Hide Corporation Debt. Suppose four members of the board are accountants. What is the probability that the Committee will contain two accountants and three nonaccountants?

3.2.21. One of the popular tourist attractions in Alaska is watching black bears catch salmon swimming upstream to spawn. Not all “black” bears are black, though—some are tan-colored. Suppose that six black bears and three tan- colored bears are working the rapids of a salmon stream. Over the course of an hour, six different bears are sighted. What is the probability that those six include at least twice as many black bears as tan-colored bears?

3.2.22. A city has 4050 children under the age of ten, in- cluding 514 who have not been vaccinated for measles. Sixty-five of the city’s children are enrolled in the ABC Day Care Center. Suppose the municipal health depart- ment sends a doctor and a nurse to ABC to immunize any child who has not already been vaccinated. Find a formula for the probability that exactly k of the children at ABC have not been vaccinated.

3.2.23. Country A inadvertently launches ten guided missiles—six armed with nuclear warheads—at Country B. In response, Country B fires seven antiballis- tic missiles, each of which will destroy exactly one of the incoming rockets. The antiballistic missiles have no way of detecting, though, which of the ten rockets are carrying nuclear warheads. What are the chances that Country B will be hit by at least one nuclear missile?

3.2.24. Anne is studying for a history exam covering the French Revolution that will consist of five essay ques- tions selected at random from a list of ten the professor

has handed out to the class in advance. Not exactly a Napoleon buff, Anne would like to avoid researching all ten questions but still be reasonably assured of getting a fairly good grade. Specifically, she wants to have at least an 85% chance of getting at least four of the five ques- tions right. Will it be sufficient if she studies eight of the ten questions?

3.2.25. Each year a college awards five merit-based schol- arships to members of the entering freshman class who have exceptional high school records. The initial pool of applicants for the upcoming academic year has been reduced to a “short list” of eight men and ten women, all of whom seem equally deserving. If the awards are made at random from among the eighteen finalists, what are the chances that both men and women will be represented?

3.2.26. Keno is a casino game in which the player has a card with the numbers 1 through 80 on it. The player selects a set of k numbers from the card, where k can range from one to fifteen. The “caller” announces twenty winning numbers, chosen at random from the eighty. The amount won depends on how many of the called numbers match those the player chose. Suppose the player picks ten numbers. What is the probability that among those ten are six winning numbers?

3.2.27. A display case contains thirty-five gems, of which ten are real diamonds and twenty-five are fake diamonds. A burglar removes four gems at random, one at a time and without replacement. What is the probability that the last gem she steals is the second real diamond in the set of four?

3.2.28. Consider an urn with r red balls and w white balls, where r + w = N. Draw n balls in order without

116 Chapter 3 Random Variables

replacement. Show that the probability of k red balls is hypergeometric.

3.2.29. Show directly that the set of probabilities associ- ated with the hypergeometric distribution sum to 1. (Hint: Expand the identity

(1 + μ)N = (1 + μ)r(1 + μ)N−r and equate coefficients.)

3.2.30. Show that the ratio of two successive hypergeo- metric probability terms satisfies the following equation,( r

k+1 ) (

w

n−k−1 )(

N n

) ÷ ( r

k

) ( w

n−k )(

N n

) = n − k k + 1 ·

r − k w − n + k + 1

for any k where both numerators are defined.

3.2.31. Urn I contains five red chips and four white chips; urn II contains four red and five white chips. Two chips are drawn simultaneously from urn I and placed into urn II. Then a single chip is drawn from urn II. What is the proba- bility that the chip drawn from urn II is white? (Hint: Use Theorem 2.4.1.)

3.2.32. As the owner of a chain of sporting goods stores, you have just been offered a “deal” on a shipment of one hundred robot table tennis machines. The price is right, but the prospect of picking up the merchandise at mid- night from an unmarked van parked on the side of the New Jersey Turnpike is a bit disconcerting. Being of low repute yourself, you do not consider the legality of the transaction to be an issue, but you do have concerns about being cheated. If too many of the machines are in poor working order, the offer ceases to be a bargain. Sup- pose you decide to close the deal only if a sample of ten

machines contains no more than one defective. Construct the corresponding operating characteristic curve. For ap- proximately what incoming quality will you accept a ship- ment 50% of the time?

3.2.33. Suppose that r of N chips are red. Divide the chips into three groups of sizes n1, n2, and n3, where n1 + n2 + n3 = N. Generalize the hypergeometric distribution to find the probability that the first group contains r1 red chips, the second group r2 red chips, and the third group r3 red chips, where r1 + r2 + r3 = r. 3.2.34. Some nomadic tribes, when faced with a life- threatening contagious disease, try to improve their chances of survival by dispersing into smaller groups. Sup- pose a tribe of twenty-one people, of whom four are car- riers of the disease, split into three groups of seven each. What is the probability that at least one group is free of the disease? (Hint: Find the probability of the complement.)

3.2.35. Suppose a population contains n1 objects of one kind, n2 objects of a second kind, . . . , and nt objects of a tth kind, where n1 + n2 + · · · + nt = N. A sample of size n is drawn at random and without replacement. Deduce an expression for the probability of drawing k1 objects of the first kind, k2 objects of the second kind, . . . , and kt objects of the tth kind by generalizing Theorem 3.2.2.

3.2.36. Sixteen students—five freshmen, four sopho- mores, four juniors, and three seniors—have applied for membership in their school’s Communications Board, a group that oversees the college’s newspaper, literary mag- azine, and radio show. Eight positions are open. If the se- lection is done at random, what is the probability that each class gets two representatives? (Hint: Use the generalized hypergeometric model asked for in Question 3.2.35.)

3.3 Discrete Random Variables The binomial and hypergeometric distributions described in Section 3.2 are special cases of some important general concepts that we want to explore more fully in this section. Previously in Chapter 2, we studied in depth the situation where every point in a sample space is equally likely to occur (recall Section 2.6). The sample space of independent trials that ultimately led to the binomial distribution presented a quite different scenario: specifically, individual points in S had different probabilities. For example, if n = 4 and p = 13 , the probabilities assigned to the sample points (s, f, s, f ) and ( f, f, f, f ) are (1/3)2(2/3)2 = 481 and (2/3)4 = 1681 , respectively. Allowing for the possibility that different outcomes may have different probabilities will obviously broaden enormously the range of real-world problems that probability models can address.

How to assign probabilities to outcomes that are not binomial or hypergeomet- ric is one of the major questions investigated in this chapter. A second critical issue is the nature of the sample space itself and whether it makes sense to redefine the outcomes and create, in effect, an alternative sample space. Why we would want to do that has already come up in our discussion of independent trials. The “original” sample space in such cases is a set of ordered sequences, where the ith member of a

Section 3.3 Discrete Random Variables 117

sequence is either an “s” or an “ f ,” depending on whether the ith trial ended in suc- cess or failure, respectively. However, knowing which particular trials ended in suc- cess is typically less important than knowing the number that did (recall the medical researcher discussion on p. 102). That being the case, it often makes sense to replace each ordered sequence with the number of successes that sequence contains. Doing so collapses the original set of 2n ordered sequences (i.e., outcomes) in S to the set of n + 1 integers ranging from 0 to n. The probabilities assigned to those integers, of course, are given by the binomial formula in Theorem 3.2.1.

In general, a function that assigns numbers to outcomes is called a random vari- able. The purpose of such functions in practice is to define a new sample space whose outcomes speak more directly to the objectives of the experiment. That was the ratio- nale that ultimately motivated both the binomial and hypergeometric distributions.

The purpose of this section is to (1) outline the general conditions under which probabilities can be assigned to sample spaces and (2) explore the ways and means of redefining sample spaces through the use of random variables. The notation intro- duced in this section is especially important and will be used throughout the remain- der of the book.

ASSIGNING PROBABILITIES: THE DISCRETE CASE

We begin with the general problem of assigning probabilities to sample outcomes, the simplest version of which occurs when the number of points in S is either finite or countably infinite. The probability functions, p(s), that we are looking for in those cases satisfy the conditions in Definition 3.3.1.

Definition 3.3.1 Suppose that S is a finite or countably infinite sample space. Let p be a real- valued function defined for each element of S such that

a. 0 ≤ p(s) for each s ∈ S b. ∑ s∈S

p(s) = 1

Then p is said to be a discrete probability function.

Comment Once p(s) is defined for all s, it follows that the probability of any event A—that is, P(A)—is the sum of the probabilities of the outcomes comprising A:

P(A) = ∑ s∈A

p(s) (3.3.1)

Defined in this way, the function P(A) satisfies the probability axioms given in Sec- tion 2.3. The next several examples illustrate some of the specific forms that p(s) can have and how P(A) is calculated.

Example 3.3.1

Ace-six flats are a type of crooked dice where the cube is foreshortened in the one- six direction, the effect being that 1’s and 6’s are more likely to occur than any of the other four faces. Let p(s) denote the probability that the face showing is s. For many ace-six flats, the “cube” is asymmetric to the extent that p(1) = p(6) = 14 , while p(2) = p(3) = p(4) = p(5) = 18 . Notice that p(s) here qualifies as a discrete probability function because each p(s) is greater than or equal to 0 and the sum of p(s), over all s, is 1

[ = 2( 14)+ 4( 18)].

118 Chapter 3 Random Variables

Suppose A is the event that an even number occurs. It follows from Equa- tion 3.3.1 that P(A) = P(2) + P(4) + P(6) = 18 + 18 + 14 = 12 .

Comment If two ace-six flats are rolled, the probability of getting a sum equal to 7 is equal to 2p(1)p(6) + 2p(2)p(5) + 2p(3)p(4) = 2( 14)2 + 4( 18)2 = 316 . If two fair dice are rolled, the probability of getting a sum equal to 7 is 2p(1)p(6)+2p(2)p(5)+ 2p(3)p(4) = 6( 16)2 = 16 , which is less than 316 . Gamblers cheat with ace-six flats by switching back and forth between fair dice and ace-six flats, depending on whether or not they want a sum of 7 to be rolled.

Example 3.3.2

Suppose a fair coin is tossed until a head comes up for the first time. What are the chances of that happening on an odd-numbered toss?

Note that the sample space here is countably infinite and so is the set of outcomes making up the event whose probability we are trying to find. The P(A) that we are looking for, then, will be the sum of an infinite number of terms.

Let p(s) be the probability that the first head appears on the sth toss. Since the coin is presumed to be fair, p(1) = 12 . Furthermore, we would expect that half the time, when a tail appears, the next toss would be a head, so p(2) = 12 · 12 = 14 . In general, p(s) = ( 12)s, s = 1, 2, . . . .

Does p(s) satisfy the conditions stated in Definition 3.3.1? Yes. Clearly, p(s) ≥ 0 for all s. To see that the sum of the probabilities is 1, recall the formula for the sum of a geometric series: If 0 < r < 1,

∞∑ s=0

rs = 1 1 − r (3.3.2)

Applying Equation 3.3.2 to the sample space here confirms that P(S) = 1:

P(S) = ∞∑

s=1 p(s) =

∞∑ s=1

( 1 2

)s =

∞∑ s=0

( 1 2

)s − (

1 2

)0 = 1

/( 1 − 1

2

) − 1 = 1

Now, let A be the event that the first head appears on an odd-numbered toss. Then P(A) = p(1) + p(3) + p(5) + · · · But

p(1) + p(3) + p(5) + · · · = ∞∑

s=0 p(2s + 1) =

∞∑ s=0

( 1 2

)2s+1 = (

1 2

) ∞∑ s=0

( 1 4

)s

= (

1 2

)[ 1 /(

1 − 1 4

)] = 2

3

CASE STUDY 3.3.1

For good pedagogical reasons, the principles of probability are always intro- duced by considering events defined on familiar sample spaces generated by simple experiments. To that end, we toss coins, deal cards, roll dice, and draw chips from urns. It would be a serious error, though, to infer that the impor- tance of probability extends no further than the nearest casino. In its infancy,

Section 3.3 Discrete Random Variables 119

gambling and probability were, indeed, intimately related: Questions arising from games of chance were often the catalyst that motivated mathematicians to study random phenomena in earnest. But more than three hundred forty years have passed since Huygens published De Ratiociniis. Today, the application of probability to gambling is relatively insignificant (the NCAA March basketball tournament notwithstanding) compared to the depth and breadth of uses the subject finds in business, medicine, engineering, and science.

Probability functions—properly chosen—can “model” complex real-world phenomena every bit as well as P(heads) = 12 describes the behavior of a fair coin. The following set of actuarial data is a case in point. Over a period of three years (= 1096 days) in London, records showed that a total of nine hun- dred three deaths occurred among males eighty-five years of age and older (191). Columns 1 and 2 of Table 3.3.1 give the breakdown of those 903 deaths accord- ing to the number occurring on a given day. Column 3 gives the proportion of days for which exactly s elderly men died.

Table 3.3.1

(1) (2) (3) (4) Number of Deaths, s

Number of Days

Proportion [= Col.(2)/1096]

p(s)

0 484 0.442 0.440 1 391 0.357 0.361 2 164 0.150 0.148 3 45 0.041 0.040 4 11 0.010 0.008 5 1 0.001 0.003 6+ 0 0.000 0.000

1096 1 1

For reasons that we will go into at length in Chapter 4, the probability func- tion that describes the behavior of this particular phenomenon is

p(s) = P(s elderly men die on a given day)

= e −0.82(0.82)s

s! , s = 0, 1, 2, . . . (3.3.3)

How do we know that the p(s) in Equation 3.3.3 is an appropriate way to assign probabilities to the “experiment” of elderly men dying? Because it accurately predicts what happened. Column 4 of Table 3.3.1 shows p(s) evaluated for s = 0, 1, 2, . . . . To two decimal places, the agreement between the entries in Column 3 and Column 4 is perfect.

Example 3.3.3

Consider the following experiment: Every day for the next month you copy down each number that appears in the stories on the front pages of your hometown news- paper. Those numbers would necessarily be extremely diverse: One might be the age of a celebrity who had just died, another might report the interest rate currently paid on government Treasury bills, and still another might give the number of square feet of retail space recently added to a local shopping mall.

120 Chapter 3 Random Variables

Suppose you then calculated the proportion of those numbers whose leading digit was a 1, the proportion whose leading digit was a 2, and so on. What relationship would you expect those proportions to have? Would numbers starting with a 2, for example, occur as often as numbers starting with a 6?

Let p(s) denote the probability that the first significant digit of a “newspaper number” is s, s = 1, 2, . . . , 9. Our intuition is likely to tell us that the nine first digits should be equally probable—that is, p(1) = p(2) = · · · = p(9) = 19 . Given the diversity and the randomness of the numbers, there is no obvious reason why one digit should be more common than another. Our intuition, though, would be wrong— first digits are not equally likely. Indeed, they are not even close to being equally likely!

Credit for making this remarkable discovery goes to Simon Newcomb, a math- ematician who observed more than a hundred years ago that some portions of log- arithm tables are used more than others (85). Specifically, pages at the beginning of such tables are more dog-eared than pages at the end, suggesting that users have more occasion to look up logs of numbers starting with small digits than they do numbers starting with large digits.

Almost fifty years later, a physicist, Frank Benford, reexamined Newcomb’s claim in more detail and looked for a mathematical explanation. What is now known as Benford’s law asserts that the first digits of many different types of mea- surements, or combinations of measurements, often follow the discrete probability model:

p(s) = P(First significant digit is s) = log (

1 + 1 s

) , s = 1, 2, . . . , 9

Table 3.3.2 compares Benford’s law to the uniform assumption that p(s) = 19 , for all s. The differences are striking. According to Benford’s law, for example, 1’s are the most frequently occurring first digit, appearing 6.5 times (= 0.301/0.046) as often as 9’s.

Table 3.3.2

s “Uniform” Law Benford’s Law

1 0.111 0.301 2 0.111 0.176 3 0.111 0.125 4 0.111 0.097 5 0.111 0.079 6 0.111 0.067 7 0.111 0.058 8 0.111 0.051 9 0.111 0.046

Comment A key to why Benford’s law is true is the differences in proportional changes associated with each leading digit. To go from one thousand to two thou- sand, for example, represents a 100% increase; to go from eight thousand to nine thousand, on the other hand, is only a 12.5% increase. That would suggest that evo- lutionary phenomena such as stock prices would be more likely to start with 1’s and 2’s than with 8’s and 9’s—and they are. Still, the precise conditions under which p(s) = log (1 + 1s ) , s = 1, 2, . . . , 9, are not fully understood and remain a topic of research.

Section 3.3 Discrete Random Variables 121

Example 3.3.4

Is p(s) as defined below a discrete probability function? Why or why not?

p(s) = 1 1 + λ

( λ

1 + λ )s

, s = 0, 1, 2, . . . ; λ > 0

To qualify as a discrete probability function, a given p(s) needs to satisfy parts (a) and (b) of Definition 3.3.1. A simple inspection shows that part (a) is satisfied. Since λ > 0, p(s) is, in fact, greater than or equal to 0 for all s = 0, 1, 2, . . . . Part (b) is satisfied if the sum of all the probabilities defined on the outcomes in S is 1. But

∑ all s∈S

p(s) = ∞∑

s=0

1 1 + λ

( λ

1 + λ )s

= 1 1 + λ

( 1

1 − λ1+λ

) (why?)

= 1 1 + λ ·

1 + λ 1

= 1

The answer, then, is “yes”—p(s) = 11+λ (

λ 1+λ

)s, s = 0, 1, 2, . . . ; λ > 0 does qual- ify as a discrete probability function. Of course, whether it has any practical value depends on whether the set of values for p(s) actually do describe the behavior of real-world phenomena.

DEFINING “NEW” SAMPLE SPACES

We have seen how the function p(s) associates a probability with each outcome, s, in a sample space. Related is the key idea that outcomes can often be grouped or reconfigured in ways that may facilitate problem solving. Recall the sample space associated with a series of n independent trials, where each s is an ordered se- quence of successes and failures. The most relevant information in such outcomes is often the number of successes that occur, not a detailed listing of which trials ended in success and which ended in failure. That being the case, it makes sense to define a “new” sample space by grouping the original outcomes according to the number of successes they contained. The outcome ( f , f , . . . , f ), for example, had 0 successes. On the other hand, there were n outcomes that yielded 1 success— (s, f , f , . . . , f ), ( f , s, f , . . . , f ), . . . , and ( f , f , . . . , s). As we saw earlier in this chapter, that particular regrouping of outcomes ultimately led to the binomial distribution.

The function that replaces the outcome (s, f , f , . . . , f ) with the numerical value 1 is called a random variable. We conclude this section with a discussion of some of the concepts, terminology, and applications associated with random variables.

Definition 3.3.2 A function whose domain is a sample space S and whose values form a finite or countably infinite set of real numbers is called a discrete random variable. We denote random variables by uppercase letters, often X or Y .

122 Chapter 3 Random Variables

Example 3.3.5

Consider tossing two dice, an experiment for which the sample space is a set of or- dered pairs, S = {(i, j) | i = 1, 2, . . . , 6; j = 1, 2, . . . , 6}. For a variety of games ranging from Monopoly to craps, the sum of the numbers showing is what matters on a given turn. That being the case, the original sample space S of thirty-six ordered pairs would not provide a particularly convenient backdrop for discussing the rules of those games. It would be better to work directly with the sums. Of course, the eleven possible sums (from 2 to 12) are simply the different values of the random variable X , where X (i, j) = i + j.

Comment In the above example, suppose we define a random variable X1 that gives the result on the first die and a random variable X2 that gives the result on the second die. Then X = X1 + X2. Note how easily we could extend this idea to the toss of three dice, or ten dice. The ability to conveniently express complex events in terms of simpler ones is an advantage of the random variable concept that we will see playing out over and over again.

THE PROBABILITY DENSITY FUNCTION

We began this section discussing the function p(s), which assigns a probability to each outcome s in S. Now, having introduced the notion of a random variable X as a real-valued function defined on S, that is, X (s) = k, we need to find a mapping analogous to p(s) that assigns probabilities to the different values of k.

Definition 3.3.3 Associated with every discrete random variable X is a probability density func- tion (or pdf ), denoted pX (k), where

pX (k) = P({s ∈ S | X (s) = k}) Note that pX (k) = 0 for any k not in the range of X . For notational simplicity, we will usually delete all references to s and S and write pX (k) = P(X = k).

Comment We have already discussed at length two examples of the function pX (k). Recall the binomial distribution derived in Section 3.2. If we let the random vari- able X denote the number of successes in n independent trials, then Theorem 3.2.1 states that

P(X = k) = pX (k) = (

n k

) pk(1 − p)n−k, k = 0, 1, . . . , n

A similar result was given in that same section in connection with the hyper- geometric distribution. If a sample of size n is drawn without replacement from an urn containing r red chips and w white chips, and if we let the random vari- able X denote the number of red chips included in the sample, then (according to Theorem 3.2.2),

P(X = k) = pX (k) = (

r k

)( w

n − k )/(

r + w n

) where k ranges over the values for which the numerator terms are defined.

Section 3.3 Discrete Random Variables 123

Example 3.3.6

Consider again the rolling of two dice as described in Example 3.3.5. Let i and j denote the faces showing on the first and second die, respectively, and define the random variable X to be the sum of the two faces: X (i, j) = i + j. Find pX (k).

According to Definition 3.3.3, each value of pX (k) is the sum of the probabilities of the outcomes that get mapped by X onto the value k. For example,

P(X = 5) = pX (5) = P({s ∈ S | X (s) = 5}) = P[(1, 4), (4, 1), (2, 3), (3, 2)] = P(1, 4) + P(4, 1) + P(2, 3) + P(3, 2)

= 1 36

+ 1 36

+ 1 36

+ 1 36

= 4 36

assuming the dice are fair. Values of pX (k) for other k are calculated similarly. Table 3.3.3 shows the random variable’s entire pdf.

Table 3.3.3

k pX (k) k pX (k)

2 1/36 8 5/36 3 2/36 9 4/36 4 3/36 10 3/36 5 4/36 11 2/36 6 5/36 12 1/36 7 6/36

Example 3.3.7

Acme Industries typically produces three electric power generators a day; some pass the company’s quality-control inspection on their first try and are ready to be shipped; others need to be retooled. The probability of a generator needing further work is 0.05. If a generator is ready to ship, the firm earns a profit of $10,000. If it needs to be retooled, it ultimately costs the firm $2,000. Let X be the random vari- able quantifying the company’s daily profit. Find pX (k).

The underlying sample space here is a set of n = 3 independent trials, where p = P(Generator passes inspection) = 0.95. If the random variable X is to measure the company’s daily profit, then

X = $10,000 × (no. of generators passing inspection) − $2,000 × (no. of generators needing retooling)

For instance, X (s, f, s) = 2($10,000) − 1($2,000) = $18,000. Moreover, the random variable X equals $18,000 whenever the day’s output consists of two successes and one failure. That is, X (s, f, s) = X (s, s, f ) = X ( f, s, s). It follows that

P(X = $18,000) = pX (18,000) = (

3 2

) (0.95)2(0.05)1 = 0.135375

Table 3.3.4 shows pX (k) for the four possible values of k ($30,000, $18,000, $6,000, and −$6,000).

124 Chapter 3 Random Variables

Table 3.3.4

No. Defectives k = Profit pX (k) 0 $30,000 0.857375 1 $18,000 0.135375 2 $6,000 0.007125 3 −$6,000 0.000125

Example 3.3.8

As part of her warm-up drill, each player on State’s basketball team is required to shoot free throws until two baskets are made. If Rhonda has a 65% success rate at the foul line, what is the pdf of the random variable X that describes the number of throws it takes her to complete the drill? Assume that individual throws constitute independent events.

Figure 3.3.1 illustrates what must occur if the drill is to end on the kth toss, k = 2, 3, 4, . . . First, Rhonda needs to make exactly one basket sometime during the first k − 1 attempts, and, second, she needs to make a basket on the kth toss. Written formally,

pX (k) = P(X = k) = P(Drill ends on kth throw) = P[(1 basket and k − 2 misses in first k − 1 throws) ∩ (basket on kth throw)] = P(1 basket and k − 2 misses) · P(basket)

Exactly one basket Second basket

Miss 1

Basket 2

Miss 3

· · · Miss k − 1

Basket k

Attempts

Figure 3.3.1

Notice that k − 1 different sequences have the property that exactly one of the first k − 1 throws results in a basket:

k − 1 sequences

⎧⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎩

B 1

M 2

M 3

M 4 · · · Mk−1

M 1

B 2

M 3

M 4 · · · Mk−1

... M 1

M 2

M 3

M 4 · · · Bk−1

Since each sequence has probability (0.35)k−2(0.65),

P(1 basket and k − 2 misses) = (k − 1)(0.35)k−2(0.65) Therefore,

pX (k) = (k − 1)(0.35)k−2(0.65) · (0.65) = (k − 1)(0.35)k−2(0.65)2, k = 2, 3, 4, . . . (3.3.4)

Table 3.3.5 shows the pdf evaluated for specific values of k. Although the range of k is infinite, the bulk of the probability associated with X is concentrated in the values 2 through 7: It is highly unlikely, for example, that Rhonda would need more than seven shots to complete the drill.

Section 3.3 Discrete Random Variables 125

Table 3.3.5

k pX (k)

2 0.4225 3 0.2958 4 0.1553 5 0.0725 6 0.0317 7 0.0133 8+ 0.0089

THE CUMULATIVE DISTRIBUTION FUNCTION

In working with random variables, we frequently need to calculate the probability that the value of a random variable is somewhere between two numbers. For exam- ple, suppose we have an integer-valued random variable. We might want to calculate an expression like P(s ≤ X ≤ t). If we know the pdf for X , then

P(s ≤ X ≤ t) = t∑

k=s pX (k)

But depending on the nature of pX (k) and the number of terms that need to be added, calculating the sum of pX (k) from k = s to k = t may be quite difficult. An alternate strategy is to use the fact that

P(s ≤ X ≤ t) = P(X ≤ t) − P(X ≤ s − 1) where the two probabilities on the right represent cumulative probabilities of the random variable X . If the latter were available (and they often are), then evaluating P(s ≤ X ≤ t) by one simple subtraction would clearly be easier than doing all the calculations implicit in

t∑ k=s

pX (k).

Definition 3.3.4 Let X be a discrete random variable. For any real number t, the probability that X takes on a value ≤ t is the cumulative distribution function (cdf ) of X [written FX (t)]. In formal notation, FX (t) = P({s ∈ S | X (s) ≤ t}). As was the case with pdfs, references to s and S are typically deleted, and the cdf is written FX (t) = P(X ≤ t).

Example 3.3.9

Suppose we wish to compute P(21 ≤ X ≤ 40) for a binomial random variable X with n = 50 and p = 0.6. From Theorem 3.2.1, we know the formula for pX (k), so P(21 ≤ X ≤ 40) can be written as a simple, although computationally cumbersome, sum:

P(21 ≤ X ≤ 40) = 40∑

k=21

( 50 k

) (0.6)k(0.4)50−k

Equivalently, the probability we are looking for can be expressed as the difference between two cdfs:

P(21 ≤ X ≤ 40) = P(X ≤ 40) − P(X ≤ 20) = FX (40) − FX (20)

126 Chapter 3 Random Variables

As it turns out, values of the cdf for a binomial random variable are widely available, both in books and in computer software. Here, for example, FX (40) = 0.9992 and FX (20) = 0.0034, so

P(21 ≤ X ≤ 40) = 0.9992 − 0.0034 = 0.9958

Example 3.3.10

Suppose that two fair dice are rolled. Let the random variable X denote the larger of the two faces showing: (a) Find FX (t) for t = 1, 2, . . . , 6 and (b) find FX (2.5).

a. The sample space associated with the experiment of rolling two fair dice is the set of ordered pairs s = (i, j), where the face showing on the first die is i and the face showing on the second die is j. By assumption, all thirty-six possible outcomes are equally likely. Now, suppose t is some integer from 1 to 6, inclusive. Then

FX (t) = P(X ≤ t) = P[Max (i, j) ≤ t] = P(i ≤ t and j ≤ t) (why?) = P(i ≤ t) · P( j ≤ t) (why?)

= t 6

· t 6

= t 2

36 , t = 1, 2, 3, 4, 5, 6

b. Even though the random variable X has nonzero probability only for the inte- gers 1 through 6, the cdf is defined for any real number from −∞ to +∞. By definition, FX (2.5) = P(X ≤ 2.5). But

P(X ≤ 2.5) = P(X ≤ 2) + P(2 < X ≤ 2.5) = FX (2) + 0

so

FX (2.5) = FX (2) = 2 2

36 = 1

9 What would the graph of FX (t) as a function of t look like?

Questions

3.3.1. An urn contains five balls numbered 1 to 5. Two balls are drawn simultaneously. (a) Let X be the larger of the two numbers drawn. Find pX (k). (b) Let V be the sum of the two numbers drawn. Find pV (k).

3.3.2. Repeat Question 3.3.1 for the case where the two balls are drawn with replacement.

3.3.3. Suppose a fair die is tossed three times. Let X be the largest of the three faces that appear. Find pX (k).

3.3.4. Suppose a fair die is tossed three times. Let X be the number of different faces that appear (so X = 1, 2, or 3). Find pX (k).

3.3.5. A fair coin is tossed three times. Let X be the num- ber of heads in the tosses minus the number of tails. Find pX (k).

3.3.6. Suppose die one has spots 1, 2, 2, 3, 3, 4 and die two has spots 1, 3, 4, 5, 6, 8. If both dice are rolled, what is the sample space? Let X = total spots showing. Show that the pdf for X is the same as for normal dice.

3.3.7. Suppose a particle moves along the x-axis beginning at 0. It moves one integer step to the left or right with equal probability. What is the pdf of its position after four steps?

3.3.8. How would the pdf asked for in Question 3.3.7 be affected if the particle was twice as likely to move to the right as to the left?

Section 3.4 Continuous Random Variables 127

3.3.9. Suppose that five people, including you and a friend, line up at random. Let the random variable X de- note the number of people standing between you and your friend. What is pX (k)?

3.3.10. Urn I and urn II each have two red chips and two white chips. Two chips are drawn simultaneously from each urn. Let X1 be the number of red chips in the first sample and X2 the number of red chips in the second sam- ple. Find the pdf of X1 + X2. 3.3.11. Suppose X is a binomial random variable with n = 4 and p = 23 . What is the pdf of 2X + 1? 3.3.12. Find the cdf for the random variable X in Ques- tion 3.3.3.

3.3.13. A fair die is rolled four times. Let the random vari- able X denote the number of 6’s that appear. Find and graph the cdf for X .

3.3.14. At the points x = 0, 1, . . . , 6, the cdf for the discrete random variable X has the value FX (x) = x(x + 1)/42. Find the pdf for X . 3.3.15. Find the pdf for the infinite-valued discrete ran- dom variable X whose cdf at the points x = 1, 2, 3, . . . is given by FX (x) = 1 − (1 − p)x, where 0 < p < 1. 3.3.16. Recall the game of Fantasy Five from Example 3.2.6. For any Fantasy Five draw of five balls, let the ran- dom variable X be the largest number drawn.

(a) Find FX (k) (b) Find P(X = 36) (c) In one hundred eight plays of Fantasy Five, thirty- six was the largest number drawn fifteen times. Com- pare this observation to the theoretical probability in part (b).

3.4 Continuous Random Variables The statement was made in Chapter 2 that all sample spaces belong to one of two generic types—discrete sample spaces are ones that contain a finite or a countably infinite number of outcomes and continuous sample spaces are those that contain an uncountably infinite number of outcomes. Rolling a pair of dice and recording the faces that appear is an experiment with a discrete sample space; choosing a number at random from the interval [0, 1] would have a continuous sample space.

How we assign probabilities to these two types of sample spaces is different. Section 3.3 focused on discrete sample spaces. Each outcome s is assigned a probability by the discrete probability function p(s). If a random variable X is defined on the sample space, the probabilities associated with its outcomes are assigned by the probability density function pX (k). Applying those same definitions, though, to the outcomes in a continuous sample space will not work. The fact that a continuous sample space has an uncountably infinite number of outcomes eliminates the option of assigning a probability to each point as we did in the discrete case with the function p(s). We begin this section with a particular pdf defined on a discrete sample space that suggests how we might define probabilities, in general, on a continuous sample space.

Suppose an electronic surveillance monitor is turned on briefly at the beginning of every hour and has a 0.905 probability of working properly, regardless of how long it has remained in service. If we let the random variable X denote the hour at which the monitor first fails, then pX (k) is the product of k individual probabilities:

pX (k) = P(X = k) = P(Monitor fails for the first time at the kth hour) = P(Monitor functions properly for first k − 1 hours ∩ Monitor fails at the kth hour) = (0.905)k−1(0.095), k = 1, 2, 3, . . .

Figure 3.4.1 shows a probability histogram of pX (k) for k values ranging from 1 to 21. Here the height of the kth bar is pX (k), and since the width of each bar is 1, the area of the kth bar is also pX (k).

Now, look at Figure 3.4.2, where the exponential curve y = 0.1e−0.1x is superim- posed on the graph of pX (k). Notice how closely the area under the curve approxi- mates the area of the bars. It follows that the probability that X lies in some given interval will be numerically similar to the integral of the exponential curve above that same interval.

128 Chapter 3 Random Variables

0.1

0.09

0.08

0.07

0.06

0.05

0.04

0.03

0.02

0.01

1 0

2 3 4 5

Hour when monitor first fails, k

pX(k)

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

Figure 3.4.1

0.1

0.09

0.08

0.07

0.06

0.05

0.04

0.03

0.02

0.01

1 0

2 3 4 5

Hour when monitor first fails, k

pX(k)

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

y = 0.1e–0.1x

Figure 3.4.2

For example, the probability that the monitor fails sometime during the first four hours would be the sum

P(1 ≤ X ≤ 4) = 4∑

k=1 pX (k)

= 4∑

k=1 (0.905)k−1(0.095)

= 0.3297 To four decimal places, the corresponding area under the exponential curve is the same:∫ 4

0 0.1e−0.1x dx = 0.3297

Implicit in the similarity here between pX (k) and the exponential curve y = 0.1e−0.1x is our sought-after alternative to p(s) for continuous sample spaces. Instead of defining probabilities for individual points, we will define probabilities for intervals of points, and those probabilities will be areas under the graph of some function (such

Section 3.4 Continuous Random Variables 129

as y = 0.1e−0.1x), where the shape of the function will reflect the desired probability “measure” to be associated with the sample space.

Definition 3.4.1 A probability function P on a set of real numbers S is called continuous if there exists a function f (t) such that for any closed interval [a, b] ⊂ S, P([a, b]) =∫ b

a f (t) dt. The function f (t) must have the following two properties:

a. f (t) ≥ 0 for all t. b.

∫ ∞ −∞ f (t)dt = 1.

Then the probability P(A) = ∫A f (t)dt for any set A where the integral is defined. Comment Using the −∞ and ∞ limits on the integral is simply a convention to mean the function should be integrated over its entire domain. The examples below will make this clear.

Comment If a probability function P satisfies Definition 3.4.1, then it will satisfy the probability axioms given in Section 2.3.

Comment Replacing a sum for discrete probability with an integral is not without its own logic. One of the founders of calculus, Gottfried Wilhelm Leibniz, regarded the integral as an infinite sum of infinitesimal summands. The integral sign was based on a version of the German letter long s (for the German Summe).

CHOOSING THE FUNCTION f(t)

We have seen that the probability structure of any sample space with a finite or count- ably infinite number of outcomes is defined by the function p(s) = P(Outcome is s). For sample spaces having an uncountably infinite number of possible outcomes, the function f (t) serves an analogous purpose. Specifically, f (t) defines the probability structure of S in the sense that the probability of any interval in the sample space is the integral of f (t). The next set of examples illustrate several different choices for f (t).

Example 3.4.1

The continuous equivalent of the equiprobable probability model on a discrete sam- ple space is the function f (t) defined by f (t) = 1/(b−a) for all t in the interval [a, b] (and f (t) = 0, otherwise). This particular f (t) places equal probability weighting on every closed interval of the same length contained in the interval [a, b]. For example, suppose a = 0 and b = 10, and let A = [1, 3] and B = [6, 8]. Then f (t) = 110 , and

P(A) = ∫ 3

1

( 1

10

) dt = 2

10 = P(B) =

∫ 8 6

( 1

10

) dt

(See Figure 3.4.3.)

0 1 3 6 8 10

A B

P(A) = P(B) =

f(t) =

t

1 10

2 10

2 10

1 10

Probability density

Figure 3.4.3

130 Chapter 3 Random Variables

Example 3.4.2

Could f (t) = 3t2, 0 ≤ t ≤ 1, be used to define the probability function for a con- tinuous sample space whose outcomes consist of all the real numbers in the interval [0, 1]? Yes, because (1) f (t) ≥ 0 for all t, and (2) ∫ 10 f (t) dt = ∫ 10 3t2 dt = t3∣∣10 = 1.

Notice that the shape of f (t) (see Figure 3.4.4) implies that outcomes close to 1 are more likely to occur than are outcomes close to 0. For example, P

([ 0, 13

]) =∫ 1/3 0 3t

2 dt = t3∣∣1/30 = 127 , while P ([ 23 , 1]) = ∫ 12/3 3t2 dt = t3∣∣12/3 = 1 − 827 = 1927 .

0

1

2

3

1 t

f(t) = 3t2

Area = Area = Probability

density 1 27

19 27

1 3

2 3

Figure 3.4.4

Example 3.4.3

By far the most important of all continuous probability functions is the “bell-shaped” curve, known more formally as the normal (or Gaussian) distribution. The sample space for the normal distribution is the entire real line; its probability function is given by

f (t) = 1√ 2πσ

exp

[ −1

2

( t − μ

σ

)2] , −∞ < t < ∞, −∞ < μ < ∞, σ > 0

Depending on the values assigned to the parameters μ and σ, f (t) can take on a variety of shapes and locations; three are illustrated in Figure 3.4.5.

m = –4 s = 0.5

m = 0 s = 1.5

m = 3 s = 1

0 t

f(t)

–4 3

Figure 3.4.5

FITTING f(t) TO DATA: THE DENSITY-SCALED HISTOGRAM

The notion of using a continuous probability function to approximate an integer- valued discrete probability model has already been discussed (recall Figure 3.4.2). The “trick” there was to replace the spikes that define pX (k) with rectangles whose heights are pX (k) and whose widths are 1. Doing that makes the sum of the areas of the rectangles corresponding to pX (k) equal to 1, which is the same as the total area under the approximating continuous probability function. Because of the equality of those two areas, it makes sense to superimpose (and compare) the “histogram” of pX (k) and the continuous probability function on the same set of axes.

Now, consider the related, but slightly more general, problem of using a con- tinuous probability function to model the distribution of a set of n measurements,

Section 3.4 Continuous Random Variables 131

y1, y2, . . . , yn. Following the approach taken in Figure 3.4.2, we would start by mak- ing a histogram of the n observations. The problem, though, is that the sum of the areas of the bars comprising that histogram would not necessarily equal 1.

As a case in point, Table 3.4.1 shows a set of forty observations. Grouping those yi’s into five classes, each of width 10, produces the distribution and histogram pictured in Figure 3.4.6. Furthermore, suppose we have reason to believe that these forty yi’s may be a random sample from a uniform probability function defined over the interval [20, 70], that is,

f (t) = 1 70 − 20 =

1 50

, 20 ≤ t ≤ 70

Table 3.4.1

33.8 62.6 42.3 62.9 32.9 58.9 60.8 49.1 42.6 59.8 41.6 54.5 40.5 30.3 22.4 25.0 59.2 67.5 64.1 59.3 24.9 22.3 69.7 41.2 64.5 33.4 39.0 53.1 21.6 46.0 28.1 68.7 27.6 57.6 54.8 48.9 68.4 38.4 69.0 46.6

Recall Example 3.4.1. How can we appropriately draw the distribution of the yi’s and the uniform probability model on the same graph?

Class Frequency

20 ≤ y < 30 7 30 ≤ y < 40 6 40 ≤ y < 50 9 50 ≤ y < 60 8 60 ≤ y < 70 10

40 0

4

8

12

3020 7050 6040

Frequency

y

Figure 3.4.6

Note, first, that f (t) and the histogram are not compatible in the sense that the area under f (t) is (necessarily) 1 (= 50 × 150 ), but the sum of the areas of the bars making up the histogram is 400:

histogram area = 10(7) + 10(6) + 10(9) + 10(8) + 10(10) = 400

Nevertheless, we can “force” the total area of the five bars to match the area under f (t) by redefining the scale of the vertical axis on the histogram. Specifically, fre- quency needs to be replaced with the analog of probability density, which would be the scale used on the vertical axis of any graph of f (t). Intuitively, the density asso- ciated with, say, the interval [20, 30) would be defined as the quotient

7 40 × 10

because integrating that constant over the interval [20, 30) would give 740 , and the latter does represent the estimated probability that an observation belongs to the interval [20, 30).

Figure 3.4.7 shows a histogram of the data in Table 3.4.1, where the height of each bar has been converted to a density, according to the formula

density (of a class) = class frequency total no. of observations × class width

132 Chapter 3 Random Variables

Superimposed is the uniform probability model, f (t) = 150 , 20 ≤ t ≤ 70. Scaled in this fashion, areas under both f (t) and the histogram are 1.

Class Density

20 ≤ y < 30 7/[40(10)] = 0.0175 30 ≤ y < 40 6/[40(10)] = 0.0150 40 ≤ y < 50 9/[40(10)] = 0.0225 50 ≤ y < 60 8/[40(10)] = 0.0200 60 ≤ y < 70 10/[40(10)] = 0.0250

0

0.01

0.02

0.03

3020 7050 6040

Density

Uniform probability function

y

Figure 3.4.7

In practice, density-scaled histograms offer a simple, but effective, format for examining the “fit” between a set of data and a presumed continuous model. We will use it often in the chapters ahead. Applied statisticians have especially embraced this particular graphical technique. Indeed, computer software packages that include Histograms on their menus routinely give users the choice of putting either frequency or density on the vertical axis.

CASE STUDY 3.4.1

Years ago, the V805 transmitter tube was standard equipment on many aircraft radar systems. Table 3.4.2 summarizes part of a reliability study done on the V805; listed are the lifetimes (in hrs) recorded for nine hundred three tubes (38). Grouped into intervals of width 80, the densities for the nine classes are shown in the last column.

Table 3.4.2

Lifetime (hrs) Number of Tubes Density

0–80 317 0.0044 80–160 230 0.0032

160–240 118 0.0016 240–320 93 0.0013 320–400 49 0.0007 400–480 33 0.0005 480–560 17 0.0002 560–700 26 0.0002 700+ 20 0.0002

903

Experience has shown that lifetimes of electrical equipment can often be nicely modeled by the exponential probability function,

f (t) = λe−λt , t > 0 where the value of λ (for reasons explained in Chapter 5) is set equal to the reciprocal of the average lifetime of the tubes in the sample. Can the distribution of these data also be described by the exponential model?

Section 3.4 Continuous Random Variables 133

One way to answer such a question is to superimpose the proposed model on a graph of the density-scaled histogram. The extent to which the two graphs are similar then becomes an obvious measure of the appropriateness of the model.

For these data, λ would be 0.0056. Figure 3.4.8 shows the function

f (t) = 0.0056e−0.0056t

0.004

0.001

80 240 400 560500 700 0

V805 lifetimes (hrs)

f(t) = 0.0056e–0.0056t

Shaded area = P (lifetime > 500)

Probability density 0.002

0.003

Figure 3.4.8

plotted on the same axes as the density-scaled histogram. Clearly, the agreement is excellent, and we would have no reservations about using areas under f (t) to estimate lifetime probabilities. How likely is it, for example, that a V805 tube will last longer than five hundred hrs? Based on the exponential model, that probability would be 0.0608:

P(V805 lifetime exceeds 500 hrs) = ∫ ∞

500 0.0056e−0.0056ydy

= −e−0.0056y∣∣∞500 = e−0.0056(500) = e−2.8 = 0.0608

CONTINUOUS PROBABILITY DENSITY FUNCTIONS

We saw in Section 3.3 how the introduction of discrete random variables facilitates the solution of certain problems. The same sort of function can also be defined on sample spaces with an uncountably infinite number of outcomes. Usually, the sample space is an interval of real numbers—finite or infinite. The notation and techniques for this type of random variable replace sums with integrals.

Definition 3.4.2 Let Y be a function from a sample space S to the real numbers. The function Y is called a continuous random variable if there exists a function fY (y) such that for any real numbers a and b with a < b

P(a ≤ Y ≤ b) = ∫ b

a fY (y)dy

134 Chapter 3 Random Variables

The function fY (y) is the probability density function (pdf ) for Y . As in the discrete case, the cumulative distribution function (cdf ) is defined

by

FY (y) = P(Y ≤ y)

The cdf in the continuous case is just an integral of fY (y), that is,

FY (y) = ∫ y

−∞ fY (t)dt

Let f (y) be an arbitrary real-valued function defined on some subset S of the real numbers. If f (y) satisfies Definition 3.4.1, then f (y) = fY (y) for all y, where the random variable Y is the identity mapping.

Example 3.4.4

We saw in Case Study 3.4.1 that lifetimes of V805 radar tubes can be nicely modeled by the exponential probability function

f (t) = 0.0056e−0.0056t , t > 0 To couch that statement in random variable notation would simply require that we define Y to be the life of a V805 radar tube. Then Y would be the identity mapping, and the pdf for the random variable Y would be the same as the probability function, f (t). That is, we would write

fY (y) = 0.0056e−0.0056y, y ≥ 0 Similarly, when we work with the bell-shaped normal distribution in later chapters, we will write the model in random variable notation as

fY (y) = 1√ 2πσ

e− 1 2 ( y−μσ )

2

, −∞ < y < ∞

Example 3.4.5

Suppose we would like a continuous random variable Y to “select” a number be- tween 0 and 1 in such a way that intervals near the middle of the range would be more likely to be represented than intervals near either 0 or 1. One pdf having that property is the function fY (y) = 6y(1−y), 0 ≤ y ≤ 1 (see Figure 3.4.9). Do we know for certain that the function pictured in Figure 3.4.9 is a “legitimate” pdf? Yes, be- cause fY (y) ≥ 0 for all y between 0 and 1, and

∫ 1 0 6y(1 − y) dy = 6[y2/2 − y3/3]

∣∣1 0 = 1.

Comment To simplify the way pdfs are written, it will be assumed that fY (y) = 0 for all y outside the range actually specified in the function’s definition. In Example 3.4.5,

0

1

1

1 y

fY(y) = 6y(1 – y)

Probability density

1 2

1 2

1 2

3 4

1 4

Figure 3.4.9

Section 3.4 Continuous Random Variables 135

for instance, the statement fY (y) = 6y(1 − y), 0 ≤ y ≤ 1, is to be interpreted as an abbreviation for

fY (y) =

⎧⎪⎨ ⎪⎩

0, y < 0 6y(1 − y), 0 ≤ y ≤ 1 0, y > 1

CONTINUOUS CUMULATIVE DISTRIBUTION FUNCTIONS

Associated with every random variable, discrete or continuous, is a cumulative dis- tribution function. For discrete random variables (recall Definition 3.3.4), the cdf is a nondecreasing step function, where the “jumps” occur at the values of t for which the pdf has positive probability. For continuous random variables, the cdf is a mono- tonically nondecreasing continuous function. In both cases, the cdf can be helpful in calculating the probability that a random variable takes on a value in a given interval. As we will see in later chapters, there are also several important relationships that hold for continuous cdfs and pdfs. One such relationship is cited in Theorem 3.4.1.

Definition 3.4.3 The cdf for a continuous random variable Y is an indefinite integral of its pdf:

FY (y) = ∫ y

−∞ fY (t) dt = P({s ∈ S | Y(s) ≤ y}) = P(Y ≤ y)

Theorem 3.4.1

Let FY (y) be the cdf of a continuous random variable Y. Then

d dy

FY (y) = fY (y)

Proof The statement of Theorem 3.4.1 follows immediately from the Fundamen- tal Theorem of Calculus.

Theorem 3.4.2

Let Y be a continuous random variable with cdf FY (y). Then a. P(Y > s) = 1 − FY (s) b. P(r < Y ≤ s) = FY (s) − FY (r) c. lim

y→∞ FY (y) = 1 d. lim

y→−∞ FY (y) = 0

Proof

a. P(Y > s) = 1 − P(Y ≤ s) since (Y > s) and (Y ≤ s) are complementary events. But P(Y ≤ s) = FY (s), and the conclusion follows.

b. Since the set (r < Y ≤ s) = (Y ≤ s) − (Y ≤ r), P(r < Y ≤ s) = P(Y ≤ s) − P(Y ≤ r) = FY (s) − FY (r).

c. Let {yn} be a set of values of Y, n = 1, 2, 3, . . . , where yn < yn+1 for all n, and lim

n→∞ yn = ∞. If limn→∞ FY (yn) = 1 for every such sequence {yn}, then limy→∞ FY (y) = 1. To that end, set A1 = (Y ≤ y1), and let An = (yn−1 < Y ≤ yn)

(Continued on next page)

136 Chapter 3 Random Variables

(Theorem 3.4.2 continued)

for n = 2, 3, . . . . Then FY (yn) = P(∪nk=1 Ak) = n∑

k=1 P(Ak), since the Ak’s

are disjoint. Also, the sample space S = ∪∞k=1 Ak, and by Axiom 4, 1 = P(S) = P(∪∞k=1 Ak) =

∞∑ k=1

P(Ak). Putting these equalities together gives

1 = ∞∑

k=1 P(Ak) = lim

n→∞

n∑ k=1

P(Ak) = lim n→∞ FY (yn).

d. lim y→−∞ FY (y) = limy→−∞ P(Y ≤ y) = limy→−∞ P(−Y ≥ −y) = limy→−∞[1 − P(−Y ≤ −y)]

= 1 − lim y→−∞ P(−Y ≤ −y) = 1 − limy→∞ P(−Y ≤ y)

= 1 − lim y→∞ F−Y (y) = 0

Questions

3.4.1. Suppose fY (y) = 4y3, 0 ≤ y ≤ 1. Find P ( 0 ≤

Y ≤ 12 ) .

3.4.2. For the random variable Y with pdf fY (y) = 23 + 2 3 y, 0 ≤ y ≤ 1, find P

( 3 4 ≤ Y ≤ 1

) .

3.4.3. Let fY (y) = 32 y2,−1 ≤ y ≤ 1. Find P (|Y − 12 | < 14 ).

Draw a graph of fY (y) and show the area representing the desired probability.

3.4.4. For persons infected with a certain form of malaria, the length of time spent in remission is described by the continuous pdf fY (y) = 19 y2, 0 ≤ y ≤ 3, where Y is measured in years. What is the probability that a malaria patient’s remission lasts longer than one year?

3.4.5. For a high-risk driver, the time in days between the beginning of a year and an accident has an exponential pdf. Suppose an insurance company believes the proba- bility that such a driver will be involved in an accident in the first forty days is 0.25. What is the probability that such a driver will be involved in an accident during the first seventy-five days of the year?

3.4.6. Let n be a positive integer. Show that fY (y) = (n + 2)(n + 1)yn(1 − y), 0 ≤ y ≤ 1, is a pdf. 3.4.7. Find the cdf for the random variable Y given in Question 3.4.1. Calculate P

( 0 ≤ Y ≤ 12

) using FY (y).

3.4.8. If Y is an exponential random variable, fY (y) = λe−λy, y ≥ 0, find FY (y). 3.4.9. If the pdf for Y is

fY (y) = {

0, |y| > 1 1 − |y|, |y| ≤ 1

find and graph FY (y).

3.4.10. A continuous random variableY has a cdf given by

FY (y) = ⎧⎨ ⎩

0 y < 0 y2 0 ≤ y < 1 1 y ≥ 1

Find P ( 1

2 < Y ≤ 34 )

two ways—first, by using the cdf and second, by using the pdf.

3.4.11. A random variable Y has cdf

FY (y) = ⎧⎨ ⎩

0 y < 1 ln y 1 ≤ y ≤ e 1 e < y

Find (a) P(Y < 2) (b) P

( 2 < Y ≤ 2 12

) (c) P

( 2 < Y < 2 12

) (d) fY (y)

3.4.12. The cdf for a random variable Y is defined by FY (y) = 0 for y < 0; FY (y) = 4y3 − 3y4 for 0 ≤ y ≤ 1; and FY (y) = 1 for y > 1. Find P

( 1 4 ≤ Y ≤ 34

) by integrat-

ing fY (y).

3.4.13. Suppose FY (y) = 112 (y2 + y3), 0 ≤ y ≤ 2. Find fY (y).

3.4.14. In a certain country, the distribution of a family’s disposable income, Y , is described by the pdf fY (y) = ye−y, y ≥ 0. Find FY (y). 3.4.15. The logistic curve F (y) = 11+e−y ,−∞ < y < ∞, can represent a cdf since it is increasing, lim

y→−∞ 1

1+e−y = 0, and lim

y→+∞ 1

1+e−y = 1. Verify these three assertions and also find the associated pdf.

Section 3.5 Expected Values 137

3.4.16. Let Y be the random variable described in Ques- tion 3.4.1. Define W = 2Y + 1. Find fW (w). For which values of w is fW (w) �= 0? 3.4.17. Suppose that fY (y) is a continuous and symmetric pdf, where symmetry is the property that fY (y) = fY (−y) for all y. Show that P(−a ≤ Y ≤ a) = 2FY (a) − 1. 3.4.18. Let Y be a random variable denoting the age at which a piece of equipment fails. In reliability theory, the

probability that an item fails at time y given that it has survived until time y is called the hazard rate, h(y). In terms of the pdf and cdf,

h(y) = fY (y) 1 − FY (y)

Find h(y) if Y has an exponential pdf (see Question 3.4.8).

3.5 Expected Values Probability density functions, as we have already seen, provide a global overview of a random variable’s behavior. If X is discrete, pX (k) gives P(X = k) for all k; if Y is continuous, and A is any interval or a countable union of intervals, P(Y � A) =∫

A fY (y) dy. Detail that explicit, though, is not always necessary—or even helpful. There are times when a more prudent strategy is to focus the information contained in a pdf by summarizing certain of its features with single numbers.

The first such feature that we will examine is central tendency, a term referring to the “average” value of a random variable. Consider the pdfs pX (k) and fY (y) pictured in Figure 3.5.1. Although we obviously cannot predict with certainty what values any future X ’s and Y ’s will take on, it seems clear that X values will tend to lie somewhere near μX , and Y values somewhere near μY . In some sense, then, we can characterize pX (k) by μX , and fY (y) by μY .

mX my

pX (k) fY (y)

Figure 3.5.1

The most frequently used measure for describing central tendency—that is, for quantifying μX and μY —is the expected value. Discussed at some length in this section and in Section 3.9, the expected value of a random variable is a slightly more abstract formulation of what we are already familiar with in simple discrete settings as the arithmetic average. Here, though, the values included in the average are “weighted” by the pdf.

Gambling affords a familiar illustration of the notion of an expected value. Con- sider the game of roulette. After bets are placed, the croupier spins the wheel and declares one of thirty-eight numbers, 00, 0, 1, 2, . . ., 36, to be the winner. Disregarding what seems to be a perverse tendency of many roulette wheels to land on numbers for which no money has been wagered, we will assume that each of these thirty-eight numbers is equally likely (although only the eighteen numbers 1, 3, 5, . . ., 35 are con- sidered to be odd and only the eighteen numbers 2, 6, 4, . . ., 36 are considered to be even). Suppose that our particular bet (at “even money”) is $1 on odds. If the ran- dom variable X denotes our winnings, then X takes on the value 1 if an odd number occurs, and −1 otherwise. Therefore,

pX (1) = P(X = 1) = 1838 = 9 19

138 Chapter 3 Random Variables

and

pX (−1) = P(X = −1) = 2038 = 10 19

Then 919 of the time we will win $1 and 10 19 of the time we will lose $1. Intuitively, then,

if we persist in this foolishness, we stand to lose, on the average, a little more than 5¢ each time we play the game:

“expected” winnings = $1 · 9 19

+ (−$1) · 10 19

= −$0.053 .= −5¢

The number −0.053 is called the expected value of X . Physically, an expected value can be thought of as a center of gravity. Here, for

example, imagine two bars of height 1019 and 9 19 positioned along a weightless X -axis

at the points −1 and +1, respectively (see Figure 3.5.2). If a fulcrum were placed at the point −0.053, the system would be in balance, implying that we can think of that point as marking off the center of the random variable’s distribution.

10 19

9 19

–1 0

–0.053

1

Figure 3.5.2

If X is a discrete random variable taking on each of its values with the same probability, the expected value of X is simply the everyday notion of an arithmetic average or mean:

expected value of X = ∑ all k

k · 1 n

= 1 n

∑ all k

k

Extending this idea to a discrete X described by an arbitrary pdf, pX (k), gives

expected value of X = ∑ all k

k · pX (k) (3.5.1)

For a continuous random variable Y , the summation in Equation 3.5.1 is replaced by an integration and k · pX (k) becomes y · fY (y).

Definition 3.5.1 Let X be a discrete random variable with probability function pX (k). The expected value of X is denoted E(X ) (or sometimes μ or μX ) and is given by

E(X ) = μ = μX = ∑ all k

k · pX (k)

Similarly, if Y is a continuous random variable with pdf fY (y),

E(Y) = μ = μY = ∫ ∞

−∞ y · fY (y) dy

Section 3.5 Expected Values 139

Comment We assume that both the sum and the integral in Definition 3.5.1 con- verge absolutely:

∑ all k

|k|pX (k) < ∞ ∫ ∞

−∞ |y| fY (y) dy < ∞

If not, we say that the random variable has no finite expected value. One immediate reason for requiring absolute convergence is that a convergent sum that is not ab- solutely convergent depends on the order in which the terms are added, and order should obviously not be a consideration when defining an average.

Example 3.5.1

Suppose X is a binomial random variable with p = 59 and n = 3. Then pX (k) = P(X = k) = (3k)( 59)k( 49)3−k, k = 0, 1, 2, 3. What is the expected value of X?

Applying Definition 3.5.1 gives

E(X ) = 3∑

k=0 k ·

( 3 k

)( 5 9

)k (4 9

)3−k

= (0) (

64 729

) + (1)

( 240 729

) + (2)

( 300 729

) + (3)

( 125 729

) = 1215

729 = 5

3 = 3

( 5 9

)

Comment Notice that the expected value here reduces to five-thirds, which can be written as three times five-ninths, the latter two factors being n and p, respectively. As the next theorem proves, that relationship is not a coincidence.

Theorem 3.5.1

Suppose X is a binomial random variable with parameters n and p. Then E(X ) = np. Proof According to Definition 3.5.1, E(X ) for a binomial random variable is the sum

E(X ) = n∑

k=0 k · pX (k) =

n∑ k=0

k (

n k

) pk(1 − p)n−k

= n∑

k=0

k · n! k!(n − k)! p

k(1 − p)n−k

= n∑

k=1

n! (k − 1)!(n − k)! p

k(1 − p)n−k (3.5.2)

At this point, a trick is called for. If E(X ) = ∑ all k

g (k) can be factored in such a

way that E(X ) = h ∑ all k

pX ∗(k), where pX ∗(k) is the pdf for some random variable

X ∗, then E(X ) = h, since the sum of a pdf over its entire range is 1. Here, suppose that np is factored out of Equation 3.5.2. Then

E(X ) = np n∑

k=1

(n − 1)! (k − 1)!(n − k)! p

k−1(1 − p)n−k

= np n∑

k=1

( n − 1 k − 1

) pk−1(1 − p)n−k

(Continued on next page)

140 Chapter 3 Random Variables

(Theorem 3.5.1 continued)

Now, let j = k − 1. It follows that

E(X ) = np n−1∑ j=0

( n − 1

j

) pj(1 − p)n− j−1

Finally, letting m = n − 1 gives

E(X ) = np m∑

j=0

( m j

) pj(1 − p)m− j

and, since the value of the sum is 1 (why?),

E(X ) = np (3.5.3)

Comment The statement of Theorem 3.5.1 should come as no surprise. If a multiple-choice test, for example, has one hundred questions, each with five pos- sible answers, we would “expect” to get twenty correct, just by guessing. But if the random variable X denotes the number of correct answers (out of one hundred), 20 = E(X ) = 100( 15) = np.

Example 3.5.2

An urn contains nine chips, five red and four white. Three are drawn out at random without replacement. Let X denote the number of red chips in the sample. Find E(X ).

From Section 3.2, we recognize X to be a hypergeometric random variable, where

P(X = k) = pX (k) = (5

k

)( 4 3−k

) (9

3

) , k = 0, 1, 2, 3 Therefore,

E(X ) = 3∑

k=0 k ·

(5 k

)( 4 3−k

) (9

3

) = (0)

( 4 84

) + (1)

( 30 84

) + (2)

( 40 84

) + (3)

( 10 84

)

= 5 3

Comment As was true in Example 3.5.1, the value found here for E(X ) suggests a general formula—in this case, for the expected value of a hypergeometric random variable.

Theorem 3.5.2

Suppose X is a hypergeometric random variable with parameters r, w, and n. That is, suppose an urn contains r red balls and w white balls. A sample of size n is drawn simultaneously from the urn. Let X be the number of red balls in the sample. Then E(X ) = rnr+w . Proof See Question 3.5.25.

Section 3.5 Expected Values 141

Comment Let p represent the proportion of red balls in an urn, that is, p = rr+w . The formula, then, for the expected value of a hypergeometric random variable has the same structure as the formula for the expected value of a binomial random variable:

E(X ) = rn r + w = n

r r + w = np

Example 3.5.3

Among the more common versions of the “numbers” racket is a game called D.J., its name deriving from the fact that the winning ticket is determined from Dow Jones averages. Three sets of stocks are used: Industrials, Transportations, and Utilities. Traditionally, the three are quoted at two different times, 11 a.m. and noon. The last digits of the earlier quotation are arranged to form a three-digit number; the noon quotation generates a second three-digit number, formed the same way. Those two numbers are then added together and the last three digits of that sum become the winning pick. Figure 3.5.3 shows a set of quotations for which 906 would be declared the winner.

Industrials Transportation Utilities

845.6 1 375.2 7 110.6 3

11 A.M. quotation

Industrials Transportation Utilities

848.1 7 376.7 3 110.6 3

173 733

906 = Winning number

+

Noon quotation

=

Figure 3.5.3

The payoff in D.J. is 700 to 1. Suppose that we bet $5. How much do we stand to win, or lose, on the average?

Let p denote the probability of our number being the winner and let X denote our earnings. Then

X = {

$3500 with probability p −$5 with probability 1 − p

and

E(X ) = $3500 · p − $5 · (1 − p) Our intuition would suggest (and this time it would be correct!) that each of the possible winning numbers, 000 through 999, is equally likely. That being the case, p = 1/1000 and

E(X ) = $3500 · (

1 1000

) − $5 ·

( 999

1000

) = −$1.50

On the average, then, we lose $1.50 on a $5.00 bet.

Example 3.5.4

Suppose that fifty people are to be given a blood test to see who has a certain disease. The obvious laboratory procedure is to examine each person’s blood individually, meaning that fifty tests would eventually be run. An alternative strategy is to divide each person’s blood sample into two parts—say, A and B. All of the A’s would then be mixed together and treated as one sample. If that “pooled” sample proved to be

142 Chapter 3 Random Variables

negative for the disease, all fifty individuals must necessarily be free of the infection, and no further testing would need to be done. If the pooled sample gave a positive reading, of course, all fifty B samples would have to be analyzed separately. Under what conditions would it make sense for a laboratory to consider pooling the fifty samples?

In principle, the pooling strategy is preferable (i.e., more economical) if it can substantially reduce the number of tests that need to be performed. Whether or not it can do so depends ultimately on the probability p that a person is infected with the disease.

Let the random variable X denote the number of tests that will have to be per- formed if the samples are pooled. Clearly,

X = {

1 if none of the fifty is infected 51 if at least one of the fifty is infected

But

P(X = 1) = pX (1) = P(None of the fifty is infected) = (1 − p)50

(assuming independence), and

P(X = 51) = pX (51) = 1 − P(X = 1) = 1 − (1 − p)50

Therefore,

E(X ) = 1 · (1 − p)50 + 51 · [1 − (1 − p)50] Table 3.5.1 shows E(X ) as a function of p. As our intuition would suggest, the

pooling strategy becomes increasingly feasible as the prevalence of the disease di- minishes. If the chance of a person being infected is 1 in 1000, for example, the pooling strategy requires an average of only 3.4 tests, a dramatic improvement over the fifty tests that would be needed if the samples were tested one by one. On the other hand, if 1 in 10 individuals is infected, pooling would be clearly inappropriate, requiring more than fifty tests [E(X ) = 50.7].

Table 3.5.1

p E(X)

0.5 51.0 0.1 50.7 0.01 20.8 0.001 3.4 0.0001 1.2

Example 3.5.5

Consider the following game. A fair coin is flipped until the first tail appears; we win $2 if it appears on the first toss, $4 if it appears on the second toss, and, in general, $2k if it first occurs on the kth toss. Let the random variable X denote our winnings. How much should we have to pay in order for this to be a fair game? (Note: A fair game is one where the difference between the ante and E(X ) is 0.)

Known as the St. Petersburg paradox, this problem has a rather unusual answer. First, note that

pX (2k) = P(X = 2k) = 12k , k = 1, 2, . . .

Section 3.5 Expected Values 143

Therefore,

E(X ) = ∑ all k

2k pX (2k) = ∞∑

k=1 2k · 1

2k = 1 + 1 + 1 + · · ·

which is a divergent sum. That is, X does not have a finite expected value, so in order for this game to be fair, our ante would have to be an infinite amount of money!

Comment Mathematicians have been trying to “explain” the St. Petersburg para- dox for almost two hundred years (61). The answer seems clearly absurd—no gam- bler would consider paying even $25 to play such a game, much less an infinite amount—yet the computations involved in showing that X has no finite expected value are unassailably correct. Where the difficulty lies, according to one common theory, is with our inability to put in perspective the very small probabilities of win- ning very large payoffs. Furthermore, the problem assumes that our opponent has infinite capital, which is an impossible state of affairs. We get a much more reason- able answer for E(X ) if the stipulation is added that our winnings can be at most, say, $1000 (see Question 3.5.19) or if the payoffs are assigned according to some formula other than 2k (see Question 3.5.20).

Comment There are two important lessons to be learned from the St. Petersburg paradox. First is the realization that E(X ) is not necessarily a meaningful charac- terization of the “location” of a distribution. Question 3.5.24 shows another situa- tion where the formal computation of E(X ) gives a similarly inappropriate answer. Second, we need to be aware that the notion of expected value is not necessarily synonymous with the concept of worth. Just because a game, for example, has a posi- tive expected value—even a very large positive expected value—does not imply that someone would want to play it. Suppose, for example, that you had the opportunity to spend your last $10,000 on a sweepstakes ticket where the prize was $1 billion but the probability of winning was only one in ten thousand. The expected value of such a bet would be over $90,000,

E(X ) = $1,000,000,000 (

1 10,000

) + (−$10,000)

( 9,999

10,000

) = $90,001

but it is doubtful that many people would rush out to buy a ticket. (Economists have long recognized the distinction between a payoff’s numerical value and its perceived desirability. They refer to the latter as utility.)

Example 3.5.6

The distance, Y , that a molecule in a gas travels before colliding with another molecule can be modeled by the exponential pdf

fY (y) = 1 μ

e−y/μ, y ≥ 0

where μ is a positive constant known as the mean free path. Find E(Y). Since the random variable here is continuous, its expected value is an integral:

E(Y) = ∫ ∞

0 y

1 μ

e−y/μ dy

144 Chapter 3 Random Variables

Let w = y/μ, so that dw = 1/μ dy. Then E(Y) = μ ∫∞0 we−wdw. Setting u = w and dv = e−wdw and integrating by parts gives

E(Y) = μ[−we−w − e−w]∣∣∞0 = μ (3.5.4) Equation 3.5.4 shows that μ is aptly named—it does, in fact, represent the av-

erage distance a molecule travels, free of any collisions. Nitrogen (N2), for example, at room temperature and standard atmospheric pressure has μ = 0.00005 cm. An N2 molecule, then, travels that far before colliding with another N2 molecule, on the average.

Example 3.5.7

One continuous pdf that has a number of interesting applications in physics is the Rayleigh distribution, where the pdf is given by

fY (y) = ya2 e −y2/2a2 , a > 0; 0 ≤ y < ∞ (3.5.5)

Calculate the expected value for a random variable having a Rayleigh distribution. From Definition 3.5.1,

E(Y) = ∫ ∞

0 y · y

a2 e−y

2/2a2 dy

Let v = y/(√2a). Then

E(Y) = 2 √

2a ∫ ∞

0 v2e−v

2 dv

The integrand here is a special case of the general form v2ke−v 2 . For k = 1,∫ ∞

0 v2ke−v

2 dv =

∫ ∞ 0

v2e−v 2 dv = 1

4

√ π

Therefore,

E(Y) = 2 √

2a · 1 4

√ π

= a √

π/2

Comment The pdf here is named for John William Strutt, Baron Rayleigh, the nineteenth- and twentieth-century British physicist who showed that Equation 3.5.5 is the solution to a problem arising in the study of wave motion. If two waves are superimposed, it is well known that the height of the resultant at any time t is sim- ply the algebraic sum of the corresponding heights of the waves being added (see Figure 3.5.4). Seeking to extend that notion, Rayleigh posed the following question: If n waves, each having the same amplitude h and the same wavelength, are super- imposed randomly with respect to phase, what can we say about the amplitude R of the resultant? Clearly, R is a random variable, its value depending on the particu- lar collection of phase angles represented by the sample. What Rayleigh was able to show in his 1880 paper (177) is that when n is large, the probabilistic behavior of R is described by the pdf

fR(r) = 2rnh2 · e −r2/nh2 , r > 0

which is just a special case of Equation 3.5.5 with a = √

2/nh2.

Section 3.5 Expected Values 145

Resultant

Wave 1

Wave 2

Figure 3.5.4

A SECOND MEASURE OF CENTRAL TENDENCY: THE MEDIAN

While the expected value is the most frequently used measure of a random variable’s central tendency, it does have a weakness that sometimes makes it misleading and inappropriate. Specifically, if one or several possible values of a random variable are either much smaller or much larger than all the others, the value of μ can be distorted in the sense that it no longer reflects the center of the distribution in any meaningful way. For example, suppose a small community consists of a homogeneous group of middle-range salary earners, and then Ms. Rich moves to town. Obviously, the town’s average salary before and after the multibillionaire arrives will be quite different, even though she represents only one new value of the “salary” random variable.

It would be helpful to have a measure of central tendency that is not so sensi- tive to “outliers” or to probability distributions that are markedly skewed. One such measure is the median, which, in effect, divides the area under a pdf into two equal areas.

Definition 3.5.2 If X is a discrete random variable, the median, m, is that point for which P(X < m) = P(X > m). In the event that P(X ≤ m) = 0.5 and P(X ≥ m′) = 0.5, the median is defined to be the arithmetic average, (m + m′)/2.

If Y is a continuous random variable, its median is the solution to the integral equation

∫ m −∞ fY (y) dy = 0.5.

Example 3.5.8

If a random variable’s pdf is symmetric, μ and m will be equal. Should pX (k) or fY (y) not be symmetric, though, the difference between the expected value and the median can be considerable, especially if the asymmetry takes the form of extreme skewness. The situation described here is a case in point.

Soft-glow makes a 60-watt light bulb that is advertised to have an average life of one thousand hours. Assuming that the performance claim is valid, is it reasonable for consumers to conclude that the Soft-glow bulbs they buy will last for approxi- mately one thousand hours?

No! If the average life of a bulb is one thousand hours, the (continuous) pdf, fY (y), modeling the length of time, Y , that it remains lit before burning out is likely to have the form

fY (y) = 0.001e−0.001y, y > 0 (3.5.6) (for reasons explained in Chapter 4). But Equation 3.5.6 is a very skewed pdf, having a shape much like the curve drawn in Figure 3.4.8. The median for such a distribution will lie considerably to the left of the mean.

146 Chapter 3 Random Variables

More specifically, the median lifetime for these bulbs—according to Defini- tion 3.5.2—is the value m for which∫ m

0 0.001e−0.001ydy = 0.5

But ∫ m

0 0.001e −0.001ydy = 1 − e−0.001m. Setting the latter equal to 0.5 implies that

m = (1/−0.001) ln(0.5) = 693 So, even though the average life of one of these bulbs is one thousand hours, there is a 50% chance that the one you buy will last less than six hundred ninety-three hours.

Questions

3.5.1. Recall the game of Keno described in Ques- tion 3.2.26. The following are all the payoffs on a $1 wa- ger where the player has bet on ten numbers. Calculate E(X ), where the random variable X denotes the amount of money won.

Number of Correct Guesses Payoff Probability

< 5 −$ 1 .935 5 2 .0514 6 18 .0115 7 180 .0016 8 1,300 1.35 × 10−4 9 2,600 6.12 × 10−6

10 10,000 1.12 × 10−7

3.5.2. The roulette wheels in Monte Carlo typically have a 0 but not a 00. What is the expected value of betting on red in this case? If a trip to Monte Carlo costs $3000, how much would a player have to bet to justify gambling there rather than Las Vegas?

3.5.3. The pdf describing the daily profit, X , earned by Acme Industries was derived in Example 3.3.7. Find the company’s average daily profit.

3.5.4. In the game of redball, two drawings are made with- out replacement from a bowl that has four white ping- pong balls and two red ping-pong balls. The amount won is determined by how many of the red balls are selected. For a $5 bet, a player can opt to be paid under either Rule A or Rule B, as shown. If you were playing the game, which would you choose? Why?

A B

No. of Red No. of Red Balls Drawn Payoff Balls Drawn Payoff

0 0 0 0 1 $2 1 $1 2 $10 2 $20

3.5.5. Suppose a life insurance company sells a $50,000, five-year term policy to a twenty-five-year-old woman. At the beginning of each year the woman is alive, the com- pany collects a premium of $P. The probability that the woman dies and the company pays the $50,000 is given in the table below. So, for example, in Year 3, the company loses $50,000 – $P with probability 0.00054 and gains $P with probability 1 − 0.00054 = 0.99946. If the company expects to make $1000 on this policy, what should P be?

Year Probability of Payoff

1 0.00051 2 0.00052 3 0.00054 4 0.00056 5 0.00059

3.5.6. A manufacturer has one hundred memory chips in stock, 4% of which are likely to be defective (based on past experience). A random sample of twenty chips is se- lected and shipped to a factory that assembles laptops. Let X denote the number of computers that receive faulty memory chips. Find E(X ). 3.5.7. Records show that 642 new students have just en- tered a certain Florida school district. Of those 642, a total of 125 are not adequately vaccinated. The district’s physi- cian has scheduled a day for students to receive what- ever shots they might need. On any given day, though, 12% of the district’s students are likely to be absent. How many new students, then, can be expected to remain inad- equately vaccinated?

3.5.8. Calculate E(Y) for the following pdfs: (a) fY (y) = 3(1 − y)2, 0 ≤ y ≤ 1 (b) fY (y) = 4ye−2y, y ≥ 0

(c) fY (y) =

⎧⎪⎪⎨ ⎪⎪⎩

3 4 , 0 ≤ y ≤ 1 1 4 , 2 ≤ y ≤ 3 0, elsewhere

(d) fY (y) = sin y, 0 ≤ y ≤ π2

Section 3.5 Expected Values 147

3.5.9. Recall Question 3.4.4, where the length of time Y (in years) that a malaria patient spends in remission has pdf fY (y) = 19 y2, 0 ≤ y ≤ 3. What is the average length of time that such a patient spends in remission?

3.5.10. Let the random variable Y have the uniform dis- tribution over [a, b]; that is, fY (y) = 1b−a for a ≤ y ≤ b. Find E(Y) using Definition 3.5.1. Also, deduce the value of E(Y), knowing that the expected value is the center of gravity of fY (y).

3.5.11. Show that the expected value associated with the exponential distribution, fY (y) =λe−λy, y > 0, is 1/λ, where λ is a positive constant.

3.5.12. Show that

fY (y) = 1y2 , y ≥ 1

is a valid pdf but that Y does not have a finite expected value.

3.5.13. Based on recent experience, ten-year-old passen- ger cars going through a motor vehicle inspection station have an 80% chance of passing the emissions test. Sup- pose that two hundred such cars will be checked out next week. Write two formulas that show the number of cars that are expected to pass.

3.5.14. Suppose that fifteen observations are chosen at random from the pdf fY (y) = 3y2, 0 ≤ y ≤ 1. Let X de- note the number that lie in the interval

( 1 2 , 1

) . Find E(X ).

3.5.15. A city has 74,806 registered automobiles. Each is required to display a bumper decal showing that the owner paid an annual wheel tax of $50. By law, new de- cals need to be purchased during the month of the owner’s birthday. How much wheel tax revenue can the city expect to receive in November?

3.5.16. Regulators have found that twenty-three of the sixty-eight investment companies that filed for bankruptcy in the past five years failed because of fraud, not for reasons related to the economy. Suppose that nine additional firms will be added to the bankruptcy rolls dur- ing the next quarter. How many of those failures are likely to be attributed to fraud?

3.5.17. An urn contains four chips numbered 1 through 4. Two are drawn without replacement. Let the random vari- able X denote the larger of the two. Find E(X ).

3.5.18. A fair coin is tossed three times. Let the random variable X denote the total number of heads that appear times the number of heads that appear on the first and third tosses. Find E(X ).

3.5.19. How much would you have to ante to make the St. Petersburg game “fair” (recall Example 3.5.5) if the

most you could win was $1000? That is, the payoffs are $2k for 1 ≤ k ≤ 9, and $1000 for k ≥ 10.

3.5.20. For the St. Petersburg problem (Example 3.5.5), find the expected payoff if (a) the amounts won are ck instead of 2k, where 0 < c < 2. (b) the amounts won are log 2k. [This was a modifi- cation suggested by D. Bernoulli (a nephew of James Bernoulli) to take into account the decreasing marginal utility of money—the more you have, the less useful a bit more is.]

3.5.21. A fair die is rolled three times. Let X de- note the number of different faces showing, X = 1, 2, 3. Find E(X ).

3.5.22. Two distinct integers are chosen at random from the first five positive integers. Compute the expected value of the absolute value of the difference of the two numbers.

3.5.23. Suppose that two evenly matched teams are play- ing in the World Series. On the average, how many games will be played? (The winner is the first team to get four victories.) Assume that each game is an independent event.

3.5.24. An urn contains one white chip and one black chip. A chip is drawn at random. If it is white, the “game” is over; if it is black, that chip and another black one are put into the urn. Then another chip is drawn at random from the “new” urn and the same rules for ending or con- tinuing the game are followed (i.e., if the chip is white, the game is over; if the chip is black, it is placed back in the urn, together with another chip of the same color). The drawings continue until a white chip is selected. Show that the expected number of drawings necessary to get a white chip is not finite.

3.5.25. A random sample of size n is drawn without re- placement from an urn containing r red chips and w white chips. Define the random variable X to be the number of red chips in the sample. Use the summation tech- nique described in Theorem 3.5.1 to prove that E(X ) = rn/(r + w).

3.5.26. Given that X is a nonnegative, integer-valued ran- dom variable, show that

E(X ) = ∞∑

k=1 P(X ≥ k)

3.5.27. Find the median for each of the following pdfs: (a) fY (y) = (θ + 1)yθ, 0 ≤ y ≤ 1, where θ > 0 (b) fY (y) = y + 12 , 0 ≤ y ≤ 1

148 Chapter 3 Random Variables

THE EXPECTED VALUE OF A FUNCTION OF A RANDOM VARIABLE

There are many situations that call for finding the expected value of a function of a random variable—say, Y = g (X ). One common example would be change of scale problems, where g (X ) = aX + b for constants a and b. Sometimes the pdf of the new random variable Y can be easily determined, in which case E(Y) can be cal- culated by simply applying Definition 3.5.1. Often, though, fY (y) can be difficult to derive, depending on the complexity of g (X ). Fortunately, Theorem 3.5.3 allows us to calculate the expected value of Y without knowing the pdf for Y .

Theorem 3.5.3

Suppose X is a discrete random variable with pdf pX (k). Let g (X ) be a function of X. Then the expected value of the random variable g (X ) is given by

E[g (X )] = ∑ all k

g (k) · pX (k)

provided that ∑ all k

|g (k)|pX (k) < ∞.

If Y is a continuous random variable with pdf fY (y), and if g (Y) is a continuous function, then the expected value of the random variable g(Y) is

E[g (Y)] = ∫ ∞

−∞ g (y) · fY (y) dy

provided that ∫∞ −∞ |g (y)| fY (y) dy < ∞.

Proof We will prove the result for the discrete case. See (155) for details showing how the argument is modified when the pdf is continuous. Let W = g (X ). The set of all possible k values, k1, k2, . . ., of X will give rise to a set of w values, w1,w2, . . . , where, in general, more than one k may be associated with a given w. Let Sj be the set of k’s for which g (k) = w j [so ∪ jS j is the entire set of k values for which pX (k) is defined]. We obviously have that P(W = w j) = P(X ∈ Sj), and we can write

E(W) = ∑

j

w j · P(W = w j) = ∑

j

w j · P(X ∈ Sj)

= ∑

j

w j ∑ k∈Sj

pX (k)

= ∑

j

∑ k∈Sj

w j · pX (k)

= ∑

j

∑ k∈Sj

g (k)pX (k) (why?)

= ∑ all k

g (k)pX (k)

Since it is being assumed that ∑ all k

|g (k)|pX (k) < ∞, the statement of the theorem holds.

Corollary 3.5.1

For any random variable W, E(aW +b) = aE(W)+b, where a and b are constants. Proof Suppose W is continuous; the proof for the discrete case is similar. By The- orem 3.5.3, E(aW + b) = ∫∞−∞(aw + b) fW (w) dw, but the latter can be written a ∫∞ −∞ w · fW (w) dw + b

∫∞ −∞ fW (w) dw = aE(W) + b · 1 = aE(W) + b.

Section 3.5 Expected Values 149

Example 3.5.9

Suppose that X is a random variable whose pdf is nonzero only for the three values −2, 1, and +2:

k pX (k)

−2 5 8

1 1 8

2 2 8 1

Let W = g (X ) = X 2. Verify the statement of Theorem 3.5.3 by computing E(W) two ways—first, by finding pW (w) and summing w · pW (w) over w and, second, by summing g (k) · pX (k) over k.

By inspection, the pdf for W is defined for only two values, 1 and 4:

w (= k2) pW (w)

1 1 8

4 7 8 1

Taking the first approach to find E(W) gives

E(W) = ∑ w

w · pW (w) = 1 · (

1 8

) + 4 ·

( 7 8

)

= 29 8

To find the expected value via Theorem 3.5.3, we take

E[g (X )] = ∑

k

k2 · pX (k) = (−2)2 · 58 + (1) 2 · 1

8 + (2)2 · 2

8

with the sum here reducing to the answer we already found, 298 . For this particular situation, neither approach was easier than the other. In gen-

eral, that will not be the case. Finding pW (w) is often quite difficult, and on those occasions Theorem 3.5.3 can be of great benefit.

Example 3.5.10

Suppose the amount of propellant, Y , put into a can of spray paint is a random vari- able with pdf

fY (y) = 3y2, 0 < y < 1 Experience has shown that the largest surface area that can be painted by a can having Y amount of propellant is twenty times the area of a circle generated by a radius of Y ft. If the Purple Dominoes, a newly formed urban gang, have just stolen

150 Chapter 3 Random Variables

their first can of spray paint, can they expect to have enough to cover a 5′ ×8′ subway panel with grafitti?

No. By assumption, the maximum area (in ft2) that can be covered by a can of paint is described by the function

g (Y) = 20πY 2

According to the second statement in Theorem 3.5.3, though, the average value for g(Y) is slightly less than the desired 40 ft2:

E[g (Y)] = ∫ 1

0 20πy2 · 3y2 dy

= 60πy 5

5

∣∣∣∣1 0

= 12π = 37.7 ft2

Example 3.5.11

A fair coin is tossed until a head appears. You will be given ( 1

2

)k dollars if that first head occurs on the kth toss. How much money can you expect to be paid?

Let the random variable X denote the toss at which the first head appears. Then

pX (k) = P(X = k) = P(First k − 1 tosses are tails and kth toss is a head)

= (

1 2

)k−1 · 1

2

= (

1 2

)k , k = 1, 2, . . .

Moreover,

E(amount won) = E [(

1 2

)X] = E[g (X )] =

∑ all k

g (k) · pX (k)

= ∞∑

k=1

( 1 2

)k · (

1 2

)k

= ∞∑

k=1

( 1 2

)2k =

∞∑ k=1

( 1 4

)k

= ∞∑

k=0

( 1 4

)k − (

1 4

)0

= 1 1 − 14

− 1

= $0.33

Example 3.5.12

In one of the early applications of probability to physics, James Clerk Maxwell (1831–1879) showed that the speed S of a molecule in a perfect gas has a density function given by

fS(s) = 4 √

a3

π s2e−as

2 , s > 0

Section 3.5 Expected Values 151

where a is a constant depending on the temperature of the gas and the mass of the particle. What is the average energy of a molecule in a perfect gas?

Let m denote the molecule’s mass. Recall from physics that energy (W), mass (m), and speed (S) are related through the equation

W = 1 2

mS2 = g (S) To find E(W) we appeal to the second part of Theorem 3.5.3:

E(W) = ∫ ∞

0 g (s) fS(s) ds

= ∫ ∞

0

1 2

ms2 · 4 √

a3

π s2e−as

2 ds

= 2m √

a3

π

∫ ∞ 0

s4e−as 2 ds

We make the substitution t = as2. Then E(W) = m

a √

π

∫ ∞ 0

t3/2e−tdt

But ∫ ∞ 0

t3/2e−tdt = (

3 2

)( 1 2

)√ π (see Section 4.4.6)

so

E(energy) = E(W) = m a √

π

( 3 2

)( 1 2

)√ π

= 3m 4a

Example 3.5.13

Consolidated Industries is planning to market a new product and they are trying to decide how many to manufacture. They estimate that each item sold will return a profit of m dollars; each one not sold represents an n-dollar loss. Furthermore, they suspect the demand for the product, V , will have an exponential distribution,

fV (v) = (

1 λ

) e−v/λ, v > 0

How many items should the company produce if they want to maximize their ex- pected profit? (Assume that n, m, and λ are known.)

If a total of x items are made, the company’s profit can be expressed as a function Q(v), where

Q(v) = {

mv − n(x − v) if v < x mx if v ≥ x

and v is the number of items sold. It follows that their expected profit is

E[Q(V)] = ∫ ∞

0 Q(v) · fV (v) dv

= ∫ x

0 [(m + n)v − nx]

( 1 λ

) e−v/λ dv +

∫ ∞ x

mx · (

1 λ

) e−v/λ dv (3.5.7)

152 Chapter 3 Random Variables

The integration here is straightforward, though a bit tedious. Equation 3.5.7 eventu- ally simplifies to

E[Q(V)] = λ · (m + n) − λ · (m + n)e−x/λ − nx To find the optimal production level, we need to solve dE[Q(V)]/dx = 0 for x. But

dE[Q(V)] dx

= (m + n)e−x/λ − n

and the latter equals zero when

x = −λ · ln (

n m + n

)

Example 3.5.14

A point, y, is selected at random from the interval [0, 1], dividing the line into two segments (see Figure 3.5.5). What is the expected value of the ratio of the shorter segment to the longer segment?

0 11 2

y

Figure 3.5.5

Notice, first, that the function

g (Y) = shorter segment longer segment

has two expressions, depending on the location of the chosen point:

g (Y) = {

y/(1 − y), 0 ≤ y ≤ 12 (1 − y)/y, 12 < y ≤ 1

By assumption, fY (y) = 1, 0 ≤ y ≤ 1, so

E[g (Y)] = ∫ 1

2

0

y 1 − y · 1 dy +

∫ 1 1 2

1 − y y

· 1 dy

Writing the second integrand as (1/y − 1) gives∫ 1 1 2

1 − y y

· 1 dy = ∫ 1

1 2

( 1 y

− 1 )

dy = (ln y − y) ∣∣∣∣1

1 2

= ln 2 − 1 2

By symmetry, though, the two integrals are the same, so

E (

shorter segment longer segment

) = 2 ln 2 − 1

= 0.39 On the average, then, the longer segment will be a little more than 2 12 times the length of the shorter segment.

Section 3.6 The Variance 153

Questions

3.5.28. Suppose X is a binomial random variable with n = 10 and p = 25 . What is the expected value of 3X − 4? 3.5.29. A typical day’s production of a certain electronic component is twelve. The probability that one of these components needs rework is 0.11. Each component need- ing rework costs $100. What is the average daily cost for defective components?

3.5.30. Let Y have probability density function

fY (y) = 2(1 − y), 0 ≤ y ≤ 1 Suppose that W = Y 2, in which case

fW (w) = 1√ w

− 1, 0 ≤ w ≤ 1

Find E(W) in two different ways.

3.5.31. A tool and die company makes castings for steel stress-monitoring gauges. Their annual profit, Q, in hun- dreds of thousands of dollars, can be expressed as a function of product demand, y:

Q(y) = 2(1 − e−2y) Suppose that the demand (in thousands) for their castings follows an exponential pdf, fY (y) = 6e−6y, y > 0. Find the company’s expected profit.

3.5.32. A box is to be constructed so that its height is five inches and its base is Y inches by Y inches, where Y is a random variable described by the pdf, fY (y) = 6y(1 − y), 0 < y < 1. Find the expected volume of the box.

3.5.33. Grades on the last Economics 301 exam were not very good. Graphed, their distribution had a shape similar to the pdf

fY (y) = 15000 (100 − y), 0 ≤ y ≤ 100

As a way of “curving” the results, the professor announces that he will replace each person’s grade, Y , with a new grade, g (Y), where g (Y) = 10√Y . Will the profes- sor’s strategy be successful in raising the class average above 60?

3.5.34. If Y has probability density function

fY (y) = 2y, 0 ≤ y ≤ 1

then E(Y) = 23 . Define the random variable W to be the squared deviation of Y from its mean, that is, W =( Y − 23

)2 . Find E(W).

3.5.35. The hypotenuse, Y , of the isosceles right triangle shown is a random variable having a uniform pdf over the interval [6, 10]. Calculate the expected value of the triangle’s area. Do not leave the answer as a function of a.

0

Y

a

a

3.5.36. An urn contains n chips numbered 1 through n. Assume that the probability of choosing chip i is equal to ki, i = 1, 2, . . . , n. If one chip is drawn, calculate E( 1X ), where the random variable X denotes the number show- ing on the chip selected. [Hint: Recall that the sum of the first n integers is n(n + 1)/2.]

3.6 The Variance We saw in Section 3.5 that the location of a distribution is an important characteristic and that it can be effectively measured by calculating either the mean or the median. A second feature of a distribution that warrants further scrutiny is its dispersion— that is, the extent to which its values are spread out. The two properties are totally different: Knowing a pdf’s location tells us absolutely nothing about its dispersion. Table 3.6.1, for example, shows two simple discrete pdfs with the same expected value (equal to zero), but with vastly different dispersions.

Table 3.6.1

k pX1 (k) k pX2 (k)

−1 12 −1,000,000 12 1 12 1,000,000

1 2

154 Chapter 3 Random Variables

It is not immediately obvious how the dispersion in a pdf should be quantified. Suppose that X is any discrete random variable. One seemingly reasonable approach would be to average the deviations of X from their mean—that is, calculate the ex- pected value of X − μ. As it happens, that strategy will not work because the neg- ative deviations will exactly cancel the positive deviations, making the numerical value of such an average always zero, regardless of the amount of spread present in pX (k):

E(X − μ) = E(X ) − μ = μ − μ = 0 (3.6.1) Another possibility would be to modify Equation 3.6.1 by making all the devia- tions positive, that is, to replace E(X − μ) with E(|X − μ|). This does work, and it is sometimes used to measure dispersion, but the absolute value is somewhat troublesome mathematically: It does not have a simple arithmetic formula, nor is it a differentiable function. Squaring the deviations proves to be a much better approach.

Definition 3.6.1 The variance of a random variable is the expected value of its squared deviations from μ. If X is discrete, with pdf pX (k),

Var(X ) = σ2 = E[(X − μ)2] = ∑ all k

(k − μ)2 · pX (k)

If Y is continuous, with pdf fY (y),

Var(Y) = σ2 = E[(Y − μ)2] = ∫ ∞

−∞ (y − μ)2 · fY (y) dy

[If E(X 2) or E(Y 2) is not finite, the variance is not defined.]

Comment One unfortunate consequence of Definition 3.6.1 is that the units for the variance are the square of the units for the random variable: If Y is measured in inches, for example, the units for Var(Y) are inches squared. This causes obvi- ous problems in relating the variance back to the sample values. For that reason, in applied statistics, where unit compatibility is especially important, dispersion is mea- sured not by the variance but by the standard deviation, which is defined to be the square root of the variance. That is,

σ = standard deviation =

⎧⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎩

√∑ all k

(k − μ)2 · pX (k) if X is discrete√∫ ∞ −∞

(y − μ)2 · fY (y) dy if Y is continuous

Comment The analogy between the expected value of a random variable and the center of gravity of a physical system was pointed out in Section 3.5. A similar equiv- alency holds between the variance and what engineers call a moment of inertia. If a set of weights having masses m1, m2, . . . are positioned along a (weightless) rigid bar at distances r1, r2, . . . from an axis of rotation (see Figure 3.6.1), the moment of inertia of the system is defined to be value

∑ i

mir2i . Notice, though, that if the masses

were the probabilities associated with a discrete random variable and if the axis of

Section 3.6 The Variance 155

rotation were actually μ, then r1, r2, . . . could be written (k1 − μ), (k2 − μ), . . . and∑ i

mir2i would be the same as the variance, ∑ all k

(k − μ)2 · pX (k).

Axis of rotationm1

m2 m3

r3

r1 r2

Figure 3.6.1

Definition 3.6.1 gives a formula for calculating σ2 in both the discrete and the continuous cases. An equivalent, but easier-to-use, formula is given in The- orem 3.6.1.

Theorem 3.6.1

Let W be any random variable, discrete or continuous, having mean μ and for which E(W 2) is finite. Then

Var(W) = σ2 = E(W 2) − μ2

Proof We will prove the theorem for the continuous case. The argument for dis- crete W is similar. In Theorem 3.5.3, let g (W) = (W − μ)2. Then

Var(W) = E[(W − μ)2] = ∫ ∞

−∞ g (w) fW (w) dw =

∫ ∞ −∞

(w − μ)2 fW (w) dw

Squaring out the term (w − μ)2 that appears in the integrand and using the additive property of integrals gives

∫ ∞ −∞

(w − μ)2 fW (w) dw = ∫ ∞

−∞ (w2 − 2μw + μ2) fW (w) dw

= ∫ ∞

−∞ w2 fW (w) dw − 2μ

∫ ∞ −∞

w fW (w) dw + ∫ ∞

−∞ μ2 fW (w) dw

= E(W 2) − 2μ2 + μ2 = E(W 2) − μ2

Note that the equality ∫∞ −∞ w

2 fW (w) dw = E(W 2) also follows from Theorem 3.5.3.

Example 3.6.1

An urn contains five chips, two red and three white. Suppose that two are drawn out simultaneously. Let X denote the number of red chips in the sample. Find Var(X ).

Note, first, that since the chips are not being replaced from drawing to drawing, X is a hypergeometric random variable. Moreover, we need to find μ, regardless of which formula is used to calculate σ2. In the notation of Theorem 3.5.2, r = 2, w = 3, and n = 2, so

μ = rn/(r + w) = 2 · 2/(2 + 3) = 0.8

156 Chapter 3 Random Variables

To find Var(X ) using Definition 3.6.1, we write

Var(X ) = E[(X − μ)2] = ∑ all x

(x − μ)2 · fX (x)

= (0 − 0.8)2 · (2

0

)(3 2

) (5

2

) + (1 − 0.8)2 · (2

1

)(3 1

) (5

2

) + (2 − 0.8)2 · (2

2

)(3 0

) (5

2

) = 0.36

To use Theorem 3.6.1, we would first find E(X 2). From Theorem 3.5.3,

E(X 2) = ∑ all x

x2 · fX (x) = 02 · (2

0

)(3 2

) (5

2

) + 12 · (2

1

)(3 1

) (5

2

) + 22 · (2

2

)(3 0

) (5

2

) = 1.00

Then

Var(X ) = E(X 2) − μ2 = 1.00 − (0.8)2

= 0.36 confirming what we calculated earlier.

In Section 3.5 we encountered a change of scale formula that applied to expected values. For any constants a and b and any random variable W , E(aW + b) = aE(W) + b. A similar issue arises in connection with the variance of a linear transformation: If Var(W) = σ2, what is the variance of aW + b?

Theorem 3.6.2

Let W be any random variable having mean μ and where E(W 2) is finite. Then Var(aW + b) = a2Var(W). Proof Using the same approach taken in the proof of Theorem 3.6.1, it can be shown that E[(aW + b)2] = a2E(W 2) + 2abμ + b2. We also know from the corol- lary to Theorem 3.5.3 that E(aW + b) = aμ + b. Using Theorem 3.6.1, then, we can write

Var(aW + b) = E[(aW + b)2] − [E(aW + b)]2

= [a2E(W 2) + 2abμ + b2] − [aμ + b]2

= [a2E(W 2) + 2abμ + b2] − [a2μ2 + 2abμ + b2] = a2[E(W 2) − μ2] = a2Var(W)

Example 3.6.2

A random variable Y is described by the pdf

fY (y) = 2y, 0 ≤ y ≤ 1 What is the standard deviation of 3Y + 2?

First, we need to find the variance of Y . But

E(Y) = ∫ 1

0 y · 2y dy = 2

3

and

E(Y 2) = ∫ 1

0 y2 · 2y dy = 1

2

Section 3.6 The Variance 157

so

Var(Y) = E(Y 2) − μ2 = 1 2

− (

2 3

)2

= 1 18

Then, by Theorem 3.6.2,

Var(3Y + 2) = (3)2 · Var(Y) = 9 · 1 18

= 1 2

which makes the standard deviation of 3Y + 2 equal to √

1 2 or 0.71.

Comment When the median is used as the measure of central tendency, the usual measure of dispersion is called the interquartile range. It marks off the middle 50% of the data. In other words, let Q1 represent the first quartile; that is, P(Y ≤ Q1) = 0.25 and Q3 represent the third quartile, that is P(Y ≤ Q3) = 0.75. Then Q3 − Q1 is the interquartile range.

Example 3.6.3

For fY (y) = 3y2, 0 ≤ y ≤ 1, Q1 is the solution to the equation 0.25 = ∫ Q1

0 3y 2dy,

or 0.25 = Q31, giving Q1 = 3 √

0.25 = 0.630. Similarly Q3 = 3 √

0.75 = 0.909, so the interquartile range is 0.909 − 0.630 = 0.279.

Questions

3.6.1. Find Var(X ) for the urn problem of Example 3.6.1 if the sampling is done with replacement.

3.6.2. Find the variance of Y if

fY (y) =

⎧⎪⎨ ⎪⎩

3 4 , 0 ≤ y ≤ 1 1 4 , 2 ≤ y ≤ 3 0, elsewhere

3.6.3. Ten equally qualified applicants, six men and four women, apply for three lab technician positions. Unable to justify choosing any of the applicants over all the oth- ers, the personnel director decides to select the three at random. Let X denote the number of men hired. Com- pute the standard deviation of X .

3.6.4. A certain hospitalization policy pays a cash benefit for up to five days in the hospital. It pays $250 per day for the first three days and $150 per day for the next two. The number of days of hospitalization, X , is a discrete random variable with probability function P(X = k) = 115 (6 − k) for k = 1, 2, 3, 4, 5. Find Var(X ).

3.6.5. Use Theorem 3.6.1 to find the variance of the ran- dom variable Y , where

fY (y) = 3(1 − y)2, 0 < y < 1

3.6.6. If

fY (y) = 2yk2 , 0 ≤ y ≤ k

for what value of k does Var(Y) = 2? 3.6.7. Calculate the standard deviation, σ, for the random variable Y whose pdf has the graph shown below:

1 2

1 2 30

1

y

f (y)Y

3.6.8. Consider the pdf defined by

fY (y) = 2y3 , y ≥ 1

Show that (a) ∫∞

1 fY (y) dy = 1, (b) E(Y) = 2, and (c) Var(Y) is not finite.

3.6.9. Frankie and Johnny play the following game. Frankie selects a number at random from the interval [a, b]. Johnny, not knowing Frankie’s number, is to pick a second number from that same interval and pay Frankie an amount, W , equal to the squared difference between

158 Chapter 3 Random Variables

the two [so 0 ≤ W ≤ (b − a)2]. What should be Johnny’s strategy if he wants to minimize his expected loss?

3.6.10. Let Y be a random variable whose pdf is given by fY (y) = 5y4, 0 ≤ y ≤ 1. Use Theorem 3.6.1 to find Var(Y).

3.6.11. Suppose that Y is an exponential random variable, so fY (y) = λe−λy, y ≥ 0. Show that the variance of Y is 1/λ2.

3.6.12. Suppose that Y is an exponential random vari- able with λ = 2 (recall Question 3.6.11). Find P[Y > E(Y) + 2√Var(Y)]. 3.6.13. Let X be a random variable with finite mean μ. Define for every real number a, g (a) = E[(X −a)2]. Show that

g (a) = E[(X − μ)2] + (μ − a)2. What is another name for min g (a)?

3.6.14. Suppose the charge for repairing an automobile averages $200 with a standard deviation of $16. If a 10% tax is added to the charge and then a $15 flat fee for en- vironmental impact, what is the standard deviation of the charge to the car owner?

3.6.15. If Y denotes a temperature recorded in degrees Fahrenheit, then 59 (Y −32) is the corresponding tempera- ture in degrees Celsius. If the standard deviation for a set of temperatures is 15.7◦F, what is the standard deviation of the equivalent Celsius temperatures?

3.6.16. If E(W) = μ and Var(W) = σ2, show that

E (

W − μ σ

) = 0 and Var

( W − μ

σ

) = 1

3.6.17. Suppose U is a uniform random variable over [0, 1]. (a) Show that Y = (b − a)U + a is uniform over [a, b]. (b) Use part (a) and Theorem 3.6.2 to find the variance of Y .

3.6.18. Recovering small quantities of calcium in the pres- ence of magnesium can be a difficult problem for an an- alytical chemist. Suppose the amount of calcium Y to be recovered is uniformly distributed between 4 and 7 mg. The amount of calcium recovered by one method is the random variable

W1 = 0.2281 + (0.9948)Y + E1 where the error term E1 has mean 0 and variance 0.0427 and is independent of Y .

A second procedure has random variable

W2 = −0.0748 + (1.0024)Y + E2 where the error term E2 has mean 0 and variance 0.0159 and is independent of Y .

The better technique should have a mean as close as possible to the mean of Y(=5.5), and a variance as small as possible. Compare the two methods on the basis of mean and variance.

HIGHER MOMENTS

The quantities we have identified as the mean and the variance are actually special cases of what are referred to more generally as the moments of a random variable. More precisely, E(W) is the first moment about the origin and σ2 is the second mo- ment about the mean. As the terminology suggests, we will have occasion to define higher moments of W . Just as E(W) and σ2 reflect a random variable’s location and dispersion, so it is possible to characterize other aspects of a distribution in terms of other moments. We will see, for example, that the skewness of a distribution—that is, the extent to which it is not symmetric around μ—can be effectively measured in terms of a third moment. Likewise, there are issues that arise in certain applied statistics problems that require a knowledge of the flatness of a pdf, a property that can be quantified by the fourth moment.

Definition 3.6.2 Let W be any random variable with pdf fW (w). For any positive integer r,

a. The rth moment of W about the origin, μr, is given by

μr = E(W r) provided

∫ ∞ −∞ |w|r · fW (w) dw < ∞ (or provided the analogous condition on

the summation of |w|r holds, if W is discrete). When r = 1, we usually delete the subscript and write E(W) as μ rather than μ1.

Section 3.6 The Variance 159

b. The rth moment of W about the mean, μ′r, is given by

μ′r = E[(W − μ)r] provided the finiteness conditions of part 1 hold.

Comment We can express μ′r in terms of μ j, j = 1, 2, . . . , r, by simply writing out the binomial expansion of (W − μ)r:

μ′r = E[(W − μ)r] = r∑

j=0

( r j

) E(W j)(−μ)r− j

Thus,

μ′2 = E[(W − μ)2] = σ2 = μ2 − μ21 μ′3 = E[(W − μ)3] = μ3 − 3μ1μ2 + 2μ31 μ′4 = E[(W − μ)4] = μ4 − 4μ1μ3 + 6μ21μ2 − 3μ41

and so on.

Example 3.6.4

The skewness of a pdf can be measured in terms of its third moment about the mean. If a pdf is symmetric, E[(W − μ)3] will obviously be zero; for pdfs not symmetric, E[(W − μ)3] will not be zero. In practice, the symmetry (or lack of symmetry) of a pdf is often measured by the coefficient of skewness, γ1, where

γ1 = E[(W − μ) 3]

σ3

Dividing μ′3 by σ 3 makes γ1 dimensionless.

A second “shape” parameter in common use is the coefficient of kurtosis, γ2, which involves the fourth moment about the mean. Specifically,

γ2 = E[(W − μ) 4]

σ4 − 3

For certain pdfs, γ2 is a useful measure of the probability of outliers (“fat tails”). Relatively flat pdfs are said to be platykurtic; more peaked pdfs are called leptokurtic.

Earlier in this chapter we encountered random variables whose means do not exist— recall, for example, the St. Petersburg paradox. More generally, there are random variables having certain of their higher moments finite and certain others, not finite. Addressing the question of whether or not a given E(W j) is finite is the following existence theorem.

Theorem 3.6.3

If the kth moment of a random variable exists, all moments of order less than k exist.

Proof Let fY (y) be the pdf of a continuous random variable Y . By Defini- tion 3.6.2, E(Y k) exists if and only if∫ ∞

−∞ |y|k · fY (y) dy < ∞ (3.6.2)

(Continued on next page)

160 Chapter 3 Random Variables

(Theorem 3.6.3 continued)

Let 1 ≤ j < k. To prove the theorem we must show that∫ ∞ −∞

|y| j · fY (y) dy < ∞

is implied by Inequality 3.6.2. But∫ ∞ −∞

|y| j · fY (y) dy = ∫

|y|≤1 |y| j · fY (y) dy +

∫ |y|>1

|y| j · fY (y) dy

≤ ∫

|y|≤1 fY (y) dy +

∫ |y|>1

|y| j · fY (y) dy

≤ 1 + ∫

|y|>1 |y| j · fY (y) dy

≤ 1 + ∫

|y|>1 |y|k · fY (y) dy < ∞

Therefore, E(Y j) exists, j = 1, 2, . . . , k − 1. The proof for discrete random vari- ables is similar.

Questions

3.6.19. Let Y be a uniform random variable defined over the interval (0, 2). Find an expression for the rth moment of Y about the origin. Also, use the binomial expansion as described in the Comment to find E[(Y − μ)6]. 3.6.20. Find the coefficient of skewness for an exponential random variable having the pdf

fY (y) = e−y, y > 0 3.6.21. Calculate the coefficient of kurtosis for a uniform random variable defined over the unit interval, fY (y) = 1, for 0 ≤ y ≤ 1. 3.6.22. Suppose that W is a random variable for which E[(W−μ)3] = 10 and E(W 3) = 4. Is it possible that μ = 2? 3.6.23. If Y = aX + b, a > 0, show that Y has the same coefficients of skewness and kurtosis as X .

3.6.24. Let Y be the random variable of Question 3.4.6, where for a positive integer n, fY (y) = (n + 2)(n + 1)yn(1 − y), 0 ≤ y ≤ 1. (a) Find Var(Y). (b) For any positive integer k, find the kth moment around the origin.

3.6.25. Suppose that the random variable Y is described by the pdf

fY (y) = c · y−6, y > 1

(a) Find c. (b) What is the highest moment of Y that exists?

3.7 Joint Densities Sections 3.3 and 3.4 introduced the basic terminology for describing the proba- bilistic behavior of a single random variable. Such information, while adequate for many problems, is insufficient when more than one variable are of interest to the ex- perimenter. Medical researchers, for example, continue to explore the relationship between blood cholesterol and heart disease, and, more recently, between “good” cholesterol and “bad” cholesterol. And more than a little attention—both political and pedagogical—is given to the role played by K–12 funding in the performance of would-be high school graduates on exit exams. On a smaller scale, electronic equip- ment and systems are often designed to have built-in redundancy: Whether or not that equipment functions properly ultimately depends on the reliability of two dif- ferent components.

Section 3.7 Joint Densities 161

The point is, there are many situations where two relevant random variables, say, X and Y , are defined on the same sample space.2 Knowing only fX (x) and fY (y), though, does not necessarily provide enough information to characterize the all-important simultaneous behavior of X and Y . The purpose of this section is to introduce the concepts, definitions, and mathematical techniques associated with distributions based on two (or more) random variables.

DISCRETE JOINT PDFS

As we saw in the single-variable case, the pdf is defined differently depending on whether the random variable is discrete or continuous. The same distinction applies to joint pdfs. We begin with a discussion of joint pdfs as they apply to two discrete random variables.

Definition 3.7.1 Suppose S is a discrete sample space on which two random variables, X and Y , are defined. The joint probability density function of X and Y (or joint pdf) is denoted pX,Y (x, y), where

pX,Y (x, y) = P({s|X (s) = x and Y(s) = y})

Comment A convenient shorthand notation for the meaning of pX,Y (x, y), consis- tent with what we used earlier for pdfs of single discrete random variables, is to write pX,Y (x, y) = P(X = x,Y = y).

Example 3.7.1

A supermarket has two express lines. Let X and Y denote the number of customers in the first and in the second, respectively, at any given time. During nonrush hours, the joint pdf of X and Y is summarized by the following table:

X 0 1 2 3

0 0.1 0.2 0 0 1 0.2 0.25 0.05 0

Y 2 0 0.05 0.05 0.025 3 0 0 0.025 0.05

Find P(|X − Y | = 1), the probability that X and Y differ by exactly 1. By definition,

P(|X − Y | = 1) = ∑

|x−y|=1

∑ pX,Y (x, y)

= pX,Y (0, 1) + pX,Y (1, 0) + pX,Y (1, 2) + pX,Y (2, 1) + pX,Y (2, 3) + pX,Y (3, 2)

= 0.2 + 0.2 + 0.05 + 0.05 + 0.025 + 0.025 = 0.55

[Would you expect pX,Y (x, y) to be symmetric? Would you expect the event |X − Y | ≥ 2 to have zero probability?]

2 For the next several sections we will suspend our earlier practice of using X to denote a discrete random variable and Y to denote a continuous random variable. The category of the random variables will need to be determined from the context of the problem. Typically, though, X and Y will either be both discrete or both continuous.

162 Chapter 3 Random Variables

Example 3.7.2

Suppose two fair dice are rolled. Let X be the sum of the numbers showing, and let Y be the larger of the two. So, for example,

pX,Y (2, 3) = P(X = 2,Y = 3) = P(∅) = 0

pX,Y (4, 3) = P(X = 4,Y = 3) = P({(1, 3)(3, 1)}) = 236 and

pX,Y (6, 3) = P(X = 6,Y = 3) = P({(3, 3)}) = 136 The entire joint pdf is given in Table 3.7.1.

Table 3.7.1 �����x

y 1 2 3 4 5 6 Row totals

2 1/36 0 0 0 0 0 1/36 3 0 2/36 0 0 0 0 2/36 4 0 1/36 2/36 0 0 0 3/36 5 0 0 2/36 2/36 0 0 4/36 6 0 0 1/36 2/36 2/36 0 5/36 7 0 0 0 2/36 2/36 2/36 6/36 8 0 0 0 1/36 2/36 2/36 5/36 9 0 0 0 0 2/36 2/36 4/36

10 0 0 0 0 1/36 2/36 3/36 11 0 0 0 0 0 2/36 2/36 12 0 0 0 0 0 1/36 1/36

Col. totals 1/36 3/36 5/36 7/36 9/36 11/36

Notice that the row totals in the right-hand margin of the table give the pdf for X . Similarly, the column totals along the bottom detail the pdf for Y . Those are not coincidences. Theorem 3.7.1 gives a formal statement of the relationship between the joint pdf and the individual pdfs.

Theorem 3.7.1

Suppose that pX,Y (x, y) is the joint pdf of the discrete random variables X and Y. Then

pX (x) = ∑ all y

pX,Y (x, y) and pY (y) = ∑ all x

pX,Y (x, y)

Proof We will prove the first statement. Note that the collection of sets (Y = y) for all y forms a partition of S; that is, they are disjoint and

⋃ all y(Y = y) = S. The set

(X = x) = (X = x) ∩ S = (X = x) ∩⋃all y(Y = y) = ⋃all y[(X = x) ∩ (Y = y)], so pX (x) = P(X = x) = P

⎛ ⎝⋃

all y

[(X = x) ∩ (Y = y)] ⎞ ⎠

= ∑ all y

P(X = x,Y = y) = ∑ all y

pX,Y (x, y)

Section 3.7 Joint Densities 163

Definition 3.7.2 An individual pdf obtained by summing a joint pdf over all values of the other random variable is called a marginal pdf.

CONTINUOUS JOINT PDFS

If X and Y are both continuous random variables, Definition 3.7.1 does not apply because P(X = x,Y = y) will be identically 0 for all (x, y). As was the case in single- variable situations, the joint pdf for two continuous random variables will be defined as a function that when integrated yields the probability that (X,Y) lies in a specified region of the xy-plane.

Definition 3.7.3 Two random variables defined on the same set of real numbers are jointly con- tinuous if there exists a function fX,Y (x, y) such that for any region R in the xy-plane, P[(X,Y) ∈ R] = ∫ ∫R fX,Y (x, y) dx dy. The function fX,Y (x, y) is the joint pdf of X and Y.

Comment Any function fX,Y (x, y) for which

1. fX,Y (x, y) ≥ 0 for all x and y 2.

∫ ∞ −∞

∫ ∞ −∞

fX,Y (x, y) dx dy = 1

qualifies as a joint pdf. We shall employ the convention of naming the domain only where the joint pdf is nonzero; everywhere else it will be assumed to be zero. This is analogous, of course, to the notation used earlier in describing the domain of single random variables. Also, for the functions used, the order of integration does not matter.

Example 3.7.3

Suppose that the variation in two continuous random variables, X and Y , can be modeled by the joint pdf fX,Y (x, y) = cxy, for 0 < y < x < 1. Find c.

By inspection, fX,Y (x, y) will be nonnegative as long as c ≥ 0. The particular c that qualifies fX,Y (x, y) as a joint pdf, though, is the one that makes the volume under fX,Y (x, y) equal to 1. But∫ ∫

S cxy dy dx = 1 = c

∫ 1 0

[∫ x 0

(xy) dy ]

dx = c ∫ 1

0 x (

y2

2

∣∣∣x 0

) dx

= c ∫ 1

0

( x3

2

) dx = cx

4

8

∣∣∣1 0

= (

1 8

) c

Therefore, c = 8.

Example 3.7.4

A study claims that the daily number of hours, X , a teenager watches television and the daily number of hours, Y , he works on his homework are approximated by the joint pdf

fX,Y (x, y) = xye−(x+y), x > 0, y > 0

164 Chapter 3 Random Variables

What is the probability that a teenager chosen at random spends at least twice as much time watching television as he does working on his homework?

The region, R, in the xy-plane corresponding to the event “X ≥ 2Y” is shown in Figure 3.7.1. It follows that P(X ≥ 2Y) is the volume under fX,Y (x, y) above the region R:

P(X ≥ 2Y) = ∫ ∞

0

∫ x/2 0

xye−(x+y) dy dx

0 x

x = 2y

y

R

Figure 3.7.1

Separating variables, we can write

P(X ≥ 2Y) = ∫ ∞

0 xe−x

[∫ x/2 0

ye−ydy

] dx

and the double integral reduces to 727 :

P(X ≥ 2Y) = ∫ ∞

0 xe−x

[ 1 −

(x 2

+ 1 )

e−x/2 ]

dx

= ∫ ∞

0 xe−xdx −

∫ ∞ 0

x2

2 e−3x/2 dx −

∫ ∞ 0

xe−3x/2dx

= 1 − 16 54

− 4 9

= 7 27

GEOMETRIC PROBABILITY

One particularly important special case of Definition 3.7.3 is the joint uniform pdf, which is represented by a surface having a constant height everywhere above a spec- ified rectangle in the xy-plane. That is,

fX,Y (x, y) = 1(b − a)(d − c) , a ≤ x ≤ b, c ≤ y ≤ d

If R is some region in the rectangle where X and Y are defined, P((X,Y) ∈ R) reduces to a simple ratio of areas:

P((X,Y) ∈ R) = area of R (b − a)(d − c) (3.7.1)

Calculations based on Equation 3.7.1 are referred to as geometric probabilities.

Section 3.7 Joint Densities 165

Example 3.7.5

Two friends agree to meet on the University Commons “sometime around 12:30.” But neither of them is particularly punctual—or patient. What will actually happen is that each will arrive at random sometime in the interval from 12:00 to 1:00. If one arrives and the other is not there, the first person will wait fifteen minutes or until 1:00, whichever comes first, and then leave. What is the probability that the two will get together?

To simplify notation, we can represent the time period from 12:00 to 1:00 as the interval from zero to sixty minutes. Then if x and y denote the two arrival times, the sample space is the 60 × 60 square shown in Figure 3.7.2. Furthermore, the event M, “The two friends meet,” will occur if and only if |x − y| ≤ 15 or, equivalently, if and only if −15 ≤ x − y ≤ 15. These inequalities appear as the shaded region in Figure 3.7.2.

0 x

y

60

(45, 60)

(15, 0)

x – y = –15

x – y = 15

60

(60, 45)

(0, 15) M

Figure 3.7.2

Notice that the areas of the triangles above and below M are each equal to 1 2 (45)(45). It follows that the two friends have a 44% chance of meeting:

P(M) = area of M area of S

= (60) 2 − 2[ 12 (45)(45)]

(60)2

= 0.44

Example 3.7.6

A carnival operator wants to set up a ringtoss game. Players will throw a ring of diameter d onto a grid of squares, the side of each square being of length s (see Fig- ure 3.7.3). If the ring lands entirely inside a square, the player wins a prize. To ensure a profit, the operator must keep the player’s chances of winning down to something less than one in five. How small can the operator make the ratio d/s?

d s s

Figure 3.7.3

First, assume that the player is required to stand far enough away that no skill is involved and the ring is falling at random on the grid. From Figure 3.7.4, we see that in order for the ring not to touch any side of the square, the ring’s center must be somewhere in the interior of a smaller square, each side of which is a distance d/2 from one of the grid lines.

166 Chapter 3 Random Variables

s

s d 2

Figure 3.7.4

Since the area of a grid square is s2 and the area of an interior square is (s − d)2, the probability of a winning toss can be written as the ratio:

P(Ring touches no lines) = (s − d) 2

s2

But the operator requires that

(s − d)2 s2

≤ 0.20 Solving for d/s gives

d s

≥ 1 − √

0.20 = 0.55 That is, if the diameter of the ring is at least 55% as long as the side of one of the squares, the player will have no more than a 20% chance of winning.

Questions

3.7.1. If pX,Y (x, y) = cxy at the points (1, 1), (2, 1), (2, 2), and (3, 1), and equals 0 elsewhere, find c.

3.7.2. Let X and Y be two continuous random vari- ables defined over the unit square. What does c equal if fX,Y (x, y) = c(x2 + y2)? 3.7.3. Suppose that random variables X and Y vary in ac- cordance with the joint pdf, fX,Y (x, y) = c(x+y), 0 < x < y < 1. Find c.

3.7.4. Find c if fX,Y (x, y) = cxy for X and Y defined over the triangle whose vertices are the points (0, 0), (0, 1), and (1, 1).

3.7.5. An urn contains four red chips, three white chips, and two blue chips. A random sample of size 3 is drawn without replacement. Let X denote the number of white chips in the sample and Y the number of blue chips. Write a formula for the joint pdf of X and Y .

3.7.6. Four cards are drawn from a standard poker deck. Let X be the number of kings drawn and Y the number of queens. Find pX,Y (x, y).

3.7.7. An advisor looks over the schedules of his fifty stu- dents to see how many math and science courses each has

registered for in the coming semester. He summarizes his results in a table. What is the probability that a student selected at random will have signed up for more math courses than science courses?

Number of math courses, X

0 1 2

Number of science courses, Y

0 11 6 4 1 9 10 3 2 5 0 2

3.7.8. Consider the experiment of tossing a fair coin three times. Let X denote the number of heads on the last flip, and let Y denote the total number of heads on the three flips. Find pX,Y (x, y).

3.7.9. Suppose that two fair dice are tossed one time. Let X denote the number of 2’s that appear, and Y the num- ber of 3’s. Write the matrix giving the joint probability density function for X and Y . Suppose a third random variable, Z, is defined, where Z = X + Y. Use pX,Y (x, y) to find pZ(z).

Section 3.7 Joint Densities 167

3.7.10. Let X be the time in days between a car accident and reporting a claim to the insurance company. Let Y be the time in days between the report and payment of the claim. Suppose that fX,Y (x, y) = c, 0 ≤ x ≤ 7, 0 ≤ y ≤ 7, and zero otherwise. (a) Find c. (b) Find P(0 ≤ X ≤ 2, 0 ≤ Y ≤ 4). 3.7.11. Let X and Y have the joint pdf

fX,Y (x, y) = 2e−(x+y), 0 < x < y, 0 < y Find P(Y < 3X ).

3.7.12. A point is chosen at random from the interior of a circle whose equation is x2 + y2 ≤ 4. Let the random

variables X and Y denote the x- and y-coordinates of the sampled point. Find fX,Y (x, y).

3.7.13. Find P(X < 2Y) if fX,Y (x, y) = x + y for X and Y each defined over the unit interval.

3.7.14. Suppose that five independent observations are drawn from the continuous pdf fT (t) = 2t, 0 ≤ t ≤ 1. Let X denote the number of t’s that fall in the interval 0 ≤ t < 13 and let Y denote the number of t’s that fall in the interval 13 ≤ t < 23 . Find pX,Y (1, 2). 3.7.15. A point is chosen at random from the interior of a right triangle with base b and height h. What is the prob- ability that the y value is between 0 and h/2?

MARGINAL PDFS FOR CONTINUOUS RANDOM VARIABLES

The notion of marginal pdfs in connection with discrete random variables was in- troduced in Theorem 3.7.1 and Definition 3.7.2. An analogous relationship holds in the continuous case—integration, though, replaces the summation that appears in Theorem 3.7.1.

Theorem 3.7.2

Suppose X and Y are jointly continuous with joint pdf fX,Y (x, y). Then the marginal pdfs, fX (x) and fY (y), are given by

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy and fY (y) =

∫ ∞ −∞

fX,Y (x, y) dx

Proof It suffices to verify the first of the theorem’s two equalities. As is often the case with proofs for continuous random variables, we begin with the cdf:

FX (x) = P(X ≤ x) = ∫ ∞

−∞

∫ x −∞

fX,Y (t, y) dt dy = ∫ x

−∞

∫ ∞ −∞

fX,Y (x, y) dy dt

Differentiating both ends of the equation above gives

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy

Recall Theorem 3.4.1.

Example 3.7.7

Suppose that two continuous random variables, X and Y , have the joint uniform pdf

fX,Y (x, y) = 16 , 0 ≤ x ≤ 3, 0 ≤ y ≤ 2

Find fX (x). Applying Theorem 3.7.2 gives

fX (x) = ∫ 2

0 fX,Y (x, y) dy =

∫ 2 0

1 6

dy = 1 3 , 0 ≤ x ≤ 3

Notice that X , by itself, is a uniform random variable defined over the interval [0, 3]; similarly, we would find that fY (y) is a uniform pdf over the interval [0, 2].

168 Chapter 3 Random Variables

Example 3.7.8

Consider the case where X and Y are two continuous random variables, jointly dis- tributed over the first quadrant of the xy-plane according to the joint pdf,

fX,Y (x, y) = {

y2e−y(x+1) x ≥ 0, y ≥ 0 0 elsewhere

Find the two marginal pdfs. First, consider fX (x). By Theorem 3.7.2,

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy =

∫ ∞ 0

y2e−y(x+1) dy

In the integrand, substitute

u = y(x + 1) making du = (x + 1) dy. This gives

fX (x) = 1x + 1 ∫ ∞

0

u2

(x + 1)2 e −u du = 1

(x + 1)3 ∫ ∞

0 u2e−u du

After applying integration by parts (twice) to ∫∞

0 u 2e−u du, we get

fX (x) = 1(x + 1)3 [−u2e−u − 2ue−u − 2e−u]∣∣∞0

= 1 (x + 1)3

[ 2 − lim

u→∞

( u2

eu + 2u

eu + 2

eu

)]

= 2 (x + 1)3 , x ≥ 0

Finding fY (y) is a bit easier:

fY (y) = ∫ ∞

−∞ fX,Y (x, y) dx =

∫ ∞ 0

y2e−y(x+1) dx

= y2e−y ∫ ∞

0 e−yx dx = y2e−y

( 1 y

)( −e−yx

∣∣∣∣∞ 0

) = ye−y, y ≥ 0

Questions

3.7.16. Find the marginal pdf of X for the joint pdf derived in Question 3.7.5.

3.7.17. Find the marginal pdfs of X and Y for the joint pdf derived in Question 3.7.8.

3.7.18. The campus recruiter for an international con- glomerate classifies the large number of students she in- terviews into three categories—the lower quarter, the middle half, and the upper quarter. If she meets six stu- dents on a given morning, what is the probability that they will be evenly divided among the three categories? What is the marginal probability that exactly two will belong to the middle half?

3.7.19. For each of the following joint pdfs, find fX (x) and fY (y). (a) fX,Y (x, y) = 12 , 0 ≤ x ≤ 2, 0 ≤ y ≤ 1 (b) fX,Y (x, y) = 32 y2, 0 ≤ x ≤ 2, 0 ≤ y ≤ 1 (c) fX,Y (x, y) = 23 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 (d) fX,Y (x, y) = c(x + y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 (e) fX,Y (x, y) = 4xy, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 (f) fX,Y (x, y) = xye−(x+y), 0 ≤ x, 0 ≤ y (g) fX,Y (x, y) = ye−xy−y, 0 ≤ x, 0 ≤ y 3.7.20. For each of the following joint pdfs, find fX (x) and fY (y).

Section 3.7 Joint Densities 169

(a) fX,Y (x, y) = 12 , 0 ≤ x ≤ y ≤ 2 (b) fX,Y (x, y) = 1x , 0 ≤ y ≤ x ≤ 1 (c) fX,Y (x, y) = 6x, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x 3.7.21. Suppose that fX,Y (x, y) = 6(1 − x − y) for x and y defined over the unit square, subject to the restriction that 0 ≤ x + y ≤ 1. Find the marginal pdf for X . 3.7.22. Find fY (y) if fX,Y (x, y) = 2e−xe−y for x and y de- fined over the shaded region pictured.

0 x

y

y = x

3.7.23. Suppose that X and Y are discrete random vari- ables with

pX,Y (x, y) = 4!x!y!(4 − x − y)! (

1 2

)x (1 3

)y (1 6

)4−x−y ,

0 ≤ x + y ≤ 4 Find pX (x) and pY (x).

3.7.24. A generalization of the binomial model occurs when there is a sequence of n independent trials with three outcomes,where p1 = P(outcome1)and p2 = P(outcome2). Let X and Y denote the number of trials (out of n) result- ing in outcome 1 and outcome 2, respectively.

(a) Show that pX,Y (x, y) = n!x!y!(n − x − y)! p x 1 p

y 2

(1 − p1 − p2)n−x−y, 0 ≤ x + y ≤ n (b) Find pX (x) and pY (x).

(Hint: See Question 3.7.23.)

JOINT CDFS

For a single random variable X , the cdf of X evaluated at some point x—that is, FX (x)—is the probability that the random variable X takes on a value less than or equal to x. Extended to two variables, a joint cdf [evaluated at the point (x, y)] is the probability that X ≤ x and, simultaneously, that Y ≤ y.

Definition 3.7.4 Let X and Y be any two random variables. The joint cumulative distribution function of X and Y (or joint cdf ) is denoted FX,Y (x, y), where

FX,Y (x, y) = P(X ≤ x and Y ≤ y)

Example 3.7.9

Find the joint cdf, FX,Y (x, y), for the two random variables X and Y with joint pdf fX,Y (x, y) = 43 (x + xy), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1.

If Definition 3.7.4 is applied, the probability that X ≤ x and Y ≤ y becomes a double integral of the pdf. In order to keep the cdf a function of x and y, use u and v as the variables of integration.

FX,Y (x, y) = 43 ∫ y

0

∫ x 0

(u + uv) du dv = 4 3

∫ y 0

(∫ x 0

(u + uv) du )

dv

= 4 3

∫ y 0

( u2

2 (1 + v)

∣∣∣∣ x

0

) dv = 4

3

∫ y 0

x2

2 (1 + v) dv

= 4 3

x2

2

( v + v

2

2

)∣∣∣∣ y

0 = 4

3 x2

2

( y + y

2

2

) ,

which simplifies to

FX,Y (x, y) = 13x 2(2y + y2).

[For what values of x and y is FX,Y (x, y) defined?]

170 Chapter 3 Random Variables

Theorem 3.7.3

Let FX,Y (x, y) be the joint cdf associated with the continuous random variables X and Y. Then the joint pdf of X and Y, fX,Y (x, y), is a second partial derivative of the

joint cdf, that is, fX,Y (x, y) = ∂ 2

∂x∂y FX,Y (x, y), provided FX,Y (x, y) has continuous

second partial derivatives.

Example 3.7.10

What is the joint pdf of the random variables X and Y whose joint cdf is FX,Y (x, y) = 1 3 x

2(2y + y2), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1? By Theorem 3.7.3,

fX,Y (x, y) = ∂ 2

∂x ∂y FX,Y (x, y) = ∂

2

∂x ∂y 1 3

x2(2y + y2)

= ∂ ∂y

2 3

x(2y + y2) = 2 3

x(2 + 2y) = 4 3

(x + xy), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1

Notice the similarity between Examples 3.7.9 and 3.7.10. fX,Y (x, y) is the same in both examples; so is FX,Y (x, y).

MULTIVARIATE DENSITIES

The definitions and theorems in this section extend in a very straightforward way to situations involving more than two variables. The joint pdf for n discrete random variables, for example, is denoted pX1,...,Xn (x1, . . . , xn) where

pX1,...,Xn (x1, . . . , xn) = P(X1 = x1, . . . , Xn = xn)

For n continuous random variables, the joint pdf is that function fX1,...,Xn (x1, . . . , xn) having the property that for any region R in n-space,

P[(X1, . . . , Xn) ∈ R] = ∫∫

R · · ·

∫ fX1,...,Xn (x1, . . . , xn) dx1 · · · dxn

And if FX1,...,Xn (x1, . . . , xn) is the joint cdf of continuous random variables X1, . . . , Xn—that is, FX1,...,Xn (x1, . . . , xn) = P(X1 ≤ x1, . . . , Xn ≤ xn)—then

fX1,...,Xn (x1, . . . , xn) = ∂n

∂x1 · · · ∂xn FX1,...,Xn (x1, . . . , xn)

The notion of a marginal pdf also extends readily, although in the n-variate case, a marginal pdf can, itself, be a joint pdf. Given X1, . . . , Xn, the marginal pdf of any subset of r of those variables (Xi1 , Xi2 , . . . , Xir ) is derived by integrating (or summing) the joint pdf with respect to the remaining n − r variables (Xj1 , Xj2 , . . . , Xjn−r ). If the Xi’s are all continuous, for example,

fXi1,...,Xir (xi1 , . . . , xir ) = ∫ ∞

−∞

∫ ∞ −∞

· · · ∫ ∞

−∞ fX1,...,Xn (x1, . . . , xn) dxj1 · · · dxjn−r

Section 3.7 Joint Densities 171

Questions

3.7.25. Consider the experiment of simultaneously toss- ing a fair coin and rolling a fair die. Let X denote the number of heads showing on the coin and Y the number of spots showing on the die. (a) List the outcomes in S. (b) Find FX,Y (1, 2).

3.7.26. An urn contains twelve chips—four red, three black, and five white. A sample of size 4 is to be drawn without replacement. Let X denote the number of white chips in the sample, Y the number of red. Find FX,Y (1, 2).

3.7.27. For each of the following joint pdfs, find FX,Y (x, y). (a) fX,Y (x, y) = 32 y2, 0 ≤ x ≤ 2, 0 ≤ y ≤ 1 (b) fX,Y (x, y) = 23 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 (c) fX,Y (x, y) = 4xy, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1

3.7.28. For each of the following joint pdfs, find FX,Y (x, y). (a) fX,Y (x, y) = 12 , 0 ≤ x ≤ y ≤ 2 (b) fX,Y (x, y) = 1x , 0 ≤ y ≤ x ≤ 1 (c) fX,Y (x, y) = 6x, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x

3.7.29. Find and graph fX,Y (x, y) if the joint cdf for ran- dom variables X and Y is

FX,Y (x, y) = xy, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1

3.7.30. Find the joint pdf associated with two random vari- ables X and Y whose joint cdf is

FX,Y (x, y) = (1 − e−λy)(1 − e−λx), x > 0, y > 0

3.7.31. Given that FX,Y (x, y) = k(4x2y2 + 5xy4), 0 < x < 1, 0 < y < 1, find the corresponding pdf and use it to cal- culate P(0 < X < 12 ,

1 2 < Y < 1).

3.7.32. Prove that

P(a < X ≤ b, c < Y ≤ d) = FX,Y (b, d) − FX,Y (a, d) − FX,Y (b, c) + FX,Y (a, c)

3.7.33. A certain brand of fluorescent bulbs will last, on the average, one thousand hours. Suppose that four of these bulbs are installed in an office. What is the proba- bility that all four are still functioning after one thousand fifty hours? If Xi denotes the ith bulb’s life, assume that

fX1,X2,X3,X4 (x1, x2, x3, x4) = 4∏

i=1

( 1

1000

) e−x/1000

for xi > 0, i = 1, 2, 3, 4. 3.7.34. A hand of six cards is dealt from a standard poker deck. Let X denote the number of aces, Y the number of kings, and Z the number of queens. (a) Write a formula for pX,Y,Z(x, y, z). (b) Find pX,Y (x, y) and pX,Z(x, z).

3.7.35. Calculate pX,Y (0, 1) if pX,Y,Z(x, y, z) = 3!

x!y!z!(3−x−y−z)! ( 1

2

)x ( 1 12

)y ( 1 6

)z · ( 14 )3−x−y−z for x, y, z = 0, 1, 2, 3 and 0 ≤ x + y + z ≤ 3. 3.7.36. Suppose that the random variables X , Y , and Z have the multivariate pdf

fX,Y,Z(x, y, z) = (x + y)e−z for 0 < x < 1, 0 < y < 1, and z > 0. Find (a) fX,Y (x, y), (b) fY,Z(y, z), and (c) fZ(z).

3.7.37. The four random variables W , X , Y , and Z have the multivariate pdf

fW,X,Y,Z(w, x, y, z) = 16wxyz for 0 ≤ w ≤ 1, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, and 0 ≤ z ≤ 1. Find the marginal pdf, fW,X (w, x), and use it to compute P(0 ≤ W ≤ 12 , 12 ≤ X ≤ 1).

INDEPENDENCE OF TWO RANDOM VARIABLES

The concept of independent events that was introduced in Section 2.5 leads quite naturally to a similar definition for independent random variables.

Definition 3.7.5 Two discrete random variables X and Y are said to be independent if for every points a and b, P(X = a and Y = b) = P(X = a)P(Y = b). Two continuous random variables X and Y are said to be independent if for every interval A and every interval B, P(X ∈ A and Y ∈ B) = P(X ∈ A)P(Y ∈ B).

172 Chapter 3 Random Variables

Theorem 3.7.4

The continuous random variables X and Y are independent if and only if there are functions g (x) and h(y) such that

fX,Y (x, y) = g (x)h(y) f or all x and y (3.7.2) If Equation 3.7.2 holds, there is a constant k such that fX (x) = kg (x) and fY (y) = (1/k)h(y).

Proof First, suppose that X and Y are independent. Then FX,Y (x, y) = P(X ≤ x and Y ≤ y) = P(X ≤ x)P(Y ≤ y) = FX (x)FY (y), and we can write

fX,Y (x, y) = ∂ 2

∂x ∂y FX,Y (x, y) = ∂

2

∂x ∂y FX (x)FY (y) = ddxFX (x)

d dy

FY (y) = fX (x) fY (y)

Next we need to show that Equation 3.7.2 implies that X and Y are indepen- dent. To begin, note that

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy =

∫ ∞ −∞

g (x)h(y) dy = g (x) ∫ ∞

−∞ h(y) dy

Set k = ∫∞−∞ h(y) dy, so fX (x) = kg (x). Similarly, it can be shown that fY (y) = (1/k)h(y). Therefore,

P(X ∈ A and Y ∈ B) = ∫

A

∫ B

fX,Y (x, y) dx dy = ∫

A

∫ B

g (x)h(y) dx dy

= ∫

A

∫ B

kg (x)(1/k)h(y) dx dy = ∫

A fX (x) dx

∫ B

fY (y) dy

= P(X ∈ A)P(Y ∈ B) and the theorem is proved.

Comment Theorem 3.7.4 can be adapted to the case that X and Y are discrete.

Example 3.7.11

Suppose that the probabilistic behavior of two random variables X and Y is de- scribed by the joint pdf fX,Y (x, y) = 12xy(1 − y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1. Are X and Y independent? If they are, find fX (x) and fY (y).

According to Theorem 3.7.4, the answer to the independence question is “yes” if fX,Y (x, y) can be factored into a function of x times a function of y. There are such functions. Let g (x) = 12x and h(y) = y(1 − y).

To find fX (x) and fY (y) requires that the “12” appearing in fX,Y (x, y) be factored in such a way that g (x) · h(y) = fX (x) · fY (y). Let

k = ∫ ∞

−∞ h(y) dy =

∫ 1 0

y(1 − y) dy = [y2/2 − y3/3] ∣∣∣∣1 0

= 1 6

Therefore, fX (x) = kg (x) = 16 (12x) = 2x, 0 ≤ x ≤ 1 and fY (y) = (1/k)h(y) = 6y(1 − y), 0 ≤ y ≤ 1.

INDEPENDENCE OF n (>2) RANDOM VARIABLES

In Chapter 2, extending the notion of independence from two events to n events proved to be something of a problem. The independence of each subset of the n events had to be checked separately (recall Definition 2.5.2). This is not necessary in the case of n random variables. We simply use the extension of Theorem 3.7.4 to n random variables as the definition of independence in the multidimensional case.

Section 3.7 Joint Densities 173

The theorem that independence is equivalent to the factorization of the joint pdf holds in the multidimensional case.

Definition 3.7.6 The n random variables X1, X2, . . . , Xn are said to be independent if there are functions g1(x1), g2(x2), . . . , gn(xn) such that for every x1, x2, . . . , xn

fX1,X2,...,Xn (x1, x2, . . . , xn) = g1(x1)g2(x2) · · · gn(xn) A similar statement holds for discrete random variables, in which case f is re- placed with p.

Comment Analogous to the result for n = 2 random variables, the expression on the right-hand side of the equation in Definition 3.7.6 can also be written as the prod- uct of the marginal pdfs of X1, X2, . . . , and Xn.

Example 3.7.12

Consider k urns, each holding n chips numbered 1 through n. A chip is to be drawn at random from each urn. What is the probability that all k chips will bear the same number?

If X1, X2, . . . , Xk denote the numbers on the 1st, 2nd, . . ., and kth chips, respec- tively, we are looking for the probability that X1 = X2 = · · · = Xk. In terms of the joint pdf,

P(X1 = X2 = · · · = Xk) = ∑

x1=x2=···=xk pX1,X2,...,Xk (x1, x2, . . . , xk)

Each of the selections here is obviously independent of all the others, so the joint pdf factors according to Definition 3.7.6, and we can write

P(X1 = X2 = · · · = Xk) = n∑

i=1 pX1 (xi) · pX2 (xi) · · · pXk (xi)

= n · (

1 n

· 1 n

· · · · · 1 n

)

= 1 nk−1

RANDOM SAMPLES

Definition 3.7.6 addresses the question of independence as it applies to n random vari- ables having marginal pdfs—say, fX1 (x1), fX2 (x2), . . . , fXn (xn)—that might be quite different. A special case of that definition occurs for virtually every set of data col- lected for statistical analysis. Suppose an experimenter takes a set of n measurements, x1, x2, . . . , xn, under the same conditions. Those Xi’s, then, qualify as a set of indepen- dent random variables—moreover, each represents the same pdf. The special—but familiar—notation for that scenario is given in Definition 3.7.7. We will encounter it often in the chapters ahead.

Definition 3.7.7 Let W1,W2, . . . ,Wn be a set of n independent random variables, all having the same pdf. Then W1,W2, . . . ,Wn are said to be a random sample of size n.

174 Chapter 3 Random Variables

Questions

3.7.38. Two fair dice are tossed. Let X denote the num- ber appearing on the first die and Y the number on the second. Show that X and Y are independent.

3.7.39. Let fX,Y (x, y) = λ2e−λ(x+y), 0 ≤ x, 0 ≤ y. Show that X andY are independent. What are the marginal pdfs in this case?

3.7.40. Suppose that each of two urns has four chips, num- bered 1 through 4. A chip is drawn from the first urn and bears the number X . That chip is added to the second urn. A chip is then drawn from the second urn. Call its number Y . (a) Find pX,Y (x, y). (b) Show that pX (k) = pY (k) = 14 , k = 1, 2, 3, 4. (c) Show that X and Y are not independent.

3.7.41. Let X and Y be random variables with joint pdf

fX,Y (x, y) = k, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, 0 ≤ x + y ≤ 1 Give a geometric argument to show that X and Y are not independent.

3.7.42. Are the random variables X and Y independent if fX,Y (x, y) = 23 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1? 3.7.43. Suppose that random variables X and Y are inde- pendent with marginal pdfs fX (x) = 2x, 0 ≤ x ≤ 1, and fY (y) = 3y2, 0 ≤ y ≤ 1. Find P(Y < X ). 3.7.44. Find the joint cdf of the independent random vari-

ables X and Y , where fX (x) = x2 , 0 ≤ x ≤ 2, and fY (y) = 2y, 0 ≤ y ≤ 1. 3.7.45. If two random variables X and Y are independent with marginal pdfs fX (x) = 2x, 0 ≤ x ≤ 1, and fY (y) = 1, 0 ≤ y ≤ 1, calculate P (YX > 2).

3.7.46. Suppose fX,Y (x, y) = xye−(x+y), x > 0, y > 0. Prove for any real numbers a, b, c, and d that

P(a < X < b, c < Y < d) = P(a < X < b) · P(c < Y < d) thereby establishing the independence of X and Y .

3.7.47. Given the joint pdf fX,Y (x, y) = 2x + y − 2xy, 0 < x < 1, 0 < y < 1, find numbers a, b, c, and d such that

P(a < X < b, c < Y < d) �= P(a < X < b) · P(c < Y < d) thus demonstrating that X and Y are not independent.

3.7.48. Prove that if X and Y are two independent ran- dom variables, then U = g (X ) and V = h(Y) are also independent.

3.7.49. If two random variables X and Y are defined over a region in the XY -plane that is not a rectangle (possibly infinite) with sides parallel to the coordinate axes, can X and Y be independent?

3.7.50. Write down the joint probability density function for a random sample of size n drawn from the exponential pdf, fX (x) = (1/λ)e−x/λ, x ≥ 0. 3.7.51. Suppose that X1, X2, X3, and X4 are independent random variables, each with pdf fXi (xi) = 4x3i , 0 ≤ xi ≤ 1. Find (a) P

( X1 < 12

) .

(b) P ( exactly one Xi < 12

) .

(c) fX1,X2,X3,X4 (x1, x2, x3, x4). (d) FX2,X3 (x2, x3).

3.7.52. A random sample of size n = 2k is taken from a uniform pdf defined over the unit interval. Calculate P ( X1 < 12 , X2 >

1 2 , X3 <

1 2 , X4 >

1 2 , . . . , X2k >

1 2

) .

3.8 Transforming and Combining Random Variables

TRANSFORMATIONS

Transforming a variable from one scale to another is a problem that is comfortably familiar. If a thermometer says the temperature outside is 83◦F, we know that the temperature in degrees Celsius is 28:

◦C = (

5 9

) (◦F − 32) =

( 5 9

) (83 − 32) = 28

An analogous question arises in connection with random variables. Suppose that X is a discrete random variable with pdf pX (k). If a second random variable, Y , is defined to be aX + b, where a and b are constants, what can be said about the pdf for Y? Recall Questions 3.3.11 and 3.4.16 as examples of such transformations.

Section 3.8 Transforming and Combining Random Variables 175

Theorem 3.8.1

Suppose X is a discrete random variable. Let Y = aX + b, where a and b are constants. Then pY (y) = pX

( y−b

a

) .

Proof pY (y) = P(Y = y) = P(aX + b = y) = P (

X = y − b a

) = pX

( y − b

a

)

Example 3.8.1

Let X be a random variable for which pX (k) = 110 , for k = 1, 2, . . . , 10. What is the probability distribution associated with the random variable Y , where Y = 4X − 1? That is, find pY (y).

From Theorem 3.8.1, P(Y = y) = P(4X − 1 = y) = P[X = (y + 1)/4] = pX

( y+1

4

) , which implies that pY (y) = 110 for the ten values of (y + 1)/4 that equal 1,

2, . . ., 10. But (y+1)/4 = 1 when y = 3, (y+1)/4 = 2 when y = 7, . . . , (y+1)/4 = 10 when y = 39. Therefore, pY (y) = 110 , for y = 3, 7, . . . , 39.

Next we give the analogous result for a linear transformation of a continuous random variable.

Theorem 3.8.2

Suppose X is a continuous random variable. Let Y = aX + b, where a �= 0 and b is a constant. Then

fY (y) = 1|a| fX (

y − b a

)

Proof We begin by writing an expression for the cdf of Y :

FY (y) = P(Y ≤ y) = P(aX + b ≤ y) = P(aX ≤ y − b) At this point we need to consider two cases, the distinction being the sign of a. Suppose, first, that a > 0. Then

FY (y) = P(aX ≤ y − b) = P (

X ≤ y − b a

) and differentiating FY (y) yields fY (y):

fY (y) = ddyFY (y) = d

dy FX

( y − b

a

) = 1

a fX

( y − b

a

) = 1|a| fX

( y − b

a

) If a < 0,

FY (y) = P(aX ≤ y − b) = P (

X > y − b

a

) = 1 − P

( X ≤ y − b

a

) Differentiation in this case gives

fY (y) = ddyFY (y) = d

dy

[ 1 − FX

( y − b

a

)] = −1

a fX

( y − b

a

) = 1|a| fX

( y − b

a

) and the theorem is proved.

Now, armed with the multivariable concepts and techniques covered in Sec- tion 3.7, we can extend the investigation of transformations to functions defined on sets of random variables. In statistics, the most important combination of a set of random variables is often their sum, so we continue this section with the problem of finding the pdf of X + Y .

176 Chapter 3 Random Variables

FINDING THE PDF OF A SUM

Theorem 3.8.3

Suppose that X and Y are independent random variables. Let W = X + Y. Then 1. If X and Y are discrete random variables with pdfs pX (x) and pY (y),

respectively,

pW (w) = ∑ all x

pX (x)pY (w − x)

2. If X and Y are continuous random variables with pdfs fX (x) and fY (y), respectively,

fW (w) = ∫ ∞

−∞ fX (x) fY (w − x) dx

Proof

1. pW (w) = P(W = w) = P(X + Y = w) = P

(⋃ all x

(X = x,Y = w − x) )

= ∑ all x

P(X = x,Y = w − x)

= ∑ all x

P(X = x)P(Y = w − x)

= ∑ all x

pX (x)pY (w − x)

where the next-to-last equality derives from the independence of X and Y .

2. Since X and Y are continuous random variables, we can find fW (w) by dif- ferentiating the corresponding cdf, FW (w). Here, FW (w) = P(X + Y ≤ w) is found by integrating fX,Y (x, y) = fX (x) · fY (y) over the shaded region R, as pictured in Figure 3.8.1.

0 x

w = x + y

y

R

w

w

Figure 3.8.1

By inspection,

Fw(w) = ∫ ∞

−∞

∫ w−x −∞

fX (x) fY (y) dy dx = ∫ ∞

−∞ fX (x)

[∫ w−x −∞

fY (y) dy ]

dx

= ∫ ∞

−∞ fX (x)FY (w − x) dx

Section 3.8 Transforming and Combining Random Variables 177

Assume that the integrand in the above equation is sufficiently smooth so that differentiation and integration can be interchanged. Then we can write

fW (w) = ddw FW (w) = d

dw

∫ ∞ −∞

fX (x)FY (w − x) dx = ∫ ∞

−∞ fX (x)

[ d

dw FY (w − x)

] dx

= ∫ ∞

−∞ fX (x) fY (w − x) dx

and the theorem is proved.

Comment The integral in part (2) above is referred to as the convolution of the functions fX and fY . Besides their frequent appearances in random variable prob- lems, convolutions turn up in many areas of mathematics and engineering.

Example 3.8.2

Suppose that X and Y are two independent binomial random variables, each with the same success probability but defined on m and n trials, respectively. Specifically,

pX (k) = (

m k

) pk(1 − p)m−k, k = 0, 1, . . . , m

and

pY (k) = (

n k

) pk(1 − p)n−k, k = 0, 1, . . . , n

Find pW (w), where W = X + Y . By Theorem 3.8.3, pW (w) =

∑ all x

pX (x)pY (w − x), but the summation over “all x” needs to be interpreted as the set of values for x and w − x such that pX (x) and pY (w−x), respectively, are both nonzero. But that will be true for all integers x from 0 to w. Therefore,

pW (w) = w∑

x=0 pX (x)pY (w − x) =

w∑ x=0

( m x

) px(1 − p)m−x

( n

w − x )

pw−x(1 − p)n−(w−x)

= w∑

x=0

( m x

)( n

w − x )

pw(1 − p)n+m−w

Now, consider an urn having m red chips and n white chips. If w chips are drawn out—without replacement—the probability that exactly x red chips are in the sample is given by the hypergeometric distribution,

P(x reds in sample) = (m

x

)( n w−x

)(m+n w

) (3.8.1) Summing Equation 3.8.1 from x = 0 to x = w must equal 1 (why?), in which case

w∑ x=0

( m x

)( n

w − x )

= (

m + n w

) so

pW (w) = (

m + n w

) pw(1 − p)n+m−w, w = 0, 1, . . . , n + m

Should we recognize pW (w)? Definitely. Compare the structure of pW (w) to the statement of Theorem 3.2.1: The random variable W has a binomial distribution where the probability of success at any given trial is p and the total number of trials is n + m.

178 Chapter 3 Random Variables

Comment Example 3.8.2 shows that the binomial distribution “reproduces” itself—that is, if X and Y are independent binomial random variables with the same value for p, their sum is also a binomial random variable. Not all random variables share that property. The sum of two independent uniform random variables, for ex- ample, is not a uniform random variable (see Question 3.8.5).

Example 3.8.3

Suppose a radiation monitor relies on an electronic sensor, whose lifetime X is mod- eled by the exponential pdf, fX (x) = λe−λx, x > 0. To improve the reliability of the monitor, the manufacturer has included an identical second sensor that is acti- vated only in the event the first sensor malfunctions. (This is called cold redundancy.) Let the random variable Y denote the operating lifetime of the second sensor, in which case the lifetime of the monitor can be written as the sum W = X + Y . Find fW (w).

Since X and Y are both continuous random variables,

fW (w) = ∫ ∞

−∞ fX (x) fY (w − x) dx (3.8.2)

Notice that fX (x) > 0 only if x > 0 and that fY (w − x) > 0 only if x < w. Therefore, the integral in Equation 3.8.2 that goes from −∞ to ∞ reduces to an integral from 0 to w, and we can write

fW (w) = ∫ w

0 fX (x) fY (w − x) dx =

∫ w 0

λe−λxλe−λ(w−x) dx = λ2 ∫ w

0 e−λxe−λ(w−x) dx

= λ2e−λw ∫ w

0 dx = λ2we−λw, w ≥ 0

Comment By integrating fX (x) and fW (w), we can assess the improvement in the monitor’s reliability afforded by the cold redundancy. Since X is an exponential ran- dom variable, E(X ) = 1/λ (recall Question 3.5.11). How different, for example, are P(X ≥ 1/λ) and P(W ≥ 1/λ)? A simple calculation shows that the latter is actually twice the magnitude of the former:

P(X ≥ 1/λ) = ∫ ∞

1/λ λe−λx dx = −e−u∣∣∞1 = e−1 = 0.37

P(W ≥ 1/λ) = ∫ ∞

1/λ λ2we−λw dw = e−u(−u − 1)∣∣∞1 = 2e−1 = 0.74

FINDING THE PDFS OF QUOTIENTS AND PRODUCTS

We conclude this section by considering the pdfs for the quotient and product of two independent random variables. That is, given X and Y , we are looking for fW (w), where (1) W = Y/X and (2) W = XY . Neither of the resulting formulas is as im- portant as the pdf for the sum of two random variables, but both formulas will play key roles in several derivations in Chapter 7. Example 3.8.4 gives an introduction to the theorems in this section.

Section 3.8 Transforming and Combining Random Variables 179

Example 3.8.4

Suppose that X and Y have a joint uniform density over the unit square:

fX,Y (x, y) = {

1 0 < x < 1, 0 < y < 1

0 elsewhere

Find the pdf for their product—that is, find fZ(z), where Z = XY . For 0 < z < 1, FZ(z) is the volume above the shaded region in Figure 3.8.2.

Specifically,

FZ(z) = P(Z ≤ z) = P(XY ≤ z) = ∫∫ R

fX,Y (x, y) dy dx

z = xy

X-axisz

Y R

0

1

Figure 3.8.2

By inspection, we see that the double integral over R can be split up into two double integrals—one letting x range from 0 to z, the other having x-values extend from z to 1:

FZ(z) = ∫ z

0

(∫ 1 0

1 dy

) dx +

∫ 1 z

(∫ z/x 0

1 dy )

dx

But ∫ z 0

(∫ 1 0

1 dy

) dx =

∫ z 0

1 dx = z

and ∫ 1 z

(∫ z/x 0

1 dy )

dx = ∫ 1

z

(z x

) dx = z ln x

∣∣∣1 z

= −z ln z

It follows that

FZ(z) = ⎧⎨ ⎩

0 z ≤ 0 z − z ln z 0 < z < 1 1 z ≥ 1

in which case

fZ(z) = {− ln z 0 < z < 1

0 elsewhere

Theorem 3.8.4

Let X and Y be independent continuous random variables, with pdfs fX (x) and fY (y), respectively. Assume that X is zero for at most a set of isolated points. Let W = Y/X. Then

fW (w) = ∫ ∞

−∞ |x| fX (x) fY (wx) dx

(Continued on next page)

180 Chapter 3 Random Variables

(Theorem 3.8.4 continued)

Proof

FW (w) = P(Y/X ≤ w) = P(Y/X ≤ w and X ≥ 0) + P(Y/X ≤ w and X < 0) = P(Y ≤ wX and X ≥ 0) + P(Y ≥ wX and X < 0) = P(Y ≤ wX and X ≥ 0) + 1 − P(Y ≤ wX and X < 0)

= ∫ ∞

0

∫ wx −∞

fX (x) fY (y) dy dx + 1 − ∫ 0

−∞

∫ wx −∞

fX (x) fY (y) dy dx

Then we differentiate FW (w) to obtain

fW (w) = ddw FW (w) = d

dw

∫ ∞ 0

∫ wx −∞

fX (x) fY (y) dy dx− ddw ∫ 0

−∞

∫ wx −∞

fX (x) fY (y) dy dx

= ∫ ∞

0 fX (x)

( d

dw

∫ wx −∞

fY (y) dy )

dx − ∫ 0

−∞ fX (x)

( d

dw

∫ wx −∞

fY (y) dy )

dx

(3.8.3)

(Note that we are assuming sufficient regularity of the functions to permit inter- change of integration and differentiation.)

To proceed, we need to differentiate the function G(w) = ∫ wx−∞ fY (y) dy with respect to w. By the Fundamental Theorem of Calculus and the chain rule, we find

d dw

G(w) = d dw

∫ wx −∞

fY (y) dy = fY (wx) ddwwx = x fY (wx)

Putting this result into Equation 3.8.3 gives

fW (w) = ∫ ∞

0 x fX (x) fY (wx) dx −

∫ 0 −∞

x fX (x) fY (wx) dx

= ∫ ∞

0 x fX (x) fY (wx) dx +

∫ 0 −∞

(−x) fX (x) fY (wx) dx

= ∫ ∞

0 |x| fX (x) fY (wx) dx +

∫ 0 −∞

|x| fX (x) fY (wx) dx

= ∫ ∞

−∞ |x| fX (x) fY (wx) dx

which completes the proof.

Example 3.8.5

Let X and Y be independent random variables with pdfs fX (x) = λe−λx, x > 0, and fY (y) = λe−λy, y > 0, respectively. Define W = Y/X . Find fW (w).

Substituting into the formula given in Theorem 3.8.4, we can write

fW (w) = ∫ ∞

0 x(λe−λx)(λe−λxw) dx = λ2

∫ ∞ 0

xe−λ(1+w)x dx

= λ 2

λ(1 + w) ∫ ∞

0 xλ(1 + w)e−λ(1+w)x dx

Section 3.8 Transforming and Combining Random Variables 181

Notice that the integral is the expected value of an exponential random variable with parameter λ(1 + w), so it equals 1/λ(1 + w) (recall Example 3.5.6). Therefore,

fW (w) = λ 2

λ(1 + w) 1

λ(1 + w) = 1

(1 + w)2 , w ≥ 0

Theorem 3.8.5

Let X and Y be independent continuous random variables with pdfs fX (x) and fY (y), respectively. Let W = XY. Then

fW (w) = ∫ ∞

−∞

1 |x| fX (x) fY (w/x) dx =

∫ ∞ −∞

1 |x| fX (w/x) fY (x) dx

Proof A line-by-line, straightforward modification of the proof of Theorem 3.8.4 will provide a proof of Theorem 3.8.5. The details are left to the reader.

Example 3.8.6

Suppose that X and Y are independent random variables with pdfs fX (x) = 1, 0 ≤ x ≤ 1, and fY (y) = 2y, 0 ≤ y ≤ 1, respectively. Find fW (w), where W = XY .

According to Theorem 3.8.5,

fW (w) = ∫ ∞

−∞

1 |x| fX (x) fY (w/x) dx

The region of integration, though, needs to be restricted to values of x for which the integrand is positive. But fY (w/x) is positive only if 0 ≤ w/x ≤ 1, which implies that x ≥ w. Moreover, for fX (x) to be positive requires that 0 ≤ x ≤ 1. Any x, then, from w to 1 will yield a positive integrand. Therefore,

fW (w) = ∫ 1

w

1 x

(1)(2w/x) dx = 2w ∫ 1

w

1 x2

dx = 2 − 2w, 0 ≤ w ≤ 1

Comment Theorems 3.8.3, 3.8.4, and 3.8.5 can be adapted to situations where X and Y are not independent by replacing the product of the marginal pdfs with the joint pdf.

Questions

3.8.1. Let Y be a continuous random variable with fY (y) = 12 (1+y),−1 ≤ y ≤ 1. Define the random variable W by W = −4Y + 7. Find fW (w). Be sure to specify those values of w for which fW (w) �= 0. 3.8.2. Let fY (y) = 314 (1 + y2), 0 ≤ y ≤ 2. Define the ran- dom variable W by W = 3Y + 2. Find fW (w). Be sure to specify the values of w for which fW (w) �= 0. 3.8.3. Let X and Y be two independent random variables. Given the marginal pdfs shown below, find the pdf of X + Y . In each case, check to see if X + Y belongs to the same family of pdfs as do X and Y .

(a) pX (k) = e−λ λ k

k! and pY (k) = e−μ μ

k

k! , k = 0, 1, 2, . . .

(b) pX (k) = pY (k) = (1 − p)k−1 p, k = 1, 2, . . .

3.8.4. Suppose fX (x) = xe−x, x ≥ 0, and fY (y) = e−y, y ≥ 0, where X and Y are independent. Find the pdf of X + Y . 3.8.5. Let X and Y be two independent random vari- ables, whose marginal pdfs are given below. Find the pdf of X + Y . (Hint: Consider two cases, 0 ≤ w < 1 and 1 ≤ w ≤ 2.)

fX (x) = 1, 0 ≤ x ≤ 1, and fY (y) = 1, 0 ≤ y ≤ 1 3.8.6. If a random variable V is independent of two in- dependent random variables X and Y , prove that V is independent of X + Y . 3.8.7. Let Y be a continuous nonnegative random vari- able. Show that W = Y 2 has pdf fW (w) = 12√w fY (

√ w).

(Hint: First find FW (w).)

182 Chapter 3 Random Variables

3.8.8. Let Y be a uniform random variable over the inter- val [0, 1]. Find the pdf of W = Y 2. 3.8.9. Let Y be a random variable with fY (y) = 6y(1−y), 0 ≤ y ≤ 1. Find the pdf of W = Y 2. 3.8.10. Suppose the velocity of a gas molecule of mass m is a random variable with pdf fY (y) = ay2e−by2 , y ≥ 0, where a and b are positive constants depending on the gas. Find the pdf of the kinetic energy, W = (m/2)Y 2, of such a molecule.

3.8.11. Given that X and Y are independent random vari- ables, find the pdf of XY for the following two sets of marginal pdfs:

(a) fX (x) = 1, 0 ≤ x ≤ 1, and fY (y) = 1, 0 ≤ y ≤ 1 (b) fX (x) = 2x, 0 ≤ x ≤ 1, and fY (y) = 2y, 0 ≤ y ≤ 1

3.8.12. Let X and Y be two independent random variables. Given the marginal pdfs indicated below, find the cdf of Y/X . (Hint: Consider two cases, 0 ≤ w ≤ 1 and 1 < w.) (a) fX (x) = 1, 0 ≤ x ≤ 1, and fY (y) = 1, 0 ≤ y ≤ 1 (b) fX (x) = 2x, 0 ≤ x ≤ 1, and fY (y) = 2y, 0 ≤ y ≤ 1

3.8.13. Suppose that X and Y are two independent ran- dom variables, where fX (x) = xe−x, x ≥ 0, and fY (y) = e−y, y ≥ 0. Find the pdf of Y/X .

3.9 Further Properties of the Mean and Variance Sections 3.5 and 3.6 introduced the basic definitions related to the expected value and variance of single random variables. We learned how to calculate E(W), E[g (W)], E(aW + b), Var(W), and Var(aW + b), where a and b are any constants and W could be either a discrete or a continuous random variable. The purpose of this section is to examine certain multivariable extensions of those results, based on the joint pdf material covered in Section 3.7.

We begin with a theorem that generalizes E[g (W)]. While it is stated here for the case of two random variables, it extends in a very straightforward way to include functions of n random variables.

Theorem 3.9.1

1. Suppose X and Y are discrete random variables with joint pdf pX,Y (x, y), and let g (X,Y) be a function of X and Y. Then the expected value of the random variable g (X,Y) is given by

E[g (X,Y)] = ∑ all x

∑ all y

g (x, y) · pX,Y (x, y)

provided ∑ all x

∑ all y

|g (x, y)| · pX,Y (x, y) < ∞.

2. Suppose X and Y are continuous random variables with joint pdf fX,Y (x, y), and let g (X,Y) be a continuous function. Then the expected value of the ran- dom variable g (X,Y) is given by

E[g (X,Y)] = ∫ ∞

−∞

∫ ∞ −∞

g (x, y) · fX,Y (x, y) dx dy

provided ∫∞ −∞

∫∞ −∞ |g (x, y)| · fX,Y (x, y) dx dy < ∞.

Proof The basic approach taken in deriving this result is similar to the method followed in the proof of Theorem 3.5.3. See (136) for details.

Example 3.9.1

Consider the two random variables X and Y whose joint pdf is detailed in the 2 × 4 matrix shown in Table 3.9.1. Let

g (X,Y) = 3X − 2XY + Y

mriffi
Highlight

Section 3.9 Further Properties of the Mean and Variance 183

Table 3.9.1

Y

0 1 2 3

0 1 8

1 4

1 8

0

X

1 0 1 8

1 4

1 8

Table 3.9.2 z 0 1 2 3

fZ(z) 14 1 2

1 4 0

Find E[g (X,Y)] two ways—first, by using the basic definition of an expected value, and second, by using Theorem 3.9.1.

Let Z = 3X − 2XY + Y . By inspection, Z takes on the values 0, 1, 2, and 3 according to the pdf fZ(z) shown in Table 3.9.2. Then from the basic definition that an expected value is a weighted average, we see that E[g (X,Y)] is equal to 1:

E[g (X,Y)] = E(Z) = ∑ all z

z · fZ(z)

= 0 · 1 4

+ 1 · 1 2

+ 2 · 1 4

+ 3 · 0

= 1 The same answer is obtained by applying Theorem 3.9.1 to the joint pdf given in Figure 3.9.1:

E[g (X,Y)] = 0 · 1 8

+ 1 · 1 4

+ 2 · 1 8

+ 3 · 0 + 3 · 0 + 2 · 1 8

+ 1 · 1 4

+ 0 · 1 8

= 1 The advantage, of course, enjoyed by the latter solution is that we avoid the inter- mediate step of having to determine fZ(z).

Example 3.9.2

An electrical circuit has three resistors, RX , RY , and RZ, wired in parallel (see Fig- ure 3.9.1). The nominal resistance of each is fifteen ohms, but their actual resistances, X , Y , and Z, vary between ten and twenty according to the joint pdf

fX,Y,Z(x, y, z) = 1675,000(xy + xz + yz), 10 ≤ x ≤ 20 10 ≤ y ≤ 20 10 ≤ z ≤ 20

What is the expected resistance for the circuit?

XR

YR

ZR

Figure 3.9.1

184 Chapter 3 Random Variables

Let R denote the circuit’s resistance. A well-known result in physics holds that

1 R

= 1 X

+ 1 Y

+ 1 Z

or, equivalently,

R = XYZ XY + XZ + YZ = R(X,Y, Z)

Integrating R(x, y, z) · fX,Y,Z(x, y, z) shows that the expected resistance is five:

E(R) = ∫ 20

10

∫ 20 10

∫ 20 10

xyz xy + xz + yz ·

1 675,000

(xy + xz + yz) dx dy dz

= 1 675,000

∫ 20 10

∫ 20 10

∫ 20 10

xyz dx dy dz

= 5.0

Theorem 3.9.2

Let X and Y be any two random variables (discrete or continuous, dependent or independent), and let a and b be any two constants. Then

E(aX + bY) = aE(X ) + bE(Y) provided E(X ) and E(Y) are both finite.

Proof Consider the continuous case (the discrete case is proved much the same way). Let fX,Y (x, y) be the joint pdf of X and Y , and define g (X,Y) = aX + bY . By Theorem 3.9.1,

E(aX + bY) = ∫ ∞

−∞

∫ ∞ −∞

(ax + by) fX,Y (x, y) dx dy

= ∫ ∞

−∞

∫ ∞ −∞

(ax) fX,Y (x, y) dx dy + ∫ ∞

−∞

∫ ∞ −∞

(by) fX,Y (x, y) dx dy

= a ∫ ∞

−∞ x [∫ ∞

−∞ fX,Y (x, y) dy

] dx + b

∫ ∞ −∞

y [∫ ∞

−∞ fX,Y (x, y) dx

] dy

= a ∫ ∞

−∞ x fX (x) dx + b

∫ ∞ −∞

y fY (y) dy

= aE(X ) + bE(Y)

Corollary 3.9.1

Let W1,W2, . . . ,Wn be any random variables for which E(|Wi|) < ∞, i = 1, 2, . . . , n, and let a1, a2, . . . , an be any set of constants. Then

E(a1W1 + a2W2 + · · · + anWn) = a1E(W1) + a2E(W2) + · · · + anE(Wn)

Example 3.9.3

Let X be a binomial random variable defined on n independent trials, each trial resulting in success with probability p. Find E(X ).

Note, first, that X can be thought of as a sum, X = X1 + X2 + · · · + Xn, where Xi represents the number of successes occurring at the ith trial:

Xi = {

1 if the ith trial produces a success 0 if the ith trial produces a failure

Section 3.9 Further Properties of the Mean and Variance 185

(Any Xi defined in this way on an individual trial is called a Bernoulli random variable. Every binomial random variable, then, can be thought of as the sum of n independent Bernoullis.) By assumption, pXi (1) = p and pXi (0) = 1 − p, i = 1, 2, . . . , n. Using the corollary,

E(X ) = E(X1) + E(X2) + · · · + E(Xn) = n · E(X1)

the last step being a consequence of the Xi’s having identical distributions. But

E(X1) = 1 · p + 0 · (1 − p) = p so E(X ) = np, which is what we found before (recall Theorem 3.5.1).

Comment The problem-solving implications of Theorem 3.9.2 and its corollary should not be underestimated. There are many real-world events that can be mod- eled as a linear combination a1W1 + a2W2 + · · · + anWn, where the Wi’s are relatively simple random variables. Finding E(a1W1 + a2W2 + · · · + anWn) directly may be pro- hibitively difficult because of the inherent complexity of the linear combination. It may very well be the case, though, that calculating the individual E(Wi)’s is easy. Compare, for instance, Example 3.9.3 with Theorem 3.5.1. Both derive the formula that E(X ) = np when X is a binomial random variable. However, the approach taken in Example 3.9.3 (i.e., using Theorem 3.9.2) is much easier. The next several examples further explore the technique of using linear combinations to facilitate the calculation of expected values.

Example 3.9.4

A disgruntled secretary is upset about having to stuff envelopes. Handed a box of n letters and n envelopes, she vents her frustration by putting the letters into the en- velopes at random. How many people, on the average, will receive their correct mail?

If X denotes the number of envelopes properly stuffed, what we want is E(X ). However, applying Definition 3.5.1 here would prove formidable because of the difficulty in getting a workable expression for pX (k). By using the corollary to Theorem 3.9.2, though, we can solve the problem quite easily.

Let Xi denote a random variable equal to the number of correct letters put into the ith envelope, i = 1, 2, . . . , n. Then Xi equals 0 or 1, and

pXi (k) = P(Xi = k) =

⎧⎪⎨ ⎪⎩

1 n

for k = 1 n − 1

n for k = 0

But X = X1 +X2 +· · ·+Xn and E(X ) = E(X1)+E(X2)+· · ·+E(Xn). Furthermore, each of the Xi’s has the same expected value, 1/n:

E(Xi) = 1∑

k=0 k · P(Xi = k) = 0 · n − 1n + 1 ·

1 n

= 1 n

It follows that

E(X ) = n∑

i=1 E(Xi) = n ·

( 1 n

)

= 1 showing that, regardless of n, the expected number of properly stuffed envelopes is one. (Are the Xi’s independent? Does it matter?)

186 Chapter 3 Random Variables

Example 3.9.5

Ten fair dice are rolled. Calculate the expected value of the sum of the faces showing. If the random variable X denotes the sum of the faces showing on the ten dice,

then

X = X1 + X2 + · · · + X10 where Xi is the number showing on the ith die, i = 1, 2, . . . , 10. By assumption, pXi (k) = 16 for k = 1, 2, 3, 4, 5, 6, so E(Xi) =

6∑ k=1

k · 16 = 16 6∑

k=1 k = 16 · 6(7)2 = 3.5. By

the corollary to Theorem 3.9.2,

E(X ) = E(X1) + E(X2) + · · · + E(X10) = 10(3.5) = 35

Notice that E(X ) can also be deduced here by appealing to the notion that ex- pected values are centers of gravity. It should be clear from our work with combina- torics that P(X = 10) = P(X = 60), P(X = 11) = P(X = 59), P(X = 12) = P(X = 58), and so on. In other words, the probability function pX (k) is symmetric, which implies that its center of gravity is the midpoint of the range of its X -values. It must be the case, then, that E(X ) equals 10+602 or 35.

Example 3.9.6

The honor count in a (thirteen-card) bridge hand can vary from zero to thirty-seven according to the formula:

honor count = 4 · (number of aces)+3 · (number of kings)+2 · (number of queens) + 1 · (number of jacks)

What is the expected honor count of North’s hand? The solution here is a bit unusual in that we use the corollary to Theorem 3.9.2

backward. If Xi, i = 1, 2, 3, 4, denotes the honor count for players North, South, East, and West, respectively, and if X denotes the analogous sum for the entire deck, we can write

X = X1 + X2 + X3 + X4 But

X = E(X ) = 4 · 4 + 3 · 4 + 2 · 4 + 1 · 4 = 40 By symmetry, E(Xi) = E(Xj), i �= j, so it follows that 40 = 4 · E(X1), which implies that ten is the expected honor count of North’s hand. (Try doing this problem directly, without making use of the fact that the deck’s honor count is forty.)

EXPECTED VALUES OF PRODUCTS: A SPECIAL CASE

We know from Theorem 3.9.1 that for any two random variables X and Y ,

E(XY) =

⎧⎪⎪⎨ ⎪⎪⎩ ∑ all x

∑ all y

xypX,Y (x, y) if X and Y are discrete∫ ∞ −∞

∫ ∞ −∞

xy fX,Y (x, y) dx dy if X and Y are continuous

If, however, X and Y are independent, there is an easier way to calculate E(XY).

Section 3.9 Further Properties of the Mean and Variance 187

Theorem 3.9.3

If X and Y are independent random variables,

E(XY) = E(X ) · E(Y) provided E(X ) and E(Y) both exist.

Proof Suppose X and Y are both discrete random variables. Then their joint pdf, pX,Y (x, y), can be replaced by the product of their marginal pdfs, pX (x)·pY (y), and the double summation required by Theorem 3.9.1 can be written as the product of two single summations:

E(XY) = ∑ all x

∑ all y

xy · pX,Y (x, y)

= ∑ all x

∑ all y

xy · pX (x) · pY (y)

= ∑ all x

x · pX (x) · ⎡ ⎣∑

all y

y · pY (y) ⎤ ⎦

= E(X ) · E(Y) The proof when X and Y are both continuous random variables is left as an exercise.

Questions

3.9.1. Suppose that r chips are drawn with replace- ment from an urn containing n chips, numbered 1 through n. Let V denote the sum of the numbers drawn. Find E(V).

3.9.2. Suppose that fX,Y (x, y) = λ2e−λ(x+y), 0 ≤ x, 0 ≤ y. Find E(X + Y). 3.9.3. Suppose that fX,Y (x, y) = 23 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 [recall Question 3.7.19(c)]. Find E(X + Y). 3.9.4. Marksmanship competition at a certain level re- quires each contestant to take ten shots with each of two different handguns. Final scores are computed by taking a weighted average of four times the number of bull’s-eyes made with the first gun plus six times the number gotten with the second. If Cathie has a 30% chance of hitting the bull’s-eye with each shot from the first gun and a 40% chance with each shot from the second gun, what is her expected score?

3.9.5. Suppose that Xi is a random variable for which E(Xi) = μ �= 0, i = 1, 2, . . . , n. Under what conditions will the following be true?

E

( n∑

i=1 aiXi

) = μ

3.9.6. Suppose that the daily closing price of stock goes up an eighth of a point with probability p and down an eighth of a point with probability q, where p > q. After n days how much gain can we expect the stock to have achieved? Assume that the daily price fluctuations are independent events.

3.9.7. An urn contains r red balls and w white balls. A sample of n balls is drawn in order and without replace- ment. Let Xi be 1 if the ith draw is red and 0 otherwise, i = 1, 2, . . . , n. (a) Show that E(Xi) = E(X1), i = 2, 3, . . . , n. (b) Use the corollary to Theorem 3.9.2 to show that the expected number of red balls is nr/(r + w). 3.9.8. Suppose two fair dice are tossed. Find the expected value of the product of the faces showing.

3.9.9. Find E(R) for a two-resistor circuit similar to the one described in Example 3.9.2, where fX,Y (x, y) = k(x+ y), 10 ≤ x ≤ 20, 10 ≤ y ≤ 20. 3.9.10. Suppose that X and Y are both uniformly dis- tributed over the interval [0, 1]. Calculate the expected value of the square of the distance of the random point (X,Y) from the origin; that is, find E(X 2 + Y 2). (Hint: See Question 3.8.8.)

188 Chapter 3 Random Variables

3.9.11. Suppose X represents a point picked at random from the interval [0, 1] on the x-axis, and Y is a point picked at random from the interval [0, 1] on the y-axis. Assume that X and Y are independent. What is the ex- pected value of the area of the triangle formed by the points (X, 0), (0,Y), and (0, 0)?

3.9.12. Suppose Y1,Y2, . . . ,Yn is a random sample from the uniform pdf over [0, 1]. The geometric mean of the numbers is the random variable n

√ Y1Y2 · · · · · Yn. Compare

the expected value of the geometric mean to that of the arithmetic mean Ȳ .

CALCULATING THE VARIANCE OF A SUM OF RANDOM VARIABLES

When random variables are not independent, a measure of the relationship between them, their covariance, enters into the picture.

Definition 3.9.1 Given random variables X and Y with finite variances, define the covariance of X and Y , written Cov(X,Y), as

Cov(X,Y) = E(XY) − E(X )E(Y)

Theorem 3.9.4

If X and Y are independent, then Cov(X,Y) = 0. Proof If X andY are independent, by Theorem 3.9.3, E(XY) = E(X )E(Y). Then

Cov(X,Y) = E(XY) − E(X )E(Y) = E(X )E(Y) − E(X )E(Y) = 0 The converse of Theorem 3.9.4 is not true. Just because Cov(X,Y) = 0, we

cannot conclude that X and Y are independent. Example 3.9.7 is a case in point.

Example 3.9.7

Consider the sample space S = {(−2, 4), (−1, 1), (0, 0), (1, 1), (2, 4)}, where each point is assumed to be equally likely. Define the random variable X to be the first component of a sample point and Y , the second. Then X (−2, 4) = −2,Y(−2, 4) = 4, and so on.

Notice that X and Y are dependent:

1 5

= P(X = 1,Y = 1) �= P(X = 1) · P(Y = 1) = 1 5

· 2 5

= 2 25

However, the convariance of X and Y is zero:

E(XY) = [(−8) + (−1) + 0 + 1 + 8] · 1 5

= 0

E(X ) = [(−2) + (−1) + 0 + 1 + 2] · 1 5

= 0 and

E(Y) = (4 + 1 + 0 + 1 + 4) · 1 5

= 2 so

Cov(X,Y) = E(XY) − E(X ) · E(Y) = 0 − 0 · 2 = 0 Theorem 3.9.5 demonstrates the role of the covariance in finding the variance of

a sum of random variables that are not necessarily independent.

Theorem 3.9.5

Suppose X and Y are random variables with finite variances, and a and b are con- stants. Then

Var(aX + bY) = a2Var(X ) + b2Var(Y) + 2ab Cov(X,Y)

Section 3.9 Further Properties of the Mean and Variance 189

Proof For convenience, denote E(X ) by μX and E(Y) by μY . Then E(aX + bY) = aμX + bμY and

Var(aX + bY) = E[(aX + bY)2] − (aμX + bμY )2

= E(a2X 2 + b2Y 2 + 2abXY) − (a2μ2X + b2μ2Y + 2abμX μY ) = [E(a2X 2) − a2μ2X ] + [E(b2Y 2) − b2μ2Y ] + [2abE(XY) − 2abμX μY ] = a2[E(X 2) − μ2X ] + b2[E(Y 2) − μ2Y ] + 2ab[E(XY) − μX μY ] = a2 Var(X) + b2 Var(Y) + 2abCov(X,Y)

Example 3.9.8

For the joint pdf fX,Y (x, y) = x+y, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, find the variance of X +Y . Since X and Y are not independent,

Var(X + Y) = Var(X ) + Var(Y) + 2Cov(X,Y) The pdf is symmetric in X and Y , so Var(X ) = Var(Y), and we can write Var(X + Y) = 2[Var(X ) + Cov(X,Y)].

To calculate Var(X ), the marginal pdf of X is needed. But

fX (x) = ∫ 1

0 (x + y)dy = x + 1

2

μX = ∫ 1

0 x(x + 1

2 )dx =

∫ 1 0

(x2 + x 2

)dx = 7 12

E(X 2) = ∫ 1

0 x2(x + 1

2 )dx =

∫ 1 0

(x3 + x 2

2 )dx = 5

12

Var(X ) = E(X 2) − μ2X = 5 12

− (

7 12

)2 = 11

144

Then

E(XY) = ∫ 1

0

∫ 1 0

xy(x + y)dydx = ∫ 1

0

( x2

2 + x

3

) dx = x

3

6 + x

2

6

∣∣∣∣1 0

= 1 3

so, putting all of the pieces together,

Cov(X,Y) = 1/3 − (7/12)(7/12) = −1/144 and, finally, Var(X + Y) = 2[11/144 + (−1/144)] = 5/36

The two corollaries that follow are straightforward extensions of Theorem 3.9.5 to n variables. The details of the proof will be left as an exercise.

Corollary Suppose that W1,W2, . . . ,Wn are random variables with finite variances. Then

Var

( a∑

i=1 aiWi

) =

n∑ i=1

a2i Var(Wi) + 2 ∑ i< j

aia jCov(Wi,Wj)

Corollary Suppose that W1,W2, . . . ,Wn are independent random variables with finite vari- ances. Then

Var(W1 + W2 + · · · + Wn) = Var(W1) + Var(W2) + · · · + Var(Wn)

More discussion of the covariance and its role in measuring the relationship be- tween random variables occurs in Section 11.4.

190 Chapter 3 Random Variables

Example 3.9.9

The binomial random variable, being a sum of n independent Bernoullis, is an obvi- ous candidate for the corollary to Theorem 3.9.5 on the sum of independent random variables. Let Xi denote the number of successes occurring on the ith trial. Then

Xi = {

1 with probability p 0 with probability 1 − p

and

X = X1 + X2 + · · · + Xn = total number of successes in n trials Find Var(X ).

Note that

E(Xi) = 1 · p + 0 · (1 − p) = p and

E ( X 2i

) = (1)2 · p + (0)2 · (1 − p) = p so

Var(Xi) = E ( X 2i

)− [E(Xi)]2 = p − p2 = p(1 − p)

It follows, then, that the variance of a binomial random variable is np(1 − p):

Var(X ) = n∑

i=1 Var(Xi) = np(1 − p)

Example 3.9.10

Recall the hypergeometric model—an urn contains N chips, r red and w white (r + w = N); a random sample of size n is selected without replacement and the random variable X is defined to be the number of red chips in the sample. As in the previous example, write X as a sum of simple random variables.

Xi = {

1 if the ith chip drawn is red 0 otherwise

Then X = X1 + X2 + · · · + Xn. Clearly,

E(Xi) = 1 · rN + 0 · w

N = r

N

and E(X ) = n ( rN ) = np, where p = rN . Since X 2i = Xi, E(X 2i ) = E(Xi) = rN and

Var(Xi) = E(X 2i ) − [E(Xi)]2 = r N

− ( r

N

)2 = p(1 − p)

Also, for any j �= k, Cov(Xj, Xk) = E(XjXk) − E(Xj)E(Xk)

= 1 · P(XjXk = 1) − ( r

N

)2 = r

N · r − 1

N − 1 − r2

N2 = − r

N · N − r

N · 1

N − 1

Section 3.9 Further Properties of the Mean and Variance 191

From the first corollary to Theorem 3.9.5, then,

Var(X ) = n∑

i=1 Var(Xi) + 2

∑ j<k

Cov(Xj, Xk)

= np(1 − p) − 2 (

n 2

) p(1 − p) · 1

N − 1

= p(1 − p) [

n − n(n − 1) N − 1

]

= np(1 − p) · N − n N − 1

Example 3.9.11

In statistics, it is often necessary to draw inferences based on W , the average com- puted from a random sample of n observations. Two properties of W are especially important. First, if theWi’s come from a population where the mean is μ, the corollary to Theorem 3.9.2 implies that E(W) = μ. Second, if the Wi’s come from a population whose variance is σ2, then Var(W) = σ2/n. To verify the latter, we can appeal again to Theorem 3.9.5. Write

W = 1 n

n∑ i=1

Wi = 1n · W1 + 1 n

· W2 + · · · + 1n · Wn

Then

Var(W) = (

1 n

)2 · Var(W1) +

( 1 n

)2 · Var(W2) + · · · +

( 1 n

)2 · Var(Wn)

= (

1 n

)2 σ2 +

( 1 n

)2 σ2 + · · · +

( 1 n

)2 σ2

= σ 2

n

Questions

3.9.13. Suppose that two dice are thrown. Let X be the number showing on the first die and let Y be the larger of the two numbers showing. Find Cov(X,Y).

3.9.14. Show that

Cov(aX + b, cY + d) = acCov(X,Y) for any constants a, b, c, and d.

3.9.15. Let U be a random variable uniformly distributed over [0, 2π]. Define X = cosU and Y = sinU . Show that X and Y are dependent but that Cov(X,Y) = 0. 3.9.16. Let X and Y be random variables with

fX,Y (x, y) = {

1, −y < x < y, 0 < y < 1 0, elsewhere

Show that Cov(X,Y) = 0 but that X and Y are depen- dent.

3.9.17. Suppose that fX,Y (x, y) = λ2e−λ(x+y), 0 ≤ x, 0 ≤ y. Find Var(X + Y). (Hint: See Questions 3.6.11 and 3.9.2.)

3.9.18. Suppose that fX,Y (x, y) = 23 (x + 2y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1. Find Var(X + Y). (Hint: See Question 3.9.3.) 3.9.19. Suppose that fX,Y (x, y) = 32 (x2 + y2), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1. Find Var(X + Y). 3.9.20. Let X be a binomial random variable based on n trials and a success probability of pX ; let Y be an inde- pendent binomial random variable based on m trials and a success probability of pY . Find E(W) and Var(W), where W = 4X + 6Y . 3.9.21. A Poisson random variable has pdf pX (k) = e−λ λkk! , k = 0, 1, 2, . . . and λ> 0 (see Section 4.2). Also, E(X ) = λ. Suppose the Poisson random variable U is the number of calls for technical assistance received by a computer company during the firm’s nine normal workday hours, with the average number of calls per hour equal 7.0. Also suppose each call costs the company $50. Let V be a Poisson random variable representing the number of calls for technical assistance received during a day’s remaining

192 Chapter 3 Random Variables

fifteen hours. Assume the average number of calls per hour is four for that time period and that each such call costs the company $60. Find the expected cost and the variance of the cost associated with the calls received dur- ing a twenty-four-hour day.

3.9.22. A mason is contracted to build a patio retaining wall. Plans call for the base of the wall to be a row of fifty 10-inch bricks, each separated by 12 -inch-thick mortar. Suppose that the bricks used are randomly chosen from a population of bricks whose mean length is 10 inches and whose standard deviation is 132 inch. Also, suppose that the mason, on the average, will make the mortar 12 inch thick, but that the actual dimension will vary from brick to brick, the standard deviation of the thicknesses being

1 16 inch. What is the standard deviation of L, the length of the first row of the wall? What assumption are you making?

3.9.23. An electric circuit has six resistors wired in series, each nominally being five ohms. What is the maximum standard deviation that can be allowed in the manufac- ture of these resistors if the combined circuit resistance is to have a standard deviation no greater than 0.4 ohm?

3.9.24. A gambler plays n hands of poker. If he wins the kth hand, he collects k dollars; if he loses the kth hand, he collects nothing. Let T denote his total winnings in n hands. Assuming that his chances of winning each hand are constant and independent of his success or failure at any other hand, find E(T) and Var(T).

3.10 Order Statistics The single-variable transformation taken up in Section 3.4 involved a standard linear operation, Y = aX + b. The bivariate transformations in Section 3.8 were similarly arithmetic, typically being concerned with either sums or products. In this section we will consider a different sort of transformation, one involving the ordering of an entire set of random variables. This particular transformation has wide applicability in many areas of statistics, and we will see some of its consequences in later chapters.

Definition 3.10.1 Let Y be a continuous random variable for which y1, y2, . . . , yn are the values of a random sample of size n. Reorder the yi’s from smallest to largest:

y′1 < y ′ 2 < · · · < y′n

(No two of the yi’s are equal, except with probability zero, since Y is continu- ous.) Define the random variable Y ′i to have the value y

′ i, 1 ≤ i ≤ n. Then Y ′i

is called the ith order statistic. Sometimes Y ′n and Y ′ 1 are denoted Ymax and Ymin,

respectively.

Example 3.10.1

Suppose that four measurements are made on the random variable Y : y1 = 3.4, y2 = 4.6, y3 = 2.6, and y4 = 3.2. The corresponding ordered sample would be

2.6 < 3.2 < 3.4 < 4.6

The random variable representing the smallest observation would be denoted Y ′1, with its value for this particular sample being 2.6. Similarly, the value for the second order statistic, Y ′2, is 3.2, and so on.

THE DISTRIBUTION OF EXTREME ORDER STATISTICS

By definition, every observation in a random sample has the same pdf. For example, if a set of four measurements is taken from a normal distribution with μ = 80 and σ = 15, then fY1 (y), fY2 (y), fY3 (y), and fY4 (y) are all the same—each is a normal pdf with μ = 80 and σ = 15. The pdf describing an ordered observation, though, is not the same as the pdf describing a random observation. Intuitively, that makes sense. If a single observation is drawn from a normal distribution with μ = 80 and σ = 15,

Section 3.10 Order Statistics 193

it would not be surprising if that observation were to take on a value near eighty. On the other hand, if a random sample of n = 100 observations is drawn from that same distribution, we would not expect the smallest observation—that is, Ymin—to be anywhere near eighty. Common sense tells us that that smallest observation is likely to be much smaller than eighty, just as the largest observation, Ymax, is likely to be much larger than eighty.

It follows, then, that before we can do any probability calculations—or any ap- plications whatsoever—involving order statistics, we need to know the pdf of Y ′i for i = 1, 2, . . . , n. We begin by investigating the pdfs of the “extreme” order statistics, fYmax (y) and fYmin (y). These are the simplest to work with. At the end of the section we return to the more general problems of finding (1) the pdf of Y ′i for any i and (2) the joint pdf of Y ′i and Y

′ j , where i < j.

Theorem 3.10.1

Suppose that Y1, Y2, . . ., Yn is a random sample of continuous random variables, each having pdf fY (y) and cdf FY (y). Then

a. The pdf of the largest order statistic is

fYmax (y) = fY ′n (y) = n[FY (y)]n−1 fY (y) b. The pdf of the smallest order statistic is

fYmin (y) = fY ′1 (y) = n[1 − FY (y)]n−1 fY (y)

Proof Finding the pdfs of Ymax and Ymin is accomplished by using the now- familiar technique of differentiating a random variable’s cdf. Consider, for example, the case of the largest order statistic, Y ′n:

FY ′n (y) = FYmax (y) = P(Ymax ≤ y) = P(Y1 ≤ y,Y2 ≤ y, · · · ,Yn ≤ y) = P(Y1 ≤ y) · P(Y2 ≤ y) · · · P(Yn ≤ y) (why?) = [FY (y)]n

Therefore,

fY ′n (y) = d/dy[[FY (y)]n] = n[FY (y)]n−1 fY (y) Similarly, for the smallest order statistic (i = 1),

FY ′1 (y) = FYmin (y) = P(Ymin ≤ y) = 1 − P(Ymin > y) = 1 − P(Y1 > y) · P(Y2 > y) · · · P(Yn > y)

= 1 − [1 − FY (y)]n

Therefore,

fY ′1 (y) = d/dy[1 − [1 − FY (y)]n] = n[1 − FY (y)]n−1 fY (y)

Example 3.10.2

Suppose a random sample of n = 3 observations, Y1, Y2, and Y3, is taken from the exponential pdf, fY (y) = e−y, y ≥ 0. Compare fY1 (y) with fY ′1 (y). Intuitively, which will be larger, P(Y1 < 1) or P(Y ′1 < 1)?

194 Chapter 3 Random Variables

The pdf for Y1, of course, is just the pdf of the distribution being sampled, that is,

fY1 (y) = fY (y) = e−y, y ≥ 0 To find the pdf for Y ′1 requires that we apply the formula given in the proof of The- orem 3.10.1 for fYmin (y). Note, first of all, that

FY (y) = ∫ y

0 e−tdt = −e−t ∣∣y0 = 1 − e−y

Then, since n = 3 (and i = 1), we can write fY ′1 (y) = 3[1 − (1 − e−y)]2e−y

= 3e−3y, y ≥ 0 Figure 3.10.1 shows the two pdfs plotted on the same set of axes. Compared to

fY1 (y), the pdf for Y ′ 1 has more of its area located above the smaller values of y (where

Y ′1 is more likely to lie). For example, the probability that the smallest observation (out of three) is less than 1 is 95%, while the probability that a random observation is less than 1 is only 63%:

P(Y ′1 < 1) = ∫ 1

0 3e−3y dy =

∫ 3 0

e−u du = −e−u ∣∣∣∣∣ 3

0

= 1 − e−3

= 0.95

P(Y1 < 1) = ∫ 1

0 e−y dy = −e−y

∣∣∣∣∣ 1

0

= 1 − e−1

= 0.63

3

2

1

0 1 2

Probability density

3 4 5

f (y) = 3eY9 1 –3y

f (y) = eY1 –y

y

Figure 3.10.1

Example 3.10.3

Suppose a random sample of size 10 is drawn from a continuous pdf fY (y). What is the probability that the largest observation, Y ′10, is less than the pdf’s median, m?

Using the formula for fY ′10 (y) = fYmax (y) given in the proof of Theorem 3.10.1, it is certainly true that

P(Y ′10 < m) = ∫ m

−∞ 10 fY (y)[FY (y)]9dy (3.10.1)

but the problem does not specify fY (y), so Equation 3.10.1 is of no help.

Section 3.10 Order Statistics 195

Fortunately, a much simpler solution is available, even if fY (y) were specified: The event “Y ′10 < m” is equivalent to the event “Y1 < m ∩ Y2 < m ∩ · · · ∩ Y10 < m.” Therefore,

P(Y ′10 < m) = P(Y1 < m,Y2 < m, . . . ,Y10 < m) (3.10.2) But the ten observations here are independent, so the intersection probability im- plicit on the right-hand side of Equation 3.10.2 factors into a product of ten terms. Moreover, each of those terms equals 12 (by definition of the median), so

P(Y ′10 < m) = P(Y1 < m) · P(Y2 < m) · · · P(Y10 < m) = ( 12)10 = 0.00098

Example 3.10.4

To find order statistics for discrete pdfs, the probability arguments of the type used in the proof of Theorem 3.10.1 can be be employed. The example of finding the pdf of Xmin for the discrete density function pX (k), k = 0, 1, 2, . . . suffices to demonstrate this point.

Given a random sample X1, X2, . . . , Xn from pX (k), choose an arbitrary non-

negative integer m. Recall that the cdf in this case is given by FX (m) = m∑

k=0 pk.

Consider the events

A =(m ≤ X1 ∩ m ≤ X2 ∩ · · · ∩ m ≤ Xn) and B =(m + 1 ≤ X1 ∩ m + 1 ≤ X2 ∩ · · · ∩ m + 1 ≤ Xn)

Then pXmin (m) = P(A ∩ BC) = P(A) − P(A ∩ B) = P(A) − P(B), where A ∩ B = B, since B ⊂ A.

Now P(A) = P(m ≤ X1) · P(m ≤ X2) · . . . · P(m ≤ Xn) = [1 − FX (m − 1)]n by the independence of the Xi. Similarly P(B) = [1 − FX (m)]n, so

pYmin (m) = [1 − FX (m − 1)]n − [1 − FX (m)]n

A GENERAL FORMULA FOR fYi'(y)

Having discussed two special cases of order statistics, Ymin and Ymax, we now turn to the more general problem of finding the pdf for the ith order statistic, where i can be any integer from 1 through n.

Theorem 3.10.2

Let Y1,Y2, . . . ,Yn be a random sample of continuous random variables drawn from a distribution having pdf fY (y) and cdf FY (y). The pdf of the ith order statistic is given by

fY ′i (y) = n!

(i − 1)!(n − i)! [FY (y)] i−1[1 − FY (y)]n−i fY (y)

for 1 ≤ i ≤ n. Proof We will give a heuristic argument that draws on the similarity between the statement of Theorem 3.10.2 and the binomial distribution. For a formal induction proof verifying the expression given for fY ′i (y), see (105).

Recall the derivation of the binomial probability function, pX (k) = P(X = k) =

( n k

) pk(1 − p)n−k, where X is the number of successes in n independent

(Continued on next page)

196 Chapter 3 Random Variables

(Theorem 3.10.2 continued)

trials, and p is the probability that any given trial ends in success. Central to that derivation was the recognition that the event “X = k” is actually a union of all the different (mutually exclusive) sequences having exactly k successes and n − k failures. Because the trials are independent, the probability of any such sequence is pk(1−p)n−k and the number of such sequences (by Theorem 2.6.2) is n!/[k!(n−k)!] (or

( n k

) ), so the probability that X = k is the product

( n k

) pk(1 − p)n−k.

Here we are looking for the pdf of the ith order statistic at some point y, that is, fY ′i (y). As was the case with the binomial, that pdf will reduce to a combina- torial term times the probability associated with an intersection of independent events. The only fundamental difference is that Y ′i is a continuous random vari- able, whereas the binomial X is discrete, which means that what we find here will be a probability density function.

By Theorem 2.6.2, there are n!/[(i − 1)!1!(n − i)!] ways that n observations can be parceled into three groups such that the ith largest is at the point y (see Fig- ure 3.10.2). Moreover, the likelihood associated with any particular set of points having the configuration pictured in Figure 3.10.2 will be the probability that i − 1 (independent) observations are all less than y, n − i observations are greater than y, and one observation is at y. The probability density associated with those con- straints for a given set of points would be [FY (y)]i−1[1−FY (y)]n−i fY (y). The proba- bility density, then, that the ith order statistic is located at the point y is the product

fY ′i (y) = n!

(i − 1)!(n − i)! [FY (y)] i−1[1 − FY (y)]n−i fY (y)

Y-axis y

i – 1 obs. 1 obs. n – i obs.

Figure 3.10.2

Example 3.10.5

Suppose that many years of observation have confirmed that the annual maximum flood tide Y (in feet) for a certain river can be modeled by the pdf

fY (y) = 120 , 20 < y < 40

(Note: It is unlikely that flood tides would be described by anything as simple as a uniform pdf. We are making that choice here solely to facilitate the mathematics.) The Army Corps of Engineers is planning to build a levee along a certain portion of the river, and they want to make it high enough so that there is only a 30% chance that the second worst flood in the next thirty-three years will overflow the embankment. How high should the levee be? (We assume that there will be only one potential flood per year.)

Let h be the desired height. If Y1,Y2, . . . ,Y33 denote the flood tides for the next n = 33 years, what we require of h is that

P(Y ′32 > h) = 0.30 As a starting point, notice that for 20 < y < 40,

FY (y) = ∫ y

20

1 20

dy = y 20

− 1

Section 3.10 Order Statistics 197

Therefore,

fY ′32 (y) = 33!

31!1!

( y 20

− 1 )31 (

2 − y 20

)1 · 1

20

and h is the solution of the integral equation∫ 40 h

(33)(32) ( y

20 − 1

)31 ( 2 − y

20

)1 · dy

20 = 0.30 (3.10.3)

If we make the substitution

u = y 20

− 1

Equation 3.10.3 simplifies to

P(Y ′32 > h) = 33(32) ∫ 1

(h/20)−1 u31(1 − u) du

= 1 − 33 (

h 20

− 1 )32

+ 32 (

h 20

− 1 )33

(3.10.4)

Setting the right-hand side of Equation 3.10.4 equal to 0.30 and solving for h by trial and error gives

h = 39.33 feet

JOINT PDFS OF ORDER STATISTICS

Finding the joint pdf of two or more order statistics is easily accomplished by gen- eralizing the argument that derived from Figure 3.10.2. Suppose, for example, that each of n observations in a random sample has pdf fY (y) and cdf FY (y). The joint pdf for order statistics Y ′i and Y

′ j at points u and v, where i < j and u < v, can be

deduced from Figure 3.10.3, which shows how the n points must be distributed if the ith and jth order statistics are to be located at points u and v, respectively.

Y-axis u v

i – 1 obs. Y 9 i Y9 jj – i – 1 obs. n – j obs.Figure 3.10.3

By Theorem 2.6.2, the number of ways to divide a set of n observations into groups of sizes i − 1, 1, j − i − 1, 1, and n − j is the quotient

n! (i − 1)!1!( j − i − 1)!1!(n − j)!

Also, given the independence of the n observations, the probability that i − 1 are less than u is [FY (u)]i−1, the probability that j − i − 1 are between u and v is [FY (v)−FY (u)] j−i−1, and the probability that n− j are greater than v is [1−FY (v)]n− j. Multiplying, then, by the pdfs describing the likelihoods that Y ′i and Y

′ j would be at

points u and v, respectively, gives the joint pdf of the two order statistics:

fY ′i ,Y ′j (u, v) = n!

(i − 1)!( j − i − 1)!(n − j)! [FY (u)] i−1[FY (v) − FY (u)] j−i−1 .

[1 − FY (v)]n− j fY (u) fY (v) (3.10.5) for i < j and u < v.

198 Chapter 3 Random Variables

Example 3.10.6

Let Y1, Y2, and Y3 be a random sample of size n = 3 from the uniform pdf defined over the unit interval, fY (y) = 1, 0 ≤ y ≤ 1. By definition, the range, R, of a sample is the difference between the largest and smallest order statistics, in this case

R = range = Ymax − Ymin = Y ′3 − Y ′1 Find fR(r), the pdf for the range.

We will begin by finding the joint pdf of Y ′1 and Y ′ 3. Then fY ′1,Y ′3 (u, v) is integrated

over the region Y ′3 − Y ′1 ≤ r to find the cdf, FR(r) = P(R ≤ r). The final step is to differentiate the cdf and make use of the fact that fR(r) = F ′R(r).

If fY (y) = 1, 0 ≤ y ≤ 1, it follows that

FY (y) = P(Y ≤ y) =

⎧⎪⎨ ⎪⎩

0, y < 0 y, 0 ≤ y ≤ 1 1, y > 1

Applying Equation 3.10.5, then, with n = 3, i = 1, and j = 3, gives the joint pdf of Y ′1 and Y

′ 3. Specifically,

fY ′1,Y ′3 (u, v) = 3!

0!1!0! u0(v − u)1(1 − v)0 · 1 · 1

= 6(v − u), 0 ≤ u < v ≤ 1

Moreover, we can write the cdf for R in terms of Y ′1 and Y ′ 3:

FR(r) = P(R ≤ r) = P(Y ′3 − Y ′1 ≤ r) = P(Y ′3 ≤ Y ′1 + r)

Figure 3.10.4 shows the region in the Y ′1Y ′ 3-plane corresponding to the event that

R ≤ r. Integrating the joint pdf of Y ′1 and Y ′3 over the shaded region gives

FR(r) = P(R ≤ r) = ∫ 1−r

0

∫ u+r u

6(v − u) dv du + ∫ 1

1−r

∫ 1 u

6(v − u) dv du

0 u-axis

n-axis

1Y19 = 1 – r

r

R#r

Y39 = Y19

Y39 = Y19 + r 1

Figure 3.10.4

The first double integral equals 3r2 − 3r3; the second equals r3. Therefore,

FR(r) = 3r2 − 3r3 + r3 = 3r2 − 2r3

which implies that

fR(r) = F ′R(r) = 6r − 6r2, 0 ≤ r ≤ 1

Section 3.11 Conditional Densities 199

Questions

3.10.1. Suppose the length of time, in minutes, that you have to wait at a bank teller’s window is uniformly dis- tributed over the interval (0, 10). If you go to the bank four times during the next month, what is the probabil- ity that your second longest wait will be less than five minutes?

3.10.2. A random sample of size n = 6 is taken from the pdf fY (y) = 3y2, 0 ≤ y ≤ 1. Find P(Y ′5 > 0.75). 3.10.3. What is the probability that the larger of two ran- dom observations drawn from any continuous pdf will exceed the sixtieth percentile?

3.10.4. A random sample of size 5 is drawn from the pdf fY (y) = 2y, 0 ≤ y ≤ 1. Calculate P(Y ′1 < 0.6 < Y ′5). (Hint: Consider the complement.)

3.10.5. Suppose that Y1, Y2, . . ., Yn is a random sample of size n drawn from a continuous pdf, fY (y), whose median is m. Is P(Y ′1 > m) less than, equal to, or greater than P(Y ′n > m)?

3.10.6. Let Y1, Y2, . . ., Yn be a random sample from the exponential pdf fy(y) = e−y, y ≥ 0. What is the smallest n for which P(Ymin < 0.2) > 0.9?

3.10.7. Calculate P(0.6 < Y ′4 < 0.7) if a random sample of size 6 is drawn from the uniform pdf defined over the interval [0, 1].

3.10.8. A random sample of size n = 5 is drawn from the pdf fY (y) = 2y, 0 ≤ y ≤ 1. On the same set of axes, graph the pdfs for Y2, Y ′1, and Y

′ 5.

3.10.9. Suppose that n observations are taken at random from the pdf

fY (y) = 1√ 2π(6)

e− 1 2 ( y−206 )

2

, − ∞ < y < ∞

What is the probability that the smallest observation is larger than twenty?

3.10.10. Suppose that n observations are chosen at ran- dom from a continuous pdf fY (y). What is the probabil- ity that the last observation recorded will be the smallest number in the entire sample?

3.10.11. In a certain large metropolitan area, the pro- portion, Y , of students bused varies widely from school to school. The distribution of proportions is roughly described by the following pdf:

0 y

1

1

2

f (y)Y

Suppose the enrollment figures for five schools selected at random are examined. What is the probability that the school with the fourth highest proportion of bused chil- dren will have a Y value in excess of 0.75? What is the probability that none of the schools will have fewer than 10% of their students bused?

3.10.12. Consider a system containing n components, where the lifetimes of the components are indepen- dent random variables and each has pdf fY (y) = λe−λy, y > 0. Show that the average time elapsing before the first component failure occurs is 1/nλ.

3.10.13. Let Y1, Y2, . . ., Yn be a random sample from a uniform pdf over [0, 1]. Use Theorem 3.10.2 to show that∫ 1

0 y i−1(1 − y)n−idy = (i − 1)!(n − i)!

n! .

3.10.14. Use Question 3.10.13 to find the expected value of Y ′i , where Y1, Y2, . . ., Yn is a random sample from a uniform pdf defined over the interval [0, 1].

3.10.15. Suppose three points are picked randomly from the unit interval. What is the probability that the three are within a half unit of one another?

3.10.16. Suppose a device has three independent compo- nents, all of whose lifetimes (in months) are modeled by the exponential pdf, fY (y) = e−y, y > 0. What is the probability that all three components will fail within two months of one another?

3.11 Conditional Densities We have already seen that many of the concepts defined in Chapter 2 relating to the probabilities of events—for example, independence—have random variable coun- terparts. Another of these carryovers is the notion of a conditional probability, or, in what will be our present terminology, a conditional probability density function. Applications of conditional pdfs are not uncommon. The height and girth of a tree, for instance, can be considered a pair of random variables. While it is easy to mea- sure girth, it can be difficult to determine height; thus it might be of interest to a

200 Chapter 3 Random Variables

lumberman to know the probabilities of a ponderosa pine’s attaining certain heights given a known value for its girth. Or consider the plight of a school board member agonizing over which way to vote on a proposed budget increase. Her task would be that much easier if she knew the conditional probability that x additional tax dol- lars would stimulate an average increase of y points among twelfth graders taking a standardized proficiency exam.

FINDING CONDITIONAL PDFS FOR DISCRETE RANDOM VARIABLES

In the case of discrete random variables, a conditional pdf can be treated in the same way as a conditional probability. Note the similarity between Definitions 3.11.1 and 2.4.1.

Definition 3.11.1 Let X and Y be discrete random variables. The conditional probability density function of Y given x—that is, the probability that Y takes on the value y given that X is equal to x—is denoted pY |x(y) and given by

pY |x(y) = P(Y = y | X = x) = pX,Y (x, y)pX (x) for pX (x) �= 0.

Example 3.11.1

A fair coin is tossed five times. Let the random variable Y denote the total number of heads that occur, and let X denote the number of heads occurring on the last two tosses. Find the conditional pdf pY |x(y) for all x and y.

Clearly, there will be three different conditional pdfs, one for each possible value of X (x = 0, x = 1, and x = 2). Moreover, for each value of x there will be four possi- ble values of Y , based on whether the first three tosses yield zero, one, two, or three heads.

For example, suppose no heads occur on the last two tosses. Then X = 0, and pY |0(y) = P(Y = y | X = 0) = P(y heads occur on first three tosses)

= (

3 y

)( 1 2

)y ( 1 − 1

2

)3−y

= (

3 y

)( 1 2

)3 , y = 0, 1, 2, 3

Now, suppose that X = 1. The corresponding conditional pdf in that case becomes

pY |x(y) = P(Y = y | X = 1) Notice that Y = 1 if zero heads occur in the first three tosses, Y = 2 if one head occurs in the first three trials, and so on. Therefore,

pY |1(y) = (

3 y − 1

)( 1 2

)y−1 ( 1 − 1

2

)3−(y−1)

= (

3 y − 1

)( 1 2

)3 , y = 1, 2, 3, 4

Section 3.11 Conditional Densities 201

Similarly,

pY |2(y) = P(Y = y | X = 2) = (

3 y − 2

)( 1 2

)3 , y = 2, 3, 4, 5

Figure 3.11.1 shows the three conditional pdfs. Each has the same shape, but the possible values of Y are different for each value of X .

0 1 2 3 4

pY|2(y)

pY|1(y)

pY|0(y)

5 Y-axis

x = 2

x = 1

x = 0

3 8 1 8

3 8 1 8

3 8 1 8

Figure 3.11.1

Example 3.11.2

Assume that the probabilistic behavior of a pair of discrete random variables X and Y is described by the joint pdf

pX,Y (x, y) = xy2/39 defined over the four points (1, 2), (1, 3), (2, 2), and (2, 3). Find the conditional probability that X = 1 given that Y = 2.

By definition,

pX |2(1) = P(X = 1 given that Y = 2)

= pX,Y (1, 2) pY (2)

= 1 · 2 2/39

1 · 22/39 + 2 · 22/39 = 1/3

Example 3.11.3

Suppose that X and Y are two independent binomial random variables, each defined on n trials and each having the same success probability p. Let Z = X + Y . Show that the conditional pdf pX |z(x) is a hypergeometric distribution.

We know from Example 3.8.2 that Z has a binomial distribution with parameters 2n and p. That is,

pZ(z) = P(Z = z) = (

2n z

) pz(1 − p)2n−z, z = 0, 1, . . . , 2n.

202 Chapter 3 Random Variables

By Definition 3.11.1,

pX |z(x) = P(X = x|Z = z) = pX,Z(x, z)pZ(z)

= P(X = x and Z = z) P(Z = z)

= P(X = x and Y = z − x) P(Z = z)

= P(X = x) · P(Y = z − x) P(Z = z) (because X and Y are independent)

=

( n x

) px(1 − p)n−x ·

( n

z − x )

pz−x(1 − p)n−(z−x)( 2n z

) pz(1 − p)2n−z

=

( n x

)( n

z − x )

( 2n z

) which we recognize as being the hypergeometric distribution.

Comment The notion of a conditional pdf generalizes easily to situations involving more than two discrete random variables. For example, if X , Y , and Z have the joint pdf pX,Y,Z(x, y, z), the joint conditional pdf of, say, X and Y given that Z = z is the ratio

pX,Y |z(x, y) = pX,Y,Z(x, y, z)pZ(z)

Example 3.11.4

Suppose that random variables X , Y , and Z have the joint pdf

pX,Y,Z(x, y, z) = xy/9z for points (1, 1, 1), (2, 1, 2), (1, 2, 2), (2, 2, 2), and (2, 2, 1). Find pX,Y |z(x, y) for all values of z.

To begin, we see from the points for which pX,Y,Z(x, y, z) is defined that Z has two possible values, 1 and 2. Suppose z = 1. Then

pX,Y |1(x, y) = pX,Y,Z(x, y, 1)pZ(1) But

pZ(1) = P(Z = 1) = P[(1, 1, 1) ∪ (2, 2, 1)]

= 1 · 1 9

· 1 + 2 · 2 9

· 1

= 5 9

Therefore,

pX,Y |1(x, y) = xy/95 9

= xy/5 for (x, y) = (1, 1) and (2, 2)

Section 3.11 Conditional Densities 203

Suppose z = 2. Then

pZ(2) = P(Z = 2) = P[(2, 1, 2) ∪ (1, 2, 2) ∪ (2, 2, 2)]

= 2 · 1 18

+ 1 · 2 18

+ 2 · 2 18

= 8 18

so

pX,Y |2(x, y) = pX,Y,Z(x, y, 2)pZ(2)

= x · y/188 18

= xy 8

for (x, y) = (2, 1), (1, 2), and (2, 2)

Questions

3.11.1. Suppose X and Y have the joint pdf pX,Y (x, y) = x+y+xy

21 for the points (1, 1), (1, 2), (2, 1), (2, 2), where X denotes a “message” sent (either x = 1 or x = 2) and Y denotes a “message” received. Find the probability that the message sent was the message received, that is, find pY |x(x).

3.11.2. Suppose a die is rolled six times. Let X be the total number of 4’s that occur and let Y be the number of 4’s in the first two tosses. Find pY |x(y).

3.11.3. An urn contains eight red chips, six white chips, and four blue chips. A sample of size 3 is drawn without replacement. Let X denote the number of red chips in the sample and Y , the number of white chips. Find an expres- sion for pY |x(y).

3.11.4. Five cards are dealt from a standard poker deck. Let X be the number of aces received, and Y the number of kings. Compute P(X = 2|Y = 2).

3.11.5. Given that two discrete random variables X and Y follow the joint pdf pX,Y (x, y) = k(x + y), for x = 1, 2, 3 and y = 1, 2, 3, (a) Find k. (b) Evaluate pY |x(1) for all values of x for which px(x) > 0.

3.11.6. Let X denote the number on a chip drawn at ran- dom from an urn containing three chips, numbered 1, 2, and 3. Let Y be the number of heads that occur when a fair coin is tossed X times.

(a) Find pX,Y (x, y). (b) Find the marginal pdf of Y by summing out the x values.

3.11.7. Suppose X , Y , and Z have a trivariate distribution described by the joint pdf

pX,Y,Z(x, y, z) = xy + xz + yz54 where x, y, and z can be 1 or 2. Tabulate the joint condi- tional pdf of X and Y given each of the two values of z.

3.11.8. In Question 3.11.7 define the random variable W to be the “majority” of x, y, and z. For example, W(2, 2, 1) = 2 and W(1, 1, 1) = 1. Find the pdf of W |x. 3.11.9. Let X and Y be independent Poisson random vari- ables where px(k) = e−λ λkk! and pY (k) = e−μ μ

k

k! for k = 0, 1, . . . . Show that the conditional pdf of X given that X + Y = n is binomial with parameters n and λ

λ+μ . (Hint: See Question 3.8.3.)

3.11.10. Suppose Compositor A is preparing a manuscript to be published. Assume that she makes X errors per page, where X has a Poisson pdf, with λ = 2 (see Ques- tion 3.9.21). A second compositor, B, is also working on the book. He makes Y errors on a page, where Y is Pois- son with λ = 3. Assume that Compositor A prepares the first one hundred pages of the text and Compositor B, the last one hundred pages. After the book is completed, re- viewers (with too much time on their hands!) find that the text contains a total of five hundred twenty errors. Write a formula for the exact probability that fewer than half of the errors are due to Compositor A.

204 Chapter 3 Random Variables

FINDING CONDITIONAL PDFS FOR CONTINUOUS RANDOM VARIABLES

If the variables X and Y are continuous, we can still appeal to the quotient fX,Y (x, y)/ fX (x) as the definition of fY |x(y) and argue its propriety by analogy. A more satisfying approach, though, is to arrive at the same conclusion by taking the limit of Y ’s “conditional” cdf.

If X is continuous, a direct evaluation of FY |x(y) = P(Y ≤ y|X = x), via Defini- tion 2.4.1, is impossible, since the denominator would be zero. Alternatively, we can think of P(Y ≤ y|X = x) as a limit:

P(Y ≤ y|X = x) = lim h→0

P(Y ≤ y|x ≤ X ≤ x + h)

= lim h→0

∫ x+h x

∫ y −∞

fX,Y (t, u) du dt∫ x+h x

fX (t) dt

Evaluating the quotient of the limits gives 00 , so l’Hôpital’s rule is indicated:

P(Y ≤ y|X = x) = lim h→0

d dh

∫ x+h x

∫ y −∞

fX,Y (t, u) du dt

d dh

∫ x+h x

fX (t) dt

(3.11.1)

By the Fundamental Theorem of Calculus,

d dh

∫ x+h x

g (t) dt = g (x + h)

which simplifies Equation 3.11.1 to

P(Y ≤ y|X = x) = lim h→0

∫ y −∞

fX,Y [(x + h), u] du fX (x + h)

=

∫ y −∞

lim h→0

fX,Y (x + h, u) du lim h→0

fX (x + h) = ∫ y

−∞

fX,Y (x, u) fX (x)

du

provided that the limit operation and the integration can be interchanged [see (9) for a discussion of when such an interchange is valid]. It follows from this last ex- pression that fX,Y (x, y)/ fX (x) behaves as a conditional probability density func- tion should, and we are justified in extending Definition 3.11.1 to the continuous case.

Example 3.11.5

Let X and Y be continuous random variables with joint pdf

fX,Y (x, y) = ⎧⎨ ⎩ (

1 8

) (6 − x − y), 0 ≤ x ≤ 2, 2 ≤ y ≤ 4

0, elsewhere

Find (a) fX (x), (b) fY |x(y), and (c) P(2 < Y < 3|x = 1).

Section 3.11 Conditional Densities 205

a. From Theorem 3.7.2,

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy =

∫ 4 2

( 1 8

) (6 − x − y) dy

= (

1 8

) (6 − 2x), 0 ≤ x ≤ 2

b. Substituting into the “continuous” statement of Definition 3.11.1, we can write

fY |x(y) = fX,Y (x, y)fX (x) = ( 1

8

) (6 − x − y)( 1

8

) (6 − 2x)

= 6 − x − y 6 − 2x , 0 ≤ x ≤ 2, 2 ≤ y ≤ 4

c. To find P(2 < Y < 3|x = 1), we simply integrate fY |1(y) over the interval 2 < Y < 3:

P(2 < Y < 3|x = 1) = ∫ 3

2 fY |1(y) dy

= ∫ 3

2

5 − y 4

dy

= 5 8

(A partial check that the derivation of a conditional pdf is correct can be performed by integrating fY |x(y) over the entire range of Y . That integral should be 1. Here, for example, when x = 1, ∫∞−∞ fY |1(y) dy = ∫ 42 [(5 − y)/4] dy does equal 1.)

Questions

3.11.11. Let X be a nonnegative random variable. We say that X is memoryless if

P(X > s + t|X > t) = P(X > s) for all s, t ≥ 0 Show that a random variable with pdf fX (x) = (1/λ)e−x/λ, x > 0, is memoryless.

3.11.12. Given the joint pdf

fX,Y (x, y) = 2e−(x+y), 0 ≤ x ≤ y, y ≥ 0 find (a) P(Y < 1|X < 1). (b) P(Y < 1|X = 1). (c) fY |x(y). (d) E(Y |x).

3.11.13. Find the conditional pdf of Y given x if

fX,Y (x, y) = x + y for 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1.

3.11.14. If

fX,Y (x, y) = 2, x ≥ 0, y ≥ 0, x + y ≤ 1 show that the conditional pdf of Y given x is uniform.

3.11.15. Suppose that

fY |x(y) = 2y + 4x1 + 4x and fX (x) = 1 3

· (1 + 4x)

for 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1. Find the marginal pdf for Y .

3.11.16. Suppose that X and Y are distributed according to the joint pdf

fX,Y (x, y) = 25 · (2x + 3y), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1

Find (a) fX (x). (b) fY |x(y).

(c) P ( 1

4 ≤ Y ≤ 34 |X = 12 ) .

(d) E(Y |x).

206 Chapter 3 Random Variables

3.11.17. If X and Y have the joint pdf

fX,Y (x, y) = 2, 0 ≤ x < y ≤ 1 find P

( 0 < X < 12 |Y = 34

) .

3.11.18. Find P ( X < 1|Y = 1 12

) if X and Y have the

joint pdf fX,Y (x, y) = xy/2, 0 ≤ x < y ≤ 2

3.11.19. Suppose that X1, X2, X3, X4, and X5 have the joint pdf

fX1,X2,X3,X4,X5 (x1, x2, x3, x4, x5) = 32x1x2x3x4x5 for 0 ≤ xi ≤ 1, i = 1, 2, . . . , 5. Find the joint conditional pdf of X1, X2, and X3 given that X4 = x4 and X5 = x5.

3.11.20. Suppose the random variables X and Y are jointly distributed according to the pdf

fX,Y (x, y) = 67 (

x2 + xy 2

) , 0 ≤ x ≤ 1, 0 ≤ y ≤ 2

Find

(a) fX (x). (b) P(X > 2Y). (c) P

( Y > 1|X > 12

) .

3.11.21. For continuous random variables X and Y , prove that E(Y) = EX [E(Y |x)].

3.12 Moment-Generating Functions Finding moments of random variables directly, particularly the higher moments defined in Section 3.6, is conceptually straightforward but can be quite problematic: Depending on the nature of the pdf, integrals and sums of the form

∫∞ −∞ y

r fY (y) dy and

∑ all k

kr pX (k) can be very difficult to evaluate. Fortunately, an alternative method

is available. For many pdfs, we can find a moment-generating function (or mgf), MW (t), one of whose properties is that the rth derivative of MW (t) evaluated at zero is equal to E(W r).

CALCULATING A RANDOM VARIABLE’S MOMENT-GENERATING FUNCTION

In principle, what we call a moment-generating function is a direct application of Theorem 3.5.3.

Definition 3.12.1 Let W be a random variable. The moment-generating function (mgf) for W is denoted MW (t) and given by

MW (t) = E(etW ) =

⎧⎪⎪⎨ ⎪⎪⎩ ∑ all k

etk pW (k) ifW is discrete∫ ∞ −∞

etw fW (w) dw ifW is continuous

at all values of t for which the expected value exists.

Example 3.12.1

Suppose the random variable X has a geometric pdf,

pX (k) = (1 − p)k−1 p, k = 1, 2, . . .

[In practice, this is the pdf that models the occurrence of the first success in a series of independent trials, where each trial has a probability p of ending in success (recall Example 3.3.2)]. Find MX (t), the moment-generating function for X .

Section 3.12 Moment-Generating Functions 207

Since X is discrete, the first part of Definition 3.12.1 applies, so

MX (t) = E(etX ) = ∞∑

k=1 etk(1 − p)k−1 p

= p 1 − p

∞∑ k=1

etk(1 − p)k = p 1 − p

∞∑ k=1

[(1 − p)et ]k (3.12.1)

The t in MX (t) can be any number in a neighborhood of zero, as long as MX (t) < ∞. Here, MX (t) is an infinite sum of the terms [(1 − p)et ]k, and that sum will be finite only if (1 − p)et < 1, or, equivalently, if t < ln[1/(1 − p)]. It will be assumed, then, in what follows that 0 < t < ln[1/(1 − p)].

Recall that ∞∑

k=0 rk = 1

1 − r provided 0 < r < 1. This formula can be used on Equation 3.12.1, where r = (1−p)et and 0 < t < ln

[ 1 (1−p)

] . Specifically,

MX (t) = p1 − p

[ ∞∑ k=0

[(1 − p)et]k − [(1 − p)et]0 ]

= p 1 − p

[ 1

1 − (1 − p)et − 1 ]

= pe t

1 − (1 − p)et

Example 3.12.2

Suppose that X is a binomial random variable with pdf

pX (k) = (

n k

) pk(1 − p)n−k, k = 0, 1, . . . , n

Find MX (t). By Definition 3.12.1,

MX (t) = E(etX ) = n∑

k=0 etk

(n k

) pk(1 − p)n−k

= n∑

k=0

(n k

) (pet)k(1 − p)n−k (3.12.2)

To get a closed-form expression for MX (t)—that is, to evaluate the sum indicated in Equation 3.12.2—requires a (hopefully) familiar formula from algebra: According to Newton’s binomial expansion,

(x + y)n = n∑

k=0

( n k

) xkyn−k (3.12.3)

for any x and y. Suppose we let x = pet and y = 1−p. It follows from Equations 3.12.2 and 3.12.3, then, that

MX (t) = (1 − p + pet)n

Notice in this case that MX (t) is defined for all values of t.

208 Chapter 3 Random Variables

Example 3.12.3

Suppose that Y has an exponential pdf, where fY (y) = λe−λy, y > 0. Find MY (t). Since the exponential pdf describes a continuous random variable, MY (t) is an

integral:

MY (t) = E(etY ) = ∫ ∞

0 ety · λe−λy dy

= ∫ ∞

0 λe−(λ−t)y dy

After making the substitution u = (λ − t)y, we can write

MY (t) = ∫ ∞

u=0 λe−u

du λ − t

= λ λ − t

[−e−u∣∣∞u=0] = λ

λ − t [ 1 − lim

u→∞ e −u ]

= λ λ − t

Here, MY (t) is finite and nonzero only when u = (λ − t)y > 0, which implies that t must be less than λ. For t ≥ λ, MY (t) fails to exist.

Example 3.12.4

The normal (or bell-shaped) curve was introduced in Example 3.4.3. Its pdf is the rather cumbersome function

fY (y) = ( 1/

√ 2πσ

) exp

[ −1

2

( y − μ

σ

)2] , −∞ < y < ∞

where μ = E(Y) and σ2 = Var(Y). Derive the moment-generating function for this most important of all probability models.

Since Y is a continuous random variable,

MY (t) = E(etY ) = ( 1/

√ 2πσ

) ∫ ∞ −∞

exp(ty) exp

[ −1

2

( y − μ

σ

)2] dy

= (1/√2πσ) ∫ ∞ −∞

exp [ −y

2 − 2μy − 2σ2ty + μ2 2σ2

] dy (3.12.4)

Evaluating the integral in Equation 3.12.4 is best accomplished by completing the square of the numerator of the exponent (which means that the square of half the coefficient of y is added and subtracted). That is, we can write

y2 − (2μ + 2σ2t)y + (μ + σ2t)2 − (μ + σ2t)2 + μ2

= [y − (μ + σ2t)]2 − σ4t2 + 2μtσ2 (3.12.5) The last two terms on the right-hand side of Equation 3.12.5, though, do not

involve y, so they can be factored out of the integral, and Equation 3.12.4 reduces to

MY (t) = exp (

μt + σ 2t2

2

) ( 1/

√ 2πσ

) ∫ ∞ −∞

exp

[ −1

2

[ y − (μ + tσ2)

σ

]2] dy

But, together, the latter two factors equal 1 (why?), implying that the moment- generating function for a normally distributed random variable is given by

MY (t) = eμt+σ2t2/2

Section 3.12 Moment-Generating Functions 209

Questions

3.12.1. Let X be a random variable with pdf pX (k) = 1/n, for k = 0, 1, 2, . . . , n − 1 and 0 otherwise. Show that MX (t) = 1−entn(1−et ) .

3.12.2. Two chips are drawn at random and without re- placement from an urn that contains five chips, numbered 1 through 5. If the sum of the chips drawn is even, the ran- dom variable X equals 5; if the sum of the chips drawn is odd, X = −3. Find the moment-generating function for X .

3.12.3. Find the expected value of e3X if X is a binominal random variable with n = 10 and p = 13 .

3.12.4. Find the moment-generating function for the dis- crete random variable X whose probability function is given by

pX (k) = (

3 4

)k (1 4

) , k = 0, 1, 2, . . .

3.12.5. Which pdfs would have the following moment- generating functions?

(a) MY (t) = e6t2 (b) MY (t) = 2/(2 − t) (c) MX (t) =

( 1 2 + 12 et

)4 (d) MX (t) = 0.3et/(1 − 0.7et) 3.12.6. Let Y have pdf

fY (y) =

⎧⎪⎨ ⎪⎩

y, 0 ≤ y ≤ 1 2 − y, 1 ≤ y ≤ 2 0, elsewhere

Find MY (t).

3.12.7. The random variable X has a Poisson distribution pX (k) = e−λλk/k!, k = 0, 1, 2, . . . . Find the moment- generating function for a Poisson random variable. Recall that

er = ∞∑

k=0

rk

k!

3.12.8. Let Y be a continuous random variable with fY (y) = ye−y, 0 ≤ y. Show that MY (t) = 1(1−t)2 .

USING MOMENT-GENERATING FUNCTIONS TO FIND MOMENTS

Having practiced finding the functions MX (t) and MY (t), we now turn to the theorem that spells out their relationship to X r and Y r.

Theorem 3.12.1

Let W be a random variable with probability density function fW (w). (If W is con- tinuous, fW (w) must be sufficiently smooth to allow the order of differentiation and integration to be interchanged.) Let MW (t) be the moment-generating function for W. Then, provided the rth moment exists,

M(r)W (0) = E(W r)

Proof We will verify the theorem for the continuous case where r is either 1 or 2. The extensions to discrete random variables and to an arbitrary positive integer r are straightforward.

For r = 1,

M(1)Y (0) = d dt

∫ ∞ −∞

ety fY (y) dy ∣∣∣∣ t=0

= ∫ ∞

−∞

d dt

ety fY (y) dy ∣∣∣∣ t=0

= ∫ ∞

−∞ yety fY (y) dy

∣∣∣∣ t=0

= ∫ ∞

−∞ ye0·y fY (y) dy

= ∫ ∞

−∞ y fY (y) dy = E(Y)

(Continued on next page)

210 Chapter 3 Random Variables

(Theorem 3.12.1 continued)

For r = 2,

M(2)Y (0) = d2

dt2

∫ ∞ −∞

ety fY (y) dy ∣∣∣∣ t=0

= ∫ ∞

−∞

d2

dt2 ety fY (y) dy

∣∣∣∣ t=0

= ∫ ∞

−∞ y2ety fY (y) dy

∣∣∣∣ t=0

= ∫ ∞

−∞ y2e0 · y fY (y) dy

= ∫ ∞

−∞ y2 fY (y) dy = E(Y 2)

Example 3.12.5

For a geometric random variable X with pdf

pX (k) = (1 − p)k−1 p, k = 1, 2, . . . we saw in Example 3.12.1 that

MX (t) = pet[1 − (1 − p)et]−1 Find the expected value of X by differentiating its moment-generating function.

Using the product rule, we can write the first derivative of MX (t) as

M(1)X (t) = pet(−1)[1 − (1 − p)et]−2(−1)(1 − p)et + [1 − (1 − p)et]−1 pet

= p(1 − p)e 2t

[1 − (1 − p)et ]2 + pet

1 − (1 − p)et Setting t = 0 shows that E(X ) = 1p :

M(1)X (0) = E(X ) = p(1 − p)e2 · 0

[1 − (1 − p)e0]2 + pe0

1 − (1 − p)e0

= p(1 − p) p2

+ p p

= 1 p

Example 3.12.6

Find the expected value of an exponential random variable with pdf

fY (y) = λe−λy, y > 0 Use the fact that

MY (t) = λ(λ − t)−1 (as shown in Example 3.12.3).

Differentiating MY (t) gives

M(1)Y (t) = λ(−1)(λ − t)−2(−1)

= λ (λ − t)2

Set t = 0. Then M(1)Y (0) =

λ

(λ − 0)2 implying that

E(Y) = 1 λ

Section 3.12 Moment-Generating Functions 211

Example 3.12.7

Find an expression for E(X k) if the moment-generating function for X is given by

MX (t) = (1 − p1 − p2) + p1et + p2e2t

The only way to deduce a formula for an arbitrary moment such as E(X k) is to calculate the first couple moments and look for a pattern that can be generalized. Here,

M(1)X (t) = p1et + 2p2e2t

so

E(X ) = M(1)X (0) = p1e0 + 2p2e2 · 0

= p1 + 2p2 Taking the second derivative, we see that

M(2)X (t) = p1et + 22 p2e2t

implying that

E(X 2) = M(2)X (0) = p1e0 + 22 p2e2 · 0

= p1 + 22 p2 Clearly, each successive differentiation will leave the p1 term unaffected but will mul- tiply the p2 term by 2. Therefore,

E(X k) = M(k)X (0) = p1 + 2k p2

USING MOMENT-GENERATING FUNCTIONS TO FIND VARIANCES

In addition to providing a useful technique for calculating E(W r), moment- generating functions can also find variances, because

Var(W) = E(W 2) − [E(W)]2 (3.12.6) for any random variable W (recall Theorem 3.6.1). Other useful “descriptors” of pdfs can also be reduced to combinations of moments. The skewness of a distribution, for example, is a function of E[(W − μ)3], where μ = E(W). But

E[(W − μ)3] = E(W 3) − 3E(W 2)E(W) + 2[E(W)]3

In many cases, finding E[(W −μ)2] or E[(W −μ)3] could be quite difficult if moment- generating functions were not available.

Example 3.12.8

We know from Example 3.12.2 that if X is a binomial random variable with param- eters n and p, then

MX (t) = (1 − p + pet)n

Use MX (t) to find the variance of X . The first two derivatives of MX (t) are

M(1)X (t) = n(1 − p + pet)n−1 · pet

212 Chapter 3 Random Variables

and

M(2)X (t) = pet · n(n − 1)(1 − p + pet)n−2 · pet + n(1 − p + pet)n−1 · pet

Setting t = 0 gives

M(1)X (0) = np = E(X )

and

M(2)X (0) = n(n − 1)p2 + np = E(X 2)

From Equation 3.12.6, then,

Var(X ) = n(n − 1)p2 + np − (np)2

= np(1 − p)

(the same answer we found in Example 3.9.9).

Example 3.12.9

It can be shown (see Question 3.12.7) that the moment-generating function for a Poisson random variable is given by

MX (t) = e−λ+λet

Use MX (t) to find E(X ) and Var(X ). Taking the first derivative of MX (t) gives

M(1)X (t) = e−λ+λe t · λet

so

E(X ) = M(1)X (0) = e−λ+λe 0 · λe0

= λ

Applying the product rule to M(1)X (t) yields the second derivative,

M(2)X (t) = e−λ+λe t · λet + λete−λ+λet · λet

For t = 0,

M(2)X (0) = E(X 2) = e−λ+λe 0 · λe0 + λe0 · e−λ+λe0 · λe0

= λ + λ2

The variance of a Poisson random variable, then, proves to be the same as its mean:

Var(X ) = E(X 2) − [E(X )]2

= M(2)X (0) − [ M(1)X (0)

]2 = λ2 + λ − λ2

= λ

Section 3.12 Moment-Generating Functions 213

Questions

3.12.9. Calculate E(Y 3) for a random variable whose moment-generating function is MY (t) = et2/2. 3.12.10. Find E(Y 4) if Y is an exponential random vari- able with fY (y) = λe−λy, y > 0. 3.12.11. The form of the moment-generating function for a normal random variable is MY (t) = eat+b2t2/2 (recall Ex- ample 3.12.4). Differentiate MY (t) to verify that a = E(Y) and b2 = Var(Y). 3.12.12. What is E(Y 4) if the random variable Y has moment-generating function MY (t) = (1 − αt)−k?

3.12.13. Find E(Y 2) if the moment-generating function for Y is given by MY (t) = e−t+4t2 . Use Example 3.12.4 to find E(Y 2) without taking any derivatives. (Hint: Recall Theorem 3.6.1.)

3.12.14. Find an expression for E(Y k) if MY (t) = (1 − t/λ)−r, where λ is any positive real number and r is a pos- itive integer.

3.12.15. Use MY (t) to find the expected value of the uni- form random variable described in Example 3.4.1.

3.12.16. Find the variance of Y if MY (t) = e2t/(1 − t2).

USING MOMENT-GENERATING FUNCTIONS TO IDENTIFY PDFS

Finding moments is not the only application of moment-generating functions. They are also used to identify the pdf of sums of random variables—that is, finding fW (w), where W = W1 +W2 +· · ·+Wn. Their assistance in the latter is particularly important for two reasons: (1) Many statistical procedures are defined in terms of sums, and (2) alternative methods for deriving fW1+W2+···+Wn (w) are extremely cumbersome.

The next two theorems give the background results necessary for deriving fW (w). Theorem 3.12.2 states a key uniqueness property of moment-generating func- tions: If W1 and W2 are random variables with the same mgfs, they must necessarily have the same pdfs. In practice, applications of Theorem 3.12.2 typically rely on one or both of the algebraic properties cited in Theorem 3.12.3.

Theorem 3.12.2

Suppose that W1 and W2 are random variables for which MW1 (t) = MW2 (t) for some interval of t’s containing 0. Then fW1 (w) = fW2 (w). Proof See (103).

Theorem 3.12.3

a. Let W be a random variable with moment-generating function MW (t). Let V = aW + b. Then

MV (t) = ebtMW (at) b. Let W1,W2, . . . ,Wn be independent random variables with moment-generating

functions MW1 (t), MW2 (t), . . . , and MWn (t), respectively. Let W = W1 + W2 + · · · + Wn. Then

MW (t) = MW1 (t) · MW2 (t) · · · MWn (t)

Proof The proof is left as an exercise.

Example 3.12.10

Suppose that X1 and X2 are two independent Poisson random variables with param- eters λ1 and λ2, respectively. That is,

pX1 (k) = P(X1 = k) = e−λ1λk1

k! , k = 0, 1, 2, . . .

214 Chapter 3 Random Variables

and

pX2 (k) = P(X2 = k) = e−λ2λk2

k! , k = 0, 1, 2, . . .

Let X = X1 + X2. What is the pdf for X? According to Example 3.12.9, the moment-generating functions for X1 and

X2 are

MX1 (t) = e−λ1+λ1e t

and

MX2 (t) = e−λ2+λ2e t

Moreover, if X = X1 + X2, then by part (b) of Theorem 3.12.3, MX (t) = MX1 (t) · MX2 (t)

= e−λ1+λ1et · e−λ2+λ2et

= e−(λ1+λ2)+(λ1+λ2)et (3.12.7) But, by inspection, Equation 3.12.7 is the moment-generating function that a Poisson random variable with λ = λ1 + λ2 would have. It follows, then, by Theorem 3.12.2 that

pX (k) = e −(λ1+λ2)(λ1 + λ2)k

k! , k = 0, 1, 2, . . .

Comment The Poisson random variable reproduces itself in the sense that the sum of independent Poissons is also a Poisson. A similar property holds for independent normal random variables (see Question 3.12.19) and, under certain conditions, for independent binomial random variables (recall Example 3.8.2).

Example 3.12.11

We saw in Example 3.12.4 that a normal random variable, Y , with mean μ and vari- ance σ2 has pdf

fY (y) = ( 1/

√ 2πσ

) exp

[ −1

2

( y − μ

σ

)2] , −∞ < y < ∞

and mgf

MY (t) = eμt+σ2t2/2

By definition, a standard normal random variable is a normal random variable for which μ = 0 and σ = 1. Denoted Z, the pdf and mgf for a standard normal random variable are fZ(z) = (1/

√ 2π)e−z

2/2, −∞ < z < ∞, and MZ(t) = et2/2, respectively. Show that the ratio

Y − μ σ

is a standard normal random variable, Z. Write Y−μ

σ as 1

σ Y − μ

σ . By part (a) of Theorem 3.12.3,

M(Y−μ)/σ(t) = e−μt/σMY (

t σ

)

= e−μt/σe[μt/σ+σ2(t/σ)2/2]

= et2/2

Section 3.13 Taking a Second Look at Statistics (Interpreting Means) 215

But MZ(t) = et2/2 so it follows from Theorem 3.12.2 that the pdf for Y−μσ is the same as the pdf for fz(z). (We call

Y−μ σ

a Z transformation. Its importance will become evident in Chapter 4.)

Questions

3.12.17. Use Theorem 3.12.3(a) and Question 3.12.8 to find the moment-generating function of the random vari- able Y , where fY (y) = λ2ye−λy, 0 ≤ y.

3.12.18. Let Y1, Y2, and Y3 be independent random vari- ables, each having the pdf of Question 3.12.17. Use The- orem 3.12.3(b) to find the moment-generating function of Y1 + Y2 + Y3. Compare your answer to the moment- generating function in Question 3.12.14.

3.12.19. Use Theorems 3.12.2 and 3.12.3 to determine which of the following statements is true.

(a) The sum of two independent Poisson random vari- ables has a Poisson distribution. (b) The sum of two independent exponential random variables has an exponential distribution. (c) The sum of two independent normal random variables has a normal distribution.

3.12.20. Calculate P(X ≤ 2) if MX (t) = ( 1

4 + 34 et )5

.

3.12.21. Suppose that Y1, Y2, . . ., Yn is a random sample of size n from a normal distribution with mean μ and

standard deviation σ. Use moment-generating functions

to deduce the pdf of Ȳ = 1 n

n∑ i=1

Yi.

3.12.22. Suppose the moment-generating function for a random variable W is given by

MW (t) = e−3+3et · (

2 3

+ 1 3

et )4

Calculate P(W ≤ 1). (Hint: Write W as a sum.) 3.12.23. Suppose that X is a Poisson random variable, where pX (k) = e−λλk/k!, k = 0, 1, . . . . (a) Does the random variable W = 3X have a Poisson distribution? (b) Does the random variable W = 3X +1 have a Poisson distribution?

3.12.24. Suppose that Y is a normal variable, where fY (y) = (1/

√ 2πσ) exp

[ − 12

( y−μ σ

)2] , −∞ < y < ∞.

(a) Does the random variable W = 3Y have a normal distribution? (b) Does the random variable W = 3Y + 1 have a normal distribution?

3.13 Taking a Second Look at Statistics (Interpreting Means)

One of the most important ideas coming out of Chapter 3 is the notion of the expected value (or mean) of a random variable. Defined in Section 3.5 as a number that reflects the “center” of a pdf, the expected value (μ) was originally introduced for the ben- efit of gamblers. It spoke directly to one of their most fundamental questions—How much will I win or lose, on the average, if I play a certain game? (Actually, the real question they probably had in mind was “How much are you going to lose, on the average?”) Despite having had such a selfish, materialistic, gambling-oriented rai- son d’etre, the expected value was quickly embraced by (respectable) scientists and researchers of all persuasions as a preeminently useful descriptor of a distribution. Today, it would not be an exaggeration to claim that the majority of all statistical analyses focus on either (1) the expected value of a single random variable or (2) comparing the expected values of two or more random variables.

In the lingo of applied statistics, there are actually two fundamentally differ- ent types of “means”—population means and sample means. The term “popula- tion mean” is a synonym for what mathematical statisticians would call an expected value—that is, a population mean (μ) is a weighted average of the possible values

216 Chapter 3 Random Variables

associated with a theoretical probability model, either pX (k) or fY (y), depending on whether the underlying random variable is discrete or continuous. A sample mean is the arithmetic average of a set of measurements. If, for example, n observations— y1, y2, . . ., yn—are taken on a continuous random variable Y , the sample mean is denoted ȳ, where

ȳ = 1 n

n∑ i=1

yi

Conceptually, sample means are estimates of population means, where the “quality” of the estimation is a function of (1) the sample size and (2) the standard deviation (σ) associated with the individual measurements. Intuitively, as the sample size gets larger and/or the standard deviation gets smaller, the approximation will tend to get better.

Interpreting means (either ȳ or μ) is not always easy. To be sure, what they imply in principle is clear enough—both ȳ and μ are measuring the centers of their respec- tive distributions. Still, many a wrong conclusion can be traced directly to researchers misunderstanding the value of a mean. Why? Because the distributions that ȳ and/or μ are actually representing may be dramatically different from the distributions we think they are representing.

An interesting case in point arises in connection with SAT scores. Each fall the average SATs earned by students in each of the fifty states and the District of Columbia are released by the Educational Testing Service (ETS). At the state and

Table 3.13.1

State Average State Average SAT Score SAT Score

North Dakota 1816 Arizona 1547 Illinois 1802 Oregon 1544 Iowa 1794 Virginia 1530 South Dakota 1792 New Jersey 1526 Minnesota 1786 Connecticut 1525 Michigan 1784 West Virginia 1522 Wisconsin 1782 Washington 1519 Missouri 1771 California 1504 Wyoming 1762 Alaska 1485 Kansas 1753 North Carolina 1483 Kentucky 1746 Pennsylvania 1481 Nebraska 1745 Rhode Island 1480 Colorado 1735 Indiana 1474 Mississippi 1714 Maryland 1468 Tennessee 1714 New York 1468 Arkansas 1698 Hawaii 1460 Oklahoma 1697 Nevada 1458 Utah 1690 Florida 1448 Louisiana 1667 Georgia 1445 Ohio 1652 South Carolina 1443 Montana 1637 Texas 1432 Alabama 1617 Maine 1387 New Mexico 1617 Idaho 1364 New Hampshire 1566 Delaware 1359 Massachusetts 1556 DC 1309 Vermont 1554

Section 3.13 Taking a Second Look at Statistics (Interpreting Means) 217

federal level, these SAT averages are often used as indicators of educational suc- cess or failure. Does it make sense, though, to use SAT averages to characterize the quality of a state’s education system? Absolutely not! Averages of this sort refer to very different distributions from state to state. Any attempt to interpret them at face value will necessarily be misleading.

One such state-by-state SAT comparison that appeared in 2014 is reproduced in Table 3.13.1. Notice that North Dakota’s entry is 1816, which is the highest average listed. Does it follow that North Dakota’s educational system is among the best in the nation? Probably not. So, why did their students do so well on the SAT?

The answer to that question lies in the academic profiles of the students who take the SAT. North Dakota primarily uses the ACT for its college admission test. Only 2% of college-bound students took the SAT, approximately one hundred sixty seniors. The SAT is primarily used by private schools, where admissions tend to be more competitive. As a result, the students in North Dakota who take the SAT are not representative of the entire population of students in that state. A disproportion- ate number are exceptionally strong academically, those being the students who feel that they have the ability to be competitive at Ivy League–type schools. The number 1816, then, is the average of something (in this case, an elite subset of all students), but it does not correspond to the center of the SAT distribution for all students.

The moral here is that analyzing data effectively requires that we look beyond the obvious. What we have learned in Chapter 3 about random variables and prob- ability distributions and expected values will be helpful only if we take the time to learn about the context and the idiosyncrasies of the phenomenon being studied. To do otherwise is likely to lead to conclusions that are, at best, superficial and, at worst, incorrect.

Chapte r

4Special Distributions CHAPTER OUTLINE

4.1 Introduction 4.2 The Poisson

Distribution 4.3 The Normal

Distribution 4.4 The Geometric

Distribution 4.5 The Negative

Binomial Distribution 4.6 The Gamma

Distribution 4.7 Taking a Second

Look at Statistics (Monte Carlo Simulations)

Appendix 4.A.1 Proper- ties of Frequently- Used pdfs

Appendix 4.A.2 A Proof of the Central Limit Theorem

Although he maintained lifelong literary and artistic interests, Lambert Adolphe Jacques Quetelet (1796–1874) had mathematical talents that led him to a doctorate from the University of Ghent and from there to a college teaching position in Brussels. In 1833 he was appointed astronomer at the Brussels Royal Observatory after having been largely responsible for its founding. His work with the Belgian census marked the beginning of his pioneering efforts in what today would be called mathematical sociology. Quetelet was well known throughout Europe in scientific and literary circles: At the time of his death he was a member of more than one hundred learned societies.

4.1 INTRODUCTION Suppose for some unknown reason you feel the need to find out how many bug parts (eggs, legs, wings, etc.) you are eating in that package of crackers and cheese you just bought from a vending machine. For reasons we will learn later in this chapter, the distribution of bug parts in peanut butter is nicely modeled by the Poisson probability model

pX (k) = P(I have just eaten k bug parts) = e−λλk/k!, k = 0, 1, 2, . . . where, according to quality control studies done by the Food and Drug Administra- tion, the value of the parameter λ is 6.0 (184).

The equation pX (k) = e−λλk/k!, k = 0, 1, 2, . . . is one of the “special” distri- butions covered in Chapter 4. Recall from Chapter 3 that to qualify as a probability model, a function pX (k) or fY (y) defined over a sample space S needs to satisfy only two criteria: (1) It must be nonnegative for all outcomes in S and (2) It must sum or integrate to 1. Clearly, there are an infinite number of such functions. The only ones of interest for our purposes, though, are those that accurately describe the proba- bilistic behavior of real-world phenomena. Which ones are those? Common sense would tell us that the only pdfs with any connection to reality are those having im- plicit mathematical assumptions in pX (k) or fY (y) that mimic the physical factors influencing the observed values of X and Y .

So how many pX (k)’s and fY (y)’s are in this “useful” group? Given the incred- ible diversity of what researchers measure—ranging from the stars and planets of astronomers to the beasts and bugs of zoologists—we would expect it would take a boatload of different probability functions to meet all their needs. Not so. Not even close. Knowing the properties of just a dozen or so probability functions, some dis- crete and some continuous, provides sufficient background for addressing an amaz- ing diversity of statistical questions.

218

Section 4.2 The Poisson Distribution 219

A case in point is the discrete pdf just mentioned. In addition to its interesting (but not particularly important) ability to predict numbers of bug parts in peanut butter, the Poisson model has long been used by physicists to describe the nature and measurement of radioactivity, by traffic consultants to model the future occur- rences of fender-benders at a busy intersection, by insurance companies to predict how many of their policyholders will likely die next week, by engineers to monitor the number of defective products expected to come off an assembly line, and by the romantically-inclined when counting the number of shooting stars seen per minute during a meteor shower. At first blush, these phenomena seem very different. To a statistician they all look exactly the same, because in each case the data recorded would be generated by the same set of assumptions that underly the Poisson model.

Three of these particularly important probability functions have already been discussed: the binomial model (Theorem 3.2.1), the hypergeometric model (Theorem 3.2.2), and the uniform model (Example 3.4.1). Five other models (three discrete and two continuous) are the focus of Chapter 4.

By far the most important probability model introduced in Chapter 4 is the nor- mal curve (otherwise known as the Gaussian distribution or bell-shaped curve). The normal curve first appeared early in the eighteenth century as a numerical approxi- mation for the binomial distribution when n is large, but researchers early on realized that it had implications that were far more important than its utility as a binomial ap- proximation, and it became the subject of intense mathematical research for more than two hundred years. Today its present formulation is recognized as the single most important result in both applied and mathematical statistics. Sir Francis Galton once wrote that had the ancient Greeks known about the normal curve and all of its implications, they would have given it the name of a god and worshipped it.

Examples play an especially important role in this chapter, as they should. To spend a good deal of time learning about probability models as important as the ones covered in this chapter and never see them applied to real-world situations would be a wasted opportunity—much like teaching a visiting contingent of Martians the ins and outs of internal combustion engines but never taking them for a car ride. That mistake will not happen here. With seventeen examples, seven case studies, four data sets, and ninety-eight exercises, Chapter 4 is even more than just a car ride, it’s an all-out road trip. Buckle up.

4.2 The Poisson Distribution The binomial distribution problems that appeared in Section 3.2 all had relatively small values for n, so evaluating pX (k) = P(X = k) =

( n k

) pk(1 − p)n−k was not

particularly difficult. But suppose n were 1000 and k, 500. Evaluating pX (500) would be a formidable task for many handheld calculators, even today. Two hundred years ago, the prospect of doing cumbersome binomial calculations by hand was a catalyst for mathematicians to develop some easy-to-use approximations. One of the first such approximations was the Poisson limit, which eventually gave rise to the Poisson distribution. Both are described in Section 4.2.

Simeon Denis Poisson (1781–1840) was an eminent French mathematician and physicist, an academic administrator of some note, and, according to an 1826 let- ter from the mathematician Abel to a friend, a man who knew “how to behave with a great deal of dignity.” One of Poisson’s many interests was the application of probability to the law, and in 1837 he wrote Recherches sur la Probabilite de Juge- ments. Included in the latter is a limit for pX (k) =

( n k

) pk(1 − p)n−k that holds when

n approaches ∞, p approaches 0, and np remains constant. In practice, Poisson’s

220 Chapter 4 Special Distributions

limit is used to approximate hard-to-calculate binomial probabilities where the val- ues of n and p reflect the conditions of the limit—that is, when n is large and p is small.

THE POISSON LIMIT

Deriving an asymptotic expression for the binomial probability model is a straight- forward exercise in calculus, given that np is to remain fixed as n increases.

Theorem 4.2.1

Suppose X is a binomial random variable, where

P(X = k) = pX (k) = (n

k

) pk(1 − p)n−k, k = 0, 1, . . . , n

If n → ∞ and p → 0 in such a way that λ = np remains constant, then

lim n→∞ p→0

np= const.

P(X = k) = lim n→∞ p→0

np= const.

(n k

) pk(1 − p)n−k = e

−np(np)k

k!

Proof We begin by rewriting the binomial probability in terms of λ:

lim n→∞

(n k

) pk(1 − p)n−k = lim

n→∞

(n k

)(λ n

)k ( 1 − λ

n

)n−k

= lim n→∞

n! k!(n − k)!λ

k (

1 nk

)( 1 − λ

n

)−k ( 1 − λ

n

)n

= λ k

k! lim

n→∞ n!

(n − k)! 1

(n − λ)k (

1 − λ n

)n

But since [1 − (λ/n)]n → e−λ as n → ∞, we need show only that

n! (n − k)!(n − λ)k → 1

to prove the theorem. However, note that

n! (n − k)!(n − λ)k =

n(n − 1) · · · (n − k + 1) (n − λ)(n − λ) · · · (n − λ)

a quantity that, indeed, tends to 1 as n → ∞ (since λ remains constant).

Example 4.2.1

Theorem 4.2.1 is an asymptotic result. Left unanswered is the question of the rele- vance of the Poisson limit for finite n and p. That is, how large does n have to be and how small does p have to be before e−np(np)k/k! becomes a good approximation to the binomial probability, pX (k)?

Since “good approximation” is undefined, there is no way to answer that ques- tion in any completely specific way. Tables 4.2.1 and 4.2.2, though, offer a partial solution by comparing the closeness of the approximation for two particular sets of values for n and p.

Section 4.2 The Poisson Distribution 221

Table 4.2.1 Binomial Probabilities and Poisson Limits; n = 5 and p = 15 (λ = 1)

k (

5 k

) (0.2)k(0.8)5−k

e−1(1)k

k!

0 0.328 0.368 1 0.410 0.368 2 0.205 0.184 3 0.051 0.061 4 0.006 0.015 5 0.000 0.003 6+ 0 0.001

1.000 1.000

Table 4.2.2 Binomial Probabilities and Poisson Limits; n = 100 and p = 1100 (λ = 1)

k (

100 k

) (0.01)k(0.99)100−k

e−1(1)k

k!

0 0.366032 0.367879 1 0.369730 0.367879 2 0.184865 0.183940 3 0.060999 0.061313 4 0.014942 0.015328 5 0.002898 0.003066 6 0.000463 0.000511 7 0.000063 0.000073 8 0.000007 0.000009 9 0.000001 0.000001

10 0.000000 0.000000

1.000000 0.999999

In both cases λ = np is equal to 1, but in the former, n is set equal to 5—in the latter, to 100. We see in Table 4.2.1 (n = 5) that for some k the agreement between the binomial probability and Poisson’s limit is not very good. If n is as large as 100, though (Table 4.2.2), the agreement is remarkably good for all k.

Example 4.2.2

According to the IRS, 137.8 million individual tax returns were filed in 2008. Out of that total, 1.4 million taxpayers, or 1.0%, had the good fortune of being audited. Not everyone, though, had the same chance of getting caught in the IRS’s headlights: millionaires had the considerably higher audit rate of 5.6% (and maybe a bit higher still if the Feds found out about their offshore bank accounts in the Cayman Islands and those summer “cottages” in the Hamptons).

Criminal investigations were initiated against 3749 of all those indicted, and 1735 of that group were eventually convicted of tax fraud and sent to jail.

Suppose your hometown has 65,000 taxpayers, a cohort whose income profiles and proclivities for financial duplicity are much the same as those characteristic of the United States as a whole. What is the probability that at least three of your “neigh- bors” will be doing some Federal slammer-time next year?

222 Chapter 4 Special Distributions

Let X denote the number of your neighbors who will be incarcerated. Note that X is a binomial random variable based on a very large n (= 65,000) and a very small p (= 1735/137,800,000 = 0.0000126), so Poisson’s limit is clearly applicable (and helpful). Here, where λ = np = 65,000(0.0000126) = 0.819,

P(At least three neighbors go to jail) = P(X ≥ 3) = 1 − P(X ≤ 2)

= 1 − 2∑

k=0

( 65,000

k

) (0.0000126)k(0.9999874)65,000−k

=̇ 1 − 2∑

k=0 e−0.819

(0.819)k

k!

= 0.050

CASE STUDY 4.2.1

Leukemia is a rare form of cancer whose cause and mode of transmission remain largely unknown. While evidence abounds that excessive exposure to radiation can increase a person’s risk of contracting the disease, it is at the same time true that most cases occur among persons whose history contains no such overexpo- sure. A related issue, one maybe even more basic than the causality question, concerns the spread of the disease. It is safe to say that the prevailing medical opinion is that most forms of leukemia are not contagious—still, the hypothesis persists that some forms of the disease, particularly the childhood variety, may be. What continues to fuel this speculation are the discoveries of so-called “leukemia clusters,” aggregations in time and space of unusually large numbers of cases.

To date, one of the most frequently cited leukemia clusters in the medical literature occurred during the late 1950s and early 1960s in Niles, Illinois, a sub- urb of Chicago (81). In the 5 13 -year period from 1956 to the first four months of 1961, physicians in Niles reported a total of eight cases of leukemia among children less than fifteen years of age. The number at risk (that is, the number of residents in that age range) was 7076. To assess the likelihood of that many cases occurring in such a small population, it is necessary to look first at the leukemia incidence in neighboring towns. For all of Cook County, excluding Niles, there were 1,152,695 children less than fifteen years of age—and among those, 286 diagnosed cases of leukemia. That gives an average 5 13 -year leukemia rate of 24.8 cases per 100,000:

286 cases for 5 13 years

1,152,695 children × 100,000

100,000 = 24.8 cases/100,000 children in 5 13 years

Now, imagine the 7076 children in Niles to be a series of n = 7076 (indepen- dent) Bernoulli trials, each having a probability of p = 24.8/100,000 = 0.000248 of contracting leukemia. The question then becomes, given an n of 7076 and a p of 0.000248, how likely is it that eight “successes” would occur? (The expected number, of course, would be 7076 × 0.000248 = 1.75.) Actually, for reasons that will be elaborated on in Chapter 6, it will prove more meaningful to consider the related event, eight or more cases occurring in a 5 13 -year span. If the probability associated with the latter is very small, it could be argued that leukemia did not occur randomly in Niles and that, perhaps, contagion was a factor.

Section 4.2 The Poisson Distribution 223

Using the binomial distribution, we can express the probability of eight or more cases as

P(8 or more cases) = 7076∑ k=8

( 7076

k

) (0.000248)k(0.999752)7076−k (4.2.1)

Much of the computational unpleasantness implicit in Equation 4.2.1 can be avoided by appealing to Theorem 4.2.1. Given that np = 7076×0.000248 = 1.75,

P(X ≥ 8) = 1 − P(X ≤ 7)

=̇ 1 − 7∑

k=0

e−1.75(1.75)k

k!

= 1 − 0.99953 = 0.00047

How close can we expect 0.00047 to be to the “true” binomial sum? Very close. Considering the accuracy of the Poisson limit when n is as small as one hundred (recall Table 4.2.2), we should feel very confident here, where n is 7076.

Interpreting the 0.00047 probability is not nearly as easy as assessing its accuracy. The fact that the probability is so very small tends to denigrate the hypothesis that leukemia in Niles occurred at random. On the other hand, rare events, such as clusters, do happen by chance. The basic difficulty of putting the probability associated with a given cluster into any meaningful perspective is not knowing in how many similar communities leukemia did not exhibit a tendency to cluster. That there is no obvious way to do this is one reason the leukemia controversy is still with us.

About the Data Publication of the Niles cluster led to a number of research efforts on the part of biostatisticians to find quantitative methods capable of detecting clustering in space and time for diseases having low epidemicity. Several techniques were ultimately put forth, but the inherent “noise” in the data—variations in population densities, ethnicities, risk factors, and medical practices—often proved impossible to overcome.

Questions

4.2.1. If a typist averages one misspelling in every 3250 words, what are the chances that a 6000-word report is free of all such errors? Answer the question two ways— first, by using an exact binomial analysis, and second, by using a Poisson approximation. Does the similarity (or dissimilarity) of the two answers surprise you? Explain.

4.2.2. A medical study recently documented that 905 mis- takes were made among the 289,411 prescriptions written during one year at a large metropolitan teaching hospi- tal. Suppose a patient is admitted with a condition serious enough to warrant ten different prescriptions. Approxi- mate the probability that at least one will contain an error.

4.2.3. Five hundred people are attending the first annual “I was Hit by Lighting” Club. Approximate the proba- bility that at most one of the five hundred was born on Poisson’s birthday.

4.2.4. A chromosome mutation linked with colorblind- ness is known to occur, on the average, once in every ten thousand births. (a) Approximate the probability that exactly three of the next twenty thousand babies born will have the mutation. (b) How many babies out of the next twenty thousand would have to be born with the mutation to convince you that the “one in ten thousand” estimate is too low?

224 Chapter 4 Special Distributions

[Hint: Calculate P(X ≥ k) = 1 − P(X ≤ k − 1) for vari- ous k. (Recall Case Study 4.2.1.)]

4.2.5. Suppose that 1% of all items in a supermarket are not priced properly. A customer buys ten items. What is the probability that she will be delayed by the cashier because one or more of her items require a price check? Calculate both a binomial answer and a Poisson answer. Is the binomial model “exact” in this case? Explain.

4.2.6. A newly formed life insurance company has under- written term policies on 120 women between the ages of forty and forty-four. Suppose that each woman has a 1/150 probability of dying during the next calendar year, and that each death requires the company to pay out $50,000 in benefits. Approximate the probability that the company will have to pay at least $150,000 in benefits next year.

4.2.7. According to an airline industry report (189), roughly one piece of luggage out of every two hundred that are checked is lost. Suppose that a frequent-flying

businesswoman will be checking one hundred twenty bags over the course of the next year. Approximate the proba- bility that she will lose two or more pieces of luggage.

4.2.8. Electromagnetic fields generated by power trans- mission lines are suspected by some researchers to be a cause of cancer. Especially at risk would be telephone linemen because of their frequent proximity to high- voltage wires. According to one study, two cases of a rare form of cancer were detected among a group of 9500 line- men (185). In the general population, the incidence of that particular condition is on the order of one in a million. What would you conclude? (Hint: Recall the approach taken in Case Study 4.2.1.)

4.2.9. Astronomers estimate that as many as one hundred billion stars in the Milky Way galaxy are encircled by plan- ets. If so, we may have a plethora of cosmic neighbors. Let p denote the probability that any such solar system con- tains intelligent life. How small can p be and still give a fifty-fifty chance that we are not alone?

THE POISSON DISTRIBUTION

The real significance of Poisson’s limit theorem went unrecognized for more than fifty years. For most of the latter part of the nineteenth century, Theorem 4.2.1 was taken strictly at face value: It provides a convenient approximation for pX (k) when X is binomial, n is large, and p is small. But then in 1898 a German professor, Ladislaus von Bortkiewicz, published a monograph entitled Das Gesetz der Kleinen Zahlen (The Law of Small Numbers) that would quickly transform Poisson’s “limit” into Poisson’s “distribution.”

What is best remembered about Bortkiewicz’s monograph is the curious set of data described in Question 4.2.10. The measurements recorded were the numbers of Prussian cavalry soldiers who had been kicked to death by their horses. In an- alyzing those figures, Bortkiewicz was able to show that the function e−λλk/k! is a useful probability model in its own right, even when (1) no explicit binomial random variable is present and (2) values for n and p are unavailable. Other researchers were quick to follow Bortkiewicz’s lead, and a steady stream of Poisson distribution appli- cations began showing up in technical journals. Today the function pX (k) = e−λλk/k! is universally recognized as being among the three or four most important data mod- els in all of statistics.

Theorem 4.2.2

The random variable X is said to have a Poisson distribution if

pX (k) = P(X = k) = e −λλk

k! , k = 0, 1, 2, . . .

where λ is a positive constant. Also, for any Poisson random variable, E(X ) = λ and Var(X ) = λ. Proof To show that pX (k) qualifies as a probability function, note, first of all, that pX (k) ≥ 0 for all nonnegative integers k. Also, pX (k) sums to 1:

∞∑ k=0

pX (k) = ∞∑

k=0

e−λλk

k! = e−λ

∞∑ k=0

λk

k! = e−λ · eλ = 1

Section 4.2 The Poisson Distribution 225

since ∞∑

k=0 λk

k! is the Taylor series expansion of e λ. Verifying that E(X ) = λ and

Var(X ) = λ has already been done in Example 3.12.9, using moment-generating functions.

FITTING THE POISSON DISTRIBUTION TO DATA

Poisson data invariably refer to the numbers of times a certain event occurs during each of a series of “units” (often time or space). For example, X might be the weekly number of traffic accidents reported at a given intersection. If such records are kept for an entire year, the resulting data would be the sample k1, k2, . . . , k52, where each ki is a nonnegative integer.

Whether or not a set of ki’s can be viewed as Poisson data depends on whether the proportions of 0’s, 1’s, 2’s, and so on, in the sample are numerically similar to the probabilities that X = 0, 1, 2, and so on, as predicted by pX (k) = e−λλk/k!. The next two case studies show data sets where the variability in the observed ki’s is consistent with the probabilities predicted by the Poisson distribution. Notice in each case that

the λ in pX (k) is replaced by the sample mean of the ki’s, that is, by k̄ = (1/n) n∑

i=1 ki.

Why these phenomena are described by the Poisson distribution will be discussed later in this section; why λ is replaced by k̄ will be explained in Chapter 5.

CASE STUDY 4.2.2

Among the early research projects investigating the nature of radiation was a 1910 study of α-particle emission by Ernest Rutherford and Hans Geiger (161). For each of 2608 eighth-minute intervals, the two physicists recorded the num- ber of α particles emitted from a polonium source (as detected by what would eventually be called a Geiger counter). The numbers and proportions of times that k such particles were detected in a given eighth-minute (k = 0, 1, 2, . . .) are detailed in the first three columns of Table 4.2.3. Two α particles, for example, were detected in each of 383 eighth-minute intervals, meaning that X = 2 was the observation recorded 15% (= 383/2608 × 100) of the time.

Table 4.2.3

No. Detected, k Frequency Proportion pX (k) = e−3.87(3.87)k/k! 0 57 0.02 0.02 1 203 0.08 0.08 2 383 0.15 0.16 3 525 0.20 0.20 4 532 0.20 0.20 5 408 0.16 0.15 6 273 0.10 0.10 7 139 0.05 0.05 8 45 0.02 0.03 9 27 0.01 0.01

10 10 0.00 0.00 11+ 6 0.00 0.00

2608 1.0 1.0

(Continued on next page)

226 Chapter 4 Special Distributions

(Case Study 4.2.2 continued)

To see whether a probability function of the form pX (k) = e−λλk/k! can adequately model the observed proportions in the third column, we first need to replace λ with the sample’s average value for X . Suppose the six observations comprising the “11+” category are each assigned the value 11. Then

k̄ = 57(0) + 203(1) + 383(2) + · · · + 6(11) 2608

= 10,092 2608

= 3.87 and the presumed model is pX (k) = e−3.87(3.87)k/k!, k = 0, 1, 2, . . .. Notice how closely the entries in the fourth column (i.e., pX (0), pX (1), pX (2), . . .) agree with the sample proportions appearing in the third column. The conclusion here is inescapable: The phenomenon of radiation can be modeled very effectively by the Poisson distribution.

About the Data The most obvious (and frequent) application of the Pois- son/radioactivity relationship is to use the former to describe and predict the behavior of the latter. But the relationship is also routinely used in reverse. Workers responsible for inspecting areas where radioactive contamination is a potential hazard need to know that their monitoring equipment is functioning properly. How do they do that? A standard safety procedure before entering what might be a life-threatening “hot zone” is to take a series of readings on a known radioactive source (much like the Rutherford/Geiger experiment itself). If the resulting set of counts does not follow a Poisson distribution, the meter is assumed to be broken and must be repaired or replaced.

CASE STUDY 4.2.3

In the 432 years from 1500 to 1931, war broke out somewhere in the world a total of two hundred ninety-nine times. By definition, a military action was a war if it either was legally declared, involved over fifty thousand troops, or resulted in significant boundary realignments. To achieve greater uniformity from war to war, major confrontations were split into smaller “subwars”: World War I, for example, was treated as five separate conflicts (152).

Let X denote the number of wars starting in a given year. The first two columns in Table 4.2.4 show the distribution of X for the 432-year period in question. Here the average number of wars beginning in a given year was 0.69:

k̄ = 0(223) + 1(142) + 2(48) + 3(15) + 4(4) 432

= 0.69

Table 4.2.4

Number of Wars, k Frequency Proportion pX (k) = e−0.69 (0.69) k

k!

0 223 0.52 0.50 1 142 0.33 0.35 2 48 0.11 0.12 3 15 0.03 0.03 4+ 4 0.01 0.00

432 1.00 1.00

Section 4.2 The Poisson Distribution 227

The last two columns in Table 4.2.4 compare the observed proportions of years for which X = k with the proposed Poisson model

pX (k) = e−0.69 (0.69) k

k! , k = 0, 1, 2, . . .

Clearly, there is a very close agreement between the two—the number of wars beginning in a given year can be considered a Poisson random variable.

THE POISSON MODEL: THE LAW OF SMALL NUMBERS

Given that the expression e−λλk/k! models phenomena as diverse as α-radiation and outbreaks of war raises an obvious question: Why is that same pX (k) describing such different random variables? The answer is that the underlying physical conditions that produce those two sets of measurements are actually much the same, despite how superficially different the resulting data may seem to be. Both phenomena are examples of a set of mathematical assumptions known as the Poisson model. Any measurements that are derived from conditions that mirror those assumptions will necessarily vary in accordance with the Poisson distribution.

Suppose a series of events is occurring during a time interval of length T . Imagine dividing T into n nonoverlapping subintervals, each of length Tn , where n is large (see Figure 4.2.1). Furthermore, suppose that

T/n

T

5

Events occur

1 2 3 4 n

Figure 4.2.1

1. The probability that two or more events occur in any given subinterval is essentially 0.

2. The events occur independently.

3. The probability that an event occurs during a given subinterval is constant over the entire interval from 0 to T .

The n subintervals, then, are analogous to the n independent trials that form the backdrop for the “binomial model”: In each subinterval there will be either zero events or one event, where

pn = P(Event occurs in a given subinterval)

remains constant from subinterval to subinterval. Let the random variable X denote the total number of events occurring during

time T , and let λ denote the rate at which events occur (e.g., λ might be expressed as 2.5 events per minute). Then

E(X ) = λT = npn (why?)

228 Chapter 4 Special Distributions

which implies that pn = λTn . From Theorem 4.2.1, then,

pX (k) = P(X = k) = (n

k

)(λT n

)k ( 1 − λT

n

)n−k

=̇ e −n(λT/n) [n(λT/n)]k

k!

= e −λT (λT)k

k! (4.2.2)

Now we can see more clearly why Poisson’s “limit,” as given in Theorem 4.2.1, is so important. The three Poisson model assumptions are so unexceptional that they apply to countless real-world phenomena. Each time they do, the pdf pX (k) = e−λT (λT)k/k! finds another application.

Example 4.2.3

It is not surprising that the number of α particles emitted by a radioactive source in a given unit of time follows a Poisson distribution. Nuclear physicists have known for a long time that the phenomenon of radioactivity obeys the same assumptions that define the Poisson model. Each is a poster child for the other. Case Study 4.2.3, on the other hand, is a different matter altogether. It is not so obvious why the number of wars starting in a given year should have a Poisson distribution. Reconciling the data in Table 4.2.4 with the “picture” of the Poisson model in Figure 4.2.1 raises a number of questions that never came up in connection with radioactivity.

Imagine recording the data summarized in Table 4.2.4. For each year, new wars would appear as “occurrences” on a grid of cells, similar to the one pictured in Figure 4.2.2 for 1776. Civil wars would be entered along the diagonal and wars be- tween two countries, above the diagonal. Each cell would contain either a 0 (no war) or a 1 (war). The year 1776 saw the onset of only one major conflict, the Revolution- ary War between the United States and Britain. If the random variable

Xi = number of outbreaks of war in year i, i = 1500, 1501, . . . , 1931 then X1776 = 1.

0

1

00

0 0

0

0

0

0

0

00

0

00

00Austria

1776

A us

tri a

Br ita

in Fr

an ce

Sp ai

n

R us

sia

U ni

te d

St at

es

Rev olut

iona ry

War

Britain

France

Spain

Russia

United States

0

0

0

Figure 4.2.2

Section 4.2 The Poisson Distribution 229

What do we know, in general, about the random variable Xi? If each cell in the grid is thought of as a “trial,” then Xi is clearly the number of “successes” in those n trials. Does that make Xi a binomial random variable? Not necessarily. According to Theorem 3.2.1, Xi qualifies as a binomial random variable only if the trials are independent and the probability of success is the same from trial to trial.

At first glance, the independence assumption would seem to be problematic. There is no denying that some wars are linked to others. The timing of the French Revolution, for example, is widely thought to have been influenced by the success of the American Revolution. Does that make the two wars dependent? In a histor- ical sense, yes; in a statistical sense, no. The French Revolution began in 1789, thir- teen years after the onset of the American Revolution. The random variable X1776, though, focuses only on wars starting in 1776, so linkages that are years apart do not compromise the binomial’s independence assumption.

Not all wars identified in Case Study 4.2.3, though, can claim to be independent in the statistical sense. The last entry in column 2 of Table 4.2.4 shows that four or more wars erupted on four separate occasions; the Poisson model (column 4) pre- dicted that no years would experience that many new wars. Most likely, those four years had a decided excess of new wars because of political alliances that led to a cascade of new wars being declared simultaneously. Those wars definitely violated the binomial assumption of independent trials, but they accounted for only a very small fraction of the entire data set.

The other binomial assumption—that each trial has the same probability of success—holds fairly well. For the vast majority of years and the vast majority of countries, the probabilities of new wars will be very small and most likely similar. For almost every year, then, Xi can be considered a binomial random variable based on a very large n and a very small p. That being the case, it follows by Theorem 4.2.1 that each Xi, i = 1500, 1501, . . . , 1931 can be approximated by a Poisson distribution.

One other assumption needs to be addressed. Knowing that X1500, X1501, . . . , X1931—individually—are Poisson random variables does not guarantee that the distribution of all four hundred thirty-two Xi’s will have a Poisson distribution. Only if the Xi’s are independent observations having basically the same Poisson distribution—that is, the same value for λ—will their overall distribution be Pois- son. But Table 4.2.4 does have a Poisson distribution, implying that the set of Xi’s does, in fact, behave like a random sample. Along with that sweeping conclusion, though, comes the realization that, as a species, our levels of belligerence at the na- tional level [that is, the four hundred thirty-two values for λ = E(Xi)] have remained basically the same for the past five hundred years. Whether that should be viewed as a reason for celebration or a cause for alarm is a question best left to historians, not statisticians.

CALCULATING POISSON PROBABILITIES

Three formulas have appeared in connection with the Poisson distribution:

1. pX (k) .= e−np (np)kk!

2. pX (k) = e−λ λkk! 3. pX (k) = e−λT (λT)

k

k!

The first is the approximating Poisson limit, where the pX (k) on the left-hand side refers to the probability that a binomial random variable (with parameters n and p) is equal to k. Formulas (2) and (3) are sometimes confused because both presume to give the probability that a Poisson random variable equals k. Why are they different?

230 Chapter 4 Special Distributions

Actually, all three formulas are the same in the sense that the right-hand sides of each could be written as

4. e−E(X ) [E(X )] k

k!

In formula (1), X is binomial, so E(X ) = np. In formula (2), which comes from Theorem 4.2.2, λ is defined to be E(X ). Formula (3) covers all those situations where the units of X and λ are not consistent, in which case E(X ) �= λ. However, λ can always be multiplied by an appropriate constant T to make λT equal to E(X ).

For example, suppose a certain radioisotope is known to emit α particles at the rate of λ = 1.5 emissions/second. For whatever reason, though, the experimenter defines the Poisson random variable X to be the number of emissions counted in a given minute. Then T = 60 seconds and

E(X ) = 1.5 emissions/second × 60 seconds = λT = 90 emissions

Example 4.2.4

Entomologists estimate that an average person consumes almost a pound of bug parts each year (184). There are that many insect eggs, larvae, and miscellaneous body pieces in the foods we eat and the liquids we drink. The Food and Drug Ad- ministration (FDA) sets a Food Defect Action Level (FDAL) for each product: Bug- part concentrations below the FDAL are considered acceptable. The legal limit for peanut butter, for example, is thirty insect fragments per hundred grams. Suppose the crackers you just bought from a vending machine are spread with twenty grams of peanut butter. What are the chances that your snack will include at least five crunchy critters?

Let X denote the number of bug parts in twenty grams of peanut butter. As- suming the worst, suppose the contamination level equals the FDA limit—that is, thirty fragments per hundred grams (or 0.30 fragment/g). Notice that T in this case is twenty grams, making E(X ) = 6.0:

0.30 fragment g

× 20 g = 6.0 fragments

It follows, then, that the probability that your snack contains five or more bug parts is a disgusting 0.71:

P(X ≥ 5) = 1 − P(X ≤ 4) = 1 − 4∑

k=0

e−6.0(6.0)k

k!

= 1 − 0.29 = 0.71

Bon appetit!

Questions

4.2.10. During the latter part of the nineteenth century, Prussian officials gathered information relating to the haz- ards that horses posed to cavalry soldiers. A total of ten cavalry corps were monitored over a period of twenty years. Recorded for each year and each corps was X , the

annual number of fatalities due to kicks. Summarized in the following table are the two hundred values recorded for X (14). Show that these data can be modeled by a Poisson pdf. Follow the procedure illustrated in Case Studies 4.2.2 and 4.2.3.

Section 4.2 The Poisson Distribution 231

Observed Number of Corps-Years No. of Deaths, k in Which k Fatalities Occurred

0 109 1 65 2 22 3 3 4 1

200

4.2.11. A random sample of three hundred fifty-six seniors enrolled at the University of West Florida was categorized according to X , the number of times they had changed majors (117). Based on the summary of that information shown in the following table, would you conclude that X can be treated as a Poisson random variable?

Number of Major Changes Frequency

0 237 1 90 2 22 3 7

4.2.12. Midwestern Skies books ten commuter flights each week. Passenger totals are much the same from week to week, as are the numbers of pieces of luggage that are checked. Listed in the following table are the numbers of bags that were lost during each of the first forty weeks in 2009. Do these figures support the presumption that the number of bags lost by Midwestern during a typical week is a Poisson random variable?

Week Bags Lost Week Bags Lost Week Bags Lost

1 1 14 2 27 1 2 0 15 1 28 2 3 0 16 3 29 0 4 3 17 0 30 0 5 4 18 2 31 1 6 1 19 5 32 3 7 0 20 2 33 1 8 2 21 1 34 2 9 0 22 1 35 0

10 2 23 1 36 1 11 3 24 2 37 4 12 1 25 1 38 2 13 2 26 3 39 1

40 0

4.2.13. In 1893, New Zealand became the first country to permit women to vote. Scattered over the ensuing 113 years, various countries joined the movement to grant this

right to women. The table below (129) shows how many countries took this step in a given year. Do these data seem to follow a Poisson distribution?

Yearly Number of Countries Granting Women the Vote Frequency

0 82 1 25 2 4 3 0 4 2

4.2.14. The following are the daily numbers of death no- tices for women over the age of eighty that appeared in the London Times over a three-year period (80).

Number of Deaths Observed Frequency

0 162 1 267 2 271 3 185 4 111 5 61 6 27 7 8 8 3 9 1

1096

(a) Does the Poisson pdf provide a good description of the variability pattern evident in these data? (b) If your answer to part (a) is “no,” which of the Poisson model assumptions do you think might not be holding?

4.2.15. A certain species of European mite is capable of damaging the bark on orange trees. The following are the results of inspections done on one hundred saplings cho- sen at random from a large orchard. The measurement recorded, X , is the number of mite infestations found on the trunk of each tree. Is it reasonable to assume that X is a Poisson random variable? If not, which of the Poisson model assumptions is likely not to be true?

No. of Infestations, k No. of Trees

0 55 1 20 2 21 3 1 4 1 5 1 6 0 7 1

232 Chapter 4 Special Distributions

4.2.16. A tool and die press that stamps out cams used in small gasoline engines tends to break down once ev- ery five hours. The machine can be repaired and put back on line quickly, but each such incident costs $50. What is the probability that maintenance expenses for the press will be no more than $100 on a typical eight-hour workday?

4.2.17. In a new fiber-optic communication system, trans- mission errors occur at the rate of 1.5 per ten seconds. What is the probability that more than two errors will occur during the next half-minute?

4.2.18. Assume that the number of hits, X , that a base- ball team makes in a nine-inning game has a Poisson distribution. If the probability that a team makes zero hits is 13 , what are their chances of getting two or more hits?

4.2.19. Flaws in metal sheeting produced by a high- temperature roller occur at the rate of one per ten square feet. What is the probability that three or more flaws will appear in a five-by-eight-foot panel?

4.2.20. Suppose a radioactive source is metered for two hours, during which time the total number of alpha parti- cles counted is four hundred eighty-two. What is the prob- ability that exactly three particles will be counted in the next two minutes? Answer the question two ways—first,

by defining X to be the number of particles counted in two minutes, and second, by defining X to be the number of particles counted in one minute.

4.2.21. Suppose that on-the-job injuries in a textile mill occur at the rate of 0.1 per day. (a) What is the probability that two accidents will occur during the next (five-day) workweek? (b) Is the probability that four accidents will occur over the next two workweeks the square of your answer to part (a)? Explain.

4.2.22. Find P(X = 4) if the random variable X has a Poisson distribution such that P(X = 1) = P(X = 2). 4.2.23. Let X be a Poisson random variable with param- eter λ. Show that the probability that X is even is 12 (1 + e−2λ).

4.2.24. Let X and Y be independent Poisson random vari- ables with parameters λ and μ, respectively. Example 3.12.10 established that X +Y is also Poisson with param- eter λ + μ. Prove that same result using Theorem 3.8.3. 4.2.25. If X1 is a Poisson random variable for which E(X1) = λ and if the conditional pdf of X2 given that X1 = x1 is binomial with parameters x1 and p, show that the marginal pdf of X2 is Poisson with E(X2) = λp.

INTERVALS BETWEEN EVENTS: THE POISSON/EXPONENTIAL RELATIONSHIP

Situations sometimes arise where the time interval between consecutively occurring events is an important random variable. Imagine being responsible for the mainte- nance on a network of computers. Clearly, the number of technicians you would need to employ in order to be capable of responding to service calls in a timely fashion would be a function of the “waiting time” from one breakdown to another.

Figure 4.2.3 shows the relationship between the random variables X and Y , where X denotes the number of occurrences in a unit of time and Y denotes the interval between consecutive occurrences. Pictured are six intervals: X = 0 on one occasion, X = 1 on three occasions, X = 2 once, and X = 3 once. Resulting from those eight occurrences are seven measurements on the random variable Y . Obviously, the pdf for Y will depend on the pdf for X . One particularly important special case of that dependence is the Poisson/exponential relationship outlined in Theorem 4.2.3.

y1 y2 y3 y4 y5 y6 y7Y values:

Unit time

X = 1 X = 1 X = 0 X = 3X = 1 X = 2

Figure 4.2.3

Section 4.2 The Poisson Distribution 233

Theorem 4.2.3

Suppose a series of events satisfying the Poisson model are occurring at the rate of λ per unit time. Let the random variable Y denote the interval between consecutive events. Then Y has the exponential distribution

fY (y) = λe−λy, y > 0 Proof Suppose an event has occurred at time a. Consider the interval that ex- tends from a to a + y. Since the (Poisson) events are occurring at the rate of λ per unit time, the probability that no outcomes will occur in the interval (a, a + y) is e

−λy(λy)0

0! = e−λy. Define the random variable Y to denote the interval between consecutive occurrences. Notice that there will be no occurrences in the interval (a, a + y) only if Y > y. Therefore,

P(Y > y) = e−λy

or, equivalently,

FY (y) = P(Y ≤ y) = 1 − P(Y > y) = 1 − e−λy

Let fY (y) be the (unknown) pdf for Y . It must be true that

P(Y ≤ y) = ∫ y

0 fY (t) dt

Taking derivatives of the two expressions for FY (y) gives

d dy

∫ y 0

fY (t) dt = ddy (1 − e −λy)

which implies that

fY (y) = λe−λy, y > 0

CASE STUDY 4.2.4

The occurrences of earthquakes in a given area, after removing aftershocks, are believed to be Poisson events; that is, they are thought to occur independently and at a constant rate of λ per unit time. If so, the pdf describing the distribution of intervals between earthquakes should have the exponential form, fY (y) = λe−λy, for y > 0.

A source of many earthquakes is an area intersecting five states, running roughly south from New Madrid, Missouri, to the northwest corner of Ten- nessee. It is known as the New Madrid Seismic Zone. A recent study (117) of New Madrid earthquakes spanned the period from January 12, 1973, to December 29, 2013. There were two hundred nineteen moderate earthquakes during those 40 years. The average time between tremors was 65.91 days, so λ = 1/65.91 = 0.15. Is the exponential pdf with that particular value for λ consistent with the statement of Theorem 4.2.3?

To answer that question requires that a graph of the predicted exponential pdf be superimposed over a density-scaled histogram of the data (recall Case Study 3.4.1). Table 4.2.5 details the construction of the histogram. Notice in Figure 4.2.4 that the shape of that histogram is, indeed, entirely consistent with the theoretical model cited in Theorem 4.2.3— fY (y) = 0.015e−0.15y.

(Continued on next page)

234 Chapter 4 Special Distributions

(Case Study 4.2.4 continued)

Table 4.2.5

Interval (days), y Frequency Density

0 ≤ y < 30 86 0.0131 30 ≤ y < 60 53 0.0081 60 ≤ y < 90 29 0.0044 90 ≤ y < 120 13 0.0020

120 ≤ y < 150 11 0.0017 150 ≤ y < 180 11 0.0017 180 ≤ y < 210 2 0.0003 210 ≤ y < 240 7 0.0011 240 ≤ y < 270 6 0.0009

218

0.014

0.010

0.006

0.002

0

D en

si ty

60

Interval between earthquakes (days)

120 180 240

fY(y) = 0.015e –0.015y

y

Figure 4.2.4

About the Data Many pessimists believe that “Bad things come in threes.” Many optimists, not to be outdone, claim that “Good things come in threes.” Are they right? In a sense, yes, but not because of fate, bad karma, or good luck. Bad things (and good things and so-so things) sometimes seem to come in threes because of (1) our intuition’s inability to understand the nature of randomness and (2) the Poisson/exponential relationship. Case Study 4.2.4—specifically, the shape of the exponential pdf pictured in Figure 4.2.4—illustrates the statistics behind the superstition.

Suppose that bad things are, in fact, happening to us randomly in time at the rate of, say, twelve bad things per year. We mistakenly think that “randomness” means that those twelve bad things should occur roughly one month apart. The- orem 4.2.3, though, proves exactly the opposite—randomly occurring events will not be equally spaced. Look again at the shape of fY (y) in Figure 4.2.4. It would not be unlikely for the two separations between the next three earthquakes to both be very small compared to the average separation between the entire set of earthquakes. Every time that happens fuels the misconception that bad things (in this case, earthquakes) are occurring in threes.

Example 4.2.5

Among the most famous of all meteor showers are the Perseids, which occur each year in early August. In some areas the frequency of visible Perseids can be as high as

Section 4.3 The Normal Distribution 235

forty per hour. Given that such sightings are Poisson events, calculate the probability that an observer who has just seen a meteor will have to wait at least five minutes before seeing another one.

Let the random variable Y denote the interval (in minutes) between consecu- tive sightings. Expressed in the units of Y , the forty-per-hour rate of visible Perseids becomes 0.67 per minute. A straightforward integration, then, shows that the prob- ability is 0.035 that an observer will have to wait five minutes or more to see another meteor:

P(Y > 5) = ∫ ∞

5 0.67e −0.67y dy

= ∫ ∞

3.35 e−u du (where u = 0.67y)

= −e−u∣∣∞3.35 = e−3.35 = 0.035

Questions

4.2.26. Suppose that commercial airplane crashes in a cer- tain country occur at the rate of 2.5 per year. (a) Is it reasonable to assume that such crashes are Poisson events? Explain. (b) What is the probability that four or more crashes will occur next year? (c) What is the probability that the next two crashes will occur within three months of one another?

4.2.27. Records show that deaths occur at the rate of 0.1 per day among patients residing in a large nursing home. If someone dies today, what are the chances that a week or more will elapse before another death occurs?

4.2.28. Fifty spotlights have just been installed in an out- door security system. According to the manufacturer’s specifications, these particular lights are expected to burn out at the rate of 1.1 per one hundred hours. What is the expected number of bulbs that will fail to last for at least seventy-five hours?

4.2.29. Hawaii’s fourteen-thousand-foot Mauna Loa is one of the world’s most active volcanoes. Between 1832 and 1950, it erupted thirty-seven times, which translates to a rate of 0.027 times per month. Listed below are the thirty-six intervals (in months) that elapsed between those thirty-seven eruptions (113):

126 73 3 6 37 23 73 23 2 65 94 51 26 21 6 68 16 20 6 18 6 41 40 18

41 11 12 38 77 61 26 3 38 50 91 12

Can it be argued that the times Mauna Loa erupted are consistent with a series of events satisfying the Pois- son model? Answer the question by constructing and interpreting an appropriate graph.

4.3 The Normal Distribution The Poisson limit described in Section 4.2 was not the only formula—or even the first—developed for the purpose of approximating binomial probabilities when n is large. Early in the eighteenth century, Abraham De Moivre derived the unusual- looking result that

P

⎡ ⎣a ≤ X − n ( 12)√

n ( 1

2

) ( 1 2

) ≤ b ⎤ ⎦ =̇ 1√

∫ b a

e−z 2/2dz

where X is a binomial random variable for which n is large and p = 1/2.

236 Chapter 4 Special Distributions

Figure 4.3.1 illustrates DeMoivre’s approximation. Shown is a bar graph of a binomial distribution with n = 20 and p = 1/2. That is,

pX (k) = (

20 k

)( 1 2

)k ( 1 − 1

2

)20−k , k = 0, 1, 2, . . . , 20

The superimposed dotted curve is the function fz(z) = 1√2πe−z 2/2,−∞ < z < ∞,

Theorem 4.3.1 integral approximation

22.46

5 6 7 8 9 10 11 12 13 14 15 X

(X 2 10) 5/ 22.0121.5621.12 2.67 2.22 0 .22 .67 1.12 1.56 2.01 2.46

0

0.05

0.10

0.15

0.20

P ro

ba bi

lit y

de ns

it y

px(k) = ( )20k ( ) 1 2 ( )

1 2

k 20 2 k 1 2

Figure 4.3.1

Consider, for example, the value X = 10, whose exact probability is given by

pX (10) = (

20 10

)( 1 2

)10 ( 1 − 1

2

)20 − 10 = (

20 10

)( 1 2

)20 = 184,756/1,048,576 = 0.176

To approximate the area under the X = 10 bar using DeMoivre’s integral requires that we write

P(X = 10 = P(9.5 ≤ X ≤ 10.5)

= P ([

9.5 − 20 (

1 2

)]/√ 20 (

1 2

)( 1 2

) ≤ [

X − 20 (

1 2

)]/√ 20 (

1 2

)( 1 2

)

≤ [

10.5 − 20 (

1 2

)]/√ 20 (

1 2

)( 1 2

))

= P (

−0.22 ≤ [

X − 20 (

1 2

)]/√ 20 (

1 2

)( 1 2

) ≤ 0.22

)

.= (1/ √

2π) ∫ 0.22

−0.22 e−z

2/2dz

Using tables that will be described on pp. 238–240, (1/ √

2π) ∫ 0.22 −0.22 e

−z2/2dz = 0.174, which is very close to the exact P(X = 10), even though n in this case is not particu- larly large.

The renowned French mathematician Pierre-Simon Laplace extended DeMoivre’s proposal to include binomial distributions having arbitrary values of p, and he brought the result to the full attention of the mathematics community by

Section 4.3 The Normal Distribution 237

including its proof in his influential 1812 book, Theorie Analytique des Probabilities. Because of the sweeping generalization it ultimately led to (see p. 244), this partic- ular theorem, which now bears both of their names, was far more significant in the development of mathematical statistics than DeMoivre or Laplace could ever have imagined.

Theorem 4.3.1

(DeMoivre-Laplace) Let X be a binomial random variable defined on n indepen- dent trials for which p = P(success). For any numbers a and b,

lim n→∞ P

[ a ≤ X − np√

np(1 − p) ≤ b ]

= 1√ 2π

∫ b a

e−z 2/2dz

Proof One of the ways to verify Theorem 4.3.1 is to show that the limit of the moment-generating function for X − np√

np(1 − p) as n → ∞ is e t2/2 and that et

2/2 is also

the value of ∫ ∞ −∞ e

tz · 1√ 2π

e−z 2/2 dz. By Theorem 3.12.2, then, the limiting pdf of Z =

X−np√ np(1−p) is the function fZ(z) =

1√ 2π

e−z 2/2, −∞ < z < ∞. See Appendix 4.A.2 for

the proof of a more general result.

Comment We saw in Section 4.2 that Poisson’s limit is actually a special case of Pois- son’s distribution, pX (k) = e−λλkk! , k = 0, 1, 2, . . . . Similarly, the DeMoivre-Laplace limit is a pdf in its own right. Justifying that assertion, of course, requires proving that fZ(z) = 1√2πe−z

2/2 integrates to 1 for −∞ < z < ∞. Curiously, there is no algebraic or trigonometric substitution that can be used

to demonstrate that the area under fZ(z) is 1. However, by using polar coordi- nates, we can verify a necessary and sufficient alternative—namely, that the square of

∫ ∞ −∞

1√ 2π

e−z 2/2 dz equals 1.

To begin, note that

1√ 2π

∫ ∞ −∞

e−x 2/2 dx · 1√

∫ ∞ −∞

e−y 2/2 dy = 1

∫ ∞ −∞

∫ ∞ −∞

e− 1 2 (x

2+y2) dx dy

Let x = r cos θ and y = r sin θ, so dx dy = r dr dθ. Then

1 2π

∫ ∞ −∞

∫ ∞ −∞

e− 1 2 (x

2+y2) dx dy = 1 2π

∫ 2π 0

∫ ∞ 0

e−r 2/2 r dr dθ

= 1 2π

∫ ∞ 0

re−r 2/2 dr ·

∫ 2π 0

= 1 2π

∫ ∞ 0

e−μdμ(2π), where μ = r2/2

= 1

Comment The function fZ(z) = 1√2πe−z 2/2 is referred to as the standard normal (or

Gaussian) curve. By convention, any random variable whose probabilistic behavior is described by a standard normal curve is denoted by Z (rather than X , Y , or W). Since MZ(t) = et2/2, it follows readily that E(Z) = 0 and Var(Z) = 1.

238 Chapter 4 Special Distributions

FINDING AREAS UNDER THE STANDARD NORMAL CURVE

In order to use Theorem 4.3.1, we need to be able to find the area under the graph of fZ(z) above an arbitrary interval [a, b]. In practice, such values are obtained in one of two ways—either by using a normal table, a copy of which appears at the back of every statistics book, or by running a computer software package. Typically, both approaches give the cdf, FZ(z) = P(Z ≤ z), associated with Z (and from the cdf we can deduce the desired area).

Table 4.3.1 shows a portion of the normal table that appears in Appendix A.1. Each row under the Z heading represents a number along the horizontal axis of fZ(z) rounded off to the nearest tenth; columns 0 through 9 allow that number to be written to the hundredths place. Entries in the body of the table are areas under the graph of fZ(z) to the left of the number indicated by the entry’s row and column. For example, the number listed at the intersection of the “1.1” row and the “4” column is 0.8729, which means that the area under fZ(z) from −∞ to 1.14 is 0.8729. That is,

∫ 1.14 −∞

1√ 2π

e−z 2/2 dz = 0.8729 = P(−∞ < Z ≤ 1.14) = FZ(1.14)

See Figure 4.3.2.

Table 4.3.1

Z 0 1 2 3 4 5 6 7 8 9

−3. 0.0013 0.0010 0.0007 0.0005 0.0003 0.0002 0.0002 0.0001 0.0001 0.0000 ...

... −0.4 0.3446 0.3409 0.3372 0.3336 0.3300 0.3264 0.3228 0.3192 0.3156 0.3121 −0.3 0.3821 0.3783 0.3745 0.3707 0.3669 0.3632 0.3594 0.3557 0.3520 0.3483 −0.2 0.4207 0.4168 0.4129 0.4090 0.4052 0.4013 0.3974 0.3936 0.3897 0.3859 −0.1 0.4602 0.4562 0.4522 0.4483 0.4443 0.4404 0.4364 0.4325 0.4286 0.4247 −0.0 0.5000 0.4960 0.4920 0.4880 0.4840 0.4801 0.4761 0.4721 0.4681 0.4641

0.0 0.5000 0.5040 0.5080 0.5120 0.5160 0.5199 0.5239 0.5279 0.5319 0.5359 0.1 0.5398 0.5438 0.5478 0.5517 0.5557 0.5596 0.5636 0.5675 0.5714 0.5753 0.2 0.5793 0.5832 0.5871 0.5910 0.5948 0.5987 0.6026 0.6064 0.6103 0.6141 0.3 0.6179 0.6217 0.6255 0.6293 0.6331 0.6368 0.6406 0.6443 0.6480 0.6517 0.4 0.6554 0.6591 0.6628 0.6664 0.6700 0.6736 0.6772 0.6808 0.6844 0.6879 0.5 0.6915 0.6950 0.6985 0.7019 0.7054 0.7088 0.7123 0.7157 0.7190 0.7224 0.6 0.7257 0.7291 0.7324 0.7357 0.7389 0.7422 0.7454 0.7486 0.7517 0.7549 0.7 0.7580 0.7611 0.7642 0.7673 0.7703 0.7734 0.7764 0.7794 0.7823 0.7852 0.8 0.7881 0.7910 0.7939 0.7967 0.7995 0.8023 0.8051 0.8078 0.8106 0.8133 0.9 0.8159 0.8186 0.8212 0.8238 0.8264 0.8289 0.8315 0.8340 0.8365 0.8389 1.0 0.8413 0.8438 0.8461 0.8485 0.8508 0.8531 0.8554 0.8577 0.8599 0.8621 1.1 0.8643 0.8665 0.8686 0.8708 0.8729 0.8749 0.8770 0.8790 0.8810 0.8830 1.2 0.8849 0.8869 0.8888 0.8907 0.8925 0.8944 0.8962 0.8980 0.8997 0.9015 1.3 0.9032 0.9049 0.9066 0.9082 0.9099 0.9115 0.9131 0.9147 0.9162 0.9177 1.4 0.9192 0.9207 0.9222 0.9236 0.9251 0.9265 0.9278 0.9292 0.9306 0.9319 ...

... 3. 0.9987 0.9990 0.9993 0.9995 0.9997 0.9998 0.9998 0.9999 0.9999 1.0000

Section 4.3 The Normal Distribution 239

1.140

0.4

0.2

Area = 0.8729f (z)Z

z

Figure 4.3.2

Areas under fZ(z) to the right of a number or between two numbers can also be calculated from the information given in normal tables. Since the total area under fZ(z) is 1,

P(b < Z < +∞) = area under fZ(z) to the right of b = 1 − area under fZ(z) to the left of b = 1 − P(−∞ < Z ≤ b) = 1 − FZ(b)

Similarly, the area under fZ(z) between two numbers a and b is necessarily the area under fZ(z) to the left of b minus the area under fZ(z) to the left of a:

P(a ≤ Z ≤ b) = area under fZ(z) between a and b = area under fZ(z) to the left of b − area under fZ(z) to the left of a = P(−∞ < Z ≤ b) − P(−∞ < Z < a) = FZ(b) − FZ(a)

Note: Since fZ(z) is a continuous function, remember that

P(a ≤ Z ≤ b) = P(a ≤ Z < b) = P(a < Z ≤ b) = P(a < Z < b)

THE CONTINUITY CORRECTION

Figure 4.3.3 illustrates the underlying “geometry” implicit in the DeMoivre-Laplace Theorem. Pictured there is a continuous curve, f (y), approximating a histogram, where we can presume that the areas of the rectangles are representing the probabil- ities associated with a discrete random variable X . Clearly,

∫ b a f (y) dy is numerically

similar to P(a ≤ X ≤ b), but the diagram suggests that the approximation would be even better if the integral extended from a−0.5 to b+0.5, which would then include the cross-hatched areas. That is, a refinement of the technique of using areas under

a + 2

Shaded area = P (a # X # b)f (y)

a + 1 bb – 1aa – 0.5 b + 0.5

Figure 4.3.3

240 Chapter 4 Special Distributions

continuous curves to estimate probabilities of discrete random variables would be to write

P(a ≤ X ≤ b) =̇ ∫ b+ 0.5

a − 0.5 f (y) dy

The substitution of a − 0.5 for a and b + 0.5 for b is called the continuity correction. Applying the latter to the DeMoivre-Laplace approximation leads to a slightly differ- ent statement for Theorem 4.3.1: If X is a binomial random variable with parameters n and p,

P(a ≤ X ≤ b) =̇ FZ [

b + 0.5 − np√ np(1 − p)

] − FZ

[ a − 0.5 − np√

np(1 − p)

]

Comment Even with the continuity correction refinement, normal curve approxi- mations can be inadequate if n is too small, especially when p is close to 0 or to 1. As a rule of thumb, the DeMoivre-Laplace limit should be used only if the magnitudes of n and p are such that n > 9 p1−p and n > 9

1−p p .

Example 4.3.1

Boeing 757s flying certain routes are configured to have one hundred sixty-eight economy-class seats. Experience has shown that only 90% of all ticket holders on those flights will actually show up in time to board the plane. Knowing that, suppose an airline sells one hundred seventy-eight tickets for the one hundred sixty-eight seats. What is the probability that not everyone who arrives at the gate on time can be accommodated?

Let the random variable X denote the number of would-be passengers who show up for a flight. Since travelers are sometimes with their families, not every ticket holder constitutes an independent event. Still, we can get a useful approximation to the probability that the flight is overbooked by assuming that X is binomial with n = 178 and p = 0.9. What we are looking for is P(169 ≤ X ≤ 178), the probability that more ticket holders show up than there are seats on the plane. According to Theorem 4.3.1 (and using the continuity correction),

P(Flight is overbooked) = P(169 ≤ X ≤ 178)

= P [

169 − 0.5 − np√ np(1 − p) ≤

X − np√ np(1 − p) ≤

178 + 0.5 − np√ np(1 − p)

]

= P [

168.5 − 178(0.9)√ 178(0.9)(0.1)

≤ X − 178(0.9)√ 178(0.9)(0.1)

≤ 178.5 − 178(0.9)√ 178(0.9)(0.1)

]

=̇ P(2.07 ≤ Z ≤ 4.57) = Fz(4.57) − Fz(2.07)

From Appendix A.1, FZ(4.57) = P(Z ≤ 4.57) is equal to 1, for all practical purposes, and the area under fZ(z) to the left of 2.07 is 0.9808. Therefore,

P(Flight is overbooked) = 1.0000 − 0.9808 = 0.0192

implying that the chances are about one in fifty that not every ticket holder will have a seat (at which time the “game” of finding a few passengers willing to be paid to take a later flight begins . . . ).

Section 4.3 The Normal Distribution 241

CASE STUDY 4.3.1

Research in extrasensory perception has ranged from the slightly unconven- tional to the downright bizarre. Toward the latter part of the nineteenth century and even well into the twentieth century, much of what was done involved spir- itualists and mediums. But beginning around 1910, experimenters moved out of the seance parlors and into the laboratory, where they began setting up con- trolled studies that could be analyzed statistically. In 1938, Pratt and Woodruff, working out of Duke University, did an experiment that became a prototype for an entire generation of ESP research (77).

The investigator and a subject sat at opposite ends of a table. Between them was a screen with a large gap at the bottom. Five blank cards, visible to both participants, were placed side by side on the table beneath the screen. On the subject’s side of the screen one of the standard ESP symbols (see Figure 4.3.4) was hung over each of the blank cards.

Figure 4.3.4

The experimenter shuffled a deck of ESP cards, picked up the top one, and concentrated on it. The subject tried to guess its identity: If he thought it was a circle, he would point to the blank card on the table that was beneath the cir- cle card hanging on his side of the screen. The procedure was then repeated. Altogether, a total of thirty-two subjects, all students, took part in the exper- iment. They made a total of sixty thousand guesses—and were correct 12,489 times.

With five denominations involved, the probability of a subject’s making a correct identification just by chance was 15 . Assuming a binomial model, the ex- pected number of correct guesses would be 60,000 × 15 , or 12,000. The question is, how “near” to 12,000 is 12,489? Should we write off the observed excess of 489 as nothing more than luck, or can we conclude that ESP has been demon- strated?

To effect a resolution between the conflicting “luck” and “ESP” hypotheses, we need to compute the probability of the subjects getting 12,489 or more correct answers under the presumption that p = 15 . Only if that probability is very small can 12,489 be construed as evidence in support of ESP.

Let the random variable X denote the number of correct responses in sixty thousand tries. Then

P(X ≥ 12,489) = 60,000∑

k=12,489

( 60,000

k

)( 1 5

)k (4 5

)60,000−k (4.3.1)

At this point the DeMoivre-Laplace limit theorem becomes a welcome alterna- tive to computing the 47,512 binomial probabilities implicit in Equation 4.3.1.

(Continued on next page)

242 Chapter 4 Special Distributions

(Case Study 4.3.1 continued)

First we apply the continuity correction and rewrite P(X ≥ 12,489) as P(X ≥ 12,488.5). Then

P(X ≥ 12,489) = P [

X − np√ np(1 − p) ≥

12,488.5 − 60,000(1/5)√ 60,000(1/5)(4/5)

]

= P [

X − np√ np(1 − p) ≥ 4.99

]

=̇ 1√ 2π

∫ ∞ 4.99

e−z 2/2 dz

= 0.0000003 this last value being obtained from a more extensive version of Table A.1 in the Appendix.

Here, the fact that P(X ≥ 12,489) is so extremely small makes the “luck” hy- pothesis

( p = 15

) untenable. It would appear that something other than chance

had to be responsible for the occurrence of so many correct guesses. Still, it does not follow that ESP has necessarily been demonstrated. Flaws in the experi- mental setup as well as errors in reporting the scores could have inadvertently produced what appears to be a statistically significant result. Suffice it to say that a great many scientists remain highly skeptical of ESP research in general and of the Pratt-Woodruff experiment in particular. [For a more thorough critique of the data we have just described, see (48).]

About the Data This is a good set of data for illustrating why we need formal mathematical methods for interpreting data. As we have seen on other occa- sions, our intuitions, when left unsupported by probability calculations, can often be deceived. A typical first reaction to the Pratt-Woodruff results is to dismiss as inconsequential the 489 additional correct answers. To many, it seems entirely believable that sixty thousand guesses could produce, by chance, an extra 489 correct responses. Only after making the P(X ≥ 12,489) computation do we see the utter implausibility of that conclusion. What statistics is doing here is what we would like it to do in general—rule out hypotheses that are not supported by the data and point us in the direction of inferences that are more likely to be true (or toward explanations for why the data may be misleading).

Questions

4.3.1. Use Appendix Table A.1 to evaluate the following integrals. In each case, draw a diagram of fZ(z) and shade the area that corresponds to the integral.

(a) ∫ 1.33 −0.44

1√ 2π

e−z 2/2 dz

(b) ∫ 0.94 −∞

1√ 2π

e−z 2/2 dz

(c) ∫∞ −1.48

1√ 2π

e−z 2/2 dz

(d) ∫ −4.32 −∞

1√ 2π

e−z 2/2 dz

4.3.2. Let Z be a standard normal random variable. Use Appendix Table A.1 to find the numerical value for each of the following probabilities. Show each of your answers as an area under fZ(z).

(a) P(0 ≤ Z ≤ 2.07) (b) P(−0.64 ≤ Z < −0.11) (c) P(Z > −1.06) (d) P(Z < −2.33) (e) P(Z ≥ 4.61) 4.3.3. (a) Let 0 < a < b. Which number is larger?∫ b

a

1√ 2π

e−z 2/2 dz or

∫ −a −b

1√ 2π

e−z 2/2 dz

(b) Let a > 0. Which number is larger?∫ a+1 a

1√ 2π

e−z 2/2 dz or

∫ a+1/2 a−1/2

1√ 2π

e−z 2/2 dz

Section 4.3 The Normal Distribution 243

4.3.4. (a) Evaluate

∫ 1.24 0 e

−z2/2 dz.

(b) Evaluate ∫∞ −∞ 6e

−z2/2 dz.

4.3.5. Assume that the random variable Z is described by a standard normal curve fZ(z). For what values of z are the following statements true? (a) P(Z ≤ z) = 0.33 (b) P(Z ≥ z) = 0.2236 (c) P(−1.00 ≤ Z ≤ z) = 0.5004 (d) P(−z < Z < z) = 0.80 (e) P(z ≤ Z ≤ 2.03) = 0.15 4.3.6. Let zα denote the value of Z for which P(Z ≥ zα) = α. By definition, the interquartile range, Q, for the stan- dard normal curve is the difference

Q = z.25 − z.75 Find Q.

4.3.7. Oak Hill has 74,806 registered automobiles. A city ordinance requires each to display a bumper decal show- ing that the owner paid an annual wheel tax of $50. By law, new decals need to be purchased during the month of the owner’s birthday. This year’s budget assumes that at least $306,000 in decal revenue will be collected in November. What is the probability that the wheel taxes reported in that month will be less than anticipated and produce a budget shortfall?

4.3.8. Hertz Brothers, a small, family-owned radio man- ufacturer, produces electronic components domestically but subcontracts the cabinets to a foreign supplier. Al- though inexpensive, the foreign supplier has a quality- control program that leaves much to be desired. On the average, only 80% of the standard 1600-unit shipment that Hertz receives is usable. Currently, Hertz has back or- ders for twelve hundred sixty radios but storage space for no more than thirteen hundred ten cabinets. What are the chances that the number of usable units in Hertz’s latest shipment will be large enough to allow Hertz to fill all the orders already on hand, yet small enough to avoid causing any inventory problems?

4.3.9. Fifty-five percent of the registered voters in Sheridanville favor their incumbent mayor in her bid for re-election. If four hundred voters go to the polls, approx- imate the probability that

(a) the race ends in a tie. (b) the challenger scores an upset victory.

4.3.10. State Tech’s basketball team, the Fighting Loga- rithms, have a 70% foul-shooting percentage. (a) Write a formula for the exact probability that out of their next one hundred free throws, they will make be- tween seventy-five and eighty, inclusive. (b) Approximate the probability asked for in part (a).

4.3.11. A random sample of 747 obituaries published re- cently in Salt Lake City newspapers revealed that 344 (or 46%) of the decedents died in the three-month period following their birthdays (131). Assess the sta- tistical significance of that finding by approximating the probability that 46% or more would die in that particu- lar interval if deaths occurred randomly throughout the year. What would you conclude on the basis of your answer?

4.3.12. There is a theory embraced by certain parapsy- chologists that hypnosis can enhance a person’s ESP abil- ity. To test that hypothesis, an experiment was set up with fifteen hypnotized subjects (24). Each was asked to make one hundred guesses using the same sort of ESP cards and protocol that were described in Case Study 4.3.1. A total of three hundred twenty-six correct identifications were made. Can it be argued on the basis of those results that hypnosis does have an effect on a person’s ESP ability? Explain.

4.3.13. If pX (k) = (

10 k

) (0.7)k(0.3)10−k, k = 0, 1, . . . , 10,

is it appropriate to approximate P(4 ≤ X ≤ 8) by com- puting the following?

P

[ 3.5 − 10(0.7)√

10(0.7)(0.3) ≤ Z ≤ 8.5 − 10(0.7)√

10(0.7)(0.3)

]

Explain.

4.3.14. A sell-out crowd of 42,200 is expected at Cleve- land’s Jacobs Field for next Tuesday’s game against the Baltimore Orioles, the last before a long road trip. The ballpark’s concession manager is trying to decide how much food to have on hand. Looking at records from games played earlier in the season, she knows that, on the average, 38% of all those in attendance will buy a hot dog. How large an order should she place if she wants to have no more that a 20% chance of demand exceeding supply?

CENTRAL LIMIT THEOREM

It was pointed out in Example 3.9.3 that every binomial random variable X can be written as the sum of n independent Bernoulli random variables X1, X2, . . . , Xn, where

Xi = {

1 with probability p 0 with probability 1 − p

244 Chapter 4 Special Distributions

But if X = X1 + X2 + · · · + Xn, Theorem 4.3.1 can be reexpressed as

lim n→∞ P

[ a ≤ X1 + X2 + · · · + Xn − np√

np(1 − p) ≤ b ]

= 1√ 2π

∫ b a

e−z 2/2 dz (4.3.2)

Implicit in Equation 4.3.2 is an obvious question: Does the DeMoivre-Laplace limit apply to sums of other types of random variables as well? Remarkably, the answer is “yes.” Efforts to extend Equation 4.3.2 have continued for more than 150 years. Rus- sian probabilists—A. M. Lyapunov, in particular—made many of the key advances. In 1920, George Polya gave these new generalizations a name that has been associ- ated with the result ever since: He called it the Central Limit Theorem (146).

Theorem 4.3.2

(Central Limit Theorem) Let W1, W2, . . . be an infinite sequence of independent random variables, each with the same distribution. Suppose that the mean μ and the variance σ2 of fW (w) are both finite. For any numbers a and b,

lim n→∞ P

( a ≤ W1 + · · · + Wn − nμ√

nσ ≤ b )

= 1√ 2π

∫ b a

e−z 2/2 dz

Proof See Appendix 4.A.2.

Comment The Central Limit Theorem is often stated in terms of the average of W1, W2, . . ., and Wn, rather than their sum. Since

E [

1 n

(W1 + · · · + Wn) ]

= E(W) = μ and Var [

1 n

(W1 + · · · + Wn) ]

= σ2/n,

Theorem 4.3.2 can also be written

lim n→∞ P

( a ≤ W − μ

σ/ √

n ≤ b )

= 1√ 2π

∫ b a

e−z 2/2 dz

We will use both formulations, the choice depending on which is more convenient for the problem at hand.

Example 4.3.2

The best way to get a sense of how the Central Limit Theorem works is to examine the distribution of averages calculated from repeated samples of size n taken from some specific pdf. For example, consider the continuous uniform pdf defined over the interval [0, 10):

fY (y) = 1/10, 0 ≤ y < 10 Figure 4.3.5 shows the density-scaled histogram for a random sample of size 100 from fY (y). As expected, the shape of the histogram mimics the shape of fY (y)—not per- fectly, but quite well.

0

0.05

0.10

0.15

2 4 6 8 10

P ro

ba bi

lit y

de ns

it y

Data histogram fY(y)

y

Figure 4.3.5

Section 4.3 The Normal Distribution 245

Note: Values of Y consistent with fY (y) can be easily generated using a random num- ber table. Choose any three digits from the table—say, 298—put a decimal point be- tween the first and second digits and the result, 2.98, qualifies as a random observa- tion from fY (y) = 1/10, 0 ≤ y < 10. Of course, for the paper-and-pencil challenged, the simplest way to get simulated data like 2.98 is to use the random number gener- ator that comes with every statistical software package.

Now, suppose fifty random samples, each of size n = 8, are drawn from fY (y). What would we expect the distribution of the averages of those fifty samples to look like? Clearly, the shape would not mimic fY (y). For the average of n = 8 observations to be a small number—say, less than 2—all eight sample observations would have to be small numbers, which is possible, but not likely. Common sense tells us that the distribution of sample averages will necessarily be concentrated in some fashion near the center of the possible Y values.

Pictured in Figure 4.3.6 is the density-scaled histogram constructed for one such set of fifty samples of size 8. As expected, the most common values for Y round off to either 4, 5, or 6, and the frequencies of averages more extreme in either direction fall off rapidly.

0 2 3 4 5 6 7

0.10

0.20

0.30

0.40 Histogram of 50 sample averages, each based on n = 8 obs.

Approximating normal curve from Central Limit Theorem

P ro

ba bi

lit y

de ns

it y

Sample average, y

Figure 4.3.6

The superimposed dotted curve is the distribution—as given by the Central Limit Theorem—of the sample averages as the number of observations, n, in each of those averages goes to ∞. How closely an observed distribution of sample means agrees with that theoretical distribution can be determined if the mean (μ) and vari- ance (σ2) of the random variable Y can be calculated.

Here, for the uniform pdf defined over the interval [0, 10),

E(Y) = μ = ∫ 10

0 t · (1/10) dt = t2/20

∣∣∣∣∣ 10

0

= 5

and

σ2 = E(Y 2) − [E(Y)]2 = ∫ 10

0 t2 · (1/10) dt − (5)2

= t3/30 ∣∣∣10 0

− 25 = 25/3

Look again at Figure 4.3.6. The observed proportion of sample averages rounding to 5 was 0.36. How close was that to the theoretical limit? Very close. Using the second version of the Central Limit Theorem as given on p. 244,

246 Chapter 4 Special Distributions

P(4.5 ≤ Y < 5.5) = P (

4.5 − 5√ 25/3/

√ 8

≤ Y − μ σ/

√ 8

≤ 5.5 − 5√ 25/3/

√ 8

)

= P(−0.49 ≤ Y − μ σ/

√ 8

≤ 0.49) =̇ 1√ 2π

0.49∫ −0.49

e−z 2/2dz

= 0.6879 − 0.3121 (from Table A.1) = 0.37

Comment Obviously the most remarkable feature of the Central Limit Theorem is its generality—it holds for every sequence of independent random variables subject only to the weak restrictions that all the Wi’s have the same finite mean and the same finite variance. Very, very few random variables fail to meet those conditions.

What is also amazing, though, is the fact that even though the Central Limit The- orem is an asymptotic result, the convergence of W distributions to the normal curve limit is incredibly rapid. Example 4.3.2 is a case in point. Averages of size n = 8— quite a ways from ∞—are already showing a decidedly bell-shaped configuration, despite the fact that the (perfectly flat) uniform pdf being sampled looks nothing like a normal curve to begin with.

Example 4.3.3

A random sample of size n = 15 is drawn from the pdf fY (y) = 3(1 − y)2, 0 ≤ y ≤ 1. Let Ȳ = ( 115) 15∑

i=1 Yi. Use the Central Limit Theorem to approximate P

( 1 8 ≤ Ȳ ≤ 38

) .

Note, first of all, that

E(Y) = ∫ 1

0 y · 3(1 − y)2 dy = 1

4

and

σ2 = Var(Y) = E(Y 2) − μ2 = ∫ 1

0 y2 · 3(1 − y)2 dy −

( 1 4

)2 = 3

80

Then

P (

1 8

≤ Ȳ ≤ 3 8

) = P

⎛ ⎝ 18 − 14√

3 80

/√ 15

≤ Ȳ − 1 4√

3 80

/√ 15

≤ 3 8 − 14√ 3

80

/√ 15

⎞ ⎠

.= P(−2.50 ≤ Z ≤ 2.50) = 0.9876

Example 4.3.4

In preparing next quarter’s budget, the accountant for a small business has one hun- dred different expenditures to account for. Her predecessor listed each entry to the penny, but doing so grossly overstates the precision of the process. As a more truthful alternative, she intends to record each budget allocation to the nearest $100. What is the probability that her total estimated budget will end up differing from the ac- tual cost by more than $500? Assume that Y1, Y2, . . ., Y100, the rounding errors she makes on the one hundred items, are independent and uniformly distributed over the interval [−$50,+$50].

Let

S100 = Y1 + Y2 + · · · + Y100 = total rounding error

Section 4.3 The Normal Distribution 247

What the accountant wants to estimate is P(|S100| > $500). By the distribution as- sumption made for each Yi,

E(Yi) = 0, i = 1, 2, . . . , 100 and

Var(Yi) = E ( Y 2i ) = ∫ 50

−50

1 100

y2 dy

= 2500 3

Therefore,

E(S100) = E(Y1 + Y2 + · · · + Y100) = 0 and

Var(S100) = Var(Y1 + Y2 + · · · + Y100) = 100 (

2500 3

)

= 250,000 3

Applying Theorem 4.3.2, then, shows that her strategy has roughly an 8% chance of being in error by more than $500:

P(|S100| > $500) = 1 − P(−500 ≤ S100 ≤ 500)

= 1 − P (−500 − 0

500/ √

3 ≤ S100 − 0

500/ √

3 ≤ 500 − 0

500/ √

3

) = 1 − P(−1.73 < Z < 1.73) = 0.0836

Questions

4.3.15. A fair coin is tossed two hundred times. Let Xi = 1 if the ith toss comes up heads and Xi = 0 otherwise, i = 1, 2, . . . , 200; X =

200∑ i=1

Xi. Calculate the Central

Limit Theorem approximation for P(|X − E(X )| ≤ 5). How does this differ from the DeMoivre-Laplace approx- imation?

4.3.16. Suppose that one hundred fair dice are tossed. Estimate the probability that the sum of the faces show- ing exceeds 370. Include a continuity correction in your analysis.

4.3.17. Let X be the amount won or lost in betting $5 on red in roulette. Then px(5) = 1838 and px(−5) = 2038 . If a gambler bets on red one hundred times, use the Cen- tral Limit Theorem to estimate the probability that those wagers result in less than $50 in losses.

4.3.18. Suppose X1, X2, X3, and X4 are independent Pois- son random variables, each with parameter λ = 3. Let S = X1 + X2 + X3 + X4.

(a) Use the Central Limit Theorem to approximate the probability that 13 ≤ S ≤ 14. (b) Calculate the exact probability that 13 ≤ S ≤ 14. 4.3.19. An electronics firm receives, on the average, fifty orders per week for a particular silicon chip. If the com- pany has sixty chips on hand, use the Central Limit Theorem to approximate the probability that they will be unable to fill all their orders for the upcoming week. As- sume that weekly demands follow a Poisson distribution.

4.3.20. Considerable controversy has arisen over the pos- sible aftereffects of a nuclear weapons test conducted in Nevada in 1957. Included as part of the test were some three thousand military and civilian “observers.” Now, more than fifty years later, eight cases of leukemia have been diagnosed among those three thousand. The ex- pected number of cases, based on the demographic char- acteristics of the observers, was three. Assess the sta- tistical significance of those findings. Calculate both an exact answer using the Poisson distribution as well as an approximation based on the Central Limit Theorem.

248 Chapter 4 Special Distributions

THE NORMAL CURVE AS A MODEL FOR INDIVIDUAL MEASUREMENTS

Because of the Central Limit Theorem, we know that sums (or averages) of virtu- ally any set of random variables, when suitably scaled, have distributions that can be approximated by a standard normal curve. Perhaps even more surprising is the fact that many individual measurements, when suitably scaled, also have a standard nor- mal distribution. Why should the latter be true? What do single observations have in common with samples of size n?

Astronomers in the early nineteenth century were among the first to understand the connection. Imagine looking through a telescope for the purpose of determining the location of a star. Conceptually, the data point, Y , eventually recorded is the sum of two components: (1) the star’s true location μ∗ (which remains unknown) and (2) measurement error. By definition, measurement error is the net effect of all those factors that cause the random variable Y to have a value different from μ∗. Typically, these effects will be additive, in which case the random variable can be written as a sum,

Y = μ∗ + W1 + W2 + · · · + Wt (4.3.3) where W1, for example, might represent the effect of atmospheric irregularities, W2 the effect of seismic vibrations, W3 the effect of parallax distortions, and so on.

If Equation 4.3.3 is a valid representation of the random variable Y , then it would follow that the Central Limit Theorem applies to the individual Yi’s. Moreover, if

E(Y) = E(μ∗ + W1 + W2 + · · · + Wt) = μ and

Var(Y) = Var(μ∗ + W1 + W2 + · · · + Wt) = σ2

the ratio in Theorem 4.3.2 takes the form Y−μ σ

. Furthermore, t is likely to be very large, so the approximation implied by the Central Limit Theorem is essentially an equality—that is, we take the pdf of Y−μ

σ to be fZ(z).

Finding an actual formula for fY (y), then, becomes an exercise in applying The- orem 3.8.2. Given that Y−μ

σ = Z,

Y = μ + σZ and

fY (y) = 1 σ

fZ

( y − μ

σ

)

= 1√ 2πσ

e− 1 2 ( y−μσ )

2

, −∞ < y < ∞

Definition 4.3.1 A random variable Y is said to be normally distributed with mean μ and variance σ2 if

fY (y) = 1√ 2πσ

e− 1 2 ( y−μσ )

2

, − ∞ < y < ∞

The symbol Y ∼ N(μ, σ2) will sometimes be used to denote the fact that Y has a normal distribution with mean μ and variance σ2.

Section 4.3 The Normal Distribution 249

Comment Areas under an “arbitrary” normal distribution, fY (y), are calculated by finding the equivalent area under the standard normal distribution, fZ(z):

P(a ≤ Y ≤ b) = P (

a − μ σ

≤ Y − μ σ

≤ b − μ σ

) = P

( a − μ

σ ≤ Z ≤ b − μ

σ

)

The ratio Y−μ σ

is often referred to as either a Z transformation or a Z score.

Example 4.3.5

In most states a motorist is legally drunk, or driving under the influence (DUI), if his or her blood alcohol concentration, Y , is 0.08% or higher. When a suspected DUI offender is pulled over, police often request a sobriety test. Although the breath ana- lyzers used for that purpose are remarkably precise, the machines do exhibit a certain amount of measurement error. Because of that variability, the possibility exists that a driver’s true blood alcohol concentration may be under 0.08% even if the analyzer gives a reading over 0.08%.

Experience has shown that repeated breath analyzer measurements taken from the same person produce a distribution of responses that can be described by a nor- mal pdf with μ equal to the person’s true blood alcohol concentration and σ equal to 0.004%. Suppose a driver is stopped at a roadblock on his way home from a party. Having celebrated a bit more than he should have, he has a true blood alcohol concentration of 0.075%, just barely under the legal limit. If he takes the breath analyzer test, what are the chances that he will be incorrectly booked on a DUI charge?

0.060 0.080.075

100

50

Legally drunk

Area = 0.1056

0.09 y

f (y)Y

–3.0 3.01.250

0.4

0.2 Area = 0.1056

z

f (z)Z

Figure 4.3.7

Since a DUI arrest occurs when Y ≥ 0.08%, we need to find P(Y ≥ 0.08) when μ = 0.075 and σ = 0.004 (the percentage is irrelevant to any probability calculation

250 Chapter 4 Special Distributions

and can be ignored). An application of the Z transformation shows that the driver has almost an 11% chance of being falsely accused:

P(Y ≥ 0.08) = P (

Y − 0.075 0.004

≥ 0.080 − 0.075 0.004

) = P(Z ≥ 1.25) = 1 − P(Z < 1.25) = 1 − 0.8944 = 0.1056

Figure 4.3.7 shows fY (y), fZ(z), and the two areas that are equal.

CASE STUDY 4.3.2

For his many notable achievements, Sir Francis Galton (1822–1911) is much ad- mired by scientists and statisticians, but not so much by criminals (at least not criminals who know something about history). What should rankle the incar- cerated set is the fact that Galton did groundbreaking work in using fingerprints for identification purposes. Late in the nineteenth century, he showed that all fin- gerprints could be classified into three generic types—the whorl, the loop, and the arch (see Figure 4.3.8). A few years later, Sir Edward Richard Henry, who would eventually become Commissioner of Scotland Yard, refined Galton’s sys- tem to include eight generic types. The Henry system, as it came to be known, was quickly adopted by law enforcement agencies worldwide and ultimately be- came the foundation for the first AFIS (Automated Fingerprint Identification System) databases introduced in the 1990s.

Whorl Loop Arch

Figure 4.3.8

There are many characteristics besides the three proposed by Galton and the eight proposed by Henry that can be used to distinguish one fingerprint from an- other. Among the most objective of these is the ridge count. In the loop pattern, there is a point—the triradius—where the three opposing ridge systems come to- gether. A straight line drawn from the triradius to the center of the loop will cross a certain number of ridges; in Figure 4.3.9, that number is eleven. Adding the numbers of ridge crossings for each finger yields a sum known as the ridge count.

Consider the following scenario. Police are investigating the murder of a pedestrian in a heavily populated urban area that is thought to have been a gang-related, drive-by shooting, perhaps as part of an initiation ritual. No eye- witnesses have come forth, but an unregistered gun was found nearby that the ballistics lab has confirmed was the murder weapon. Lifted from the gun was a partially smudged set of latent fingerprints. None of the features typically used for identification purposes was recognizable except for the ridge count, which appeared to be at least two hundred seventy. The police have arrested a young

Section 4.3 The Normal Distribution 251

man who lives in the area, is known to belong to a local gang, has no verifiable alibi for the night of the shooting, and has a ridge count of two hundred seventy- five. His trial is about to begin.

Figure 4.3.9

Neither the state nor the defense has a strong case. Both sides have no choice but to base their arguments on the statistical implications of the defendant’s ridge count. And both sides have access to the same background information— that ridge counts for males are normally distributed with a mean (μ) of 146 and a standard deviation (σ) of 52.

The state’s case Clearly, the defendant has an unusually high ridge count. The strength of the prosecutor’s case hinges on how unusual. According to the Z transformation given on p. 249 (together with a continuity correction), the probability of a ridge count, Y , being at least 275 is 0.0068:

P(Y ≥ 275) .= P (

Y − 146 52

≥ 274.5 − 146 52

) = P(Z ≥ 2.47) = 0.0068

This is great news for the prosecutor: jurors will most likely interpret a proba- bility that small as being very strong evidence against the defendant.

The defense’s case The defense must necessarily try to establish “reasonable doubt” by showing that the probability is fairly high that someone other than the defendant could have committed the murder. To make that argument requires an application of conditional probability as it pertains to the binomial distribution.

(Continued on next page)

252 Chapter 4 Special Distributions

(Case Study 4.3.2 continued)

Suppose n male gang members were riding around on the night of the shoot- ing and could conceivably have committed the crime, and let X denote the num- ber of those individuals who have ridge counts of at least two hundred seventy. Then

P(X = k) = (

n k

) pk(1 − p)n−k

where

p = P(Y ≥ 270) .= P (

Y − 146 52

≥ 269.5 − 146 52

) = P(Z ≥ 2.38) = 0.0087

Also,

P(X = 1) = (

n 1

) p1(1 − p)n−1 = np(1 − p)n−1

P(X ≥ 1) = 1 − P(X = 0) = 1 − (1 − p)n

and

P(X ≥ 2) = 1 − (1 − p)n − np(1 − p)n−1

Therefore,

P(X ≥ 2 ∣∣X ≥ 1) = P(X ≥ 2) P(X ≥ 1)

= 1 − (1 − p) n − np(1 − p)n−1

1 − (1 − p)n = P(At least two persons have ridge counts

≥ 270| At least one person has a ridge count ≥ 270) = P(At least one other person besides the defendant

could have committed the murder)

How large was n on the night of the shooting? There is no way to know, but it could have been sizeable, given the amount of gang activity found in many metropolitan areas. Table 4.3.2 lists the values of P(X ≥ 2|X ≥ 1) calculated for

Table 4.3.2

n P(X ≥ 2|X ≥ 1) 25 0.10 50 0.20

100 0.37 150 0.51 200 0.63

various values of n ranging from 25 to 200. For example, if n = 50 gang members including the defendant were riding around on the night of the murder, there is a 20% chance that at least one other individual besides the defendant has a ridge count of at least two hundred seventy (and might be the shooter).

Imagine yourself on the jury. Which is the more persuasive statistical analy- sis, the state’s calculation that P(Y ≥ 275) = 0.0068, or the defense’s tabulation of P(X ≥ 2|X ≥ 1)? Would you vote “guilty” or “not guilty”?

Section 4.3 The Normal Distribution 253

About the Data Given that astrologers, psychics, and Tarot card readers still abound, it should come as no surprise that fingerprint patterns gave rise to their own form of fortune-telling (known more elegantly as dactylomancy). Accord- ing to those who believe in such things, a person “having whorls on all fingers is restless, vacillating, doubting, sensitive, clever, eager for action, and inclined to crime.” And, of course, it follows that, “A mixture of loops and whorls signifies a neutral character, a person who is kind, obedient, truthful, but often undecided and impatient” (35).

Example 4.3.6

Mensa (from the Latin word for “mind”) is an international society devoted to intel- lectual pursuits. Any person who has an IQ in the upper 2% of the general population is eligible to join. What is the lowest IQ that will qualify a person for membership? Assume that IQs are normally distributed with μ = 100 and σ = 16.

Let the random variable Y denote a person’s IQ, and let the constant yL be the lowest IQ that qualifies someone to be a card-carrying Mensan. The two are related by a probability equation:

P(Y ≥ yL) = 0.02

or, equivalently,

P(Y < yL) = 1 − 0.02 = 0.98 (4.3.4)

(see Figure 4.3.10). Applying the Z transformation to Equation 4.3.4 gives

P(Y < yL) = P (

Y − 100 16

< yL − 100

16

) = P

( Z <

yL − 100 16

) = 0.98

yL100

IQ

0.03

Area = 0.02

Qualifies for membership

Area = 0.98

y

f (y)Y

Figure 4.3.10

From the standard normal table in Appendix Table A.1, though,

P(Z < 2.05) = 0.9798 =̇ 0.98

Since yL−10016 and 2.05 are both cutting off the same area of 0.02 under fZ(z), they must be equal, which implies that 133 is the lowest acceptable IQ for Mensa:

yL = 100 + 16(2.05) = 133

254 Chapter 4 Special Distributions

Example 4.3.7

Suppose a random variable Y has the moment-generating function MY (t) = e3t+8t2 . Calculate P(−1 ≤ Y ≤ 9).

To begin, notice that MY (t) has the same form as the moment-generating func- tion for a normal random variable. That is,

e3t+8t 2 = eμt+(σ2t2)/2

where μ = 3 and σ2 = 16 (recall Example 3.12.4). TransformingY , then, to a standard normal, gives:

P(−1 ≤ Y ≤ 9) = P (−1 − 3

4 ≤ Y − 3

4 ≤ 9 − 3

4

) = P(−1.00 ≤ Z ≤ 1.50)

= 0.9332 − 0.1587 = 0.7745

Theorem 4.3.3

Let Y1 be a normally distributed random variable with mean μ1 and variance σ21, and let Y2 be a normally distributed random variable with mean μ2 and variance σ22. Define Y = Y1 + Y2. If Y1 and Y2 are independent, Y is normally distributed with mean μ1 + μ2 and variance σ21 + σ22. Proof Let MYi (t) denote the moment-generating function for Yi, i = 1, 2, and let MY (t) be the moment-generating function for Y . Since Y = Y1 + Y2, and the Yi’s are independent,

MY (t) = MY1 (t) · MY2 (t)

= eμ1t+ ( σ21t

2 ) /2 · eμ2t+

( σ22t

2 ) /2 (See Example 3.12.4)

= e(μ1+μ2)t+ ( σ21+σ22

) t2/2

We recognize the latter, though, to be the moment-generating function for a nor- mal random variable with mean μ1 + μ2 and variance σ21 + σ22. The result follows by virtue of the uniqueness property stated in Theorem 3.12.2.

Corollary 4.3.1

LetY1,Y2, . . .,Yn be a random sample of size n from a normal distribution with mean

μ and variance σ2. Then the sample mean, Ȳ = 1n n∑

i=1 Yi, is also normally distributed

with mean μ but with variance equal to σ2/n (which implies that Ȳ−μ σ/

√ n is a standard

normal random variable, Z).

Corollary 4.3.2

Let Y1, Y2, . . ., Yn be any set of independent normal random variables with means μ1, μ2, . . ., μn and variances σ21, σ

2 2, . . ., σ

2 n, respectively. Let a1, a2, . . ., an be any set

of constants. Then Y = a1Y1 + a2Y2 + · · · + anYn is normally distributed with mean μ =

n∑ i=1

aiμi and variance σ2 = n∑

i=1 a2iσ

2 i .

Example 4.3.8

The elevator in the athletic dorm at Swampwater Tech has a maximum capacity of twenty-four hundred pounds. Suppose that ten football players get on at the twen- tieth floor. If the weights of Tech’s players are normally distributed with a mean of

Section 4.3 The Normal Distribution 255

two hundred twenty pounds and a standard deviation of twenty pounds, what is the probability that there will be ten fewer Muskrats at tomorrow’s practice?

Let the random variables Y1, Y2, . . ., Y10 denote the weights of the ten players.

At issue is the probability that Y = 10∑

i=1 Yi exceeds twenty-four hundred pounds. But

P

( 10∑

i=1 Yi > 2400

) = P

( 1

10

10∑ i=1

Yi > 1 10

· 2400 )

= P(Ȳ > 240.0)

A Z transformation can be applied to Y using the corollary on p. 254:

P(Ȳ > 240.0) = P (

Ȳ − 220 20/

√ 10

> 240.0 − 220

20/ √

10

) = P(Z > 3.16)

= 0.0008 Clearly, the chances of a Muskrat splat are minimal. (How much would the proba- bility change if eleven players squeezed onto the elevator?)

Questions

4.3.21. Econo-Tire is planning an advertising campaign for its newest product, an inexpensive radial. Preliminary road tests conducted by the firm’s quality-control depart- ment have suggested that the lifetimes of these tires will be normally distributed with an average of thirty thousand miles and a standard deviation of five thousand miles. The marketing division would like to run a commercial that makes the claim that at least nine out of ten drivers will get at least twenty-five thousand miles on a set of Econo- Tires. Based on the road test data, is the company justified in making that assertion?

4.3.22. A large computer chip manufacturing plant under construction in Westbank is expected to result in an ad- ditional fourteen hundred children in the county’s public school system once the permanent workforce arrives. Any child with an IQ under 80 or over 135 will require indi- vidualized instruction that will cost the city an additional $1750 per year. How much money should Westbank an- ticipate spending next year to meet the needs of its new special ed students? Assume that IQ scores are normally distributed with a mean (μ) of 100 and a standard devia- tion (σ) of 16.

4.3.23. Records for the past several years show that the amount of money collected daily by a prominent televan- gelist is normally distributed with a mean (μ) of $20,000 and a standard deviation (σ) of $5000. What are the chances that tomorrow’s donations will exceed $30,000?

4.3.24. Among the many letters sent to a popular advice- to-the-lovelorn columnist, was one involving a paternity issue that raised an interesting statistical question. The

distraught writer—call her “San Diego Reader”—said her husband is in the military and that she got pregnant the last day before he left for an extended tour of duty. Ten months and four days later the baby was born—usually a happy occasion—but her husband, accustomed to preg- nancies being nine months long, became obsessed with the possibility that he might not be the child’s father.

DNA testing was not yet available. The only relevant information known at the time was that pregnancy dura- tions are normally distributed with a mean (μ) of 266 days and a standard deviation (σ) of 16 days. For the benefit of San Diego Reader’s husband, how would you associate a probability with a pregnancy lasting 10 months and 4 days? Do you think San Diego Reader is telling the truth?

4.3.25. A criminologist has developed a questionnaire for predicting whether a teenager will become a delinquent. Scores on the questionnaire can range from 0 to 100, with higher values reflecting a presumably greater crimi- nal tendency. As a rule of thumb, the criminologist decides to classify a teenager as a potential delinquent if his or her score exceeds 75. The questionnaire has already been tested on a large sample of teenagers, both delinquent and nondelinquent. Among those considered nondelinquent, scores were normally distributed with a mean (μ) of 60 and a standard deviation (σ) of 10. Among those consid- ered delinquent, scores were normally distributed with a mean of 80 and a standard deviation of 5.

(a) What proportion of the time will the criminologist misclassify a nondelinquent as a delinquent? A delin- quent as a nondelinquent?

256 Chapter 4 Special Distributions

(b) On the same set of axes, draw the normal curves that represent the distributions of scores made by delinquents and nondelinquents. Shade the two areas that correspond to the probabilities asked for in part (a).

4.3.26. The cross-sectional area of plastic tubing for use in pulmonary resuscitators is normally distributed with μ = 12.5 mm2 and σ = 0.2 mm2. When the area is less than 12.0 mm2 or greater than 13.0 mm2, the tube does not fit properly. If the tubes are shipped in boxes of one thousand, how many wrong-sized tubes per box can doc- tors expect to find?

4.3.27. At State University, the average score of the en- tering class on the verbal portion of the SAT is 565, with a standard deviation of 75. Marian scored a 660. How many of State’s other 4250 freshmen did better? Assume that the scores are normally distributed.

4.3.28. A college professor teaches Chemistry 101 each fall to a large class of freshmen. For tests, she uses stan- dardized exams that she knows from past experience pro- duce bell-shaped grade distributions with a mean of 70 and a standard deviation of 12. Her philosophy of grading is to impose standards that will yield, in the long run, 20% A’s, 26% B’s, 38% C’s, 12% D’s, and 4% F’s. Where should the cutoff be between the A’s and the B’s? Between the B’s and the C’s?

4.3.29. Suppose the random variable Y can be described by a normal curve with μ = 40. For what value of σ is

P(20 ≤ Y ≤ 60) = 0.50 4.3.30. It is estimated that 80% of all eighteen-year-old women have weights ranging from 103.5 to 144.5 lb. As- suming the weight distribution can be adequately mod- eled by a normal curve and that 103.5 and 144.5 are equidistant from the average weight μ, calculate σ.

4.3.31. Recall the breath analyzer problem described in Example 4.3.5. Suppose the driver’s blood alcohol con- centration is actually 0.09% rather than 0.075%. What is the probability that the breath analyzer will make an error in his favor and indicate that he is not legally drunk? Sup- pose the police offer the driver a choice—either take the sobriety test once or take it twice and average the read- ings. Which option should a “0.075%” driver take? Which option should a “0.09%” driver take? Explain.

4.3.32. If a random variableY is normally distributed with mean μ and standard deviation σ, the Z ratio Y−μ

σ is often

referred to as a normed score: It indicates the magnitude of y relative to the distribution from which it came. “Norm- ing” is sometimes used as an affirmative-action mecha- nism in hiring decisions. Suppose a cosmetics company is seeking a new sales manager. The aptitude test they have traditionally given for that position shows a distinct gender bias: Scores for men are normally distributed with μ = 62.0 and σ = 7.6, while scores for women are

normally distributed with μ = 76.3 and σ = 10.8. Laura and Michael are the two candidates vying for the posi- tion: Laura has scored 92 on the test and Michael 75. If the company agrees to norm the scores for gender bias, whom should they hire?

4.3.33. The IQs of nine randomly selected people are recorded. Let Y denote their average. Assuming the dis- tribution from which the Yi’s were drawn is normal with a mean of 100 and a standard deviation of 16, what is the probability that Y will exceed 103? What is the probability that any arbitrary Yi will exceed 103? What is the proba- bility that exactly three of the Yi’s will exceed 103?

4.3.34. Let Y1,Y2, . . . ,Yn be a random sample from a nor- mal distribution where the mean is 2 and the variance is 4. How large must n be in order that

P(1.9 ≤ Y ≤ 2.1) ≥ 0.99 4.3.35. A circuit contains three resistors wired in series. Each is rated at 6 ohms. Suppose, however, that the true resistance of each one is a normally distributed random variable with a mean of 6 ohms and a standard deviation of 0.3 ohm. What is the probability that the combined re- sistance will exceed 19 ohms? How “precise” would the manufacturing process have to be to make the probability less than 0.005 that the combined resistance of the circuit would exceed 19 ohms?

4.3.36. The cylinders and pistons for a certain internal combustion engine are manufactured by a process that gives a normal distribution of cylinder diameters with a mean of 41.5 cm and a standard deviation of 0.4 cm. Simi- larly, the distribution of piston diameters is normal with a mean of 40.5 cm and a standard deviation of 0.3 cm. If the piston diameter is greater than the cylinder diameter, the former can be reworked until the two “fit.” What propor- tion of cylinder-piston pairs will need to be reworked?

4.3.37. Use moment-generating functions to prove the two corollaries to Theorem 4.3.3.

4.3.38. Let Y1,Y2, . . . , Y9 be a random sample of size 9 from a normal distribution where μ = 2 and σ = 2. Let Y ∗1 ,Y

∗ 2 , . . . , Y

∗ 9 be an independent random sample from

a normal distribution having μ = 1 and σ = 1. Find P(Ȳ ≥ Ȳ ∗). 4.3.39. The town of Willoughby has just been selected as the site for a new automobile assembly complex. City officials estimate that the anticipated influx of job- seeking families will add some four hundred students to Willoughby’s public high schools. (a) What family of random variables is the number 400 likely to represent, and what is its standard deviation? Explain. (b) Every new high school student in Willoughby is given a diagnostic test whose scores tend to be normally dis- tributed with a mean (μ) of 200 and a standard deviation (σ) of 40. Any student scoring below 120 is provided with

Section 4.4 The Geometric Distribution 257

remedial instruction, and those scoring above 290 are of- fered additional honors courses. What is the probability that a new student qualifies for special instruction? (c) Every student requiring special instruction costs the city an additional $1500.00. Suppose four hundred new

high school students do, in fact, enroll next Fall. The Willoughby School Board has budgeted $20,400.00 to cover the cost of providing whatever additional instruc- tion they might need. Is that amount likely to be suffi- cient? Explain.

4.4 The Geometric Distribution Consider a series of independent trials, each having one of two possible outcomes, success or failure. Let p = P(Trial ends in success). Define the random variable X to be the trial at which the first success occurs. Figure 4.4.1 suggests a formula for the pdf of X :

pX (k) = P(X = k) = P(First success occurs on kth trial) = P(First k − 1 trials end in failure and kth trial ends in success) = P(First k − 1 trials end in failure) · P(kth trial ends in success) = (1 − p)k−1 p, k = 1, 2, . . . (4.4.1)

We call the probability model in Equation 4.4.1 a geometric distribution (with param- eter p).

Independent trials

First success

F k – 1

F 2

F 1

S k

k – 1 failures

Figure 4.4.1

Comment Even without its association with independent trials and Figure 4.4.1, the function pX (k) = (1 − p)k−1 p, k = 1, 2, . . . qualifies as a discrete pdf because (1) pX (k) ≥ 0 for all k and (2)

∑ all k

pX (k) = 1:

∞∑ k=1

(1 − p)k−1 p = p ∞∑ j=0

(1 − p) j

= p · [

1 1 − (1 − p)

] = 1

Example 4.4.1

A pair of fair dice are tossed until a sum of 7 appears for the first time. What is the probability that more than four rolls will be required for that to happen?

Each throw of the dice here is an independent trial for which

p = P(sum = 7) = 6 36

= 1 6

258 Chapter 4 Special Distributions

Let X denote the roll at which the first sum of 7 appears. Clearly, X has the structure of a geometric random variable, and

P(X > 4) = 1 − P(X ≤ 4) = 1 − 4∑

k=1

( 5 6

)k−1 (1 6

)

= 1 − 671 1296

= 0.48

Theorem 4.4.1

Let X have a geometric distribution with pX (k) = (1 − p)k−1 p, k = 1, 2, . . . . Then a. MX (t) = pet1−(1−p)et b. E(X ) = 1p c. Var(X ) = 1−pp2

Proof See Examples 3.12.1 and 3.12.5 for derivations of MX (t) and E(X ). The formula for Var(X ) is left as an exercise.

Example 4.4.2

A grocery store is sponsoring a sales promotion where the cashiers give away one of the letters A, E, L, S, U , or V for each purchase. If a customer collects all six (spelling VALUES), he or she gets $10 worth of groceries free. What is the expected number of trips to the store a customer needs to make in order to get a complete set? Assume the different letters are given away randomly.

Let Xi denote the number of purchases necessary to get the ith different letter, i = 1, 2, . . . , 6, and let X denote the number of purchases necessary to qualify for the $10. Then X = X1 + X2 + · · · + X6 (see Figure 4.4.2). Clearly, X1 equals 1 with probability 1, so E(X1) = 1. Having received the first letter, the chances of getting a different one are 56 for each subsequent trip to the store. Therefore,

fX2 (k) = P(X2 = k) = (

1 6

)k−1 5 6 , k = 1, 2, . . .

That is, X2 is a geometric random variable with parameter p = 56 . By Theorem 4.4.1, E(X2) = 65 . Similarly, the chances of getting a third different letter are 46 (for each purchase), so

fX3 (k) = P(X3 = k) = (

2 6

)k−1 (4 6

) , k = 1, 2, . . .

X

1Trips 1 2

First letter

1 2 3 1 2

X6X3X2X1

Second different

letter

Third different

letter

Sixth different

letter

Figure 4.4.2

Section 4.5 The Negative Binomial Distribution 259

and E(X3) = 64 . Continuing in this fashion, we can find the remaining E(Xi)’s. It follows that a customer will have to make 14.7 trips to the store, on the average, to collect a complete set of six letters:

E(X ) = 6∑

i=1 E(Xi)

= 1 + 6 5

+ 6 4

+ 6 3

+ 6 2

+ 6 1

= 14.7

Questions

4.4.1. Because of her past convictions for mail fraud and forgery, Jody has a 30% chance each year of having her tax returns audited. What is the probability that she will escape detection for at least three years? Assume that she exaggerates, distorts, misrepresents, lies, and cheats every year.

4.4.2. A teenager is trying to get a driver’s license. Write out the formula for the pdf px(k), where the random vari- able X is the number of tries that he needs to pass the road test. Assume that his probability of passing the exam on any given attempt is 0.10. On the average, how many at- tempts is he likely to require before he gets his license?

4.4.3. Is the following set of data likely to have come from the geometric pdf pX (k) =

( 3 4

)k−1 · ( 14 ), k = 1, 2, . . .? Explain.

2 8 1 2 2 5 1 2 8 3 5 4 2 4 7 2 2 8 4 7 2 6 2 3 5 1 3 3 2 5 4 2 2 3 6 3 6 4 9 3 3 7 5 1 3 4 3 4 6 2

4.4.4. Recently married, a young couple plans to continue having children until they have their first girl. Suppose the probability is 12 that a child is a girl, the outcome of each birth is an independent event, and the birth at which the first girl appears has a geometric distribution. What is the couple’s expected family size? Is the geometric pdf a rea- sonable model here? Discuss.

4.4.5. Show that the cdf for a geometric random variable is given by FX (t) = P(X ≤ t) = 1 − (1 − p)[t], where [t] denotes the greatest integer in t, t ≥ 0. 4.4.6. Suppose three fair dice are tossed repeatedly. Let the random variable X denote the roll on which a sum of 4 appears for the first time. Use the expression for FX (t) given in Question 4.4.5 to evaluate P(65 ≤ X ≤ 75). 4.4.7. Let Y be an exponential random variable, where fY (y) = λe−λy, 0 ≤ y. For any positive integer n, show that P(n ≤ Y ≤ n + 1) = e−λn(1 − e−λ). Note that if p = 1 − e−λ, the “discrete” version of the exponential pdf is the geometric pdf.

4.4.8. Sometimes the geometric random variable is de- fined to be the number of trials, X, preceding the first success. Write down the corresponding pdf and de- rive the moment-generating function for X two ways— (1) by evaluating E(etX ) directly and (2) by using Theorem 3.12.3.

4.4.9. Differentiate the moment-generating function for a geometric random variable and verify the expressions given for E(X ) and Var(X ) in Theorem 4.4.1.

4.4.10. Suppose that the random variables X1 and X2 have

mgfs MX1 (t) = 1 2 e

t

1− (

1− 12 )

et and MX2 (t) =

1 4 e

t

1− (

1− 14 t )

et , respec-

tively. Let X = X1 + X2. Does X have a geometric distri- bution? Assume that X1 and X2 are independent.

4.5 The Negative Binomial Distribution The geometric distribution introduced in Section 4.4 can be generalized in a very straightforward fashion. Imagine waiting for the rth (instead of the first) success in a series of independent trials, where each trial has a probability of p of ending in success (see Figure 4.5.1).

260 Chapter 4 Special Distributions

Independent trials

rth success

S k – 1

F 3

F 2

S 1

S k

r – 1 successes and k – 1 – (r – 1) failures

Figure 4.5.1

Let the random variable X denote the trial at which the rth success occurs. Then

pX (k) = P(X = k) = P(rth success occurs on kth trial) = P(r − 1 successes occur in first k − 1 trials and

success occurs on kth trial)

= P(r − 1 successes occur in first k − 1 trials) · P(Success occurs on kth trial)

= (

k − 1 r − 1

) pr−1(1 − pk−1−(r−1)) · p

= (

k − 1 r − 1

) pr(1 − p)k−r, k = r, r + 1, . . . (4.5.1)

Any random variable whose pdf has the form given in Equation 4.5.1 is said to have a negative binomial distribution (with parameters r and p).

Comment Two equivalent formulations of the negative binomial structure are widely used. Sometimes X is defined to be the number of trials preceding the rth success; other times, X is taken to be the number of trials in excess of r that are nec- essary to achieve the rth success. The underlying probability structure is the same, however X is defined. We will primarily use Equation 4.5.1; properties of the other two definitions for X will be covered in the exercises.

Theorem 4.5.1

Let X have a negative binomial distribution with pX (k) = (

k−1 r−1 )

pr(1−p)k−r, k = r, r + 1, . . . . Then a. MX (t) =

[ pet

1−(1−p)et ]r

b. E(X ) = rp c. Var(X ) = r(1−p)p2

Proof All of these results follow immediately from the fact that X can be written as the sum of r independent geometric random variables, X1, X2, . . ., Xr, each with parameter p. That is,

X = total number of trials to achieve rth success = number of trials to achieve 1st success

+ number of additional trials to achieve 2nd success + · · · + number of additional trials to achieve rth success

= X1 + X2 + · · · + Xr

Section 4.5 The Negative Binomial Distribution 261

where

pXi (k) = (1 − p)k−1 p, k = 1, 2, . . . , i = 1, 2, . . . , r Therefore,

MX (t) = MX1 (t)MX2 (t) . . . MXr (t)

= [

pet

1 − (1 − p)et ]r

Also, from Theorem 4.4.1,

E(X ) = E(X1) + E(X2) + · · · + E(Xr)

= 1 p

+ 1 p

+ · · · + 1 p

= r p

and

Var(X ) = Var(X1) + Var(X2) + · · · + Var(Xr)

= 1 − p p2

+ 1 − p p2

+ · · · + 1 − p p2

= r(1 − p) p2

Example 4.5.1

The California Mellows are a semipro baseball team. Eschewing all forms of vio- lence, the laid-back Mellow batters never swing at a pitch, and should they be for- tunate enough to reach base on a walk, they never try to steal. On the average, how many runs will the Mellows score in a nine-inning road game, assuming the opposing pitcher has a 50% probability of throwing a strike on any given pitch (91)?

The solution to this problem illustrates very nicely the interplay between the physical constraints imposed by a question (in this case, the rules of baseball) and the mathematical characteristics of the underlying probability model. The negative binomial distribution appears twice in this analysis, along with several of the proper- ties associated with expected values and linear combinations.

To begin, we calculate the probability of a Mellow batter striking out. Let the ran- dom variable X denote the number of pitches necessary for that to happen. Clearly, X = 3, 4, 5, or 6 (why can X not be larger than 6?), and

pX (k) = P(X = k) = P(Two strikes are called in the first k − 1 pitches and the kth pitch is the 3rd strike)

= (

k − 1 2

)( 1 2

)3 (1 2

)k−3 , k = 3, 4, 5, 6

Therefore,

P(Batter strikes out) = 6∑

k=3 pX (k) =

( 1 2

)3 + (

3 2

)( 1 2

)4 + (

4 2

)( 1 2

)5 + (

5 2

)( 1 2

)6

= 21 32

262 Chapter 4 Special Distributions

Now, let the random variable W denote the number of walks the Mellows get in a given inning. In order for W to take on the value w, exactly two of the first w + 2 batters must strike out, as must the (w +3)rd (see Figure 4.5.2). The pdf for W , then, is a negative binomial with p = P(Batter strikes out) = 2132 :

pW (w) = P(W = w) = (

w + 2 2

)( 21 32

)3 (11 32

)w , w = 0, 1, 2, . . .

Batters

w + 1321 w + 2 Out

w + 3

2 outs, w walks

Figure 4.5.2

In order for a run to score, the pitcher must walk a Mellows batter with the bases loaded. Let the random variable R denote the total number of runs walked in during a given inning. Then

R = {

0 if w ≤ 3 w − 3 if w > 3

and

E(R) = ∞∑

w=4 (w − 3)

( w + 2

2

)( 21 32

)3 (11 32

)w

= ∞∑

w=0 (w − 3) · P(W = w) −

3∑ w=0

(w − 3) · P(W = w)

= E(W) − 3 + 3∑

w=0 (3 − w) ·

( w + 2

2

)( 21 32

)3 (11 32

)w (4.5.2)

To evaluate E(W) using the statement of Theorem 4.5.1 requires a linear trans- formation to rescale W to the format of Equation 4.5.1. Let

T = W + 3 = total number of Mellow batters appearing in a given inning

Then

pT (t) = pW (t − 3) = (

t − 1 2

)( 21 32

)3 (11 32

)t−3 , t = 3, 4, . . .

which we recognize as a negative binomial pdf with r = 3 and p = 2132 . Therefore,

E(T) = 3 21/32

= 32 7

which makes E(W) = E(T) − 3 = 327 − 3 = 117 .

Section 4.5 The Negative Binomial Distribution 263

From Equation 4.5.2, then, the expected number of runs scored by the Mellows in a given inning is 0.202:

E(R) = 11 7

− 3 + 3 · (

2 2

)( 21 32

)3 (11 32

)0 + 2 ·

( 3 2

)( 21 32

)3 (11 32

)1

+ 1 · (

4 2

)( 21 32

)3 (11 32

)2 = 0.202

Each of the nine innings, of course, would have the same value for E(R), so the expected number of runs in a game is the sum 0.202+0.202+· · ·+0.202 = 9(0.202), or 1.82.

CASE STUDY 4.5.1

Natural phenomena that are particularly complicated for whatever reasons may be impossible to describe with any single, easy-to-work-with probability model. An effective Plan B in those situations is to break the phenomenon down into simpler components and simulate the contributions of each of those components by using randomly generated observations. These are called Monte Carlo anal- yses, an example of which is described in detail in Section 4.7.

The fundamental requirement of any simulation technique is the ability to generate random observations from specified pdfs. In practice, this is done us- ing computers because the number of observations needed is huge. In principle, though, the same, simple procedure can be used, by hand, to generate random observations from any discrete pdf.

Recall Example 4.5.1 and the random variable W , where W is the number of walks the Mellow batters are issued in a given inning. It was shown that pW (w) is the particular negative binomial pdf,

pW (w) = P(W = w) = (

w + 2 w

)( 21 32

)3 (11 32

)w , w = 0, 1, 2, . . .

Suppose a record is kept of the numbers of walks the Mellow batters receive in each of the next one hundred innings the team plays. What might that record look like?

The answer is, the record will look like a random sample of size 100 drawn from pW (w). Table 4.5.1 illustrates a procedure for generating such a sample. The first two columns show pW (w) for the nine values of w likely to occur (0 through 8). The third column parcels out the one hundred digits 00 through 99 into nine intervals whose lengths correspond to the values of pW (w).

There are twenty-nine two-digit numbers, for example, in the interval 28 to 56, with each of those numbers having the same probability of 0.01. Any random two-digit number that falls anywhere in that interval will then be mapped into the value w = 1 (which will happen, in the long run, 29% of the time).

Tables of random digits are typically presented in blocks of twenty-five (see Figure 4.5.3).

(Continued on next page)

264 Chapter 4 Special Distributions

(Case Study 4.5.1 continued)

Table 4.5.1

Random Number w pW (w) Range

0 0.28 00–27 1 0.29 28–56 2 0.20 57–76 3 0.11 77–87 4 0.06 88–93 5 0.03 94–96 6 0.01 97 7 0.01 98 8+ 0.01 99

15053 3909823107

65402

75528

85830

13300

70659

18738 56869

08158

84864

05624

15227

48968

75604

01188 71585

23495 51851

22878

17564

83287

57484 27186

02011

85393

97265

61680

16656

Figure 4.5.3

Number of walks, W 0

0

0.10

0.20

0.30

P ro

ba bi

lit y

P (W = w) = ( )

1 2 3 4 5 6 7 8

w = 0, 1, 2, . . . w + 2

w ( )2132 3 ( )1132

w ‚

Figure 4.5.4

For the particular block circled, the first two columns,

22 17 83 57 27

would correspond to the negative binomial values

0 0 3 2 0

Section 4.5 The Negative Binomial Distribution 265

Figure 4.5.4 shows the results of using a table of random digits and Table 4.5.1 to generate a sample of one hundred random observations from pW (w). The agreement is not perfect (as it shouldn’t be), but certainly very good (as it should be).

About the Data Random number generators for continuous pdfs use random digits in ways that are much different from the strategy illustrated in Table 4.5.1 and much different from each other. The standard normal pdf and the exponen- tial pdf are two cases in point.

Let U1,U2, . . . be a set of random observations drawn from the uniform pdf defined over the interval [0, 1]. Standard normal observations are generated by appealing to the Central Limit Theorem. Since each Ui has E(Ui) = 1/2 and Var(Ui) = 1/12, it follows that

E( k∑

i=1 Ui) = k/2

and

Var( k∑

i=1 Ui) = k/12

and by the Central Limit Theorem,

k∑ i=1

Ui − k/2√ k/12

.= Z

The approximation improves as k increases, but a particularly convenient (and sufficiently large) value is k = 12. The formula for generating a standard normal observation, then, reduces to

Z = 12∑

i=1 Ui − 6

Once a set of Zi’s has been calculated, random observations from any normal distribution can be easily produced. Suppose the objective is to generate a set of Yi’s that would be a random sample from a normal distribution having mean μ and variance σ2. Since

Y − μ σ

= Z

or, equivalently,

Y = μ + σZ it follows that the random sample from fY (y) would be

Yi = μ + σZi, i = 1, 2, . . . By way of contrast, all that is needed to generate random observations from

the exponential pdf, fY (y) = λe−λy, y ≥ 0, is a simple transformation. If Ui, i = 1, 2, . . . , is a set of uniform random variables as defined earlier, then Yi = −(1/λ) ln Ui, i = 1, 2, . . . , will be the desired set of exponential observations.

(Continued on next page)

266 Chapter 4 Special Distributions

(Case Study 4.5.1 continued)

Why that should be so is an exercise in differentiating the cdf of Y . By definition,

FY (y) = P(Y ≤ y) = P(ln U > −λy) = P(U > e−λy)

= ∫ 1

e−λy 1 du = 1− e−λy

which implies that

fY (y) = F ′Y (y) = λe−λy, y ≥ 0

Questions

4.5.1. A door-to-door encyclopedia salesperson is re- quired to document five in-home visits each day. Sup- pose that she has a 30% chance of being invited into any given home, with each address representing an indepen- dent trial. What is the probability that she requires fewer than eight houses to achieve her fifth success?

4.5.2. An underground military installation is fortified to the extent that it can withstand up to three direct hits from air-to-surface missiles and still function. Suppose an en- emy aircraft is armed with missiles, each having a 30% chance of scoring a direct hit. What is the probability that the installation will be destroyed with the seventh missile fired?

4.5.3. Darryl’s statistics homework last night was to flip a fair coin and record the toss, X , when heads appeared for the second time. The experiment was to be repeated a total of one hundred times. The following are the one hundred values for X that Darryl turned in this morn- ing. Do you think that he actually did the assignment? Explain.

3 7 3 2 9 3 4 3 3 2 7 3 8 4 3 3 3 4 3 3 4 3 2 2 4 5 2 2 2 4 2 5 6 4 2 6 2 8 3 2 8 2 3 2 4 3 2 6 3 3 3 2 5 3 6 4 5 6 5 6 3 5 2 7 2 10 4 3 2 2 4 2 4 5 5 5 6 2 4 3 3 4 4 6 3 4 2 5 5 2 5 7 5 3 2 7 4 4 4 3

4.5.4. When a machine is improperly adjusted, it has probability 0.15 of producing a defective item. Each day, the machine is run until three defective items are pro- duced. When this occurs, it is stopped and checked for adjustment. What is the probability that an improperly adjusted machine will produce five or more items before being stopped? What is the average number of items an improperly adjusted machine will produce before being stopped?

4.5.5. For a negative binomial random variable whose pdf is given by Equation 4.5.1, find E(X ) directly by evaluat-

ing ∞∑

k=r k (

k−1 r−1 )

pr(1− p)k−r. (Hint: Reduce the sum to one involving negative binomial probabilities with parameters r + 1 and p.) 4.5.6. Let the random variable X denote the number of trials in excess of r that are required to achieve the rth success in a series of independent trials, where p is the probability of success at any given trial. Show that

pX (k) = (

k + r − 1 k

) pr(1 − p)k, k = 0, 1, 2, . . .

(Note: This particular formula for pX (k) is often used in place of Equation 4.5.1 as the definition of the pdf for a negative binomial random variable.)

4.5.7. Calculate the mean, variance, and moment- generating function for a negative binomial random vari- able X whose pdf is given by the expression

pX (k) = (

k + r − 1 k

) pr(1 − p)k, k = 0, 1, 2, . . .

(See Question 4.5.6.)

4.5.8. Let X1, X2, and X3 be three independent negative binomial random variables with pdfs

pXi (k) = (

k − 1 2

)( 4 5

)3 (1 5

)k−3 , k = 3, 4, 5, . . .

for i = 1, 2, 3. Define X = X1 + X2 + X3. Find P(10 ≤ X ≤ 12). (Hint: Use the moment-generating functions of X1, X2, and X3 to deduce the pdf of X .)

4.5.9. Differentiate the moment-generating function

MX (t) = [

pet

1−(1−p)et ]r

to verify the formula given in Theo-

rem 4.5.1 for E(X ).

4.5.10. Suppose that X1, X2, . . . , Xk are independent neg- ative binomial random variables with parameters r1 and p, r2 and p, . . ., and rk and p, respectively. Let X = X1 + X2 + · · · + Xk. Find MX (t), pX (t), E(X ), and Var(X ).

Section 4.6 The Gamma Distribution 267

4.6 The Gamma Distribution Suppose a series of independent events are occurring at the constant rate of λ per unit time. If the random variable Y denotes the interval between consecutive occurrences, we know from Theorem 4.2.3 that fY (y) = λe−λy, y > 0. Equivalently, Y can be interpreted as the “waiting time” for the first occurrence. This section generalizes the Poisson/exponential relationship and focuses on the interval, or waiting time, required for the rth event to occur (see Figure 4.6.1).

Time 0 First

success

Y

Second success

rth success

Figure 4.6.1

Theorem 4.6.1

Suppose that Poisson events are occurring at the constant rate of λ per unit time. Let the random variable Y denote the waiting time for the rth event. Then Y has pdf fY (y), where

fY (y) = λ r

(r − 1)!y r−1e−λy, y > 0

Proof We will establish the formula for fY (y) by deriving and differentiating its cdf, FY (y). Let Y denote the waiting time to the rth occurrence. Then

FY (y) = P(Y ≤ y) = 1 − P(Y > y) = 1 − P(Fewer than r events occur in [0, y])

= 1 − r−1∑ k=0

e−λy (λy)k

k!

since the number of events that occur in the interval [0, y] is a Poisson random variable with parameter λy.

From Theorem 3.4.1,

fY (y) = F ′Y (y) = d

dy

[ 1 −

r−1∑ k=0

e−λy (λy)k

k!

]

= r−1∑ k=0

λe−λy (λy)k

k! −

r−1∑ k=1

λe−λy (λy)k−1

(k − 1)!

= r−1∑ k=0

λe−λy (λy)k

k! −

r−2∑ k=0

λe−λy (λy)k

k!

= λ r

(r − 1)!y r−1 e−λy, y > 0

Example 4.6.1

Engineers designing the next generation of space shuttles plan to include two fuel pumps—one active, the other in reserve. If the primary pump malfunctions, the sec- ond will automatically be brought on line.

268 Chapter 4 Special Distributions

Suppose a typical mission is expected to require that fuel be pumped for at most fifty hours. According to the manufacturer’s specifications, pumps are expected to fail once every one hundred hours (so λ = 0.01). What are the chances that such a fuel pump system would not remain functioning for the full fifty hours?

Let the random variable Y denote the time that will elapse before the second pump breaks down. According to Theorem 4.6.1, the pdf for Y has parameters r = 2 and λ = 0.01, and we can write

fY (y) = (0.01) 2

1! ye−0.01y, y > 0

Therefore,

P(System fails to last for fifty hours) = ∫ 50

0 0.0001ye−0.01y dy

= ∫ 0.50

0 ue−u du

where u = 0.01y. The probability, then, that the primary pump and its backup would not remain operable for the targeted fifty hours is 0.09:

∫ 0.50 0

ue−u du = (−u − 1)e−u∣∣0.50u=0 = 0.09

GENERALIZING THE WAITING TIME DISTRIBUTION

By virtue of Theorem 4.6.1, ∫∞

0 y r−1e−λy dy converges for any integer r > 0. But

the convergence also holds for any real number r > 0, because for any such r there will be an integer t > r and

∫∞ 0 y

r−1e−λy dy ≤ ∫∞0 yt−1 e−λy dy < ∞. The finiteness of∫∞ 0 y

r−1e−λy dy justifies the consideration of a related definite integral, one that was first studied by Euler, but named by Legendre.

Definition 4.6.1 For any real number r > 0, the gamma function of r is denoted �(r), where

�(r) = ∫ ∞

0 yr−1e−y dy

Theorem 4.6.2

Let �(r) = ∫∞0 yr−1e−y dy for any real number r > 1. Then a. �(1) = 1 b. �(r) = (r − 1)�(r − 1) c. If r is an integer, then �(r) = (r − 1)!

Proof

a. �(1) = ∫∞0 y1−1 e−y dy = ∫∞0 e−y dy = 1

Section 4.6 The Gamma Distribution 269

b. Integrate the gamma function by parts. Let u = yr−1 and dv = e−y. Then∫ ∞ 0

yr−1 e−y dy = −yr−1 e−y∣∣∞0 + ∫ ∞

0 (r − 1)yr−2 e−y dy

= (r − 1) ∫ ∞

0 yr−2 e−y dy = (r − 1)�(r − 1)

c. Use part (2) as the basis for an induction argument. The details will be left as an exercise.

Definition 4.6.2 Given real numbers r > 0 and λ > 0, the random variable Y is said to have the gamma pdf with parameters r and λ if

fY (y) = λ r

�(r) yr−1 e−λy, y ≥ 0

Comment To justify Definition 4.6.2 requires a proof that fY (y) integrates to 1. Let u = λy. Then∫ ∞

0

λr

�(r) yr−1e−λydy = λ

r

�(r)

∫ ∞ 0

(u λ

)r−1 e−u

1 λ

du

= 1 �(r)

∫ ∞ 0

ur−1e−udu = 1 �(r)

�(r) = 1

Theorem 4.6.3

Suppose that Y has a gamma pdf with parameters r and λ. Then

a. E(Y) = r/λ b. Var(Y) = r/λ2

Proof

a. E(Y) = ∫ ∞

0 y

λr

�(r) yr−1e−λy dy = λ

r

�(r)

∫ ∞ 0

yre−λy dy

= λ r

�(r) �(r + 1)

λr+1

∫ ∞ 0

λr+1

�(r + 1)y re−λy dy

= λ r

�(r) r�(r) λr+1

(1) = r/λ b. A calculation similar to the integration carried out in part (1) shows that

E(Y 2) = r(r + 1)/λ2. Then Var(Y) = E(Y 2) − [E(Y)]2

= r(r + 1)/λ2 − (r/λ)2

= r/λ2

SUMS OF GAMMA RANDOM VARIABLES

We have already seen that certain random variables satisfy an additive property that “reproduces” the pdf—the sum of two independent binomial random variables with

270 Chapter 4 Special Distributions

the same p, for example, is binomial (recall Example 3.8.2). Similarly, the sum of two independent Poissons is Poisson, and the sum of two independent normals is normal. That said, most random variables are not additive. The sum of two independent uni- forms is not uniform; the sum of two independent exponentials is not exponential; and so on. Gamma random variables belong to the short list making up the first category.

Theorem 4.6.4

Suppose U has the gamma pdf with parameters r and λ, V has the gamma pdf with parameters s and λ, and U and V are independent. Then U + V has a gamma pdf with parameters r + s and λ. Proof The pdf of the sum is the convolution integral

fU+V (t) = ∫ ∞

−∞ fU (u) fV (t − u) du

= ∫ t

0

λr

�(r) ur−1 e−λu

λs

�(s) (t − u)s−1 e−λ(t−u) du

= e−λt λ r+s

�(r)�(s)

∫ t 0

ur−1(t − u)s−1 du

Make the substitution v = u/t. Then the integral becomes

tr−1 ts−1 t ∫ 1

0 vr−1(1 − v)s−1 dv = tr+s−1

∫ 1 0

vr−1(1 − v)s−1 dv

and

fU+V (t) = λr+s tr+s−1 e−λt [

1 �(r)�(s)

∫ 1 0

vr−1 (1 − v)s−1 dv ]

(4.6.1)

The numerical value of the constant in brackets in Equation 4.6.1 is not immedi- ately obvious, but the factors in front of the brackets correspond to the functional part of a gamma pdf with parameters r + s and λ. It follows, then, that fU+V (t) must be that particular gamma pdf. It also follows that the constant in brackets must equal 1/�(r + s) (to comply with Definition 4.6.2), so, as a “bonus” identity, Equation 4.6.1 implies that∫ 1

0 vr−1(1 − v)s−1 dv = �(r)�(s)

�(r + s)

Theorem 4.6.5

If Y has a gamma pdf with parameters r and λ, then MY (t) = (1 − t/λ)−r. Proof

MY (t) = E(etY ) = ∫ ∞

0 ety

λr

�(r) yr−1 e−λy dy = λ

r

�(r)

∫ ∞ 0

yr−1 e−(λ−t)y dy

= λ r

�(r) �(r)

(λ − t)r ∫ ∞

0

(λ − t)r �(r)

yr−1 e−(λ−t)y dy

= λ r

(λ − t)r (1) = (1 − t/λ) −r

Comment The generalized gamma pdf of Definition 4.6.2 plays a major role in the chapters ahead but under a different name. Among the most common of all statistical analyses are procedures known as χ2 (chi square) tests, which are based on a pdf

Section 4.7 Taking a Second Look at Statistics (Monte Carlo Simulations) 271

referred to as the χ2 distribution. But the latter is simply a special case of the gamma pdf where λ = 12 , r = m/2, and m is a positive integer.

Questions

4.6.1. An Arctic weather station has three electronic wind gauges. Only one is used at any given time. The lifetime of each gauge is exponentially distributed with a mean of one thousand hours. What is the pdf of Y , the random variable measuring the time until the last gauge wears out?

4.6.2. A service contact on a new university computer sys- tem provides twenty-four free repair calls from a techni- cian. Suppose the technician is required, on the average, three times a month. What is the average time it will take for the service contract to be fulfilled?

4.6.3. Suppose a set of measurements Y1,Y2, . . . ,Y100 is taken from a gamma pdf for which E(Y) = 1.5 and Var(Y) = 0.75. How many Yi’s would you expect to find in the interval [1.0, 2.5]?

4.6.4. Demonstrate that λ plays the role of a scale param- eter by showing that if Y is gamma with parameters r and λ, then λY is gamma with parameters r and 1.

4.6.5. Show that a gamma pdf has the unique mode r−1 λ

; that is, show that the function fY (y) = λr

�(r) yr−1e−λy

takes its maximum value at ymode = r−1λ and at no other point.

4.6.6. Prove that � ( 1

2

) = √π. (Hint: Consider E(Z2), where Z is a standard normal random variable.)

4.6.7. Show that � ( 7

2

) = 158 √π. 4.6.8. If the random variable Y has the gamma pdf with integer parameter r and arbitrary λ > 0, show that

E(Y m) = (m + r − 1)! (r − 1)!λm

(Hint: Use the fact that ∫∞

0 y r−1e−y dy = (r − 1)! when r

is a positive integer.)

4.6.9. Differentiate the gamma moment-generating func- tion to verify the formulas for E(Y) and Var(Y) given in Theorem 4.6.3.

4.6.10. Differentiate the gamma moment-generating function to show that the formula for E(Y m) given in Question 4.6.8 holds for arbitrary r > 0.

4.7 Taking a Second Look at Statistics (Monte Carlo Simulations)

Calculating probabilities associated with (1) single random variables and (2) func- tions of sets of random variables has been the overarching theme of Chapters 3 and 4. Facilitating those computations has been a variety of transformations, summa- tion properties, and mathematical relationships linking one pdf with another. Col- lectively, these results are enormously effective. Sometimes, though, the intrinsic complexity of a random variable overwhelms our ability to model its probabilistic behavior in any formal or precise way. An alternative in those situations is to use a computer to draw random samples from one or more distributions that model por- tions of the random variable’s behavior. If a large enough number of such samples is generated, a histogram (or density-scaled histogram) can be constructed that will accurately reflect the random variable’s true (but unknown) distribution. Sampling “experiments” of this sort are known as Monte Carlo studies.

Real-life situations where a Monte Carlo analysis could be helpful are not dif- ficult to imagine. Suppose, for instance, you just bought a state-of-the-art, high- definition, plasma screen television. In addition to the pricey initial cost, an optional warranty is available that covers all repairs made during the first two years. Accord- ing to an independent laboratory’s reliability study, this particular television is likely to require 0.75 service calls per year, on the average. Moreover, the costs of service calls are expected to be normally distributed with a mean (μ) of $100 and a standard deviation (σ) of $20. If the warranty sells for $200, should you buy it?

272 Chapter 4 Special Distributions

Like any insurance policy, a warranty may or may not be a good investment, depending on what events unfold, and when. Here the relevant random variable is W , the total amount spent on repair calls during the first two years. For any particular customer, the value of W will depend on (1) the number of repairs needed in the first two years and (2) the cost of each repair. Although we have reliability and cost assumptions that address (1) and (2), the two-year limit on the warranty introduces a complexity that goes beyond what we have learned in Chapters 3 and 4. What remains is the option of using random samples to simulate the repair costs that might accrue during those first two years.

Note, first, that it would not be unreasonable to assume that the service calls are Poisson events (occurring at the rate of 0.75 per year). If that were the case, Theorem 4.2.3 implies that the interval, Y , between successive repair calls would have an exponential distribution with pdf

fY (y) = 0.75e−0.75y, y > 0 (see Figure 4.7.1). Moreover, if the random variable C denotes the cost associated with a particular maintenance call, then,

fC(c) = 1√ 2π(20)

e− (

1 2

) [(c−100)/20]2

, −∞ < c < ∞

See Figure 4.7.2.

0.8 Distribution of intervals (in years) between repairs0.6

0.4

0.2

10 2 3 4

f (y)Y

y

Figure 4.7.1

c m

=

s = 20 f (c)C

100

m – 3s

=

40

m + 3s

=

160

Distribution of costs (in $) for a repair visit

Figure 4.7.2

SIMULATING REPAIR COST SCENARIOS

Every statistical software package has a subroutine for generating random observa- tions from any of the frequently-encountered pdfs, discrete or continuous. All that needs to be entered are 1) the name of the pdf, 2) a value assigned to its parameters, and 3) the number of observations to be generated.

Figure 4.7.3 shows three sets of MINITAB commands that simulate a sequence of repair visits that would be covered (or not covered) by the two-year warranty.

Section 4.7 Taking a Second Look at Statistics (Monte Carlo Simulations) 273

MTB>random 1 c1; MTB>random 1 c1; MTB>random 1 c1; SUBC> exponential 1.33. SUBC>exponential 1.33. SUBC>exponential 1.33. MTB>print c1 MTB>print c1 MTB>print c1 Data display Data display Data display

c1 c1 c1 1.5988 0.284931 1.46394

0.8

0.6

0.4

0.2

10 2 3

f (y)Y

0.8

0.6

0.4

0.2

10 2 3

f (y)Y

0.8

0.6

0.4

0.2

10 2 3

f (y)Y

Figure 4.7.3 (Courtesy of Minitab Corporation.)

The first number generated—1.5988 years (or 423 days)—corresponds to the interval between the purchase date and the first repair visit. The second number generated—0.284931 years (or 104 days)—corresponds to the second visit occurring 104 days later. The latter is still covered because

423 days + 104 days = 527 days falls within the two-year (= 730 days) warranty period. On the other hand, the third number generated—1.46394 years (or 534 days)—would correspond to a repair visit not covered (see Figure 4.7.4)

Third breakdown (y = 1.46394) repair cost not covered

First breakdown (y = 1.15988) repair cost = $127.20

Second breakdown (y = 0.284931) repair cost = $98.67

Time after purchase (days)

423 days 104 days 534 days

Purchase day

365 730 Warranty ends

Figure 4.7.4 (Courtesy of Minitab Corporation.)

The next step in the simulation is to generate two observations from fC(c) that would model the costs of the two repairs that occurred during the warranty period. Figure 4.7.5 shows the appropriate MINITAB syntax. The two numbers produced, 127.199 and 98.6673, correspond to bills of $127.20 and $98.67, respectively. For this particular scenario, then, the warranty would have been a good investment since $127.20 + $98.67 > $200.00. MTB>random 1 c1; MTB>random 1 c1; SUBC>normal 100 20. SUBC>normal 100 20. MTB>print c1 MTB>print c1 Data display Data display

c1 c1 127.199 98.6673

c 60 100

0.01

140

f (c)C

c 60 100

0.01

140

f (c)C

Figure 4.7.5

274 Chapter 4 Special Distributions

The final step in the Monte Carlo analysis is to repeat many times the sampling process that led to Figure 4.7.4—that is, to generate a series of yi’s whose sum (in days) is less than or equal to 730, and for each yi in that sample, to generate a corresponding cost, ci. The sum of those ci’s becomes a simulated value of the maintenance cost random variable, W .

The histogram in Figure 4.7.6 shows the the distribution of repair costs incurred in one hundred simulated two-year periods, one being the sequence of events that unfolded in Figure 4.7.5. There is much the histogram tells us. First of all (and not surprisingly), the warranty costs more than either the median repair bill (= $117.00) or the mean repair bill (= $159.10).

25

20

15

10

5

0 $100 $200 $300 $400 $500 $600

Warranty cost ($200) Simulated repair costs

Fr eq

ue nc

y m = $117.00

y = $159.10

Figure 4.7.6

The customer, in other words, will tend to lose money on the optional protection, and the company will tend to make money. That said, a full 33% of the simulated two- year breakdown scenarios led to repair bills in excess of $200, including 6% that were more than twice the cost of the warranty. At the other extreme, 24% of the samples produced no maintenance problems whatsoever; for those customers, the $200 spent up front was totally wasted.

So, should you buy the warranty? Yes, if you feel the need to have a financial cushion to offset the (small) probability of experiencing exceptionally bad luck; no, if you can afford to absorb an occasional big loss.

Appendix 4.A.1 Properties of Frequently-Used pdfs

Discrete models

1. Binomial Given: n independent trials, each having probability p of success

Let X = number of successes pX (k) = P(k successes occur in n trials)

= (

n k

) pk(1 − p)n−k, k = 0, 1, . . . , n

E(X ) = np Var(X ) = np(1 − p)

MX (t) = (1 − p + pet)n

Appendix 4.A.1 A Properties of Frequently-Used pdfs 275

2. Geometric Given: n independent trials, each having probability p of success

Let X = trial where first success occurs pX (k) = P(First success occurs on kth trial)

= (1 − p)k−1 p, k = 1, 2, . . . E(X ) = 1/p

Var(X ) = (1 − p)/p2

MX (t) = (pet)/[1 − (1 − p)et ]

3. Hypergeometric Given: r red chips and w white chips, where r+w = N. Choose n chips without replacement

Let X = number of red chips in sample pX (k) = P(Sample contains exactly k red chips)

= [(

r k

)( w

n − k )]/ (

N n

) E(X ) = rn/(r + w)

Var(X ) = np(1 − p)[(N − n)/(N − 1)], where p = r/N

4. Negative binomial Given: n independent trials, each having probability p of success

Let X = trial where rth success occurs pX (k) = P(rth success occurs on kth trial)

= (

k − 1 r − 1

) pr(1 − p)k−r, k = r, r + 1, r + 2, . . .

E(X ) = r/p Var(X ) = [r(1 − p)]/p2

MX (t) = [(pet)/(1 − (1 − p)et)]r

5. Poisson Given: a series of events occurring independently at a constant rate of λ per unit time (or volume or space)

Let X = number of occurrences in unit time (or volume or space) pX (k) = P(k events occur in unit time (or volume or space))

= e−λλk/k!, k = 0, 1, 2, . . . E(X ) = λ

Var(X ) = λ MX (t) = e−λ+λet

276 Chapter 4 Special Distributions

Continuous

6. Exponential

fY (y) = λe−λy, y > 0 E(Y) = 1/λ

Var(Y) = 1/λ2

MY (t) = λ/(λ − t) 7. Gamma

fY (y) = (λr/�(r))yr−1e−λy, y > 0 E(Y) = r/λ

Var(Y) = r/λ2

MY (t) = (1 − t/λ)−r

8. Normal

fY (y) = 1√ 2πσ

e− 1 2 (

y−μ σ

)2 ,−∞ < y < ∞

E(Y) = μ Var(Y) = σ2

MY (t) = eμt+σ2t2/2

Note: Z = Y−μ σ

is referred to as a standard normal

9. Uniform

fY (y) = 1/θ, 0 ≤ y ≤ θ E(Y) = θ/2

Var(Y) = θ2/12

Appendix 4.A.2 A Proof of the Central Limit Theorem

Proving Theorem 4.3.2 in its full generality is beyond the level of this text. However, we can establish a slightly weaker version of the result by assuming that the moment- generating function of each Wi exists.

Lemma Let W1, W2, . . . be a set of random variables such that lim n→∞ MWn (t) = MW (t) for all

t in some interval about 0. Then lim n→∞ FWn (w) = FW (w) for all −∞ < w < ∞.

To prove the Central Limit Theorem using moment-generating functions re- quires showing that

lim n→∞ M(W1+···+Wn−nμ)/(

√ nσ)(t) = MZ(t) = et

2/2

For notational simplicity, let

W1 + · · · + Wn − nμ√ nσ

= S1 + · · · + Sn√ n

Appendix 4.A.2 A Proof of the Central Limit Theorem 277

where Si = (Wi − μ)/σ. Notice that E(Si) = 0 and Var(Si) = 1. Moreover, from Theorem 3.12.3,

M(S1+···+Sn)/ √

n(t) = [

M (

t√ n

)]n where M(t) denotes the moment-generating function common to each of the Si’s.

By virtue of the way the Si’s are defined, M(0) = 1, M(1)(0) = E(Si) = 0, and M(2)(0) = Var(Si) = 1. Applying Taylor’s theorem, then, to M(t), we can write

M(t) = 1 + M(1)(0)t + 1 2

M(2)(r)t2 = 1 + 1 2

t2M(2)(r)

for some number r, |r| < |t|. Thus

lim n→∞

[ M (

t√ n

)]n = lim

n→∞

[ 1 + t

2

2n M(2)(s)

]n , |s| < |t|√

n

= exp lim n→∞ n ln

[ 1 + t

2

2n M(2)(s)

]

= exp lim n→∞

t2

2 · M(2)(s) ·

ln [ 1 + t22n M(2)(s)

] − ln(1)

t2 2n M

(2)(s)

The existence of M(t) implies the existence of all its derivatives. In particular, M(3)(t) exists, so M(2)(t) is continuous. Therefore, lim

t→0 M(2)(t) = M(2)(0) = 1. Since

|s| < |t| /√n, s → 0 as n → ∞, so lim

n→∞ M (2)(s) = M(2)(0) = 1

Also, as n → ∞, the quantity (t2/2n)M(2)(s) → 0 · 1 = 0, so it plays the role of “�x” in the definition of the derivative. Hence we obtain

lim n→∞

[ M (

t√ n

)]n = exp t

2

2 · 1 · ln(1)(1) = e(1/2)t2

Since this last expression is the moment-generating function for a standard normal random variable, the theorem is proved.

Chapte r

5Estimation CHAPTER OUTLINE

5.1 Introduction 5.2 Estimating

Parameters: The Method of Maximum Likelihood and the Method of Moments

5.3 Interval Estimation 5.4 Properties of

Estimators 5.5 Minimum-Variance

Estimators: The Cramér-Rao Lower Bound

5.6 Sufficient Estimators 5.7 Consistency 5.8 Bayesian Estimation 5.9 Taking a Second

Look at Statistics (Beyond Classical Estimation)

A towering figure in the development of both applied and mathematical statistics, Ronald A. Fisher (1890–1962) had formal training in mathematics and theoretical physics, graduating from Cambridge in 1912. After a brief career as a teacher, he accepted a post in 1919 as statistician at the Rothamsted Experimental Station. There, the day-to-day problems he encountered in collecting and interpreting agricultural data led directly to much of his most important work in the theory of estimation and experimental design. Fisher was also a prominent geneticist and devoted considerable time to the development of a quantitative argument that would support Darwin’s theory of natural selection. He returned to academia in 1933, succeeding Karl Pearson as the Galton Professor of Eugenics at the University of London. Fisher was knighted in 1952.

5.1 INTRODUCTION The ability of probability functions to describe, or model, experimental data was demonstrated in numerous examples in Chapter 4. In Section 4.2, for example, the Poisson distribution was shown to predict very well the number of alpha emissions from a radioactive source as well as the number of wars starting in a given year. In Section 4.3 another probability model, the normal curve, was applied to phenom- ena as diverse as breath analyzer readings and IQ scores. Other models illustrated in Chapter 4 included the exponential, negative binomial, and gamma distributions.

All of these probability functions, of course, are actually families of models in the sense that each includes one or more parameters. The Poisson model, for instance, is indexed by the occurrence rate, λ. Changing λ changes the probabilities associated with pX (k) [see Figure 5.1.1, which compares pX (k) = e−λλk/k!, k = 0, 1, 2, . . ., for λ = 1 and λ = 4]. Similarly, the binomial model is defined in terms of the success probability p; the normal distribution, by the two parameters μ and σ.

86420

p (k)X l = 1

0.3

0.4

0.2

0

0.1

864 121020

p (k)X l = 4

0.3

0.4

0.2

0

0.1

k k

Figure 5.1.1

278

Section 5.1 Introduction 279

Before any of these models can be applied, values need to be assigned to their parameters. Typically, this is done by taking a random sample (of n observations) and using those measurements to estimate the unknown parameter(s).

Example 5.1.1

Imagine being handed a coin whose probability, p, of coming up heads is unknown. Your assignment is to toss the coin three times and use the resulting sequence of H’s and T’s to suggest a value for p. Suppose the sequence of three tosses turns out to be HHT. Based on those outcomes, what can be reasonably inferred about p?

The common sense (and correct) answer is to “guess” that p = 2/3. But what general principle does “2/3” represent that could be brought to bear in situations where the appropriate guess is not obvious? Here, start by defining the random vari- able X to be the number of heads on a given toss. Then

X = {

1 if a toss comes up heads 0 if a toss comes up tails

and the theoretical probability model for X is the function

pX (k) = pk(1 − p)1−k = {

p for k = 1 1 − p for k = 0

Expressed in terms of X , the sequence HHT corresponds to a sample of size n = 3, where X1 = 1, X2 = 1, and X3 = 0.

Since the Xi’s are independent random variables, the probability associated with the sample is p2(1 − p):

P(X1 = 1 ∩ X2 = 1 ∩ X3 = 0) = P(X1 = 1) · P(X2 = 1) · P(X3 = 0) = p2(1 − p)

Knowing that our objective is to identify a plausible value (i.e., an “estimate”) for p, it could be argued that a reasonable choice for that parameter would be the value that maximizes the probability of the sample. Figure 5.1.2 shows P(X1 = 1, X2 = 1, X3 = 0) as a function of p. By inspection, we see that the value that maximizes the probability of HHT is p = 23 .

p =

1.00.2 0.4 0.6 0.8

0.08

0.12

0.16

0.04

0 p

2 3

p (

1 –

p) 2

p (1 – p)2

Figure 5.1.2

More generally, suppose we toss the coin n times and record a set of outcomes X1 = k1, X2 = k2, . . . , and Xn = kn. Then

P(X1 = k1, X2 = k2, . . . , Xn = kn) = pk1 (1 − p)1−k1 . . . pkn (1 − p)1−kn

= p n∑

i=1 ki

(1 − p)n− n∑

i=1 ki

280 Chapter 5 Estimation

The value of p that maximizes P(X1 = k1, . . . , Xn = kn) is, of course, the value for which the derivative of p

n∑ i=1

ki (1 − p)n−

n∑ i=1

ki with respect to p is 0. But

d/dp

[ p

n∑ i=1

ki (1 − p)n−

n∑ i=1

ki ]

= n∑

i=1 ki

[ p

n∑ i=1

ki−1 (1 − p)n−

n∑ i=1

ki ]

+ [

n∑ i=1

ki − n ]

p

n∑ i=1

ki (1 − p)n−

n∑ i=1

ki−1 (5.1.1)

If the derivative is set equal to zero, Equation 5.1.1 reduces to n∑

i=1 ki(1 − p) +

( n∑ i=1

ki − n )

p = 0

Solving for p identifies ( 1 n

) n∑ i=1

ki

as the value of the parameter that is most consistent with the n observations k1, k2, . . ., kn.

Comment Any function of a random sample whose objective is to approximate a parameter is called a statistic, or an estimator. If θ is the parameter being approxi- mated, its estimator will be denoted θ̂. When an estimator is evaluated (by substitut- ing the actual measurements recorded), the resulting number is called an estimate.

In Example 5.1.1, the function ( 1

n

) n∑ i=1

Xi is an estimator for p; the value 23 that is

calculated when the n = 3 observations are X1 = 1, X2 = 1, and X3 = 0 is an esti- mate of p. More specifically,

( 1 n

) n∑ i=1

Xi is a maximum likelihood estimator (for p) and

2 3

[ = ( 1n) n∑

i=1 ki =

( 1 3

) (2)

] is a maximum likelihood estimate (for p).

In this chapter, we look at some of the practical, as well as the mathematical, issues involved in the problem of estimating parameters. How is the functional form of an estimator determined? What statistical properties does a given estimator have? What properties would we like an estimator to have? As we answer these questions, our focus will begin to shift away from the study of probability and toward the study of statistics.

5.2 Estimating Parameters: The Method of Maximum Likelihood and the Method of Moments

Suppose Y1, Y2, . . . , Yn is a random sample from a continuous pdf fY (y) whose un- known parameter is θ. [Note: To emphasize that our focus is on the parameter, we will identify continuous pdfs in this chapter as fY (y; θ); similarly, discrete probability models with an unknown parameter θ will be denoted pX (k; θ)]. The question is, how should we use the data to approximate θ?

In Example 5.1.1, we saw that the parameter p in the discrete probability model pX (k; p) = pk(1 − p)1−k, k = 0, 1 could be estimated reasonably by the function

Section 5.2 Estimating Parameters 281

( 1 n

) n∑ i=1

ki, based on the random sample X1 = k1, X2 = k2, . . . , Xn = kn. How would the form of the estimate change if the data came from, say, an exponential distribu- tion? Or a Poisson distribution?

In this section we introduce two techniques for finding estimates—the method of maximum likelihood and the method of moments. Others are available, but these are the two that are used the most widely. Often, but not always, they give the same answer.

THE METHOD OF MAXIMUM LIKELIHOOD

The basic idea behind maximum likelihood estimation is the rationale that was ap- pealed to in Example 5.1.1. That is, it seems plausible to choose as the estimate for θ the value of the parameter that maximizes the “likelihood” of the sample. The latter is measured by a likelihood function, which is simply the product of the underlying pdf evaluated for each of the data points. In Example 5.1.1, the likelihood function for the sample HHT (i.e., for X1 = 1, X2 = 1, and X3 = 0) is the product p2(1 − p).

Definition 5.2.1 Let k1, k2, . . . , kn be a random sample of size n from the discrete pdf pX (k; θ), where θ is an unknown parameter. The likelihood function, L(θ), is the product of the pdf evaluated at the n ki’s. That is,

L(θ) = n∏

i=1 pX (ki; θ)

If y1, y2, . . . , yn is a random sample of size n from a continuous pdf, fY (y; θ), where θ is an unknown parameter, the likelihood function is written

L(θ) = n∏

i=1 fY (yi; θ)

Comment Joint pdfs and likelihood functions look the same, but the two are inter- preted differently. A joint pdf defined for a set of n random variables is a multivariate function of the values of those n random variables, either k1, k2, . . . , kn or y1, y2, . . . , yn. By contrast, L is a function of θ; it should not be considered a function of either the ki’s or the yi’s.

Definition 5.2.2 Let L(θ) =

n∏ i=1

pX (ki; θ) and L(θ) = n∏

i=1 fY (yi; θ) be the likelihood functions

corresponding to random samples k1, k2, . . ., kn and y1, y2, . . . , yn drawn from the discrete pdf pX (k; θ) and continuous pdf fY (y; θ), respectively, where θ is an unknown parameter. In each case, let θe be a value of the parameter such that L(θe) ≥ L(θ) for all possible values of θ. Then θe is called a maximum likelihood estimate for θ.

APPLYING THE METHOD OF MAXIMUM LIKELIHOOD

We will see in Example 5.2.1 and many subsequent examples that finding the θe that maximizes a likelihood function is often an exercise in differentiation. Specifically,

282 Chapter 5 Estimation

we solve the equation ddθL(θ) = 0 for θ. In some cases, a more tractable equation results by setting the derivative of ln L(θ) equal to 0. Since ln L(θ) increases with L(θ), the same θe that maximizes ln L(θ) also maximizes L(θ).

Example 5.2.1

Recall Case Study 4.2.2. Summarized in Table 4.2.3 are the numbers of α–particles emitted by a radioactive polonium source in a series of 1/8-minute intervals. It was postulated that X , the number of α–particles counted in a given such interval, would follow a Poisson distribution, pX (k) = e−λλk/k!, k = 0, 1, 2, . . ., where the pdf’s unknown parameter λ is set equal to the distribution’s sample mean—in this case, k = 3.87. Justifying that substitution is the derivation given in this example, showing that k is, in fact, the maximum likelihood estimate for λ.

Let X1 = k1, X2 = k2, . . . , Xn = kn be a random sample of size n from the Poisson pdf, pX (k) = e−λλk/k!, k = 0, 1, 2, . . ., where λ is unknown. From Definition 5.2.2, the sample’s likelihood function is the product

L(λ) = n∏

i=1 e−λ

λki

ki! = e−nλλ

n∑ i=1

ki 1 n∏

i=1 ki!

Also, ln L(λ) and d/dλ[ln L(λ)]—which will be easier to work with than L(λ) and d/dλ[L(λ)]—are given by

ln L(λ) = −nλ + (

n∑ i=1

ki

) ln λ − ln

n∏ i=1

ki!

and

d ln L(λ) dλ

= −n +

n∑ i=1

ki

λ

Setting the derivative of ln L(λ) equal to 0 gives

−n +

n∑ i=1

ki

λ = 0

which implies that λe = n∑

i=1 ki

n = k.

Comment Notice that the second derivative of ln L(λ) is −λ−2 n∑

i=1 ki, which is neg-

ative for all λ, so λe = k is the one and only maximum of the likelihood function. As was the case in Example 5.2.1, the parameter value where d ln L(θ)dθ vanishes often gives the unique maximum. In most cases, checking this using standard methods of calculus is straightforward.

Example 5.2.2

Suppose a weather-reporting station has an electronic wind speed monitor whose time to failure is known to follow an exponential model 1

θ e−1/θ, 0 < θ < ∞. Let Y1

be the time until the monitor fails to work. The station also has a backup monitor; let Y2 be the time until this second monitor fails. Thus, the time Y until the monitoring is out of commission is the sum of two independent exponential random variables, Y1 and Y2. But Y = Y1 + Y2 has a gamma pdf (recall Theorem 4.6.4), so fY (y; θ) = 1 θ2

ye−y/θ, 0 ≤ y < ∞; 0 < θ < ∞. Five data points have been collected—9.2, 5.6, 18.4, 12.1, and 10.7. Find the

maximum likelihood estimate for θ.

Section 5.2 Estimating Parameters 283

Following the method of Example 5.2.1, we begin by deriving a general formula for θe—that is, by assuming that the data are the n observations y1, y2, . . . , yn of Y . The likelihood function then becomes

L(θ) = n∏

i=1

1 θ2

yie−yi/θ

= θ−2n (

n∏ i=1

yi

) e −(1/θ)

n∑ i=1

yi

and

ln L(θ) = −2n ln θ + ln (

n∏ i=1

yi

) − 1

θ

n∑ i=1

yi

Setting the derivative of ln L(θ) equal to 0 gives

d ln L(θ) dθ

= −2n θ

+ 1 θ2

n∑ i=1

yi = 0

which implies that

θe = 12n n∑

i=1 yi

The final step is to evaluate numerically the formula for θe. Substituting the actual

n = 5 sample values recorded gives 5∑

i=1 yi = 9.2 + 5.6 + 18.4 + 12.1 + 10.7 = 56.0, so

θe = 12(5)(56.0) = 5.6

CASE STUDY 5.2.1

Each evening, the media report various averages and indices that are presented as portraying the state of the stock market. But do they? Are these numbers con- veying any really useful information? Some financial analysts would say “no,” arguing that speculative markets tend to rise and fall randomly, as though some hidden roulette wheel were spinning out the figures.

One way to test this theory is to model the up-and-down behavior of the markets as a geometric random variable. If this model were to fit, we would be able to argue that the market doesn’t use yesterday’s history to “decide” whether to rise or fall the next day, nor does this history change the probability p of a rise or 1 − p of a fall the following day.

So, suppose that on a given Day 0 the market rose and the following Day 1 it fell. Let the geometric random variable X represent the number of days the market falls (failures) before it rises again (a success). For example, if on Day 2 the market rises, then X = 1. In that case pX (1) = p. If the market declines on Days 2, 3, and 4, and then rises on Day 5, X = 4 and pX (4) = (1 − p)3 p.

This model can be examined by comparing the theoretical distribution for pX(k) to what is observed in a speculative market. However, to do so, the param- eter p must be estimated. The maximum likelihood estimate will prove a good

(Continued on next page)

284 Chapter 5 Estimation

(Case Study 5.2.1 continued)

choice. Suppose a random sample from the geometric distribution, k1, k2, . . . , kn, is given. Then

L(p) = n∏

i=1 pX (ki) =

n∏ i=1

(1 − p)ki−1 p = (1 − p) n∑

i=1 ki−n

pn

and

ln L(p) = ln [

(1 − p) n∑

i=1 ki−n

pn ]

= (

n∑ i=1

ki − n )

ln(1 − p) + n ln p

Setting the derivative of ln L(p) equal to 0 gives the equation

n∑ i=1

ki − n 1 − p +

n p

= 0 or, equivalently, (

n − n∑

i=1 ki

) p + n(1 − p) = 0

Solving this equation gives pe = n/ n∑

i=1 ki = 1/k.

Now, turning to a data set in Table 5.2.1 to compare to the geometric model, we employ the widely used closing Dow Jones average for the years 2006 and 2007. The first column gives the value of k, the argument of the random variable X . Column 2 presents the number of times X = k in the data set.

Table 5.2.1

k Observed Frequency Expected Frequency

1 72 74.14 2 35 31.20 3 11 13.13 4 6 5.52 5 2 2.32 6 2 1.69

Data from: finance.yahoo.com/of/hp.s=%SEDJI.

Note that the Observer Frequency column totals 128, which is n in the formula above for pe. From the table, we obtain

n∑ i=1

ki = 1 (72) + 2 (35) + 3 (11) + 4 (6) + 5 (2) + 6 (2) = 221

Then pe = 128/221 = 0.5792. Using this value, the estimated probability of, for example, pX (2) = (1 − 0.5792)(0.5792) = 0.2437. If the model gives the proba- bility of k = 2 to be 0.2437, then it seems reasonable to expect to see n(0.2437) = 128(0.2437) = 31.20 occurrences of X = 2. This is the second entry in the Ex- pected Frequency column of the table. The other expected values are calculated similarly, except for the value corresponding to k = 6. In that case, we fill in whatever value makes the expected frequencies sum to n = 128.

The close agreement between the Observed and Expected Frequency columns argues for the validity of the geometric model, using the maximum like- lihood estimate. This suggests that the stock market doesn’t remember yesterday.

Section 5.2 Estimating Parameters 285

Example 5.2.3

In trying to model a set of data with a Poisson pdf, pX (k) = e−λ λkk! , k = 0, 1, 2, . . ., it will sometimes be the case that the value k = 0 cannot occur, or there are too many zeroes for a good data model (called zero-inflated data). Accommodating that restriction leads to a definition of a truncated Poisson pdf—call it pXT (k)—where the values of k are limited to the integers 1, 2, 3, . . .

Eliminating X = 0, though, surely has its consequences, and two questions im- mediately arise: (1) What is the functional form of pXT (k)? and (2) How does the maximum likelihood estimator for λ change?

(1) Deleting X = 0 removes P(X = 0) = e−λ λ00! = e−λ, so ∞∑

k=1 e−λ λ

k

k! = 1 − e−λ

Now, divide both sides by 1 − e−λ to give ∞∑

k=1 e−λ λ

k

(1−e−λ)k! = 1, so the pdf for the truncated Poisson is pXT (k) = e

−λλk (1−e−λ)k! = λ

k

(eλ−1)k! , k = 1, 2, 3, . . . (2) Suppose k1, k2, . . . , kn is a random sample from the truncated Poisson. To cal-

culate the maximum likelihood estimator for λ, calculate the likelihood func- tion as

L(λ) = n∏

i=1

λki

(eλ − 1)ki! = λ

n∑ i=1

ki

(eλ − 1)n n∏

i=1 ki!

Then ln L(λ) = (

n∑ i=1

ki

) ln(λ) − n ln(eλ − 1) −

( ln

n∏ i=1

ki!

) and

d ln L(λ) dλ

=

n∑ i=1

ki

λ − ne

λ

eλ − 1 . Setting d ln L(λ)

dλ = 0 gives the equation

λeλ

eλ − 1 = k. (5.2.1)

To obtain the maximum likelihood estimator for λ, Equation 5.2.1 can be solved by numerical methods, but trial-and-error is not particularly difficult.

It can be shown that the left hand side of Equation 5.2.1 is the expected value of a truncated Poisson random variable.

As an example of this concept, Table 5.2.2 gives the number of hurricanes per year, for years from 1950 to 2012, in which a hurricane occurred.

Table 5.2.2

Number of Hurricanes Observed Frequency

1 27 2 10 3 8 4 1 5 2 6 1

49

Data from: http://weather.unisys.com/hurricane/atlantic/index.php

Here the sample mean for these data is given by

k = 1(27) + 2(10) + 3(8) + 4(1) + 5(2) + 6(1) 49

= 1.86

286 Chapter 5 Estimation

Table 5.2.3

Number of Hurricanes Observed Frequency Expected Frequency

1 27 22.45 2 10 15.72 3 8 7.33 4+ 4 3.50

49 49.00

Then using Excel for a trial-and-error approach, an approximate solution for the equation λe

λ

(eλ−1) = k is λe = 1.40. The third column of Table 5.2.3 gives the estimated expected numbers using this value of the parameter. In such analyses, the values with small numbers of observed frequencies are usually combined to be at least five. So the table combines the values for 4, 5, and 6 into 4+. Also, the last ex- pected number is usually taken to make the sum of the estimated expected numbers equal to n, 49 in this case.

The technique of measuring how well a model fits data is given in Chapter 10. By that measure the truncated Poisson is considered an adequate fit for the data.

USING ORDER STATISTICS AS MAXIMUM LIKELIHOOD ESTIMATES

Situations exist for which the equations dL(θ)dθ = 0 or d ln L(θ)dθ = 0 are not meaningful and neither will yield a solution for θe. These occur when the range of the pdf from which the data are drawn is a function of the parameter being estimated. (This hap- pens, for instance, when the sample of yi’s come from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ.) The maximum likelihood estimates in these cases will be an order statis- tic, typically either ymin or ymax.

Example 5.2.4

Suppose y1, y2, . . ., yn is a set of measurements representing an exponential pdf with λ = 1 but with an unknown “threshold” parameter, θ. That is,

fY (y; θ) = e−(y−θ), y ≥ θ; θ > 0 (see Figure 5.2.1). Find the maximum likelihood estimate for θ.

y9u 1 y92 y9n y

f (y; u)Y

– (y – u)e

Figure 5.2.1

Proceeding in the usual fashion, we start by deriving an expression for the like- lihood function:

L(θ) = n∏

i=1 e−(yi−θ)

= e− n∑

i=1 yi+nθ

Section 5.2 Estimating Parameters 287

Here, finding θe by solving the equation d ln L(θ)

dθ = 0 will not work because d ln L(θ)dθ = d dθ

( −

n∑ i=1

yi + nθ )

= n. Instead, we need to look at the likelihood function directly.

Notice that L(θ) = e− n∑

i=1 yi+nθ

is maximized when the exponent of e is maximized.

But for given y1, y2, . . . , yn (and n), making − n∑

i=1 yi + nθ as large as possible requires

that θ be as large as possible. Figure 5.2.1 shows how large θ can be: It can be moved to the right only as far as the smallest order statistic. Any value of θ larger than ymin would violate the condition on fY (y; θ) that y ≥ θ. Therefore, θe = ymin.

FINDING MAXIMUM LIKELIHOOD ESTIMATES WHEN MORE THAN ONE PARAMETER IS UNKNOWN

If a family of probability models is indexed by two or more unknown parameters— say, θ1, θ2, . . ., θk—finding maximum likelihood estimates for the θi’s requires the so- lution of a set of k simultaneous equations. If k = 2, for example, we would typically need to solve the system

∂ ln L(θ1, θ2) ∂θ1

= 0

∂ ln L(θ1, θ2) ∂θ2

= 0

Example 5.2.5

Suppose a random sample of size n is drawn from the two-parameter normal pdf

fY (y; μ, σ2) = 1√ 2π

√ σ2

e− 1 2

(y−μ)2 σ2 −∞ < y < ∞; −∞ < μ < ∞; σ2 > 0

Use the method of maximum likelihood to find formulas for μe and σ2e. We start by finding L(μ, σ2) and ln L(μ, σ2):

L(μ, σ2) = n∏

i=1

1√ 2πσ

e− 1 2

(yi−μ)2 σ2

= (2πσ2)−n/2e− 1 2

1 σ2

n∑ i=1

(yi−μ)2

and

ln L(μ, σ2) = −n 2

ln(2πσ2) − 1 2

1 σ2

n∑ i=1

(yi − μ)2

Moreover,

∂ ln L(μ, σ2) ∂μ

= 1 σ2

n∑ i=1

(yi − μ)

and

∂ ln L(μ, σ2) ∂σ2

= −n 2

· 1 σ2

+ 1 2

( 1 σ2

)2 n∑ i=1

(yi − μ)2

Setting the two derivatives equal to zero gives the equations n∑

i=1 (yi − μ) = 0 (5.2.2)

288 Chapter 5 Estimation

and

−nσ2 + n∑

i=1 (yi − μ)2 = 0 (5.2.3)

Equation 5.2.2 simplifies to n∑

i=1 yi = nμ

which implies that μe = 1n n∑

i=1 yi = y. Substituting μe, then, into Equation 5.2.3 gives

−nσ2 + n∑

i=1 (yi − y)2 = 0

or

σ2e = 1 n

n∑ i=1

(yi − y)2

Comment The method of maximum likelihood has a long history: Daniel Bernoulli was using it as early as 1777 (140). It was Ronald Fisher, though, in the early years of the twentieth century, who first studied the mathematical properties of likelihood estimation in any detail, and the procedure is often credited to him.

Questions

5.2.1. A random sample of size 8—x1 = 1, x2 = 0, x3 = 1, x4 = 1, x5 = 0, x6 = 1, x7 = 1, and x8 = 0—is taken from the probability function

pX (k; θ) = θk(1 − θ)1−k, k = 0, 1; 0 < θ < 1

Find the maximum likelihood estimate for θ.

5.2.2. The number of red chips and white chips in an urn is unknown, but the proportion, p, of reds is either 13 or

1 2 .

A sample of size 5, drawn with replacement, yields the se- quence red, white, white, red, and white. What is the max- imum likelihood estimate for p?

5.2.3. Use the sample y1 = 8.2, y2 = 9.1, y3 = 10.6, and y4 = 4.9 to calculate the maximum likelihood estimate for λ in the exponential pdf

fY (y; λ) = λe−λy, y ≥ 0

5.2.4. Suppose a random sample of size n is drawn from the probability model

pX (k; θ) = θ 2ke−θ

2

k! , k = 0, 1, 2, . . .

Find a formula for the maximum likelihood estimator, θ̂.

5.2.5. Given that y1 = 2.3, y2 = 1.9, and y3 = 4.6 is a random sample from

fY (y; θ) = y 3e−y/θ

6θ4 , y ≥ 0

calculate the maximum likelihood estimate for θ.

5.2.6. Use the method of maximum likelihood to estimate θ in the pdf

fY (y; θ) = θ2√y e −θ√y, y ≥ 0

Evaluate θe for the following random sample of size 4: y1 = 6.2, y2 = 7.0, y3 = 2.5, and y4 = 4.2. 5.2.7. An engineer is creating a project scheduling pro- gram and recognizes that the tasks making up the project are not always completed on time. However, the comple- tion proportion tends to be fairly high. To reflect this con- dition, he uses the pdf

fY (y; θ) = θyθ−1, 0 ≤ y ≤ 1, and 0 < θ where y is the proportion of the task completed. Suppose that in his previous project, the proportions of tasks com- pleted were 0.77, 0.82, 0.92, 0.94, and 0.98. Estimate θ.

5.2.8. The following data show the number of occu- pants in passenger cars observed during one hour at a busy intersection in Los Angeles (75). Suppose it can be

Section 5.2 Estimating Parameters 289

assumed that these data follow a geometric distribution, pX (k; p) = (1 − p)k−1 p, k = 1, 2, . . .. Estimate p and compare the observed and expected frequencies for each value of X .

Number of Occupants Frequency

1 678 2 227 3 56 4 28 5 8 6+ 14

1011

5.2.9. For the Major League Baseball seasons from 1950 through 2008, there were fifty-nine nine-inning games in which one of the teams did not manage to get a hit. The data in the table give the number of no-hittersper season over this period. Assume that the data follow a Poisson distribution,

pX (k; λ) = e−λ λ k

k! , k = 0, 1, 2, . . .

(a) Estimate λ and compare the observed and expected frequencies. (b) Does the agreement (or lack of agreement) in part (a) come as a surprise? Explain.

No. of No-Hitters Frequency

0 6 1 19 2 12 3 13 4+ 9

Source: Based on http://mlb.mlb.com/mlb/history/ rare feats/index.jsp?feature=no hitter

5.2.10. (a) Based on the random sample Y1 = 6.3,Y2 = 1.8, Y3 = 14.2, and Y4 = 7.6, use the method of maximum likelihood to estimate the parameter θ in the uniform pdf

fY (y; θ) = 1 θ , 0 ≤ y ≤ θ

(b) Suppose the random sample in part (a) represents the two-parameter uniform pdf

fY (y; θ1, θ2) = 1 θ2 − θ1 , θ1 ≤ y ≤ θ2

Find the maximum likelihood estimates for θ1 and θ2.

5.2.11. Find the maximum likelihood estimate for θ in the pdf

fY (y; θ) = 2y1 − θ2 , θ ≤ y ≤ 1

if a random sample of size 6 yielded the measurements 0.70, 0.63, 0.92, 0.86, 0.43, and 0.21.

5.2.12. A random sample of size n is taken from the pdf

fY (y; θ) = 2y θ2

, 0 ≤ y ≤ θ

Find an expression for θ̂, the maximum likelihood estima- tor for θ.

5.2.13. If the random variable Y denotes an individual’s income, Pareto’s law claims that P(Y ≥ y) =

( k y

)θ , where

k is the entire population’s minimum income. It follows

that FY (y) = 1 − (

k y

)θ , and, by differentiation,

fY (y; θ) = θkθ (

1 y

)θ+1 , y ≥ k; θ ≥ 1

Assume k is known. Find the maximum likelihood esti- mator for θ if income information has been collected on a random sample of 25 individuals.

5.2.14. For the negative binomial pdf pX (k; p, r) =( k + r − 1

k

) (1 − p)k pr, find the maximum likelihood

estimator for p if r is known.

5.2.15. The exponential pdf is a measure of lifetimes of devices that do not age (see Question 3.11.11). However, the exponential pdf is a special case of the Weibull distri- bution, which can measure time to failure of devices where the probability of failure increases as time does. A Weibull random variable Y has pdf fY (y; α, β) = αβyβ−1e−αyβ , 0 ≤ y, 0 < α, 0 < β.

Find the maximum likelihood estimator for α assuming that β is known.

5.2.16. Suppose a random sample of size n is drawn from a normal pdf where the mean μ is known but the variance σ2 is unknown. Use the method of maximum likelihood to find a formula for σ̂2. Compare your answer to the maxi- mum likelihood estimator found in Example 5.2.5.

THE METHOD OF MOMENTS

A second procedure for estimating parameters is the method of moments. Proposed near the turn of the twentieth century by the great British statistician, Karl Pearson, the method of moments is often more tractable than the method of maximum likeli- hood in situations where the underlying probability model has multiple parameters.

290 Chapter 5 Estimation

Suppose that Y is a continuous random variable and that its pdf is a function of s unknown parameters, θ1, θ2, . . ., θs. The first s moments of Y , if they exist, are given by the integrals

E(Y j) = ∫ ∞

−∞ y j · fY (y; θ1, θ2, . . . , θs) dy, j = 1, 2, . . . , s

In general, each E(Y j) will be a different function of the s parameters. That is,

E(Y 1) = g1(θ1, θ2, . . . , θs) E(Y 2) = g2(θ1, θ2, . . . , θs)

...

E(Y s) = gs(θ1, θ2, . . . , θs)

Corresponding to each theoretical moment, E(Y j), is a sample moment, 1n n∑

i=1 y ji .

Intuitively, the jth sample moment is an approximation to the jth theoretical mo- ment. Setting the two equal for each j produces a system of s simultaneous equations, the solutions to which are the desired set of estimates, θ1e, θ2e, . . . , and θse.

Definition 5.2.3 Let y1, y2, . . ., yn be a random sample from the continuous pdf fY (y; θ1, θ2, . . . , θs). The method of moments estimates, θ1e, θ2e, . . ., and θse, for the model’s unknown parameters are the solutions of the s simultaneous equations

E(Y) = 1 n

n∑ i=1

yi; E(Y 2) = 1n n∑

i=1 y2i ; . . . ; E(Y

s) = 1 n

n∑ i=1

ysi

If the underlying random variable X is discrete with pX (k; θ1, θ2, . . . , θs), the method of moments estimates are the solutions of the system of equations,

E(X j) = 1 n

n∑ i=1

kji , j = 1, . . . , s

Example 5.2.6

Suppose that y1 = 0.42, y2 = 0.10, y3 = 0.65, and y4 = 0.23 is a random sample of size 4 from the pdf

fY (y; θ) = θyθ−1, 0 ≤ y ≤ 1 Find the method of moments estimate for θ.

Taking the same approach that we followed in finding maximum likelihood es- timates, we will derive a general expression for the method of moments estimate before making any use of the four data points. Notice that only one equation needs to be solved because the pdf is indexed by just a single parameter.

The first theoretical moment of Y is θ θ + 1 :

E(Y) = ∫ 1

0 y · θyθ−1 dy

= θ · y θ+1

θ + 1 ∣∣∣∣ 1

0

= θ θ + 1

Section 5.2 Estimating Parameters 291

Setting E(Y) equal to 1n n∑

i=1 yi (= y), the first sample moment, gives

θ

θ + 1 = y

which implies that the method of moments estimate for θ is

θe = y1 − y Here, y = 14 (0.42 + 0.10 + 0.65 + 0.23) = 0.35, so

θe = 0.351 − 0.35 = 0.54

Example 5.2.7

The negative binomial distribution can provide a good model for discrete data that are not inherently symmetric, as the earthquake example in Case Study 5.2.2 below will show. Deriving the maximum likelihood estimators for r and p, though, is difficult because the binomial coefficient does not have a closed-form derivative. However, the method of moments estimators are not hard to find.

Dealing with the negative binomial distribution in this context is more conve- nient if we use the form of Question 4.5.6,

pX (k; p, r) = (

k + r − 1 k

) (1 − p)k pr, k = 0, 1, 2, . . .

Then Question 4.5.7 yields E(X ) = r(1−p)p and Var(X ) = r(1−p)p2 Also, the method of moments equations can be written r(1−p)p = k and r(1−p)p2 = σ̂2

by virtue of the discrete version of Question 5.2.27. Write r(1−p)p = k to get r = kp(1−p) . Substituting the latter into the variance equation gives kp(1−p)

(1−p) p2 = σ̂2 or pe = kσ̂2 .

Then

re = kpe(1 − pe) = k k

σ̂2

1 − k σ̂2

= k 2

σ̂2 − k

CASE STUDY 5.2.2

Earthquakes are more common worldwide than most people suspect. Typically an earthquake doesn’t achieve a media report unless there is devastating damage and harm to a population. In fact over the 100 years from 1900 to 1999, the average number of worldwide earthquakes was almost 20.

Columns 1 and 2 of Table 5.2.4 give the number of earthquakes, with Richter scale greater than 7, grouped into intervals of width 5. These discrete data are not symmetric about the mean. (See Figure 5.2.2 for the data grouped with class width 5.)

So, the negative binomial distribution might provide a model for these data. As Example 5.2.7 points out, to estimate the parameters, from the data we use k and σ2e . For the earthquake data, k = 19.83 and σ2e = 50.69. The parameter estimates are pe = kσ2e =

19.83 50.69 = 0.391 and re = (19.83)

2

50.69−19.83 = 12.74. The cdf (Continued on next page)

292 Chapter 5 Estimation

(Case Study 5.2.2 continued)

Table 5.2.4

Number Observed Frequency Expected Frequency

0–5 0 0 6–10 10 7.7

11–15 20 21.4 16–20 23 28.4 21–25 27 22.4 26–30 12 12.3 31–35 5 5.3 36–40 2 1.8 > 40 1 0.7

Data from: http://www.seattlecentral.edu/qelp/sets/039/039.html

0 5 10 15 20 25 30 35 40 45

5

10

15

20

25

30

Figure 5.2.2

of the negative binomial random variable X with the above parameters can be calculated using one of the readily available statistical software programs.

For example, FX (10) = 0.077, the cdf for the value 10. The expected value corresponding to this is 100(0.077) = 7.7. This is the second entry in column 3.

The agreement between observed and expected frequencies is good. In Chapter 10, we show that this model passes the standard goodness of fit test.

About the Data Case Study 5.2.2, using the method of moments, estimated the negative binomial distribution parameters as re = 12.74 and pe = 0.391. What meaning can we attach to these parameters? The answer is very little. But when the parameters are inserted into the negative binomial formula, the result is a pdf that fits the data set. And being able to model a data set does give a tool for working with such data.

On the other hand, suppose the lifetime of a device, given in discrete units, is modeled by the geometric pdf. If there were three of such devices available, with one used as the previous one fails, the time until the last one no longer works would be negative binomial with r = 3. See Example 5.2.2 for a similar example applied to the gamma distribution.

When r is known, the parameter p can be estimated by the method of max- imum likelihood (see Question 5.2.14) and interpreted as the probability of a device “deciding” to fail in the next time unit.

Section 5.3 Interval Estimation 293

Questions

5.2.17. Let y1, y2, . . . , yn be a random sample of size n from the pdf fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ. Find a formula for the method of moments estimate for θ. Compare the val- ues of the method of moments estimate and the maximum likelihood estimate if a random sample of size 5 consists of the numbers 17, 92, 46, 39, and 56 (recall Question 5.2.12).

5.2.18. Use the method of moments to estimate θ in the pdf

fY (y; θ) = (θ2 + θ)yθ−1(1 − y), 0 ≤ y ≤ 1 Assume that a random sample of size n has been collected.

5.2.19. A criminologist is searching through FBI files to document the prevalence of a rare double-whorl fin- gerprint. Among six consecutive sets of 100,000 prints scanned by a computer, the numbers of persons having the abnormality are 3, 0, 3, 4, 2, and 1, respectively. Assume that double whorls are Poisson events. Use the method of moments to estimate their occurrence rate, λ. How would your answer change if λ were estimated using the method of maximum likelihood?

5.2.20. Find the method of moments estimate for λ if a random sample of size n is taken from the exponential pdf, fY (y; λ) = λe−λy, y ≥ 0. 5.2.21. Suppose that Y1 = 8.3,Y2 = 4.9,Y3 = 2.6, and Y4 = 6.5 is a random sample of size 4 from the two- parameter uniform pdf,

fY (y; θ1, θ2) = 12θ2 , θ1 − θ2 ≤ y ≤ θ1 + θ2 Use the method of moments to calculate θ1e and θ2e.

5.2.22. Find a formula for the method of moments esti- mate for the parameter θ in the Pareto pdf,

fY (y; θ) = θkθ (

1 y

)θ+1 , y ≥ k; θ ≥ 1

Assume that k is known and that the data consist of a ran- dom sample of size n. Compare your answer to the maxi- mum likelihood estimator found in Question 5.2.13.

5.2.23. Calculate the method of moments estimate for the parameter θ in the probability function

pX (k; θ) = θk(1 − θ)1−k, k = 0, 1 if a sample of size 5 is the set of numbers 0, 0, 1, 0, 1.

5.2.24. Find the method of moments estimates for μ and σ2, based on a random sample of size n drawn from a nor- mal pdf, where μ = E(Y) and σ2 = Var(Y). Compare your answers with the maximum likelihood estimates de- rived in Example 5.2.5.

5.2.25. Use the method of moments to derive estimates for the parameters r and λ in the gamma pdf,

fY (y; r,λ) = λ r

�(r) yr−1e−λy, y ≥ 0

5.2.26. Bird songs can be characterized by the number of clusters of “syllables” that are strung together in rapid succession. If the last cluster is defined as a “success,” it may be reasonable to treat the number of clusters in a song as a geometric random variable. Does the model pX (k) = (1 − p)k−1 p, k = 1, 2, . . ., adequately de- scribe the following distribution of two hundred fifty song lengths (108)? Begin by finding the method of mo- ments estimate for p. Then calculate the set of “expected” frequencies.

No. of Clusters/Song Frequency

1 132 2 52 3 34 4 9 5 7 6 5 7 5 8 6

250

5.2.27. Let y1, y2, . . . , yn be a random sample from the

continuous pdf fY (y; θ1, θ2). Let σ̂2 = 1n n∑

i=1 (yi −y)2. Show

that the solutions of the equations

E(Y) = y and Var(Y) = σ̂2

for θ1 and θ2 give the same results as using the equations in Definition 5.2.3.

5.3 Interval Estimation Point estimates, no matter how they are determined, share the same fundamental weakness: They provide no indication of their inherent precision. We know, for in- stance, that λ̂ = X is both the maximum likelihood and the method of moments estimator for the Poisson parameter, λ. But suppose a sample of size 6 is taken from the probability model pX (k) = e−λλk/k! and we find that λe = 6.8. Does it follow

294 Chapter 5 Estimation

that the true λ is likely to be close to λe—say, in the interval from 6.7 to 6.9—or is the estimation process so imprecise that λ might actually be as small as 1.0, or as large as 12.0? Unfortunately, point estimates, by themselves, do not allow us to make those kinds of extrapolations. Any such statements require that the variation of the estimator be taken into account.

The usual way to quantify the amount of uncertainty in an estimator is to con- struct a confidence interval. In principle, confidence intervals are ranges of numbers that have a high probability of “containing” the unknown parameter as an interior point. By looking at the width of a confidence interval, we can get a good sense of the estimator’s precision.

Example 5.3.1

Suppose that 6.5, 9.2, 9.9, and 12.4 constitute a random sample of size 4 from the pdf

fY (y; μ) = 1√ 2π(0.8)

e− 1 2

( y−μ 0.8

)2 , −∞ < y < ∞

That is, the four yi’s come from a normal distribution where σ is equal to 0.8, but the mean, μ, is unknown. What values of μ are believable in light of the four data points?

To answer that question requires that we keep the distinction between estimates and estimators clearly in mind. First of all, we know from Example 5.2.5 that the

maximum likelihood estimate for μ is μe = y = ( 1

n

) n∑ i=1

yi = ( 1

4

) (38.0) = 9.5.

We also know something very specific about the probabilistic behavior of the maxi- mum likelihood estimator, Y : According to the corollary to Theorem 4.3.3, Y−μ

σ/ √

n = Y−μ

0.8/ √

4 has a standard normal pdf, fZ(z). The probability, then, that

Y−μ 0.8/

√ 4

will fall between two specified values can be deduced from Table A.1 in the Appendix. For example,

P(−1.96 ≤ Z ≤ 1.96) = 0.95 = P (

−1.96 ≤ Y − μ 0.8/

√ 4

≤ 1.96 )

(5.3.1)

(See Figure 5.3.1).

f (z)Z

1.96

Area = 0.95

0–1.96 z =

y–m 40.8/

Figure 5.3.1

“Inverting” probability statements of the sort illustrated in Equation 5.3.1 is the mechanism by which we can identify a set of parameter values compatible with the sample data. If

P

( −1.96 ≤ Y − μ

0.8/ √

4 ≤ 1.96

) = 0.95

Section 5.3 Interval Estimation 295

then

P (

Y − 1.96 0.8√ 4

≤ μ ≤ Y + 1.96 0.8√ 4

) = 0.95

which implies that the random interval( Y − 1.96 0.8√

4 ,Y + 1.96 0.8√

4

)

has a 95% chance of containing μ as an interior point. After substituting for Y , the random interval in this case reduces to(

9.50 − 1.96 0.8√ 4 , 9.50 + 1.96 0.8√

4

) = (8.72, 10.28)

We call (8.72, 10.28) a 95% confidence interval for μ. In the long run, 95% of the inter- vals constructed in this fashion will contain the unknown μ; the remaining 5% will lie either entirely to the left of μ or entirely to the right. For a given set of data, of course,

we have no way of knowing whether the calculated (

y − 1.96 · 0.8√ 4 , y + 1.96 · 0.8√

4

) is

one of the 95% that contains μ or one of the 5% that does not. Figure 5.3.2 illustrates graphically the statistical implications associated with the

random interval ( Y − 1.96 0.8√

4 ,Y + 1.96 0.8√

4

) . For every different y, the interval will

have a different location. While there is no way to know whether or not a given interval—in particular, the one the experimenter has just calculated—will include the unknown μ, we do have the reassurance that in the long run, 95% of all such intervals will.

7 81 2 3 4 65 Data set

True m

Possible 95% confidence intervals for m

Figure 5.3.2

Comment The behavior of confidence intervals can be modeled nicely by using a computer’s random number generator. The output in Table 5.3.1 is a case in point. Fifty simulations of the confidence interval described in Example 5.3.1 are displayed. That is, fifty samples, each of size n = 4, were drawn from the normal pdf

fY (y; μ) = 1√ 2π(0.8)

e− 1 2 ( y−μ0.8 )

2

, −∞ < y < ∞

using Minitab’s RANDOM command. (To fully specify the model, and to know the value that each confidence interval was seeking to contain, the true μ was assumed to equal 10). For each sample of size n = 4, the lower and upper limits of the

296 Chapter 5 Estimation

Table 5.3.1

Data Display Row Low.Lim. Upp.Lim. Contains μ = 10? 1 8.7596 10.3276 Yes 2 8.8763 10.4443 Yes 3 8.8337 10.4017 Yes 4 9.5800 11.1480 Yes 5 8.5106 10.0786 Yes 6 9.6946 11.2626 Yes 7 8.7079 10.2759 Yes 8 10.0014 11.5694 NO 9 9.3408 10.9088 Yes 10 9.5428 11.1108 Yes 11 8.4650 10.0330 Yes 12 9.6346 11.2026 Yes 13 9.2076 10.7756 Yes 14 9.2517 10.8197 Yes 15 8.7568 10.3248 Yes 16 9.8439 11.4119 Yes 17 9.3297 10.8977 Yes 18 9.5685 11.1365 Yes 19 8.9728 10.5408 Yes 20 8.5775 10.1455 Yes 21 9.3979 10.9659 Yes 22 9.2115 10.7795 Yes 23 9.6277 11.1957 Yes 24 9.4252 10.9932 Yes 25 9.6868 11.2548 Yes 26 8.8779 10.4459 Yes 27 9.1570 10.7250 Yes 28 9.3277 10.8957 Yes 29 9.1606 10.7286 Yes 30 8.8919 10.4599 Yes 31 9.3838 10.9518 Yes 32 8.7575 10.3255 Yes 33 10.4602 12.0282 NO 34 8.9437 10.5117 Yes 35 9.0049 10.5729 Yes 36 9.0148 10.5828 Yes 37 8.8110 10.3790 Yes 38 9.1981 10.7661 Yes 39 9.0042 10.5722 Yes 40 9.7019 11.2699 Yes 41 9.2167 10.7847 Yes 42 8.3901 9.9581 NO 43 8.6337 10.2017 Yes 44 9.4606 11.0286 Yes 45 9.3278 10.8958 Yes 46 8.5843 10.1523 Yes 47 9.0541 10.6221 Yes 48 9.2042 10.7722 Yes 49 9.2710 10.8390 Yes 50 9.5697 11.1377 Yes

︷ ︸︸

47 of the 50 95% confidence intervals contain the true μ(= 10)

corresponding 95% confidence interval were calculated, using the formulas

Lower Lim. = y − 1.96 0.8√ 4

Upper Lim. = y + 1.96 0.8√ 4

As the last column in the Data Display indicates, only three of the fifty confidence intervals fail to contain μ = 10: Samples eight and thirty-three yield intervals that lie entirely to the right of the parameter, while sample forty-two produces a range

Section 5.3 Interval Estimation 297

of values that lies entirely to the left. The remaining forty-seven intervals, though, or 94%

(= 4750 × 100), do contain the true value of μ as an interior point. CASE STUDY 5.3.1

In the eighth century b.c., the Etruscan civilization was the most advanced in all of Italy. Its art forms and political innovations were destined to leave indeli- ble marks on the entire Western world. Originally located along the western coast between the Arno and Tiber Rivers (the region now known as Tuscany), it spread quickly across the Apennines and eventually overran much of Italy. But as quickly as it came, it faded. Militarily it was to prove no match for the burgeoning Roman legions, and by the dawn of Christianity it was all but gone.

No written history from the Etruscan empire has ever been found, and to this day its origins remain shrouded in mystery. Were the Etruscans native Italians, or were they immigrants? And if they were immigrants, where did they come from? Much of what is known has come from anthropometric studies— that is, investigations that use body measurements to determine racial charac- teristics and ethnic origins.

A case in point is the set of data given in Table 5.3.2, showing the sizes of eighty-four Etruscan skulls unearthed in various archaeological digs throughout Italy (6). The sample mean, y, of those measurements is 143.8 mm. Researchers believe that skull widths of present-day Italian males are normally distributed with a mean (μ) of 132.4 mm and a standard deviation (σ) of 6.0 mm. What does the difference between y = 143.8 and μ = 132.4 imply about the likelihood that Etruscans and Italians share the same ethnic origin?

Table 5.3.2

Maximum Head Breadths (mm) of 84 Etruscan Males

141 148 132 138 154 142 150 146 155 158 150 140 147 148 144 150 149 145 149 158 143 141 144 144 126 140 144 142 141 140 145 135 147 146 141 136 140 146 142 137 148 154 137 139 143 140 131 143 141 149 148 135 148 152 143 144 141 143 147 146 150 132 142 142 143 153 149 146 149 138 142 149 142 137 134 144 146 147 140 142 140 137 152 145

One way to answer that question is to construct a 95% confidence inter- val for the true mean of the population represented by the eighty-four yi’s in Table 5.3.2. If that confidence interval fails to contain μ = 132.4, it could be ar- gued that the Etruscans were not the forebears of modern Italians. (Of course, it would also be necessary to factor in whatever evolutionary trends in skull sizes have occurred for Homo sapiens, in general, over the past three thousand years.)

It follows from the discussion in Example 5.3.1 that the endpoints for a 95% confidence interval for μ are given by the general formula(

y − 1.96 · σ√ n

, y + 1.96 · σ√ n

) (Continued on next page)

298 Chapter 5 Estimation

(Case Study 5.3.1 continued)

Here, that expression reduces to( 143.8 − 1.96 · 6.0√

84 , 143.8 + 1.96 · 6.0√

84

) = (142.5 mm, 145.1 mm)

Since the value μ = 132.4 is not contained in the 95% confidence interval (or even close to being contained), we would conclude that a sample mean of 143.8 (based on a sample of size 84) is not likely to have come from a normal pop- ulation where μ = 132.4 (and σ = 6.0). It would appear, in other words, that Italians are not the direct descendants of Etruscans.

Comment Random intervals can be constructed to have whatever “confi- dence” we choose. Suppose zα/2 is defined to be the value for which P(Z ≥ zα/2) = α/2. If α = 0.05, for example, zα/2 = z.025 = 1.96. A 100(1 − α)% confidence interval for μ, then, is the range of numbers(

y − zα/2 · σ√ n

, y + zα/2 · σ√ n

) In practice, α is typically set at either 0.10, 0.05, or 0.01, although in some fields 50% confidence intervals are frequently used.

CONFIDENCE INTERVALS FOR THE BINOMIAL PARAMETER, p

Perhaps the most frequently encountered applications of confidence intervals are those involving the binomial parameter, p. Opinion surveys are often the context: When polls are released, it has become standard practice to issue a disclaimer by saying that the findings have a certain margin of error. As we will see later in this section, margins of error are related to 95% confidence intervals.

The inversion technique followed in Example 5.3.1 can be applied to large- sample binomial random variables as well. We know from Theorem 4.3.1 that

(X − np)/ √

np(1 − p) = (X/n − p)/ √

p(1 − p)/n

has approximately a standard normal distribution when X is binomial and n is large. It is also true that the pdf describing

X/n − p√ (X/n)(1−X/n)

n

can be approximated by fZ(z), a consequence of the DeMoivre-Laplace Theorem. Therefore,

P

⎡ ⎣−zα/2 ≤ X/n − p√

(X/n)(1−X/n) n

≤ zα/2 ⎤ ⎦ .= 1 − α (5.3.2)

Rewriting Equation 5.3.2 by isolating p in the center of the inequalities leads to the formula given in Theorem 5.3.1.

Section 5.3 Interval Estimation 299

Theorem 5.3.1

Let k be the number of successes in n independent trials, where n is large and p = P(success) is unknown. An approximate 100(1 − α)% confidence interval for p is the set of numbers[

k n

− zα/2 √

(k/n)(1 − k/n) n

, k n

+ zα/2 √

(k/n)(1 − k/n) n

]

CASE STUDY 5.3.2

The common sight of a person walking about talking on a mobile phone was unthinkable in the early 1970s. But the rapid march of technology has made the cell phone, or the even more advanced “smartphone,” affordable and desirable for many Americans.

What percentage of the population own cell phones was the subject of a Pew Research Center poll. Of 2002 people surveyed, 1281 use smartphones. Given that n = 2002 and k = 1281, the “believable” values for p, the probability of cell phone use, according to Theorem 5.3.1, are the proportions from 0.618 to 0.662.

( 1281 2002

− 1.96 √

(1281/2002)(1 − 1281/2002) 2002

, 1281 2002

+ 1.96 √

(1281/2002)(1 − 1281/2002) 2002

)

= (0.619, 0.661)

If the true proportion of Americans, in other words, who use a cell phone is less than 0.619 or greater than 0.661, it would be unlikely that a sample proportion (based on 2002 responses) would be the observed 1281/2002 = 0.640. Data from: http://www.pewinternet.org/2015/04/01/us-smartphone-use-in-2015/

Comment We call (0.619, 0.661) a 95% confidence interval for p, but it does not follow that p has a 95% chance of lying between 0.619 and 0.661. The pa- rameter p is a constant, so it falls between 0.619 and 0.661 either 0% of the time or 100% of the time. The “95%” refers to the procedure by which the interval is constructed, not to any particular interval. This, of course, is entirely analogous to the interpretation given earlier to 95% confidence intervals for μ.

Comment Robert Frost was certainly more familiar with iambic pentameter than he was with estimated parameters, but in 1942 he wrote a couplet that sounds very much like a poet’s perception of a confidence interval (106):

We dance round in a ring and suppose, But the Secret sits in the middle and knows.

Example 5.3.2

Central to every statistical software package is a random number generator. Two or three simple commands are typically all that are required to output a sample of size n representing any of the standard probability models. But how can we be certain that numbers purporting to be random observations from, say, a normal distribution with μ = 50 and σ = 10 actually do represent that particular pdf?

The answer is, we cannot; however, a number of “tests” are available to check whether the simulated measurements appear to be random with respect to a given criterion. One such procedure is the median test.

Suppose y1, y2, . . . , yn denote measurements presumed to have come from a con- tinuous pdf fY (y). Let k denote the number of yi’s that are less than the median of

300 Chapter 5 Estimation

fY (y). If the sample is random, we would expect the difference between kn and 1 2 to

be small. More specifically, a 95% confidence interval based on kn should contain the value 0.5.

Listed in Table 5.3.3 is a set of sixty yi’s generated by Minitab to represent the exponential pdf, fY (y) = e−y, y ≥ 0. Does this sample pass the median test?

Table 5.3.3

0.00940* 0.75095 2.32466 0.66715* 3.38765 3.01784 0.05509* 0.93661 1.39603 0.50795* 0.11041* 2.89577 1.20041 1.44422 0.46474* 0.48272* 0.48223* 3.59149 1.38016 0.41382* 0.31684* 0.58175* 0.86681 0.55491* 0.07451* 1.88641 2.40564 1.07111 5.05936 0.04804* 0.07498* 1.52084 1.06972 0.62928* 0.09433* 1.83196 1.91987 1.92874 1.93181 0.78811 2.16919 1.16045 0.81223 1.84549 1.20752 0.11387* 0.38966* 0.42250* 0.77279 1.31728 0.81077 0.59111* 0.36793* 0.16938* 2.41135 0.21528* 0.54938* 0.73217 0.52019* 0.73169

∗ number ≤ 0.69315 [= median of fY (y) = e−y, y > 0]

The median here is m = 0.69315:∫ m 0

e−ydy = −e−y ∣∣∣∣m 0

= 1 − e−m = 0.5

which implies that m = − ln(0.5) = 0.69315. Notice that of the sixty entries in Table 5.3.3, a total of k = 26 (those marked with an asterisk, ∗) fall to the left of the median. For these particular yi’s, then, kn = 2660 = 0.433.

Let p denote the (unknown) probability that a random observation produced by Minitab’s generator will lie to the left of the pdf’s median. Based on these sixty observations, the 95% confidence interval for p is the range of numbers extending from 0.308 to 0.558:(

26 60

− 1.96 √

(26/60)(1 − 26/60) 60

, 26 60

+ 1.96 √

(26/60)(1 − 26/60) 60

) = (0.308, 0.558)

The fact that the value p = 0.50 is contained in the confidence interval implies that these data do pass the median test. It is entirely believable, in other words, that a bona fide exponential random sample of size 60 would have twenty-six observations falling below the pdf’s median, and thirty-four above.

MARGIN OF ERROR

In the popular press, estimates for p ( i.e., values of kn

) are typically accompanied by

a margin of error, as opposed to a confidence interval. The two are related: A margin of error is half the maximum width of a 95% confidence interval.

Let w denote the width of a 95% confidence interval for p. From Theorem 5.3.1,

w = k n

+ 1.96 √

(k/n)(1 − k/n) n

− (

k n

− 1.96 √

(k/n)(1 − k/n) n

)

= 3.92 √

(k/n)(1 − k/n) n

Section 5.3 Interval Estimation 301

Notice that for fixed n, w is a function of the product ( k

n

) ( 1 − kn

) . But given that

0 ≤ kn ≤ 1, the largest value that ( k

n

) ( 1 − kn

) can achieve is 12 · 12 , or 14 (see Ques-

tion 5.3.18). Therefore,

max w = 3.92 √

1 4n

Then the margin of error is one-half of max w, or 12 · 3.92 √

1 4n = 1.962√n .

Definition 5.3.1 The margin of error associated with an estimate kn , (for a 95% confidence inter- val), where k is the number of successes in n independent trials, is 100d%, where d = 1.962√n .

In general, for a 100(1 − α)% confidence interval, the margin of error is d = zα/22√n , where zα/2 is the value for which P(Z ≥ zα/2) = α/2.

The margin of error is often expressed as a percentage, in which case it would be 100d%.

Example 5.3.3

Candidates Max Incumbent and Sirius Challenger are running for the presidency. A final poll of n = 1000 likely voters showed that 480 (or 48%) of the respondents were supporting Max. Had that poll been evenly split—500 votes for each candidate—the inference would have been clearcut: The race is a dead heat, and Max has a 50% chance of being returned to office. But Max lacked twenty votes of getting five hun- dred. What does that shortfall imply about his probability of being reelected?

The answer to that question begins by analyzing the second number that rep- resents the margin of error and is always quoted in connection with political polls. According to Definition 5.3.1, the margin of error, d, in this case is equal to 3.1%:

d = 1.96/(2√n) = 1.96/(2 √

1000) = 0.031, or 3.1% Figure 5.3.3 shows the probabilistic relationship between the poll result and the pos- sible election results.

1.96 sp

fp(p)

Area = 0.025

n = 1000

Area = 0.025

0.511 Max wins 0.48 + d

0.500.48

Poll result

p =

Longest possible 95% confidence interval for p

Proportion of all voters who support Max0.449

0.48 – d

1/( 2psp) = 25.25Figure 5.3.3

Let p denote the proportion of all the voters on Election Day who favor Max. Imagine a distribution associated with p—call it fp (p)—that reflects the information contained in the 1000-vote survey. Clearly, the most likely value for p would be 0.48. Moreover, 95% of the area under fp(p) would be above the 95% confidence interval for p as given by the margin of area, that is, above the interval

(0.48 − d, 0.48 + d) = (0.449, 0.511) By the same token, the areas to the left of 0.449 and to the right of 0.511 would both equal 0.025.

302 Chapter 5 Estimation

It also follows that the distance between 0.48 and 0.511 must be 1.96σp, where σp is the standard deviation associated with fp(p) Therefore,

1.96σp = d = 0.031 so

σp = 0.031/1.96 = 0.0158 Now, Max’s chances of winning the election can be calculated. Treating p as a

random variable and making the usual Z transformation shows that Max has a 10% chance of winning the election:

P (Max wins) = P (p > 0.50 | poll of 1000 says 48%) = P [(p − 0.48)/0.0158 > (0.50 − 0.48)/0.0158] = P (Z > 1.27) = 0.1020

The situation for Max, then, is dire, but not hopeless. That said, if Max wants some reassurance that he will be gainfully employed for the next four years, he should probably start sending out some resumes.

Comment In practice, political polls are typically carried out using 1000 or so re- spondents, a practice that yields margins of error, as we have just seen, on the order of 3%. The only way to reduce the margin of error at the same confidence level is to in- crease the sample size. The easiest and cheapest way to achieve the greater precision afforded by larger sample sizes is to pool the results of several independent polls. This is usually done near the end of a campaign when multiple polls are widely available.

Suppose, for example, five polls, each based on 1000 respondents, are combined, and the grand total shows that Max received 2400 votes, once again giving him 48% of the total. What does the 48% based on 5000 voters tell us that the 48% based on 1000 voters did not?

Figures 5.3.3 and 5.3.4, both drawn to the same scale, answer that question. When n goes from 1000 to 5000, the margin of error shrinks from d = 1.96/(2√1000) = 0.031 to d = 1.96/(2√5000) = 0.014, so the distribution of p-values consistent with

1.96 sp

Area = 0.025 Area = 0.025

1/( 2psp) = 56.98 fp(p)

0.500.4940.480.466

Poll result

Longest possible 95% confidence interval for p

0.48 – d 0.48 + d Max wins

p = Proportion of all voters who support Max

n = 3,000

Figure 5.3.4

Section 5.3 Interval Estimation 303

the larger poll becomes markedly more concentrated around 0.48, and values greater than 0.50 necessarily become less probable.

When the 0.48 was based on one thousand respondents, there was an interval of p > 0.50 values within the margin of error (and its probability was calculated to be 0.1020). When the 0.48 was based on five thousand respondents, Figure 5.3.4 shows that all values of p > 0.50 fall outside the 95% confidence interval for p (which extends from 0.466 to 0.494).

So, what does the n = 5000 poll tell us about Max’s chances of winning a second term? Following the same procedure that was used for the n = 1000 poll,

1.96σp = d = 0.014 implies that

σp = 0.014/1.96 = 0.0071 and

P (max wins) = P (p > 0.50) | poll of 5000 says 48%) = P ((p − 0.48)/0.0071 > (0.50 − 0.48)/0.0071) = P (Z > 2.82) = 0.0024

What those n = 5000 voters have provided is a measure of clarity. Where the n = 1000 poll showed that Max’s prospects were dire, the n = 5000 poll makes the case that his reelection chances have moved well past the “dire zone” and are rapidly heading into “when pigs fly” territory.

Comment As it was introduced in Definition 5.3.1, the margin of error, d(= 1.96/2

√ n), is a perfectly reasonable way to quantify the sampling variation associ-

ated with the estimator of a binomial parameter. Unfortunately, the public media— especially in connection with political polls—has redefined the margin of error in a way that is totally inappropriate.

Many political pundits, for example, would report that the margin of error as- sociated with Max’s first poll was 3.1% (which is correct), but then they would add that the race is a “statistical tie” or a “statistical dead heat” because his 2% deficit was within the 3.1% margin of error. To be sure, the media can define “statistical tie” however they like, but to most of us a “tie” (statistical or otherwise) suggests a close race where each candidate’s chances of winning are close to 1/2. But as the analysis in Example 5.3.3 showed, being 2% behind in a survey having a 3.1% mar- gin of error implies that your chances of winning are roughly 10%, which is nowhere near anyone’s preconception of what the word tie means. The misunderstanding that many in the media seem to have is that every outcome in the interval defined by the margin of error is somehow equally likely. If that logic were true, a poll deficit of 3.1% − ε would be a “dead heat” and a poll deficit of 3.1% + ε would be a rout. That makes no mathematical sense whatsoever.

There is an even more fundamental problem in using the margin of error as a day- to-day or week-to-week measure of the variability in political polls. By definition, the margin of error refers to sampling variation—that is, it reflects the extent to which the estimator p̂ = X/n would vary if repeated samples of size n were drawn from the same population. But that’s not what happens. Consecutive polls do not represent the same population. Between one poll and the next, a variety of scenarios can tran- spire that can fundamentally change the opinions of the voting population—one can- didate may give an especially good speech or make an embarrassing gaffe, a scandal

304 Chapter 5 Estimation

can emerge that seriously damages someone’s reputation, or a world event comes to pass that for one reason or another reflects more negatively on one candidate than the other. Although all of those possibilities have the potential to influence the value of X/n much more than sampling variability can, none of them is included in the margin of error.

CHOOSING SAMPLE SIZES

Related to confidence intervals and margins of error is an important experimental design question. Suppose a researcher wishes to estimate the binomial parameter p based on results from a series of n independent trials, but n has yet to be determined. Larger values of n will, of course, yield estimates having greater precision, but more observations also demand greater expenditures of time and money. How can those two concerns best be reconciled?

If the experimenter can articulate the minimal degree of precision that would be considered acceptable, a Z transformation can be used to calculate the smallest (i.e., the cheapest) sample size capable of achieving that objective. For example, suppose we want Xn to have at least a 100(1 − α)% probability of lying within a distance d of p. The problem is solved, then, if we can find the smallest n for which

P (

−d ≤ X n

− p ≤ d )

= 1 − α (5.3.3)

Theorem 5.3.2

Let Xn be the estimator for the parameter p in a binomial distribution. In order for X n to have at least a 100(1 − α)% probability of being within a distance d of p, the sample size should be no smaller than

n = z 2 α/2

4d2

Proof Start by dividing the terms in the probability portion of Equation 5.3.3 by the standard deviation of Xn to form an approximate Z ratio:

P (

−d ≤ X n

− p ≤ d )

= P [

−d√ p(1 − p)/n ≤

X/n − p√ p(1 − p)/n ≤

d√ p(1 − p)/n

]

.= P [

−d√ p(1 − p)/n ≤ Z ≤

d√ p(1 − p)/n

] = 1 − α

But P(−zα/2 ≤ Z ≤ zα/2) = 1 − α, so d√

p(1 − p)/n = zα/2

which implies that

n = z 2 α/2 p(1 − p)

d2 (5.3.4)

Equation 5.3.4 is not an acceptable final answer, though, because the right- hand side is a function of p, the unknown parameter. But p(1 − p) ≤ 14 for

Section 5.3 Interval Estimation 305

0 ≤ p ≤ 1, so the sample size

n = z 2 α/2

4d2

would necessarily cause Xn to satisfy Equation 5.3.3, regardless of the actual value of p. (Notice the connection between the statements of Theorem 5.3.2 and Defi- nition 5.3.1.)

Example 5.3.4

A state is preparing to launch an anti-smoking campaign to reduce the number of adults who smoke. In order to determine the effectiveness of the campaign, the plan is to do a sample survey after the campaign closes. Using national data, organizers of the project know that the proportion of adults who smoke has tended to vary by 2% to 3% over the past seven years. Thus, for the survey to be adequately discriminatory, they decide on a 95% confidence interval with a margin of error equal to 1%. How large should the sample be?

Here 100(1 − α) = 95, so α = 0.05 and zα/2 = 1.96. By Theorem 5.3.2, then, the smallest acceptable sample size is 9604:

n ≥ 1.96 2

4(0.01)2 = 9604

Faced with this large sample, one of the statistically adept campaign leaders re- alizes there is reason to believe that, based on national statistics, p can be reason- ably assumed ≤ 0.22. If so, the factor p(1 − p) in Equation 5.3.4 can be replaced by (0.22)(0.78). This assumption for p gives the new equation for sample size:

n ≥ 1.96 2

(0.01)2 (0.22)(0.78) = 6592.2

Usually this value is rounded up, so n would be taken to be 6593. The reduction of 9604 − 6593 = 3011, or by more than 31%, is quite significant in terms of reducing costs.

Comment Theorems 5.3.1 and 5.3.2 are both based on the assumption that the X in Xn varies according to a binomial model. What we learned in Section 3.3, though, seems to contradict that assumption: Samples used in opinion surveys are invariably drawn without replacement, in which case X is hypergeometric, not binomial. The consequences of that particular “error,” however, are easily corrected and frequently negligible.

Section 3.2 shows that the expected value of Xn is the same regardless of whether X is binomial or hypergeometric; its variance, though, is different. If X is binomial,

Var (

X n

) = p(1 − p)

n

If X is hypergeometric,

Var (

X n

) = p(1 − p)

n

( N − n N − 1

)

where N is the total number of subjects in the population. Since N−nN−1 < 1, the actual variance of

X n is somewhat smaller than the binomial

variance we have been assuming, p(1−p)n . The ratio N−n N−1 is called the finite correction

306 Chapter 5 Estimation

factor. If N is much larger than n, which is typically the case, then the magnitude of N−nN−1 will be so close to 1 that the variance of

X n is equal to

p(1−p) n for all practical

purposes. Thus the “binomial” assumption in those situations is more than adequate. Only when the sample is a sizeable fraction of the population do we need to include the finite correction factor in any calculations that involve the variance of Xn .

Questions

5.3.1. A commonly used IQ test is scaled to have a mean of 100 and a standard deviation of σ = 15. A school coun- selor was curious about the average IQ of the students in her school and took a random sample of fifty students’ IQ scores. The average of these was y = 107.9. Find a 95% confidence interval for the student IQ in the school.

5.3.2. The production of a nationally marketed deter- gent results in certain workers receiving prolonged expo- sures to a Bacillus subtilis enzyme. Nineteen workers were tested to determine the effects of those exposures, if any, on various respiratory functions. One such function, air- flow rate, is measured by computing the ratio of a person’s forced expiratory volume (FEV1) to his or her vital capac- ity (VC). (Vital capacity is the maximum volume of air a person can exhale after taking as deep a breath as pos- sible; FEV1 is the maximum volume of air a person can exhale in one second.) In persons with no lung dysfunc- tion, the “norm” for FEV1/VC ratios is 0.80. Based on the following data (175), is it believable that exposure to the Bacillus subtilis enzyme has no effect on the FEV1/VC ratio? Answer the question by constructing a 95% confi- dence interval. Assume that FEV1/VC ratios are normally distributed with σ = 0.09.

Subject FEV1/VC Subject FEV1/VC

RH 0.61 WS 0.78 RB 0.70 RV 0.84 MB 0.63 EN 0.83 DM 0.76 WD 0.82 WB 0.67 FR 0.74 RB 0.72 PD 0.85 BF 0.64 EB 0.73 JT 0.82 PC 0.85 PS 0.88 RW 0.87 RB 0.82

5.3.3. Mercury pollution is widely recognized as a serious ecological problem. Much of the mercury released into the environment originates as a byproduct of coal burn- ing and other industrial processes. It does not become dangerous until it falls into large bodies of water, where microorganisms convert it to methylmercury (CH3Hg+), an organic form that is particularly toxic. Fish are the in- termediaries: They ingest and absorb the methylmercury and are then eaten by humans. Men and women, how- ever, may not metabolize CH3Hg+ at the same rate. In

one study investigating that issue, six women were given a known amount of protein-bound methylmercury. Shown in the following table are the half-lives of the methylmer- cury in their systems (121). For men, the average CH3Hg+

half-life is believed to be eighty days. Assume that for both genders, CH3Hg+ half-lives are normally distributed with a standard deviation (σ) of eight days. Construct a 95% confidence interval for the true female CH3Hg+

half-life. Based on these data, is it believable that males and females metabolize methylmercury at the same rate? Explain.

Females CH3Hg+ Half-Life

AE 52 EH 69 LJ 73

AN 88 KR 87 LU 56

5.3.4. A physician who has a group of thirty-eight female patients aged 18 to 24 on a special diet wishes to estimate the effect of the diet on total serum cholesterol. For this group, their average serum cholesterol is 188.4 (measured in mg/100mL). Because of a large-scale government study, the physician is willing to assume that the total serum cholesterol measurements are normally distributed with standard deviation of σ = 40.7. Find a 95% confidence in- terval of the mean serum cholesterol of patients on the special diet. Does the diet seem to have any effect on their serum cholesterol, given that the national average for women aged 18 to 24 is 192.0?

5.3.5. Suppose a sample of size n is to be drawn from a normal distribution where σ is known to be 14.3. How large does n have to be to guarantee that the length of the 95% confidence interval for μ will be less than 3.06?

5.3.6. What “confidence” would be associated with each of the following intervals? Assume that the random vari- able Y is normally distributed and that σ is known.

(a) (

y − 1.64 · σ√n , y + 2.33 · σ√n )

(b) ( −∞, y + 2.58 · σ√n

) (c)

( y − 1.64 · σ√n , y

)

Section 5.3 Interval Estimation 307

5.3.7. Five independent samples, each of size n, are to be drawn from a normal distribution where σ is known. For each sample, the interval

( y − 0.96 · σ√n , y + 1.06 · σ√n

) will be constructed. What is the probability that at least four of the intervals will contain the unknown μ?

5.3.8. Suppose that y1, y2, . . . , yn is a random sam- ple of size n from a normal distribution where σ is known. Depending on how the tail-area probabili- ties are split up, an infinite number of random intervals having a 95% probability of containing μ can be con- structed. What is unique about the particular interval(

y − 1.96 · σ√n , y + 1.96 · σ√n )

?

5.3.9. If the standard deviation (σ) associated with the pdf that produced the following sample is 3.6, would it be correct to claim that(

2.61 − 1.96 · 3.6√ 20

, 2.61 + 1.96 · 3.6√ 20

) = (1.03, 4.19)

is a 95% confidence interval for μ? Explain.

2.5 0.1 0.2 1.3 3.2 0.1 0.1 1.4 0.5 0.2 0.4 11.2 0.4 7.4 1.8 2.1 0.3 8.6 0.3 10.1

5.3.10. In 1927, the year he hit sixty home runs, Babe Ruth batted .356, having collected 192 hits in 540 official at-bats (150). Based on his performance that season, construct a 95% confidence interval for Ruth’s probability of getting a hit in a future at-bat.

5.3.11. A thirty-second commercial break during the tele- cast of Super Bowl XXIX cost approximately $1,000,000. Not surprisingly, potential sponsors wanted to know how many people might be watching. In a survey of 1015 po- tential viewers, 281 said they expected to see less than a quarter of the advertisements aired during the game. De- fine the relevant parameter and estimate it using a 90% confidence interval.

5.3.12. During one of the first “beer wars” in the early 1980s, a taste test between Schlitz and Budweiser was the focus of a nationally broadcast TV commercial. One hun- dred people agreed to drink from two unmarked mugs and indicate which of the two beers they liked better; fifty- four said, “Bud.” Construct and interpret the correspond- ing 95% confidence interval for p, the true proportion of beer drinkers who prefered Budweiser to Schlitz. How would Budweiser and Schlitz executives each have put these results in the best possible light for their respective companies?

5.3.13. The Pew Research Center did a survey of 2253 adults and discovered that 63% of them had broadband Internet connections in their homes. The survey report noted that this figure represented a “significant jump”

from the similar figure of 54% from two years earlier. One way to define “significant jump” is to show that the earlier number does not lie in the 95% confidence interval. Was the increase significant by this definition?

Data from: http://www.pewinternet.org/Reports/2009/10-Home- Broad band-Adoption-2009.aspx.

5.3.14. If (0.57, 0.63) is a 50% confidence interval for p, what does kn equal, and how many observations were taken?

5.3.15. Suppose a coin is to be tossed n times for the pur- pose of estimating p, where p = P(heads). How large must n be to guarantee that the length of the 99% con- fidence interval for p will be less than 0.02?

5.3.16. On the morning of November 9, 1994—the day af- ter the electoral landslide that had returned Republicans to power in both branches of Congress—several key races were still in doubt. The most prominent was the Washing- ton contest involving Democrat Tom Foley, the reigning speaker of the house. An Associated Press story showed how narrow the margin had become (128):

With 99 percent of precincts reporting, Foley trailed Republican challenger George Nethercutt by just 2,174 votes, or 50.6 percent to 49.4 percent. About 14,000 absentee ballots remained uncounted, mak- ing the race too close to call.

Let p = P(Absentee voter prefers Foley). How small could p have been and still have given Foley a 20% chance of overcoming Nethercutt’s lead and winning the election?

5.3.17. Which of the following two intervals has the greater probability of containing the binomial parame- ter p?[

X n

− 0.67 √

(X/n)(1 − X/n) n

, X n

+ 0.67 √

(X/n)(1 − X/n) n

]

or (

X n

, ∞ )

5.3.18. Examine the first two derivatives of the function g(p) = p(1−p) to verify the claim on p. 304 that p(1−p) ≤ 1 4 for 0 < p < 1.

5.3.19. Given the massive amount of information avail- able from the internet, public libraries might have little support. Yet, in a Pew Research Center poll of 6224 Amer- icans age sixteen and over, 3921 said the closing of their local public library would have a major impact on their communities. Find the margin of error and construct a 95% confidence interval for the proportion of Americans concerned about the closing of their libraries.

Data from: http://libraries.pewinternet.org/2013/12/11/libraries-in- communities/

308 Chapter 5 Estimation

5.3.20. Viral infections contracted early during a woman’s pregnancy can be very harmful to the fetus. One study found a total of 86 deaths and birth defects among 202 pregnancies complicated by a first-trimester German measles infection (50). Is it believable that the true pro- portion of abnormal births under similar circumstances could be as high as 50%? Answer the question by cal- culating the margin of error for the sample proportion, 86/202.

5.3.21. Rewrite Definition 5.3.1 to cover the case where a finite correction factor needs to be included (i.e., situa- tions where the sample size n is not negligible relative to the population size N).

5.3.22. A public health official is planning for the supply of influenza vaccine needed for the upcoming flu season. She took a poll of 350 local citizens and found that only 126 said they would be vaccinated. (a) Find the 90% confidence interval for the true propor- tion of people who plan to get the vaccine. (b) Find the confidence interval, including the finite cor- rection factor, assuming the town’s population is 3000.

5.3.23. Given that n observations will produce a binomial parameter estimator, Xn , having a margin of error equal to 0.06, how many observations are required for the propor- tion to have a margin of error half that size?

5.3.24. Given that a political poll shows that 52% of the sample favors Candidate A, whereas 48% would vote for Candidate B, and given that the margin of error associated

with the survey is 0.05, does it make sense to claim that the two candidates are tied? Explain.

5.3.25. Assume that the binomial parameter p is to be estimated with the function Xn , where X is the number of successes in n independent trials. Which demands the larger sample size: requiring that Xn have a 96% probabil- ity of being within 0.05 of p, or requiring that Xn have a 92% probability of being within 0.04 of p?

5.3.26. Suppose that p is to be estimated by Xn and we are willing to assume that the true p will not be greater than 0.4. What is the smallest n for which Xn will have a 99% probability of being within 0.05 of p?

5.3.27. Let p denote the true proportion of college stu- dents who support the movement to colorize classic films. Let the random variable X denote the number of stu- dents (out of n) who prefer colorized versions to black and white. What is the smallest sample size for which the probability is 80% that the difference between Xn and p is less than 0.02?

5.3.28. University officials are planning to audit 1586 new appointments to estimate the proportion p who have been incorrectly processed by the payroll department. (a) How large does the sample size need to be in order for X n , the sample proportion, to have an 85% chance of lying within 0.03 of p? (b) Past audits suggest that p will not be larger than 0.10. Using that information, recalculate the sample size asked for in part (a).

5.4 Properties of Estimators The method of maximum likelihood and the method of moments described in Sec- tion 5.2 both use very reasonable criteria to identify estimators for unknown pa- rameters, yet the two do not always yield the same answer. For example, given that Y1,Y2, . . . ,Yn is a random sample from the pdf fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ, the maxi- mum likelihood estimator for θ is θ̂ = Ymax while the method of moments estimator is θ̂ = 32Y . (See Questions 5.2.12 and 5.2.17.) Implicit in those two formulas is an obvious question—which should we use?

More generally, the fact that parameters have multiple estimators requires that we investigate the statistical properties associated with the estimation process. What qualities should a “good” estimator have? Is it possible to find a “best” θ̂? These and other questions relating to the theory of estimation will be addressed in the next several sections.

To understand the mathematics of estimation, we must first keep in mind that ev- ery estimator is a function of a set of random variables, that is, θ̂ = h(Y1,Y2, . . . ,Yn). As such, any θ̂, itself, is a random variable: In many cases of interest, it has a pdf, an expected value, and a variance, all three of which play key roles in evaluating its capabilities.

We will denote the pdf of an estimator (at some point u) with the symbol fθ̂(u) or pθ̂(u), depending on whether θ̂ is a continuous or a discrete random variable. Prob- ability calculations involving θ will reduce to integrals of fθ̂(u) (if θ̂ is continuous) or sums of pθ̂(u) (if θ̂ is discrete).

Section 5.4 Properties of Estimators 309

Example 5.4.1

a. Suppose a coin, for which p = P(heads) is unknown, is to be tossed ten times for the purpose of estimating p with the function p̂ = X10 , where X is the observed number of heads. If p = 0.60, what is the probability that ∣∣X10 − 0.60∣∣ ≤ 0.10? That is, what are the chances that the estimator will fall within 0.10 of the true value of the parameter? Here p̂ is discrete—the only values X10 can take on are 0

10 , 1

10 , . . . , 10 10 . Moreover, when p = 0.60,

pp̂

( k 10

) = P

( p̂ = k

10

) = P (X = k) =

( 10 k

) (0.60)k(0.40)10−k, k = 0, 1, . . . , 10

Therefore,

P (∣∣∣∣X10 − 0.60

∣∣∣∣ ≤ 0.10 )

= P (

0.60 − 0.10 ≤ X 10

≤ 0.60 + 0.10 )

= P (5 ≤ X ≤ 7)

= 7∑

k=5

( 10 k

) (0.60)k(0.40)10−k

= 0.6665 b. How likely is the estimator Xn to lie within 0.10 of p if the coin in part (a) is tossed

one hundred times? Given that n is so large, a Z transformation can be used to approximate the variation in X100 . Since E

(X n

) = p and Var (Xn ) = p(1 − p)/n, we can write

P (∣∣∣∣ X100 − 0.60

∣∣∣∣ ≤ 0.10 )

= P (

0.50 ≤ X 100

≤ 0.70 )

= P ⎡ ⎣0.50 − 0.60√

(0.60)(0.40) 100

≤ X/100 − 0.60√ (0.60)(0.40)

100

≤ 0.70 − 0.60√ (0.60)(0.40)

100

⎤ ⎦

.= P (−2.04 ≤ Z ≤ 2.04) = 0.9586

Figure 5.4.1 shows the two probabilities just calculated as areas under the prob- ability functions describing X10 and

X 100 . As we would expect, the larger sample size

produces a more precise estimator. With n = 10, X10 has only a 67% chance of lying in the range from 0.50 to 0.70; for n = 100, though, the probability of X100 falling within 0.10 of the true p (= 0.60) increases to 96%.

0.2 0.3 0.40 0.1 0.5 0.6 0.7 0.8 0.9 1 Values of X/n

Area = 0.6665

when p = 0.60

(Approximate) Dist of

Area = 0.9586

when p = 0.60

Dist of Xn 10

n

X 100

Figure 5.4.1

310 Chapter 5 Estimation

Are the additional ninety observations worth the gain in precision that we see in Figure 5.4.1? Maybe yes and maybe no. In general, the answer to that sort of ques- tion depends on two factors: (1) the cost of taking additional measurements, and (2) the cost of making bad decisions or inappropriate inferences because of inaccu- rate estimates. In practice, both costs, especially the latter, can be very difficult to quantify.

UNBIASEDNESS

Because they are random variables, estimators will take on different values from sample to sample. Typically, some samples will yield θe’s that underestimate θ while others will lead to θe’s that are numerically too large. Intuitively, we would like the underestimates to somehow “balance out” the overestimates—that is, θ̂ should not systematically err in any one particular direction.

Figure 5.4.2 shows the pdfs for two estimators, θ̂1 and θ̂2. Common sense tells us that θ̂1 is the better of the two because fθ̂1 (u) is centered with respect to the true θ; θ̂2, on the other hand, will tend to give estimates that are too large because the bulk of fθ̂2 (u) lies to the right of the true θ.

True u

fu1 (u)^ fu2 (u)^

True u

Figure 5.4.2

Definition 5.4.1 Suppose that Y1,Y2, . . . ,Yn is a random sample from the continuous pdf fY (y; θ), where θ is an unknown parameter. An estimator θ̂ [= h(Y1,Y2, . . . ,Yn)] is said to be unbiased (for θ) if E(θ̂) = θ for all θ. [The same concept and terminology apply if the data consist of a random sample X1, X2, . . . , Xn drawn from a discrete pdf pX (k; θ)].

Example 5.4.2

It was mentioned at the outset of this section that θ̂1 = 32Y and θ̂2 = Ymax are two estimators for θ in the pdf fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ. Are either or both unbiased?

First we need E(Y), which is ∫ θ

0 y · 2yθ2 dy = 23θ. Then using the properties of expected values, we can show that θ̂1 is unbiased for all θ:

E(θ̂1) = E (

3 2

Y )

= 3 2

E(Y) = 3 2

E(Y) = 3 2

· 2 3 θ = θ

The maximum likelihood estimator, on the other hand, is obviously biased— since Ymax is necessarily less than or equal to θ, its pdf will not be centered with respect to θ, and E(Ymax) will be less than θ. The exact factor by which Ymax tends to underestimate θ is readily calculated. Recall from Theorem 3.10.1 that

fYmax (y) = nFY (y)n−1 fY (y) The cdf for Y is

FY (y) = ∫ y

0

2t θ2

dt = y 2

θ2

Section 5.4 Properties of Estimators 311

Then

fYmax (y) = n (

y2

θ2

)n−1 2y θ2

= 2n θ2n

y2n−1, 0 ≤ y ≤ θ

Therefore,

E(Ymax) = ∫ θ

0 y · 2n

θ2n y2n−1dy = 2n

θ2n

∫ θ 0

y2ndy = 2n θ2n

· θ 2n+1

2n + 1 = 2n

2n + 1θ

Note that the bias decreases as n grows. For example, if n = 4, E(θ̂2) = 0.89θ; for n = 20, E(θ̂2) = 0.98θ. In the limit, we have lim

n→∞ E(θ̂2) = limn→∞ 2n

2n+1θ = θ. We say in such a case that θ̂2 is asymptotically unbiased.

Comment For any finite n, we can construct an estimator based on Ymax that is un- biased. Let θ̂3 = 2n+12n · Ymax. Then

E(θ̂3) = E (

2n + 1 2n

· Ymax )

= 2n + 1 2n

E(Ymax) = 2n + 12n · 2n

2n + 1θ = θ

Example 5.4.3

Let X1, X2, . . . , Xn be a random sample from a discrete pdf pX (k; θ), where θ = E(X ) is an unknown, non-zero parameter. Consider the estimator

θ̂ = n∑

i=1 aiXi

where the ai’s are constants. For what values of a1, a2, . . . , an will θ̂ be unbiased? By assumption, θ = E(X ), so

E(θ̂) = E ( n∑

i=1 aiXi

)

= n∑

i=1 aiE(Xi) =

n∑ i=1

aiθ

= θ n∑

i=1 ai

Clearly, θ̂ will be unbiased for any set of ai’s for which n∑

i=1 ai = 1.

Example 5.4.4

Given a random sample Y1,Y2, . . . ,Yn from a normal distribution whose parameters μ and σ2 are both unknown, the maximum likelihood estimator for σ2 is

σ̂2 = 1 n

n∑ i=1

(Yi − Y)2

(recall Example 5.2.5). Is σ̂2 unbiased for σ2? If not, what function of σ̂2 does have an expected value equal to σ2?

Notice, first, from Theorem 3.6.1 that for any random variable Y , Var(Y) = E(Y 2)−[E(Y)]2. Also, from Section 3.9, for any average, Y , of a sample of n random

312 Chapter 5 Estimation

variables, Y1,Y2, . . . ,Yn, E(Y) = E(Yi) and Var(Y) = (1/n)Var(Yi). Using those re- sults, we can write

E(σ̂2) = E [

1 n

n∑ i=1

(Yi − Y)2 ]

= E [

1 n

n∑ i=1

( Y 2i − 2YiY + Y

2)]

= E [

1 n

( n∑

i=1 Y 2i − nY

2

)]

= 1 n

[ n∑

i=1 E ( Y 2i

) − nE(Y 2) ]

= 1 n

[ n∑

i=1

( σ2 + μ2) − n(σ2

n + μ2)

]

= n − 1 n

σ2

Since the latter is not equal to σ2, σ̂2 is biased. To “unbias” the maximum likelihood estimator in this case, we need simply mul-

tiply σ̂2 by nn−1 . By convention, the unbiased version of the maximum likelihood es- timator for σ2 in a normal distribution is denoted S2 and is referred to as the sample variance:

S2 = sample variance = n n − 1 ·

1 n

n∑ i=1

(Yi − Y)2

= 1 n − 1

n∑ i=1

(Yi − Y)2

Comment The square root of the sample variance is called the sample standard deviation:

S = sample standard deviation = √√√√ 1

n − 1 n∑

i=1 (Yi − Y)2

In practice, S is the most commonly used estimator for σ even though E(S) = σ despite the fact that E(S2) = σ2.

Questions

5.4.1. Two chips are drawn without replacement from an urn containing five chips, numbered 1 through 5. The av- erage of the two drawn is to be used as an estimator, θ̂, for the true average of all the chips (θ = 3). Calculate P(|θ̂ − 3| > 1.0). 5.4.2. Suppose a random sample of size n = 6 is drawn from the uniform pdf fY (y; θ) = 1/θ, 0 ≤ y ≤ θ, for the purpose of using θ̂ = Ymax to estimate θ. (a) Calculate the probability that θ̂ falls within 0.2 of θ given that the parameter’s true value is 3.0.

(b) Calculate the probability of the event asked for in part (a), assuming the sample size is 3 instead of 6.

5.4.3. Five hundred adults are asked whether they favor a bipartisan campaign finance reform bill. If the true pro- portion of the electorate is 52% in favor of the legislation, what are the chances that fewer than half of those in the sample support the proposal? Use a Z transformation to approximate the answer.

5.4.4. A sample of size n = 16 is drawn from a normal distribution where σ = 10 but μ is unknown. If μ = 20,

Section 5.4 Properties of Estimators 313

what is the probability that the estimator μ̂ = Y will lie between 19.0 and 21.0?

5.4.5. Suppose X1, X2, . . . , Xn is a random sample of size n drawn from a Poisson pdf where λ is an unknown pa- rameter. Show that λ̂ = X is unbiased for λ. For what type of parameter, in general, will the sample mean neces- sarily be an unbiased estimator? (Hint: The answer is im- plicit in the derivation showing that X is unbiased for the Poisson λ.)

5.4.6. Let Ymin be the smallest order statistic in a random sample of size n drawn from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ. Find an unbiased estimator for θ based on Ymin.

5.4.7. Let Y be the random variable described in Example 5.2.4, where fY (y; θ) = e−(y−θ), y ≥ θ, θ > 0. Show that Ymin − 1n is an unbiased estimator of θ. 5.4.8. Suppose that 14, 10, 18, and 21 constitute a random sample of size 4 drawn from a uniform pdf defined over the interval [0, θ], where θ is unknown. Find an unbiased estimator for θ based on Y ′3, the third order statistic. What numerical value does the estimator have for these par- ticular observations? Is it possible that we would know that an estimate for θ based on Y ′3 was incorrect, even if we had no idea what the true value of θ might be? Explain.

5.4.9. A random sample of size 2,Y1 andY2, is drawn from the pdf

fY (y; θ) = 2yθ2, 0 < y < 1 θ

What must c equal if the statistic c(Y1 + 2Y2) is to be an unbiased estimator for 1

θ ?

5.4.10. A sample of size 1 is drawn from the uniform pdf defined over the interval [0, θ]. Find an unbiased estima- tor for θ2. (Hint: Is θ̂ = Y 2 unbiased?) 5.4.11. Suppose that W is an unbiased estimator for θ. Can W 2 be an unbiased estimator for θ2?

5.4.12. We showed in Example 5.4.4 that σ̂2 = 1 n

n∑ i=1

(Yi − Y)2 is biased for σ2. Suppose μ is known and does not have to be estimated by Y . Show that

σ̂2 = 1n n∑

i=1 (Yi − μ)2 is unbiased for σ2.

5.4.13. As an alternative to imposing unbiasedness, an es- timator’s distribution can be “centered” by requiring that its median be equal to the unknown parameter θ. If it is, θ̂ is said to be median unbiased. Let Y1,Y2, . . . ,Yn be a random sample of size n from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ. For arbitrary n, is θ̂ = n+1n · Ymax median unbiased? Is it median unbiased for any value of n?

5.4.14. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf fY (y; θ) = 1θ e−y/θ, y > 0. Let θ̂ = n · Ymin. Is θ̂ unbiased for θ? Is θ̂ = 1n

n∑ i=1

Yi unbiased for θ?

5.4.15. An estimator θ̂n = h(W1, . . . ,Wn) is said to be asymptotically unbiased for θ if lim

n→∞E(θ̂n) = θ. Suppose W is a random variable with E(W) = μ and with variance σ2. Show that W

2 is an asymptotically unbiased estimator

for μ2.

5.4.16. Is the maximum likelihood estimator for σ2 in a normal pdf, where both μ and σ2 are unknown, asymptot- ically unbiased?

EFFICIENCY

As we have seen, unknown parameters can have a multiplicity of unbiased estima- tors. For samples drawn from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ, for example, both θ̂ = n+1n · Ymax and θ̂ = 2n

n∑ i=1

Yi have expected values equal to θ. Does it matter

which we choose? Yes. Unbiasedness is not the only property we would like an estimator to have;

also important is its precision. Figure 5.4.3 shows the pdfs associated with two hypo- thetical estimators, θ̂1 and θ̂2. Both are unbiased for θ, but θ̂2 is clearly the better of the two because of its smaller variance. For any value r,

P(θ − r ≤ θ̂2 ≤ θ + r) > P(θ − r ≤ θ̂1 ≤ θ + r)

That is, θ̂2 has a greater chance of being within a distance r of the unknown θ than does θ̂1.

314 Chapter 5 Estimation

u – r u u + r

f (u) u ^

2

^P (| u – u | # r)2

^P (| u – u | # r)1

f (u)û1

Figure 5.4.3

Definition 5.4.2 Let θ̂1 and θ̂2 be two unbiased estimators for a parameter θ. If

Var(θ̂1) < Var(θ̂2)

we say that θ̂1 is more efficient than θ̂2. Also, the relative efficiency of θ̂1 with respect to θ̂2 is the ratio Var(θ̂2)/Var(θ̂1).

Example 5.4.5

Let Y1, Y2, and Y3 be a random sample from a normal distribution where both μ and σ are unknown. Which of the following is a more efficient estimator for μ?

μ̂1 = 14Y1 + 1 2

Y2 + 14Y3 or

μ̂2 = 13Y1 + 1 3

Y2 + 13Y3 Notice, first, that both μ̂1 and μ̂2 are unbiased for μ by Example 5.4.3. But Var(μ̂2) < Var(μ̂1) so μ̂2 is the more efficient of the two:

Var(μ̂1) = Var (

1 4

Y1 + 12Y2 + 1 4

Y3

)

= 1 16

Var(Y1) + 14Var(Y2) + 1 16

Var(Y3)

= 3σ 2

8

Var(μ̂2) = Var (

1 3

Y1 + 13Y2 + 1 3

Y3

)

= 1 9

Var(Y1) + 19Var(Y2) + 1 9

Var(Y3)

= 3σ 2

9

(The relative efficiency of μ̂2 to μ̂1 is

3σ2

8

/ 3σ2

9

or 1.125.)

Section 5.4 Properties of Estimators 315

Example 5.4.6

Let Y1, . . . ,Yn be a random sample from the pdf fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ. We know from Example 5.4.2 that θ̂1 = 32Y and θ̂2 = 2n+12n Ymax are both unbiased for θ. Which estimator is more efficient?

First, let us calculate the variance of θ̂1 = 32Y . To do so, we need the variance of Y . To that end, note that

E(Y 2) = ∫ θ

0 y2 · 2y

θ2 dy = 2

θ2

∫ θ 0

y3dy = 2 θ2

· θ 4

4 = 1

2 θ2

and

Var(Y) = E(Y 2) − E(Y)2 = 1 2 θ2 −

( 2 3 θ

)2 = θ

2

18

Then

Var(θ̂1) = Var (

3 2

Y )

= 9 4

Var(Y) = 9 4

Var(Y) n

= 9 4n

· θ 2

18 = θ

2

8n

To address the variance of θ̂2 = 2n+12n Ymax, we start with finding the variance of Ymax. Recall that its pdf is

nFY (y)n−1 fY (y) = 2n θ2n

y2n−1, 0 ≤ y ≤ θ From that expression, we obtain

E(Y 2max) = ∫ θ

0 y2 · 2n

θ2n y2n−1dy = 2n

θ2n

∫ θ 0

y2n+1dy = 2n θ2n

· θ 2n+2

2n + 2 = n

n + 1θ 2

and then

Var(Ymax) = E(Y 2max) − E(Ymax)2 = n

n + 1θ 2 −

( 2n

2n + 1θ )2

= n (n + 1)(2n + 1)2 θ

2

Finally,

Var(θ̂2) = Var (

2n + 1 2n

Ymax

) = (2n + 1)

2

4n2 Var(Ymax) = (2n + 1)

2

4n2 · n

(n + 1)(2n + 1)2 θ 2

= 1 4n(n + 1)θ

2

Note that Var(θ̂2) = 14n(n+1)θ2 < 18nθ2 = Var(θ̂1) for n > 1, so we say that θ̂2 is more efficient than θ̂1. The relative efficiency of θ̂2 with respect to θ̂1 is the ratio of their variances:

Var(θ̂1)

Var(θ̂2) = 1

8n θ2 ÷ 1

4n(n + 1)θ 2 = 4n(n + 1)

8n = (n + 1)

2

Questions

5.4.17. Let X1, X2, . . . , Xn denote the outcomes of a series of n independent trials, where

Xi = {

1 with probability p 0 with probability 1 − p

for i = 1, 2, . . . , n. Let X = X1 + X2 + · · · + Xn.

(a) Show that p̂1 = X1 and p̂2 = Xn are unbiased estima- tors for p. (b) Intuitively, p̂2 is a better estimator than p̂1 because p̂1 fails to include any of the information about the parame- ter contained in trials 2 through n. Verify that speculation by comparing the variances of p̂1 and p̂2.

316 Chapter 5 Estimation

5.4.18. Suppose that n = 5 observations are taken from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ, where θ is unknown. Two unbiased estimators for θ are

θ̂1 = 65 · Ymax and θ̂2 = 6 · Ymin Which estimator would be better to use? (Hint: What must be true of Var(Ymax) and Var(Ymin) given that fY (y; θ) is symmetric?) Does your answer as to which estimator is better make sense on intuitive grounds? Explain.

5.4.19. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf fY (y; θ) = 1θ e−y/θ, y > 0. (a) Show that θ̂1 = Y1, θ̂2 = Y , and θ̂3 = n · Ymin are all unbiased estimators for θ. (b) Find the variances of θ̂1, θ̂2, and θ̂3.

(c) Calculate the relative efficiencies of θ̂1 to θ̂3 and θ̂2 to θ̂3.

5.4.20. Given a random sample of size n from a Poisson distribution, λ̂1 = X1 and λ̂2 = X are two unbiased esti- mators for λ. Calculate the relative efficiency of λ̂1 to λ̂2.

5.4.21. If Y1,Y2, . . . ,Yn are random observations from a uniform pdf over [0, θ], both θ̂1 =

( n+1 n

) · Ymax and θ̂2 = (n + 1) · Ymin are unbiased estimators for θ. Show that Var(θ̂2)/Var(θ̂1) = n2. 5.4.22. Suppose that W1 is a random variable with mean μ and variance σ21 and W2 is a random variable with mean μ and variance σ22. From Example 5.4.3, we know that cW1 + (1 − c)W2 is an unbiased estimator of μ for any constant c > 0. If W1 and W2 are independent, for what value of c is the estimator cW1 + (1 − c)W2 most efficient?

5.5 Minimum-Variance Estimators: The Cramér-Rao Lower Bound

Given two estimators, θ̂1 and θ̂2, each unbiased for the parameter θ, we know from Section 5.4 which is “better”—the one with the smaller variance. But nothing in that section speaks to the more fundamental question of how good θ̂1 and θ̂2 are relative to the many other unbiased estimators for θ. Is there a θ̂3, for example, that has a smaller variance than either θ̂1 or θ̂2 has? Can we identify the unbiased estimator having the smallest variance? Addressing those concerns is one of the most elegant, yet practical, theorems in all of mathematical statistics, a result known as the Cramér- Rao lower bound.

Suppose a random sample of size n is taken from, say, a continuous probability distribution fY (y; θ), where θ is an unknown parameter. Associated with fY (y; θ) is a theoretical limit below which the variance of any unbiased estimator for θ cannot fall. That limit is the Cramér-Rao lower bound. If the variance of a given θ̂ is equal to the Cramér-Rao lower bound, we know that estimator is optimal in the sense that no unbiased θ̂ can estimate θ with greater precision.

Theorem 5.5.1

(Cramér-Rao Inequality.) Let fY (y; θ) be a continuous pdf with continuous first- order and second-order derivatives. Also, suppose that the set of y values, where fY (y; θ) = 0, does not depend on θ.

Let Y1,Y2, . . . ,Yn be a random sample from fY (y; θ), and let θ̂ = h(Y1, Y2, . . . ,Yn) be any unbiased estimator of θ. Then

Var(θ̂) ≥ {

nE

[( ∂ ln fY (Y ; θ)

∂θ

)2]}−1 =

{ −nE

[ ∂2 ln fY (Y ; θ)

∂θ2

]}−1

[A similar statement holds if the n observations come from a discrete pdf, pX (k; θ)].

Proof See (101).

Section 5.5 Minimum-Variance Estimators: The Cramér-Rao Lower Bound 317

Example 5.5.1

Suppose the random variables X1, X2, . . . , Xn denote the number of successes (0 or 1) in each of n independent trials, where p= P(Success occurs at any given trial) is an unknown parameter. Then

pXi (k; p) = pk(1 − p)1−k, k = 0, 1; 0 < p < 1 Let X = X1+X2+· · ·+Xn = total number of successes and define p̂ = Xn . Clearly, p̂ is unbiased for p

[ E(p̂) = E (Xn ) = E(X )n = npn = p]. How does Var(p̂) compare with

the Cramér-Rao lower bound for pXi (k; p)? Note, first, that

Var(p̂) = Var (

X n

) = 1

n2 Var(X ) = 1

n2 np(1 − p) = p(1 − p)

n

(since X is a binomial random variable). To evaluate, say, the second form of the Cramér-Rao lower bound, we begin by writing

ln pXi (Xi; p) = Xi ln p + (1 − Xi) ln(1 − p) Moreover,

∂ ln pXi (Xi; p) ∂ p

= Xi p

− 1 − Xi 1 − p

and

∂2 ln pXi (Xi; p) ∂ p2

= −Xi p2

− 1 − Xi (1 − p)2

Taking the expected value of the second derivative gives

E [ ∂2 ln pXi (Xi; p)

∂ p2

] = − p

p2 − (1 − p)

(1 − p)2 = − 1

p(1 − p) The Cramér-Rao lower bound, then, reduces to

1

−n [ − 1p(1−p)

] = p(1 − p) n

which equals the variance of p̂ = Xn . It follows that Xn is the preferred statistic for estimating the binomial parameter p: No unbiased estimator can possibly be more precise.

Definition 5.5.1 Let � denote the set of all estimators θ̂ = h(Y1,Y2, . . . ,Yn) that are unbiased for the parameter θ in the continuous pdf fY (y; θ). We say that θ̂∗ is a best (or minimum-variance) estimator if θ̂∗ ∈ � and

Var(θ̂∗) ≤ Var(θ̂) for all θ̂ ∈ � [Similar terminology applies if � is the set of all unbiased estimators for the parameter � in a discrete pdf, pX (k; θ)].

Related to the notion of a best estimator is the concept of efficiency. The connec- tion is spelled out in Definition 5.5.2 for the case where θ̂ is based on data coming from a continuous pdf fY (y; θ). The same terminology applies if the data are a set of Xi’s from a discrete pdf pX (k; θ).

318 Chapter 5 Estimation

Definition 5.5.2 Let Y1,Y2, . . . ,Yn be a random sample of size n drawn from the continuous pdf fY (y; θ). Let θ̂ = h(Y1,Y2, . . . ,Yn) be an unbiased estimator for θ. a. The unbiased estimator θ̂ is said to be efficient if the variance of θ̂ equals the

Cramér-Rao lower bound associated with fY (y; θ).

b. The efficiency of an unbiased estimator θ̂ is the ratio of the Cramér-Rao lower bound for fY (y; θ) to the variance of θ̂.

Comment The designations “efficient” and “best” are not synonymous. If the vari- ance of an unbiased estimator is equal to the Cramér-Rao lower bound, then that estimator by definition is a best estimator. The converse, though, is not always true. There are situations for which the variances of no unbiased estimators achieve the Cramér-Rao lower bound. None of those, then, is efficient, but one (or more) could still be termed best. For the independent trials described in Example 5.5.1, p̂ = Xn is both efficient and best.

Example 5.5.2

If Y1,Y2, . . . ,Yn is a random sample from fY (y; θ) = 2y/θ2, 0 ≤ y ≤ θ, θ̂ = 32Y is an unbiased estimator for θ (see Example 5.4.2). Show that the variance of θ̂ is less than the Cramér-Rao lower bound for fY (y; θ).

From Example 5.4.6, we know that

Var(θ̂) = θ 2

8n

To calculate the Cramér-Rao lower bound for fY (y; θ), we first note that

ln fY (Y ; θ) = ln(2Yθ−2) = ln 2Y − 2 ln θ and

∂ ln fY (Y ; θ) ∂θ

= −2 θ

Therefore,

E

[( ∂ ln fY (Y ; θ)

∂θ

)2] = E

( 4 θ2

) =

∫ θ 0

4 θ2

· 2y θ2

dy

= 4 θ2

and { nE

[( ∂ ln fY (Y ; θ)

∂θ

)2]}−1 = θ

2

4n

Is the variance of θ̂ less than the Cramér-Rao lower bound? Yes, θ 2

8n < θ2

4n . Is the statement of Theorem 5.5.1 contradicted? No, because the theorem does not apply in this situation: The set of y’s where fY (y; θ) = 0 is a function of θ, a condition that violates one of the Cramér-Rao assumptions.

Section 5.6 Sufficient Estimators 319

Questions

5.5.1. Let Y1,Y2, . . . ,Yn be a random sample from fY (y; θ) = 1θ e−y/θ, y > 0. Compare the Cramér-Rao lower bound for fY (y; θ) to the variance of the maximum like-

lihood estimator for θ, θ̂ = 1n n∑

i=1 Yi. Is Y a best estimator

for θ?

5.5.2. Let X1, X2, . . . , Xn be a random sample of size n from the Poisson distribution, pX (k; λ) = e−λλkk! , k = 0, 1, . . .. Show that λ̂ = 1n

n∑ i=1

Xi is an efficient estimator

for λ.

5.5.3. Suppose a random sample of size n is taken from a normal distribution with mean μ and variance σ2, where σ2 is known. Compare the Cramér-Rao lower bound for

fY (y; μ) with the variance of μ̂ = Y = 1n n∑

i=1 Yi. Is Y an

efficient estimator for μ?

5.5.4. Let Y1,Y2, . . . ,Yn be a random sample from the uniform pdf fY (y; θ) = 1/θ, 0 ≤ y ≤ θ. Compare the

Cramér-Rao lower bound for fY (y; θ) with the variance of the unbiased estimator θ̂ = n+1n · Ymax. Discuss. 5.5.5. Let X have the pdf fX (k; θ) = (θ−1)

k−1

θk , k =

1, 2, 3, . . ., θ > 1, which is geometric (p = 1/θ). For this pdf E(X ) = θ and Var(X ) = θ(θ−1) (see Theorem 4.4.1). Is the statistic X efficient?

5.5.6. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf

fY (y; θ) = 1(r − 1)!θr y r−1e−y/θ, y > 0

(a) Show that θ̂ = 1r Y is an unbiased estimator for θ. (b) Show that θ̂ = 1r Y is a minimum-variance estimator for θ.

5.5.7. Prove the equivalence of the two forms given for the Cramér-Rao lower bound in Theorem 5.5.1. (Hint: Dif- ferentiate the equation

∫ ∞ −∞ fY (y) dy = 1 with respect to

θ and deduce that ∫ ∞ −∞

∂ ln fY (y) ∂θ

fY (y) dy = 0. Then differ- entiate again with respect to θ.)

5.6 Sufficient Estimators Statisticians have proven to be quite diligent (and creative) in articulating properties that good estimators should exhibit. Sections 5.4 and 5.5, for example, introduced the notions of an estimator being unbiased and having minimum variance; Section 5.7 will explain what it means for an estimator to be “consistent.” All of those properties are easy to motivate, and they impose conditions on the probabilistic behavior of θ̂ that make eminently good sense. In this section, we look at a deeper property of estimators, one that is not so intuitive but has some particularly important theoretical implications.

Whether or not an estimator is sufficient refers to the amount of “information” it contains about the unknown parameter. Estimates, of course, are calculated us- ing values obtained from random samples drawn from either pX (k; θ) or fY (y; θ). If everything that we can possibly know from the data about θ is encapsulated in the estimate θe, then the corresponding estimator θ̂ is said to be sufficient. A comparison of two estimators, one sufficient and the other not, should help clarify the concept.

AN ESTIMATOR THAT IS SUFFICIENT

Suppose that a random sample of size n—X1 = k1, X2 = k2, . . . , Xn = kn—is taken from the Bernoulli pdf,

pX (k; p) = pk(1 − p)1−k, k = 0, 1

where p is an unknown parameter. We know from Example 5.1.1 that the maximum

likelihood estimator for p is p̂ = ( 1n) n∑ i=1

Xi and the maximum likelihood estimate is

320 Chapter 5 Estimation

pe = ( 1

n

) n∑ i=1

ki. To show that p̂ is a sufficient estimator for p requires that we calculate

the conditional probability that X1 = k1, . . . , Xn = kn given that p̂ = pe. Generalizing the Comment following Example 3.11.3, we can write

P(X1 = k1, . . . , Xn = kn | p̂ = pe) = P(X1 = k1, . . . , Xn = kn ∩ p̂ = pe)P(p̂ = pe)

= P(X1 = k1, . . . , Xn = kn) P(p̂ = pe)

But

P(X1 = k1, . . . , Xn = kn) = pk1 (1 − p)1−k1 · · · pkn (1 − p)1−kn

= p n∑

i=1 ki

(1 − p)n− n∑

i=1 ki

= pnpe (1 − p)n−npe and

P(p̂ = pe) = P (

n∑ i=1

Xi = npe )

= (

n npe

) pnpe (1 − p)n−npe

since n∑

i=1 Xi has a binomial distribution with parameters n and p (recall Example

3.9.3). Therefore,

P(X1 = k1, . . . , Xn = kn | p̂ = pe) = p npe (1 − p)n−npe(

n npe

) pnpe (1 − p)n−npe

= 1( n

npe

) (5.6.1) Notice that P(X1 = k1, . . . , Xn = kn | p̂ = pe) is not a function of p. That is pre-

cisely the condition that makes p̂ = ( 1n) n∑ i=1

Xi a sufficient estimator. Equation 5.6.1

says, in effect, that everything the data can possibly tell us about the parameter p is contained in the estimate pe. Remember that, initially, the joint pdf of the sample, P(X1 = k1, . . . , Xn = kn), is a function of the ki’s and p. What we have just shown, though, is that if that probability is conditioned on the value of this particular esti- mate, that is, on p̂ = pe, then p is eliminated and the probability of the sample is completely determined (in this case, it equals

( n

npe

)−1 , where

( n

npe

) is the number of

ways to arrange the 0’s and 1’s in a sample of size n for which p̂ = pe). If we had used some other estimator, say, p̂∗, and if P(X1 = k1, . . . , Xn = kn |

p̂∗ = p∗e) had remained a function of p, the conclusion would be that the information in p∗e was not “sufficient” to eliminate the parameter p from the conditional proba- bility. A simple example of such a p̂∗ would be p̂∗ = X1. Then p∗e would be k1 and the conditional probability of X1 = k1, . . . , Xn = kn given that p̂∗ = p∗e would remain a function of p:

P(X1 = k1, . . . , Xn = kn | p̂∗ = k1) = p n∑

i=1 ki

(1 − p)n − n∑

i=1 ki

pk1 (1 − p)1−k1 = p n∑

i=2 ki

(1 − p)n−1− n∑

i=2 ki

Comment Some of the dice problems we did in Section 2.4 have aspects that parallel to some extent the notion of an estimator being sufficient. Suppose, for example, we roll a pair of fair dice without being allowed to view the outcome. Our objective is to calculate the probability that the sum showing is an even number. If we had no

Section 5.6 Sufficient Estimators 321

other information, the answer would be 12 . Suppose, though, that two people do see the outcome, which was, in fact, a sum of 7, and each is allowed to characterize the outcome without providing us with the exact sum that occurred. Person A tells us that “the sum was less than or equal to 7”; person B says that “the sum was an odd number.”

Whose information is more helpful? Person B’s. The conditional probability of the sum being even given that the sum is less than or equal to 7 is 921 , which still leaves our initial question largely unanswered:

P(Sum is even | sum ≤ 7) = P(2) + P(4) + P(6) P(2) + P(3) + P(4) + P(5) + P(6) + P(7)

= 1

36 + 336 + 536 1

36 + 236 + 336 + 436 + 536 + 636 = 9

21

In contrast, person B utilized the data in a way that definitely answered the original question:

P(Sum is even | Sum is odd) = 0 In a sense, B’s information was “sufficient”; A’s information was not.

AN ESTIMATOR THAT IS NOT SUFFICIENT

Suppose a random sample of size n (Y1, Y2, . . . ,Yn) is drawn from the pdf fY (y; θ) = 2y θ2

, 0 ≤ y ≤ θ, where θ is an unknown parameter. Recall that the method of moments estimator is

θ̂ = 3 2

Y = 3 2n

n∑ i=1

Yi

This statistic is not sufficient because all the information in the data that pertains to the parameter θ is not necessarily contained in the numerical value θe.

If θ̂ were a sufficient statistic, then any two random samples of size n having the same value for θe should yield exactly the same information about θ. However, a simple numerical example shows this not to be the case. Consider two random samples of size 3: y1 = 3, y2 = 4, y3 = 5 and y1 = 1, y2 = 3, y3 = 8. In both cases,

θe = 32y = 3

2 · 3 3∑

i=1 yi = 6

Do both samples, though, convey the same information about the possible value of θ? No. Based on the first sample, the true θ could, in fact, be equal to 4. On the other hand, the second sample rules out the possibility that θ is 4 because one of the observations (y3 = 8) is larger than 4, but according to the definition of the pdf, all Yi’s must be less than θ.

A FORMAL DEFINITION

Suppose that X1 = k1, . . . , Xn = kn is a random sample of size n from the discrete pdf pX (k; θ), where θ is an unknown parameter. Conceptually, θ̂ is a sufficient statistic

322 Chapter 5 Estimation

for θ if

P(X1 = k1, . . . , Xn = kn | θ̂ = θe) = P(X1 = k1, . . . , Xn = kn ∩ θ̂ = θe) P(θ̂ = θe)

=

n∏ i=1

pX (ki; θ)

pθ̂(θe; θ) = b(k1, . . . , kn) (5.6.2)

where pθ̂ (θe; θ) is the pdf of the statistic evaluated at the point θ̂ = θe and b(k1, . . . , kn) is a constant independent of θ. Equivalently, the condition that qualifies a statistic as being sufficient can be expressed by cross multiplying Equation 5.6.2.

Definition 5.6.1 Let X1 = k1, . . . , Xn = kn be a random sample of size n from pX (k; θ). The statistic θ̂ = h(X1, . . . , Xn) is sufficient for θ if the likelihood function, L(θ), fac- tors into the product of the pdf for θ̂ and a constant that does not involve θ, that is, if

L(θ) = n∏

i=1 pX (ki; θ) = pθ̂(θe; θ)b(k1, . . . , kn)

A similar statement holds if the data consist of a random sample Y1 = y1, . . . ,Yn = yn drawn from a continuous pdf fY (y; θ).

Comment If θ̂ is sufficient for θ, then any one-to-one function of θ̂ is also a sufficient statistic for θ. As a case in point, we showed on p. 320 that

p̂ = (

1 n

) n∑ i=1

Xi

is a sufficient statistic for the parameter p in a Bernoulli pdf. It is also true, then, that

p̂∗ = np̂ = n∑

i=1 Xi

is sufficient for p.

Example 5.6.1

Let X1 = k1, . . . , Xn = kn be a random sample of size n from the Poisson pdf, pX (k; λ) = e−λλk/k!, k = 0, 1, 2, . . .. Show that

λ̂ = n∑

i=1 Xi

is a sufficient statistic for λ. From Example 3.12.10, we know that λ̂, being a sum of n independent Poisson

random variables, each with parameter λ, is itself a Poisson random variable with

Section 5.6 Sufficient Estimators 323

parameter nλ. By Definition 5.6.1, then, λ̂ is a sufficient statistic for λ if the sample’s likelihood function factors into a product of the pdf for λ̂ times a constant that is independent of λ.

But

L(λ) = n∏

i=1 e−λλki/ki! = e−nλλ

n∑ i=1

ki / n∏

i=1 ki!

= e−nλn

n∑ i=1

ki λ

n∑ i=1

ki (

n∑ i=1

ki

) !

( n∑

i=1 ki

) !

n∏ i=1

ki!n

n∑ i=1

ki

= e −nλ(nλ)

n∑ i=1

ki( n∑

i=1 ki

) !

·

( n∑

i=1 ki

) !

n∏ i=1

ki!n

n∑ i=1

ki

= pλ̂(λe; λ) · b(k1, . . . , kn) (5.6.3)

proving that λ̂ = n∑

i=1 Xi is a sufficient statistic for λ.

Comment The factorization in Equation 5.6.3 implies that λ̂ = n∑

i=1 Xi is a sufficient

statistic for λ. It is not, however, an unbiased estimator for λ:

E(λ̂) = n∑

i=1 E(Xi) =

n∑ i=1

λ = nλ

Constructing an unbiased estimator based on the sufficient statistic, though, is a sim- ple matter. Let

λ̂∗ = 1 n

λ̂ = 1 n

n∑ i=1

Xi

Then E(λ̂∗) = 1n E(λ̂) = 1n nλ = λ, so λ̂∗ is unbiased for λ. Moreover, λ̂∗ is a one-to- one function of λ̂, so, by the Comment on p. 322, λ̂∗ is, itself, a sufficient estimator for λ.

A SECOND FACTORIZATION CRITERION

Using Definition 5.6.1 to verify that a statistic is sufficient requires that the pdf pθ̂[h(k1, . . . , kn); θ] or fθ̂[h(y1, . . . , yn); θ] be explicitly identified as one of the two factors whose product equals the likelihood function. If θ̂ is complicated, though, finding its pdf may be prohibitively difficult. The next theorem gives an alternative factorization criterion for establishing that a statistic is sufficient. It does not require that the pdf for θ̂ be known.

324 Chapter 5 Estimation

Theorem 5.6.1

Let X1 = k1, . . . , Xn = kn be a random sample of size n from the discrete pdf pX (k; θ). The statistic θ̂ = h(X1, . . . , Xn) is sufficient for θ if and only if there are functions g[h(k1, . . . , kn); θ] and b(k1, . . . , kn) such that

L(θ) = g[h(k1, . . . , kn); θ] · b(k1, . . . , kn) (5.6.4) where the function b(k1, . . . , kn) does not involve the parameter θ. A similar state- ment holds in the continuous case.

Proof First, suppose that θ̂ is sufficient for θ. Then the factorization criterion of Definition 5.6.1 includes Equation 5.6.4 as a special case.

Now, assume that Equation 5.6.4 holds. The theorem will be proved if it can be shown that g[b(k1, . . . , kn); θ] can always be “converted” to include the pdf of θ̂ (at which point Definition 5.6.1 would apply). Let c be some value of the function h(k1, . . . , kn) and let A be the set of samples of size n that constitute the inverse image of c, that is, A = h−1(c). Then

pθ̂(c; θ) = ∑

(k1,k2,...,kn)εA

pX1,X2,...,Xn (k1, k2, . . . , kn) = ∑

(k1,k2,...,kn)εA

n∏ i=1

pXi (ki)

= ∑

(k1,k2,...,kn)εA

g(c; θ) · b(k1, k2, . . . , kn) = g(c; θ) · ∑

(k1,k2,...,kn)εA

b(k1, k2, . . . , kn)

Since we are interested only in points where pθ̂(c; θ) = 0, we can assume that∑ (k1,k2,...,kn)εA

b(k1, k2, . . . , kn) = 0. Therefore,

g(c; θ) = pθ̂(c; θ) · 1∑

(k1,k2,...,kn)εA b(k1, k2, . . . , kn)

(5.6.5)

Substituting the right-hand side of Equation 5.6.5 into Equation 5.6.4 shows that θ̂ qualifies as a sufficient statistic for θ. A similar argument can be made if the data consist of a random sample Y1 = y1, . . . ,Yn = yn drawn from a continuous pdf fY (y; θ). See (211) for more details.

Example 5.6.2

Suppose Y1, . . . ,Yn is a random sample from fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ. We know from Question 5.2.12 that the maximum likelihood estimator for θ is θ̂ = Ymax. Is Ymax also sufficient for θ?

Since the set of Y values where fY (y; θ) = 0 depends on θ, the likelihood func- tion must be written in a way to include that restriction. The device achieving that goal is called an indicator function. We define the function I[0,θ](y) by

I[0,θ](y) = {

1 0 ≤ y ≤ θ 0 otherwise

Then we can write fY (y; θ) = 2yθ2 · I[0,θ](y) for all y. The likelihood function is

L(θ) = n∏

i=1

2yi θ2

· I[0,θ](yi) = (

n∏ i=1

2yi

)( 1

θ2n

) n∏ i=1

I[0,θ](yi)

Section 5.6 Sufficient Estimators 325

But the critical fact is that n∏

i=1 I[0,θ](yi) = I[0,θ](ymax)

Thus the likelihood function decomposes in such a way that the factor involving θ contains only the yi’s through ymax:

L(θ) = (

n∏ i=1

2yi

)( 1

θ2n

) n∏ i=1

I[0,θ](yi) = [

I[0,θ](ymax) θ2n

] · (

n∏ i=1

2yi

)

This decomposition meets the criterion of Theorem 5.6.1, and Ymax is sufficient for θ. (Why doesn’t this argument work for Ymin?)

SUFFICIENCY AS IT RELATES TO OTHER PROPERTIES OF ESTIMATORS

This chapter has constructed a rather elaborate facade of mathematical properties and procedures associated with estimators. We have asked whether θ̂ is unbiased, efficient, and/or sufficient. How we find θ̂ has also come under scrutiny—some es- timators have been derived using the method of maximum likelihood; others have come from the method of moments. Not all of these aspects of estimators and estima- tion, though, are entirely disjoint—some are related and interconnected in a variety of ways.

Suppose, for example, that a sufficient estimator θ̂S exists for a parameter θ, and suppose that θ̂M is the maximum likelihood estimator for that same θ. If, for a given sample, θ̂S = θe, we know from Theorem 5.6.1 that

L(θ) = g(θe; θ) · b(k1, . . . , kn) Since the maximum likelihood estimate, by definition, maximizes L(θ), it must also maximize g(θe; θ). But any θ that maximizes g(θe; θ) will necessarily be a function of θe. It follows, then, that maximum likelihood estimators are necessarily functions of sufficient estimators—that is, θ̂M = f (θ̂S) (which is the primary theoretical justifica- tion for why maximum likelihood estimators are preferred to method of moments estimators).

Sufficient estimators also play a critical role in the search for efficient estimators, that is, unbiased estimators whose variance equals the Cramér-Rao lower bound. There will be an infinite number of unbiased estimators for any unknown parame- ter in any pdf. That said, there may be a subset of those unbiased estimators that are functions of sufficient estimators. If so, it can be proved (101) that the variance of every unbiased estimator based on a sufficient estimator will necessarily be less than the variance of every unbiased estimator that is not a function of a sufficient estimator. It follows, then, that to find an efficient estimator for θ, we can restrict our attention to functions of sufficient estimators for θ.

Questions

5.6.1. Let X1, X2, . . . , Xn be a random sample of size n from the geometric distribution, pX (k; p) = (1 − p)k−1 p, k = 1, 2, . . .. Show that p̂=

n∑ i=1

Xi is sufficient

for p.

5.6.2. Let X1, X2, and X3 be a set of three independent Bernoulli random variables with unknown parameter p = P(Xi = 1). It was shown on p. 320 that p̂ = X1 + X2 + X3 is sufficient for p. Show that the linear combination p̂∗ = X1 + 2X2 + 3X3 is not sufficient for p.

326 Chapter 5 Estimation

5.6.3. If θ̂ is sufficient for θ, show that any one-to-one function of θ̂ is also sufficient for θ.

5.6.4. Show that σ̂2 = n∑

i=1 Y 2i is sufficient for σ

2 if

Y1,Y2, . . . ,Yn is a random sample from a normal pdf with μ = 0. 5.6.5. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf of Question 5.5.6,

fY (y; θ) = 1(r − 1)!θr y r−1e−y/θ, 0 ≤ y

for positive parameter θ and r a known positive integer. Find a sufficient statistic for θ.

5.6.6. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf fY (y; θ) = θyθ−1, 0 ≤ y ≤ 1. Use Theo- rem 5.6.1 to show that W =

n∏ i=1

Yi is a sufficient statistic

for θ. Is the maximum likelihood estimator of θ a function of W?

5.6.7. Suppose a random sample of size n is drawn from the pdf

fY (y; θ) = e−(y−θ), θ ≤ y (a) Show that θ̂ = Ymin is sufficient for the threshold pa- rameter θ.

(b) Show that Ymax is not sufficient for θ.

5.6.8. Suppose a random sample of size n is drawn from the pdf

fY (y; θ) = 1 θ , 0 ≤ y ≤ θ

Find a sufficient statistic for θ.

5.6.9. A pdf gW (w; θ) is said to be expressed in exponen- tial form if it can be written as

gW (w; θ) = eK(w)p(θ)+S(w)+q(θ)

where the range of W is independent of θ. Show that

θ̂ = n∑

i=1 K(Wi) is sufficient for θ.

5.6.10. Write the pdf fY (y; λ) = λe−λy, y > 0, in expo- nential form and deduce a sufficient statistic for λ (see Question 5.6.9). Assume that the data consist of a random sample of size n.

5.6.11. Let Y1,Y2, . . . ,Yn be a random sample from a Pareto pdf,

fY (y; θ) = θ/(1 + y)θ+1, 0 ≤ y ≤ ∞; 0 < θ < ∞ Write fY (y; θ) in exponential form and deduce a sufficient statistic for θ (see Question 5.6.9).

5.7 Consistency The properties of estimators that we have examined thus far—for instance, unbiased- ness and sufficiency—have assumed that the data consist of a fixed sample size n. It sometimes makes sense, though, to consider the asymptotic behavior of estimators: We may find, for example, that an estimator possesses a desirable property in the limit that it fails to exhibit for any finite n.

Recall Example 5.4.4, which focused on the maximum likelihood estimator of σ2

for a sample of size n drawn from a normal pdf [that is, on σ̂2 = 1n n∑

i=1 (Yi − Y)2]. For

any finite n, σ̂2 is biased:

E

[ 1 n

n∑ i=1

(Yi − Y)2 ]

= n − 1 n

σ2 = σ2

As n goes to infinity, though, the limit of E(σ̂2) does equal σ2, and we say that σ̂2 is asymptotically unbiased.

Introduced in this section is a second asymptotic characteristic of an estimator, a property known as consistency. Unlike asymptotic unbiasedness, consistency refers to the shape of the pdf for θ̂n and how that shape changes as a function of n. (To em- phasize the fact that the estimator for a parameter is now being viewed as a sequence of estimators, we will write θ̂n instead of θ̂.)

Section 5.7 Consistency 327

Definition 5.7.1 An estimator θ̂n = h(W1,W2, . . . ,Wn) is said to be consistent for θ if it converges in probability to θ, that is, if for all ε > 0,

lim n→∞ P(| θ̂n − θ |< ε) = 1

Comment To solve certain kinds of sample-size problems, it can be helpful to think of Definition 5.7.1 in an epsilon/delta context; that is, θ̂n is consistent for θ if for all ε > 0 and δ > 0, there exists an n(ε, δ) such that

P(|θ̂n − θ |< ε) > 1 − δ for n > n(ε, δ)

Example 5.7.1

Let Y1,Y2, . . . ,Yn be a random sample from the uniform pdf

fY (y; θ) = 1 θ , 0 ≤ y ≤ θ

and let θ̂n = Ymax. We already know that Ymax is biased for θ, but is it consistent? Recall from Question 5.4.2 that

fYmax (y) = nyn−1

θn , 0 ≤ y ≤ θ

Therefore,

P(|θ̂n − θ |< ε) = P(θ − ε < θ̂n < θ) = ∫ θ

θ−ε

nyn−1

θn dy = y

n

θn

∣∣∣∣θ θ−ε

= 1 − (

θ − ε θ

)n Since [(θ − ε)/θ] < 1, it follows that [(θ − ε)/θ]n → 0 as n → ∞. Therefore, lim

n→∞ P(|θ̂n − θ| < ε) = 1, proving that θ̂n = Ymax is consistent for θ. Figure 5.7.1 illustrates the convergence of θ̂n. As n increases, the shape of fYmax

(y) changes in such a way that the pdf becomes increasingly concentrated in an ε-neighborhood of θ. For any n > n(ε, δ), P(|θ̂n − θ| < ε) > 1 − δ.

u + «

0 1

u

u – «

2 3

^P (| u – u | < «) 1 – d2

nn(«, d)

^P (| u – u | < «) > 1 – dn

Figure 5.7.1

If θ, ε, and δ are specified, we can calculate n(ε, δ), the smallest sample size that will enable θ̂n to achieve a given precision. For example, suppose θ = 4. How large a sample is required to give θ̂n an 80% chance of lying within 0.10 of θ?

In the terminology of the Comment above, ε = 0.10, δ = 0.20, and

P(|θ̂ − 4| < 0.10) = 1 − (

4 − 0.10 4

)n ≥ 1 − 0.20

328 Chapter 5 Estimation

Therefore,

(0.975)n(ε,δ) = 0.20

which implies that n(ε, δ) = 64.

A useful result for establishing consistency is Chebyshev’s inequality, which ap- pears here as Theorem 5.7.1. More generally, the latter serves as an upper bound for the probability that any random variable lies outside an ε-neighborhood of its mean.

Theorem 5.7.1

(Chebyshev’s inequality.) Let W be any random variable with mean μ and variance σ2. For any ε > 0,

P(|W − μ| < ε) ≥ 1 − σ 2

ε2

or, equivalently,

P(|W − μ| ≥ ε) ≤ σ 2

ε2

Proof In the continuous case,

Var(Y) = ∫ ∞

−∞ (y − μ)2 fY (y) dy

= ∫ μ−ε

−∞ (y − μ)2 fY (y) dy +

∫ μ+ε μ−ε

(y − μ)2 fY (y) dy + ∫ ∞

μ+ε (y − μ)2 fY (y) dy

Omitting the nonnegative middle integral gives an inequality:

Var(Y) ≥ ∫ μ−ε

−∞ (y − μ)2 fY (y) dy +

∫ ∞ μ+ε

(y − μ)2 fY (y) dy

≥ ∫

|y−μ|≥ε (y − μ)2 fY (y) dy

≥ ∫

|y−μ|≥ε ε2 fY (y) dy

= ε2P(|Y − μ| ≥ ε) Division by ε2 completes the proof. (If the random variable is discrete, replace the integrals with summations.)

Example 5.7.2

Suppose that X1, X2, . . . , Xn is a random sample of size n from a discrete pdf

pX (k; μ), where E(X ) = μ and Var(X ) = σ2 < ∞. Let μ̂n = ( 1

n

) n∑ i=1

Xi. Is μ̂n a

consistent estimator for μ? According to Chebyshev’s inequality,

P(|μ̂n − μ| < ε) > 1 − Var(μ̂n) ε2

Section 5.8 Bayesian Estimation 329

But Var(μ̂n) = Var (

1 n

n∑ i=1

Xi

) = 1n2

n∑ i=1

Var(Xi) = (1/n2) · nσ2 = σ2/n, so

P(|μ̂n − μ| < ε) > 1 − σ 2

nε2

For any ε, δ, and σ2, an n can be found that makes σ 2

nε2 < δ. Therefore, lim

n→∞ P(|μ̂n − μ| < ε) = 1 (i.e., μ̂n is consistent for μ).

Comment The fact that the sample mean, μ̂n, is necessarily a consistent estimator for the true mean μ, no matter what pdf the data come from, is often referred to as the weak law of large numbers. It was first proved by Chebyshev in 1866.

Comment We saw in Section 5.6 that one of the theoretical reasons that justifies using the method of maximum likelihood to identify good estimators is the fact that maximum likelihood estimators are necessarily functions of sufficient statis- tics. As an additional rationale for seeking maximum likelihood estimators, it can be proved under very general conditions that maximum likelihood estimators are also consistent (101).

Questions

5.7.1. How large a sample must be taken from a normal pdf where E(Y) = 18 in order to guarantee that μ̂n = Y n = 1n

n∑ i=1

Yi has a 90% probability of lying somewhere in

the interval [16, 20]? Assume that σ = 5.0.

5.7.2. Let Y1,Y2, . . . ,Yn be a random sample of size n

from a normal pdf having μ = 0. Show that S 2n = 1n n∑

i=1 Y 2i

is a consistent estimator for σ2 = Var(Y).

5.7.3. Suppose Y1,Y2, . . . ,Yn is a random sample from the exponential pdf, fY (y; λ) = λe−λy, y > 0. (a) Show that λ̂n = Y1 is not consistent for λ. (b) Show that λ̂n =

n∑ i=1

Yi is not consistent for λ.

5.7.4. An estimator θ̂n is said to be squared-error consis- tent for θ if lim

n→∞E[(θ̂n − θ) 2] = 0.

(a) Show that any squared-error consistent θ̂n is asymp- totically unbiased (see Question 5.4.15). (b) Show that any squared-error consistent θ̂n is consis- tent in the sense of Definition 5.7.1.

5.7.5. Suppose θ̂n = Ymax is to be used as an estimator for the parameter θ in the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ. Show that θ̂n is squared-error consistent (see Question 5.7.4).

5.7.6. If 2n+1 random observations are drawn from a con- tinuous and symmetric pdf with mean μ and if fY (μ; μ) = 0, then the sample median, Y ′n+1, is unbiased for μ, and Var(Y ′n+1)

.= 1/(8[ fY (μ; μ)]2n) (59). Show that μ̂n = Y ′n+1 is consistent for μ.

5.8 Bayesian Estimation Bayesian analysis is a set of statistical techniques based on inverse probabilities cal- culated from Bayes’ theorem (recall Section 2.4). In particular, Bayesian statistics provide formal methods for incorporating prior knowledge into the estimation of unknown parameters.

An interesting example of a Bayesian solution to an unusual estimation problem occurred some years ago in the search for a missing nuclear submarine. In the spring of 1968, the USS Scorpion was on maneuvers with the Sixth Fleet in Mediterranean waters. In May, she was ordered to proceed to her homeport of Norfolk, Virginia. The last message from the Scorpion was received on May 21, and indicated her position

330 Chapter 5 Estimation

to be about fifty miles south of the Azores, a group of islands eight hundred miles off the coast of Portugal. Navy officials decided that the sub had sunk somewhere along the eastern coast of the United States. A massive search was mounted, but to no avail, and the Scorpion’s fate remained a mystery.

Enter John Craven, a Navy expert in deep-water exploration, who believed the Scorpion had not been found because it had never reached the eastern seaboard and was still somewhere near the Azores. In setting up a search strategy, Craven divided the area near the Azores into a grid of n squares, and he solicited the advice of a group of veteran submarine commanders on the chances of the Scorpion having been lost in each of those regions. Combining their opinions resulted in a set of probabilities, P(A1), P(A2), . . . , P(An), that the sub had sunk in areas 1, 2, . . . , n, respectively.

Now, suppose P(Ak) was the largest of the P(Ai)’s. Then area k would be the first region searched. Let Bk be the event that the Scorpion would be found if it had sunk in area k and area k was searched. Assume that the sub was not found. From Theorem 2.4.2,

P(Ak ∣∣BCk) = P(BCk

∣∣Ak)P(Ak) P ( BCk

∣∣Ak)P(Ak) + P(BCk∣∣ACk)P(ACk) becomes an updated P(Ak)—call it P∗(Ak). The remaining P(Ai)’s, i = k, can then be normalized to form the revised probabilities P∗(Ai), i = k, where

n∑ i=1

P∗(Ai) = 1. If P∗(Aj) was the largest of the P∗(Ai)’s, then area j would be searched next. If the sub was not found there, a third set of probabilities, P∗∗(A1), P∗∗(A2), . . . , P∗∗(An), would be calculated in the same fashion, and the search would continue.

In October of 1968, the USS Scorpion was, indeed, found near the Azores; all ninety-nine men aboard had perished. Why it sunk has never been disclosed. One theory has suggested that one of its torpedoes accidentally exploded; Cold War con- spiracy advocates think it may have been sunk while spying on a group of Soviet subs. What is known is that the strategy of using Bayes’ theorem to update the location probabilities of where the Scorpion might have sunk proved to be successful.

PRIOR DISTRIBUTIONS AND POSTERIOR DISTRIBUTIONS

Conceptually, a major difference between Bayesian analysis and non-Bayesian analysis is the assumptions associated with unknown parameters. In a non-Bayesian analysis (which would include almost all the statistical methodology in this book except the present section), unknown parameters are viewed as constants; in a Bayesian analysis, parameters are treated as random variables, meaning they have a pdf.

At the outset in a Bayesian analysis, the pdf assigned to the parameter may be based on little or no information and is referred to as the prior distribution. As soon as some data are collected, it becomes possible—via Bayes’ theorem—to revise and refine the pdf ascribed to the parameter. Any such updated pdf is re- ferred to as a posterior distribution. In the search for the USS Scorpion, the un- known parameters were the probabilities of finding the sub in each of the grid areas surrounding the Azores. The prior distribution on those parameters were the probabilities P(A1), P(A2), . . . , P(An). Each time an area was searched and the sub not found, a posterior distribution was calculated—the first was the set of probabilities P∗(A1), P∗(A2), . . . , P∗(An); the second was the set of probabilities P∗∗(A1), P∗∗(A2), . . . , P∗∗(An); and so on.

Section 5.8 Bayesian Estimation 331

Example 5.8.1

Suppose a retailer is interested in modeling the number of calls arriving at a phone bank in a five-minute interval. Section 4.2 established that the Poisson distribution would be the pdf to choose. But what value should be assigned to the Poisson’s parameter, λ?

If the rate of calls was constant over a twenty-four-hour period, an estimate λe for λ could be calculated by dividing the total number of calls received during a full day by 288, the latter being the number of five-minute intervals in a twenty-four- hour period. If the random variable X , then, denotes the number of calls received during a random five-minute interval, the estimated probability that X = k would be pX (k) = e−λe λ

k e

k! , k = 0, 1, 2, . . .. In reality, though, the incoming call rate is not likely to remain constant over

an entire twenty-four-hour period. Suppose, in fact, that an examination of tele- phone logs for the past several months suggests that λ equals 10 about three-quarters of the time, and it equals 8 about one-quarter of the time. Described in Bayesian terminology, the rate parameter is a random variable �, and the (discrete) prior dis- tribution for � is defined by two probabilities:

p�(8) = P(� = 8) = 0.25 and

p�(10) = P(� = 10) = 0.75 Now, suppose certain facets of the retailer’s operation have recently changed

(different products to sell, different amounts of advertising, etc.). Those changes may very well affect the distribution associated with the call rate. Updating the prior dis- tribution for � requires (a) some data and (b) an application of Bayes’ theorem. Being both frugal and statistically challenged, the retailer decides to construct a pos- terior distribution for � on the basis of a single observation. To that end, a five- minute interval is preselected at random and the corresponding value for X is found to be 7. How should p�(8) and p�(10) be revised?

Using Bayes’ theorem,

P(� = 10 | X = 7) = P(X = 7 | � = 10)P(� = 10) P(X = 7 | � = 8)P(� = 8) + P(X = 7 | � = 10)P(� = 10)

= e −10 107

7! (0.75)( e−8 877!

) (0.25) + e−10 1077! (0.75)

= (0.090)(0.75) (0.140)(0.25) + (0.090)(0.75) = 0.659

which implies that

P(� = 8 | X = 7) = 1 − 0.659 = 0.341 Notice that the posterior distribution for � has changed in a way that makes sense intuitively. Initially, P(� = 8) was 0.25. Since the data point, x = 7, is more consistent with � = 8 than with � = 10, the posterior pdf has increased the probability that � = 8 (from 0.25 to 0.341) and decreased the probability that � = 10 (from 0.75 to 0.659).

Definition 5.8.1 Let W be a statistic dependent on a parameter θ. Call its pdf fW (w | θ). Assume that θ is the value of a random variable �, whose prior distribution is denoted p�(θ), if � is discrete, and f�(θ), if � is continuous. The posterior distribution of

332 Chapter 5 Estimation

�, given that W = w, is the quotient

gθ(θ | W = w) = ⎛ ⎝ pW (w|θ) f�(θ)∫ ∞−∞ pW (w|θ) f�(θ) dθ if W is discrete

fW (w|θ) f�(θ)∫ ∞ −∞ fW (w|θ) fθ(θ) dθ

if W is continuous

(Note: If � is discrete, replace the integrations with summations.)

Comment Definition 5.8.1 can be used to construct a posterior distribution even if no information is available on which to base a prior distribution. In such cases, the uniform pdf is substituted for either p�(θ) or f�(θ) and referred to as a noninforma- tive prior.

Example 5.8.2

Max, a video game pirate (and Bayesian), is trying to decide how many illegal copies of Zombie Beach Party to have on hand for the upcoming holiday season. To get a rough idea of what the demand might be, he talks with n potential customers and finds that X = k would buy a copy for a present (or for themselves). The obvious choice for a probability model for X , of course, would be the binomial pdf. Given n potential customers, the probability that k would actually buy one of Max’s illegal copies is the familiar

pX (k | θ) = (n

k

) θk(1 − θ)n−k, k = 0, 1, . . . , n

where the maximum likelihood estimate for θ is given by θe = kn . It may very well be the case, though, that Max has some additional insight about the

value of θ on the basis of similar video games that he illegally marketed in previous years. Suppose he suspects, for example, that the percentage of potential customers who will buyZombie Beach Party is likely to be between 3% and 4% and probably will not exceed 7%. A reasonable prior distribution for �, then, would be a pdf mostly concentrated over the interval 0 to 0.07 with a mean or median in the 0.035 range.

One such probability model whose shape would comply with the restraints that Max is imposing is the beta pdf. Written with � as the random variable, the (two- parameter) beta pdf is given by

f�(θ) = �(r + s) �(r)�(s)

θr−1(1 − θ)s−1, 0 ≤ θ ≤ 1

The beta distribution with r = 2 and s = 4 is pictured in Figure 5.8.1. By choosing different values for r and s, f�(θ) can be skewed more sharply to the right or to the left, and the bulk of the distribution can be concentrated close to zero or close to

0 .2 .4 .6 .8 1.0

.8

1.6

D en

si ty

2.4

u

f (u)

Figure 5.8.1

Section 5.8 Bayesian Estimation 333

one. The question is, if an appropriate beta pdf is used as a prior distribution for �, and if a random sample of k potential customers (out of n) said they would buy the video game, what would be a reasonable posterior distribution for �?

From Definition 5.8.1 for the case where W (= X ) is discrete and � is continuous,

g�(θ | X = k) = pX (k | θ) f�(θ)∫ ∞ −∞ pX (k | θ) f�(θ) dθ

Substituting into the numerator gives

pX (k | θ) f�(θ) = (n

k

) θk(1 − θ)n−k �(r + s)

�(r)�(s) θr−1(1 − θ)s−1

= (n

k

) �(r + s) �(r)�(s)

θk+r−1(1 − θ)n−k+s−1

so

g�(θ | X = k) = ( n

k

) �(r+s) �(r)�(s)θ

k+r−1(1 − θ)n−k+s−1∫ 1 0

( n k

) �(r+s) �(r)�(s)θ

k+r−1(1 − θ)n−k+s−1 dθ

= ⎡ ⎣ ( nk) �(r+s)�(r)�(s)∫ 1

0

( n k

) �(r+s) �(r)�(s)θ

k+r−1(1 − θ)n−k+s−1 dθ

⎤ ⎦ θk+r−1(1 − θ)n−k+s−1

Notice that if the parameters r and s in the beta pdf were relabeled k + r and n − k + s, respectively, the equation for f�(θ) would be

f�(θ) = �(n + r + s) �(k + r)�(n − k + s)θ

k+r−1(1 − θ)n−k+s−1 (5.8.1)

But those same exponents for θ and (1 − θ) appear outside the brackets in the ex- pression for g�(θ | X = k). Since there can be only one f�(θ) whose variable factors are θk+r−1(1 − θ)n−k+s−1, it follows that g�(θ | X = k) is a beta pdf with parameters k + r and n − k + s.

The final step in the construction of a posterior distribution for � is to choose values for r and s that would produce a (prior) beta distribution having the configu- ration described by equation 5.8.1—that is, with a mean or median at 0.035 and the bulk of the distribution between 0 and 0.07. It can be shown (100) that the expected value of a beta pdf is r/(r + s). Setting 0.035, then, equal to that quotient implies that

s .= 28r

By trial and error with a calculator that can integrate a beta pdf, the values r = 4 and s = 28(4) = 102 are found to yield an f�(θ) having almost all of its area to the left of 0.07. Substituting those values for r and s into g�(θ | X = k) gives the completed posterior distribution:

g�(θ | X = k) = �(n + 106) �(k + 4)�(n − k + 102)θ

k+4−1(1 − θ)n−k+102−1

= (n + 105)! (k + 3)!(n − k + 101)!θ

k+3(1 − θ)n−k+101

334 Chapter 5 Estimation

Example 5.8.3

Certain prior distributions “fit” especially well with certain parameters in the sense that the resulting posterior distributions are easy to work with. Example 5.8.2 was a case in point—assigning a beta prior distribution to the unknown parameter in a binomial pdf led to a beta posterior distribution. A similar relationship holds if a gamma pdf is used as the prior distribution for the parameter in a Poisson model.

Suppose X1, X2, . . . , Xn denotes a random sample from the Poisson pdf, pX (k | θ) = e−θθk/k!, k = 0, 1, . . .. Let W =

n∑ i=1

Xi. By Example 3.12.10, W has a Poisson

distribution with parameter nθ—that is, pW (w | θ) = e−nθ(nθ)w/w!,w = 0, 1, 2, . . .. Let the gamma pdf,

f�(θ) = μ s

�(s) θs−1e−μθ, 0 < θ < ∞

be the prior distribution assigned to �. Then

g�(θ | W = w) = pW (w | θ) f�(θ)∫ θ

pW (w | θ) f�(θ) dθ

where

pW (w | θ) f�(θ) = e−nθ (nθ) w

w! μs

�(s) θs−1e−μθ

= n w

w! μs

�(s) θw+s−1e−(μ+n)θ

Now, using the same argument that simplified the calculation of the posterior distri- bution in Example 5.8.2, we can write

g�(θ | W = w) = [ nw

w! μs

�(s)∫ θ

pW (w | θ) f�(θ) dθ

] θw+s−1e−(μ+n)θ

But the only pdf having the factors θw+s−1e−(μ+n)θ is the gamma distribution with parameters w + s and μ + n. It follows, then, that

g�(θ | W = w) = (μ + n) w+s

�(w + s) θ w+s−1e−(μ+n)θ

CASE STUDY 5.8.1

Predicting the annual number of hurricanes that will hit the U.S. mainland is a problem receiving a great deal of public attention, given the disastrous summer of 2004, when four major hurricanes struck Florida causing billions of dollars of damage and several mass evacuations. For all the reasons discussed in Sec- tion 4.2, the obvious pdf for modeling the number of hurricanes reaching the mainland is the Poisson, where the unknown parameter θ would be the expected number in a given year.

Table 5.8.1 shows the numbers of hurricanes that actually did come ashore for three fifty-year periods. Use that information to construct a posterior distri- bution for θ. Assume that the prior distribution is a gamma pdf.

Section 5.8 Bayesian Estimation 335

Table 5.8.1

Years Number of Hurricanes

1851–1900 88 1901–1950 92 1951–2000 72

Not surprisingly, meteorologists consider the data from the earliest period, 1851 to 1900 to be the least reliable. Those eighty-eight hurricanes, then, will be used to formulate the prior distribution. Let

f�(θ) = μ s

�(s) θs−1e−μθ, 0 < θ < ∞

Recall from Theorem 4.6.3 that for a gamma pdf, E(�) = s/μ. For the years from 1851 to 1900, though, the sample average number of hurricanes per year was 8850 . Setting the latter equal to E(�) allows s = 88 and μ = 50 to be assigned to the gamma’s parameters. That is, we can take the prior distribution to be

f�(θ) = 50 88

�(88) θ88−1e−50θ

Also, the posterior distribution given at the end of Example 5.8.3 becomes

g�(θ | W = w) = (50 + n) w+88

�(w + 88) θ w+87e−(50+n)θ

The data, then, to incorporate into the posterior distribution would be the fact that w = 92 + 72 = 164 hurricanes occurred over the most recent n = 100 years included in the database. Therefore,

g�(θ | W = w) = (50 + 100) 164+88

�(164 + 88) θ 164+87e−(50+100)θ = (150)

252

�(252) θ251e−150θ

Example 5.8.4

In the examples seen thus far, the joint pdf gW,θ(w, θ) = pW (w | θ) fθ(θ) of a statistic W and a parameter � [with a prior distribution fθ(θ)] was the starting point in finding the posterior distribution of �. For some applications, though, the objective is not to derive gθ(θ | W = w), but, rather, to find the marginal pdf of W .

For instance, suppose a sample of size n = 1 is drawn from a Poisson pdf, pW (w | θ) = e−θθw/w!,w = 0, 1, . . . , where the prior distribution is the gamma pdf, fθ(θ) = μs

�(s)θ s−1e−μθ. According to Example 5.8.3,

gW,θ(w, θ) = pW (w | θ) fθ(θ) = 1 w!

μs

�(s) θw+s−1e−(μ+1)θ

What is the corresponding marginal pdf of W—that is, pW (w)? Recall Theorem 3.7.2. Integrating the joint pdf of W and � over θ gives

pW (w) = ∫ ∞

0 gW,θ(w, θ) dθ

= ∫ ∞

0

1 w!

μs

�(s) θw+s−1e−(μ+1)θdθ

336 Chapter 5 Estimation

= 1 w!

μs

�(s)

∫ ∞ 0

θw+s−1e−(μ+1)θdθ

= 1 w!

μs

�(s) �(w + s)

(μ + 1)w+s

= �(w + s) w!�(s)

( μ

μ + 1 )s ( 1

μ + 1 )w

But �(w+s) w!�(s) =

( w+s−1

w

) . Finally, let p = μ/(μ + 1), so 1 − p = 1/(μ + 1), and the

marginal pdf reduces to a negative binomial distribution with parameters s and p:

pW (w) = (

w + s − 1 w

) ps(1 − p)w

(see Question 4.5.6).

CASE STUDY 5.8.2

Psychologists use a special coordination test to study a person’s likelihood of making manual errors. For any given person, the number of such errors made on the test is known to follow a Poisson distribution with some particular value for the rate parameter, θ. But as we all know (from watching the clumsy people around us who spill things and get in our way), θ varies considerably from person to person. Suppose, in fact, that variability in � can be described by a gamma pdf. If so, the marginal pdf of the number of errors made by an individual should have a negative binomial distribution (according to Example 5.8.4).

Columns 1 and 2 of Table 5.8.2 show the number of errors made on the coordination test by a sample of five hundred four subjects—eighty-two made zero errors, fifty-seven made one error, and so on. To know whether those responses can be adequately modeled by a negative binomial distribution

Table 5.8.2

Number of Observed Negative Binomial Predicted Errors, w Frequency Frequency

0 82 79.2 1 57 57.1 2 46 46.3 3 39 38.9 4 33 33.3 5 28 28.8 6 25 25.1 7 22 22.0 8 19 19.3 9 17 17.0

10 15 15.0 11 13 13.3 12 12 11.8 13 10 10.4

Section 5.8 Bayesian Estimation 337

Table 5.8.2 (continued)

Number of Observed Negative Binomial Predicted Errors, w Frequency Frequency

14 9 9.3 15 8 8.3 16 7 7.3 17 6 6.5 18 6 5.8 19 5 5.2 20 5 4.6 21 4 4.1 22 4 3.7 23 3 3.3 24 3 2.9 25 3 2.6 26 2 2.4 27 2 2.1 28 2 1.9 29 2 1.7 30 2 1.5

≥31 13 13.1 Total 504 504.0

requires that the parameters p and s be estimated. To that end, it should be noted

that the maximum likelihood estimate for p in a negative binomial is ns/ n∑

i=1 wi.

Expected frequencies, then, can be calculated by choosing a value for s and solv- ing for p. By trial and error, the entries shown in column 3 were based on a neg- ative binomial pdf for which s = 0.8 and p = (504)(0.8)/3821 = 0.106. Clearly, the model fits exceptionally well, which supports the analysis carried out in Example 5.8.4.

BAYESIAN ESTIMATION

Fundamental to the philosophy of Bayesian analysis is the notion that all relevant information about an unknown parameter, θ, is encoded in the parameter’s poste- rior distribution, g�(θ | W = w). Given that premise, an obvious question arises: How can g�(θ | W = w) be used to calculate an appropriate point estimator, θ̂? One approach, similar to using the likelihood function to find a maximum likelihood esti- mator, is to differentiate the posterior distribution, in which case the value for which dg�(θ | W = w)/dθ = 0—that is, the mode—becomes θ̂.

For theoretical reasons, though, a method much preferred by Bayesians is to use some key ideas from decision theory as a framework for identifying a reasonable θ̂. In particular, Bayesian estimates are chosen to minimize the risk associated with θ̂, where the risk is the expected value of the loss incurred by the error in the estimate. Presumably, as θ̂ − θ gets further away from 0—that is, as the estimation error gets larger—the loss associated with θ̂ will increase.

Definition 5.8.2 Let θ̂ be an estimator for θ based on a statistic W . The loss function associated with θ̂ is denoted L(θ̂, θ), where L(θ̂, θ) ≥ 0 and L(θ, θ) = 0.

338 Chapter 5 Estimation

Example 5.8.5

It is typically the case that quantifying in any precise way the consequences, eco- nomic or otherwise, of θ̂ not being equal to θ is all but impossible. The “generic” loss functions defined in those situations are chosen primarily for their mathematical con- venience. Two of the most frequently used are L(θ̂, θ) = |θ̂ − θ| and L(θ̂, θ) = (θ̂−θ)2. Sometimes, though, the context in which a parameter is being estimated does allow for a loss function to be defined in a very specific and relevant way.

Consider the inventory dilemma faced by Max, the Bayesian video game pirate whose illegal activities were described in Example 5.8.2. The unknown parameter in question was θ, the proportion of his n potential customers who would purchase a copy of Zombie Beach Party. Suppose that Max decides—for whatever reasons— to estimate θ with θ̂. As a consequence, it would follow that he should have n θ̂ copies of the video game available. That said, what would be the corresponding loss function?

Here, the implications of θ̂ not being equal to θ are readily quantifiable. If θ̂ < θ, then n(θ − θ̂) sales will be lost (at a cost of, say, $c per video). On the other hand, if θ̂ > θ, there will be n(θ̂ − θ) unsold videos, each of which will incur a storage cost of, say, $d per unit. The loss function that applies to Max’s situation, then, is clearly defined:

L(θ̂, θ) = {

$cn(θ − θ̂) if θ̂ < θ $dn(θ̂ − θ) if θ̂ > θ

Definition 5.8.3 Let L(θ̂, θ) be the loss function associated with an estimate of the parameter θ. Let gθ(θ | W = w) be the posterior distribution of the random variable �. Then the risk associated with θ̂ is the expected value of the loss function with respect to the posterior distribution of θ.

risk = {∫

θ L(θ̂, θ)g�(θ | W = w) dθ if � is continuous∑

all θ L(θ̂, θ)g�(θ | W = w) if � is discrete

USING THE RISK FUNCTION TO FIND θ̂

Given that the risk function represents the expected loss associated with the esti- mator θ̂, it makes sense to look for the θ̂ that minimizes the risk. Any θ̂ that achieves that objective is said to be a Bayes estimate. In general, finding the Bayes estimate requires solving the equation d(risk)/dθ̂ = 0. For two of the most frequently used loss functions, L(θ̂, θ) = |θ̂− θ| and L(θ̂, θ) = (θ̂− θ)2, though, there is a much easier way to calculate θ̂.

Theorem 5.8.1

Let gθ(θ | W = w) be the posterior distribution for the unknown parameter θ. a. If the loss function associated with θ̂ is L(θ̂, θ) = |θ̂− θ|, then the Bayes estimate

for θ is the median of g�(θ | W = w). b. If the loss function associated with θ̂ is L(θ̂, θ) = (θ̂−θ)2, then the Bayes estimate

for θ is the mean of g�(θ | W = w).

Section 5.8 Bayesian Estimation 339

Proof

a. The proof follows from a general result for the expected value of a random variable. The fact that the pdf in the expectation here is a posterior distribution is irrelevant. The derivation will be given for a continuous random variable (having a finite expected value); the proof for the discrete case is similar.

Let fW (w) be the pdf for the random variable W , where the median of W is m. Then

E(|W − m|) = ∫ ∞

−∞ |w − m| fW (w) dw

= ∫ m

−∞ (m − w) fW (w) dw +

∫ ∞ m

(w − m) fW (w) dw

= m ∫ m

−∞ fW (w) dw −

∫ m −∞

w fW (w) dw

+ ∫ ∞

m w fW (w) dw − m

∫ ∞ m

fW (w) dw

The first and last integrals are equal by definition of the median so,

E(|W − m|) = − ∫ m

−∞ w fW (w) dw +

∫ ∞ m

w fW (w) dw

Now, suppose m ≥ 0 (the proof for negative m is similar). Splitting the first integral into two parts gives

E(|W − m|) = − ∫ 0

−∞ w fW (w) dw −

∫ m 0

w fW (w) dw + ∫ ∞

m w fW (w) dw

Notice that the middle integral is positive, so changing its negative sign to a plus implies that

E(|W − m|) ≤ − ∫ 0

−∞ w fW (w) dw +

∫ m 0

w fW (w) dw + ∫ ∞

m w fW (w) dw

≤ ∫ 0

−∞ −w fW (w) dw +

∫ ∞ 0

w fW (w) dw

Therefore,

E(|W − m|) ≤ E(|W |) (5.8.2) Finally, suppose b is any constant. Then

1 2

= P(W ≤ m) = P(W − b ≤ m − b),

showing that m − b is the median of the random variable W − b. Applying Equation 5.8.2 to the variable W − b, we can write

E(|W − m|) = E[|(W − b) − (m − b)|] ≤ E(|W − b|) which implies that the median of g�(θ | W = w) is the Bayes estimate for θ when L(θ̂, θ) = |θ̂ − θ|.

(Continued on next page)

340 Chapter 5 Estimation

(Theorem 5.8.1 continued)

b. Let W be any random variable whose mean is μ and whose variance is finite, and let b be any constant. Then

E[(W − b)2] = E[(W − μ) + (μ − b)]2

= E[(W − μ)2] + 2(μ − b)E(W − μ) + (μ − b)2

= Var(W) + 0 + (μ − b)2

implying that E[(W − b)]2 is minimized when b = μ. It follows that the Bayes estimate for θ, given a quadratic loss function, is the mean of the posterior distribution.

Example 5.8.6

Recall Example 5.8.3, where the parameter in a Poisson distribution was assumed to

have a gamma prior distribution. For a random sample of size n, where W = n∑

i=1 Xi,

pW (w|θ) = e−nθ(nθ)w/w!, w = 0, 1, 2, . . .

f�(θ) = μ s

�(s) θs−1e−μθ

which resulted in the posterior distribution being a gamma pdf with parameters w + s and μ + n.

Suppose the loss function associated with θ̂ is quadratic, L(θ̂, θ) = (θ̂ − θ)2. By part (b) of Theorem 5.8.1, the Bayes estimate for θ is the mean of the posterior dis- tribution. From Theorem 4.6.3, though, the mean of g�(θ | W = w) is (w + s)/ (μ + n).

Notice that

w + s μ + n =

n μ + n

(w n

) + μ

μ + n (

s μ

) which shows that the Bayes estimate is a weighted average of wn , the maximum like- lihood estimate for θ and s

μ , the mean of the prior distribution. Moreover, as n gets

large, the Bayes estimate converges to the maximum likelihood estimate.

Questions

5.8.1. Suppose that X is a geometric random variable, where pX (k|θ) = (1 − θ)k−1θ, k = 1, 2, . . . . Assume that the prior distribution for θ is the beta pdf with parameters r and s. Find the posterior distribution for θ.

5.8.2. Find the squared-error loss [L(θ̂, θ) = (θ̂ − θ)2] Bayes estimate for θ in Example 5.8.2 and express it as a weighted average of the maximum likelihood estimate for θ and the mean of the prior pdf.

5.8.3. Suppose the binomial pdf described in Example 5.8.2 refers to the number of votes a candidate might receive in a poll conducted before the general election. Moreover, suppose a beta prior distribution has been as- signed to θ, and every indicator suggests the election will

be close. The pollster, then, has good reason for concen- trating the bulk of the prior distribution around the value θ = 12 . Setting the two beta parameters r and s both equal to 135 will accomplish that objective (in the event r = s = 135, the probability of θ being between 0.45 and 0.55 is approximately 0.90). (a) Find the corresponding posterior distribution. (b) Find the squared-error loss Bayes estimate for θ and express it as a weighted average of the maximum likeli- hood estimate for θ and the mean of the prior pdf.

5.8.4. What is the squared-error loss Bayes estimate for the parameter θ in a binomial pdf, where θ has a uniform distribution—that is, a noninformative prior? (Recall that a uniform prior is a beta pdf for which r = s = 1.)

Section 5.9 Taking a Second Look at Statistics (Beyond Classical Estimation) 341

5.8.5. In Questions 5.8.2–5.8.4, is the Bayes estimate un- biased? Is it asymptotically unbiased?

5.8.6. Suppose that Y is a gamma random variable with parameters r and θ and the prior is also gamma with pa- rameters s and μ. Show that the posterior pdf is gamma with parameters r + s and y + μ. 5.8.7. Let Y1,Y2, . . . ,Yn be a random sample from a gamma pdf with parameters r and θ, where the prior dis- tribution assigned to θ is the gamma pdf with parameters s and μ. Let W = Y1 + Y2 + · · · + Yn. Find the posterior pdf for θ.

5.8.8. Find the squared-error loss Bayes estimate for θ in Question 5.8.7.

5.8.9. Consider, again, the scenario described in Exam- ple 5.8.2—a binomial random variable X has parameters n and θ, where the latter has a beta prior with integer pa- rameters r and s. Integrate the joint pdf pX (k | θ) f�(θ) with respect to θ to show that the marginal pdf of X is given by

pX (k) = (

k+r−1 k

) ( n−k+s−1

n−k )

( n+r+s−1

n

) , k = 0, 1, . . . , n

5.9 Taking a Second Look at Statistics (Beyond Classical Estimation)

The theory of estimation presented in this chapter can properly be called classical. It is a legacy of the late nineteenth and early twentieth centuries, culminating in the work of R.A. Fisher, especially his foundational paper published in 1922 (52).

This chapter covers the historical, yet still vibrant, theory and technique of es- timation. This material is the basis for many of the modern advances in statistics. And, these approaches still provide useful methods for estimating parameters and building models.

But statistics, like every other branch of knowledge, progresses. As is the case for most sciences, the computer has dramatically changed the landscape. Classi- cal problems—such as finding maximum likelihood estimators—that were difficult, if not impossible, to solve in Fisher’s day can now be attacked through computer approximations.

However, modern computers not only give new methods for old problems, but they also provide new avenues of approach. One such set of new methods goes under the general name of resampling. One part of resampling is known as bootstrapping. This technique is useful when classical inference is impossible.

A general explication of bootstrapping is not possible in this section, but an ex- ample of its application to estimating the standard error should provide a sense of the idea.

The standard error of an estimator θ̂ is just its standard deviation; that is, √

Var(θ̂). The standard error, or an approximation of it, is an essential part of the construction of confidence intervals. For the normal case, Y is the basis of the confidence interval, and its standard error is σ/

√ n. If X is a binomial random variable with parameters

n and p, then the standard error √

p(1−p) n is readily approximated by

√ k n (1− kn )

n , where k is the observed number of successes.

In general, though, estimating the standard error may not be so straightforward. As a case in point, consider the gamma pdf with r = 2 and unknown parameter θ, fY (y; θ) = 1θ2 ye−y/θ. Recall from Example 5.2.2 that the maximum likelihood esti- mator for θ is 12Y . Then its variance is

Var( 1 2

Y) = 1 4

Var(Y) = 1 4

Var(Y) n

= 1 4n

2θ2 = θ 2

2n

and the standard error is the square root of the variance, or θ√ 2n

.

342 Chapter 5 Estimation

To understand the technique of the bootstrapping estimate of the standard error in this case, let us consider a numerical example, given in a series of steps.

Step 1. Bootstrapping begins with a random sample from the pdf of interest. If we let n = 15, Table 5.9.1 is the given sample from fY (y; θ) = 1θ2 ye−y/θ.

Step 2. The sum of the entries in the table is 285.955, so the maximum likelihood estimate of the parameter θ is

θe = 12y = 1 2

· 1 15

(285.955) = 9.5318 Step 3. Then using the estimate θe = 9.5318 for θ, two hundred random samples

from the pdf fY (y; 9.5318) = 1(9.5318)2 ye−y/9.5318 are generated. It suffices here to note that samples appear as an array of numbers with

fifteen columns and two hundred rows. Each row represents a random sam- ple of size 15 from the indicated gamma pdf.

Step 4. Use each row of Table 5.9.2 to obtain θe = 12 y, the estimate of the unknown parameter θ. For the first row in Table 5.9.2, we obtain θe = 11.2873, and for the second, θe = 11.6986.

Step 5. From Step 4, two hundred estimates of θ result. Calculate the sample stan- dard deviation of these two hundred numbers, which gives the value 1.83491. This is the bootstrap estimate of the standard error. The value of θ that generated the original sample in Table 5.9.1 was 10. Thus, the actual standard error is

θ√ 2n

= 10√ 2 · 15 = 1.82574

The bootstrap estimate of 1.83491 is quite close to the actual value.

Table 5.9.1

30.987 9.949 26.720 9.651 29.137 47.653 33.250 4.933 17.923 2.400 7.580 9.941 16.624 28.514 10.693

Table 5.9.2

19.445 10.867 6.183 3.517 20.388 51.501 14.735 52.809 11.244 59.533 15.135 15.579 14.354 22.670 2 11.808 4.380 12.44 9.208 9.222 2.674 63.703 36.037 46.190 22.793 23.329 40.706 23.872 40.909 4

.

. (Additional 197 rows)

. 7.536 4.693 7.452 22.606 11.512 2.136 2.718 25.778 16.023 27.405 18.801 65.723 0.853 7.536 4

Chapte r

6Hypothesis Testing CHAPTER OUTLINE

6.1 Introduction 6.2 The Decision Rule 6.3 Testing Binomial

Data—H0: p = po 6.4 Type I and Type II

Errors 6.5 A Notion of

Optimality: The Generalized Likelihood Ratio

6.6 Taking a Second Look at Hypothesis Testing (Statistical Significance versus “Practical” Significance)

As a young man, Laplace went to Paris to seek his fortune as a mathematician, disregarding his father’s wishes that he enter the clergy. He soon became a protégé of d’Alembert and at the age of twenty-four was elected to the Academy of Sciences. Laplace was recognized as one of the leading figures of that group for his work in physics, celestial mechanics, and pure mathematics. He also enjoyed some political prestige, and his friend, Napoleon Bonaparte, made him Minister of the Interior for a brief period. With the restoration of the Bourbon monarchy, Laplace renounced Napoleon for Louis XVIII, who later made him a marquis.

—Pierre-Simon, Marquis de Laplace (1749–1827)

6.1 INTRODUCTION Inferences, as we saw in Chapter 5, often reduce to numerical estimates of param- eters, in the form of either single points or confidence intervals. But not always. In many experimental situations, the conclusion to be drawn is not numerical and is more aptly phrased as a choice between two conflicting theories, or hypotheses. A court psychiatrist, for example, may be called upon to pronounce an accused mur- derer either “sane” or “insane”; the FDA must decide whether a new flu vaccine is “effective” or “ineffective”; a geneticist concludes that the inheritance of eye color in a certain strain of Drosophila melanogaster either “does” or “does not” follow clas- sical Mendelian principles. In this chapter we examine the statistical methodology and the attendant consequences involved in making decisions of this sort.

The process of dichotomizing the possible conclusions of an experiment and then using the theory of probability to choose one option over the other is known as hypothesis testing. The two competing propositions are called the null hypothesis (written H0) and the alternative hypothesis (written H1). How we go about choosing between H0 and H1 is conceptually similar to the way a jury deliberates in a court trial. The null hypothesis is analogous to the defendant: Just as the latter is presumed innocent until “proven” guilty, so is the null hypothesis “accepted” unless the data argue overwhelmingly to the contrary. Mathematically, choosing between H0 and H1 is an exercise in applying courtroom protocol to situations where the “evidence” consists of measurements made on random variables.

Chapter 6 focuses on basic principles—in particular, on the probabilistic struc- ture that underlies the decision-making process. Most of the important specific applications of hypothesis testing will be taken up later, beginning in Chapter 7.

343

344 Chapter 6 Hypothesis Testing

6.2 The Decision Rule Imagine an automobile company looking for additives that might increase gas mileage. As a pilot study, they send thirty cars fueled with a new additive on a road trip from Boston to Los Angeles. Without the additive, those same cars are known to average 25.0 mpg.

Suppose it turns out that the thirty cars average y = 26.3 mpg with the additive. What should the company conclude? If the additive is effective but the position is taken that the increase from 25.0 to 26.3 is due solely to chance, the company will mistakenly pass up a potentially lucrative product. On the other hand, if the additive is not effective but the firm interprets the mileage increase as “proof” that the addi- tive works, time and money will ultimately be wasted developing a product that has no intrinsic value.

In practice, researchers would assess the increase from 25.0 mpg to 26.3 mpg by framing the company’s choices in the context of the courtroom analogy men- tioned in Section 6.1. Here, the null hypothesis, which is typically a statement reflecting the status quo, would be the assertion that the additive has no effect; the alternative hypothesis would claim that the additive does work. By agreement, we give H0 (like the defendant) the benefit of the doubt. If the road trip average, then, is “close” to 25.0 in some probabilistic sense still to be determined, we must conclude that the new additive has not demonstrated its superiority. The problem is that whether 26.3 mpg qualifies as being “close” to 25.0 mpg is not immediately obvious.

At this point, rephrasing the question in random variable terminology will prove helpful. Let y1, y2, . . ., y30 denote the mileages recorded by each of the cars during the cross-country test run. We will assume that the yi’s are normally distributed with an unknown mean μ. Furthermore, suppose that prior experience with road tests of this type suggests that σ will equal 2.4 mpg.1 That is,

fY (y; μ) = 1√ 2π(2.4)

e− 1 2

( y−μ 2.4

)2 , −∞ < y < ∞

(Does it matter that the random variable Y is defined over the interval (−∞, ∞) but the actual values of yi can never be negative? Explain.) The two competing hypothe- ses, then, can be expressed as statements about μ. In effect, we are testing

H0: μ = 25.0 (Additive is not effective) versus

H1: μ > 25.0 (Additive is effective)

Values of the sample mean, y, less than or equal to 25.0 are certainly not grounds for rejecting the null hypothesis; averages a bit larger than 25.0 would also lead to that conclusion (because of the commitment to give H0 the benefit of the doubt). On the other hand, we would probably view a cross-country average of, say, 35.0 mpg as exceptionally strong evidence against the null hypothesis, and our decision would be “reject H0.” In effect, somewhere between 25.0 and 35.0 there is a point—call it y ∗—where for all practical purposes the credibility of H0 ends (see Figure 6.2.1).

Finding an appropriate numerical value for y ∗ is accomplished by combining the courtroom analogy with what we know about the probabilistic behavior of Y . Suppose, for the sake of argument, we set y ∗ equal to 25.25—that is, we would reject

1 In practice, the value of σ usually needs to be estimated; we will return to that more frequently encountered scenario in Chapter 7.

Section 6.2 The Decision Rule 345

Possible sample means

25.0 y*

Values of y not markedly inconsistent

with the H assertion that m = 25

0

Values of y that would appear to refute H0

Figure 6.2.1

H0 if y ≥ 25.25. Is that a good decision rule? No. If 25.25 defined “close,” then H0 would be rejected 28% of the time even if H0 were true:

P(We reject H0 | H0 is true) = P(Y ≥ 25.25 | μ = 25.0)

= P (

Y − 25.0 2.4/

√ 30

≥ 25.25 − 25.0 2.4/

√ 30

)

= P(Z ≥ 0.57) = 0.2843

(see Figure 6.2.2). Common sense, though, tells us that 28% is an inappropriately large probability for making this kind of incorrect inference. No jury, for example, would convict a defendant knowing it had a 28% chance of sending an innocent person to jail.

25.525.0

y* = 25.25

24.524.023.5 26.0 26.5 y

0Area = P (Y $ y* | H is true)

0 = 0.2843 Distribution of Y when H : m = 25.0 is true

0Reject H

1.0

0.5

Figure 6.2.2

Clearly, we need to make y ∗ larger. Would it be reasonable to set y ∗ equal to, say, 26.50? Probably not, because setting y ∗ that large would err in the other direc- tion by giving the null hypothesis too much benefit of the doubt. If y ∗ = 26.50, the probability of rejecting H0 if H0 were true is only 0.0003:

P(We reject H0 | H0 is true) = P(Y ≥ 26.50 | μ = 25.0)

= P (

Y − 25.0 2.4/

√ 30

≥ 26.50 − 25.0 2.4/

√ 30

)

= P(Z ≥ 3.42) = 0.0003

(see Figure 6.2.3). Requiring that much evidence before rejecting H0 would be anal- ogous to a jury not returning a guilty verdict unless the prosecutor could produce a roomful of eyewitnesses, an obvious motive, a signed confession, and a dead body in the trunk of the defendant’s car!

346 Chapter 6 Hypothesis Testing

25.525.0

y* = 26.50

24.524.023.5 26.0 26.5 y

0Area = P (Y $ y* | H is true)

0

= 0.0003

Distribution of Y when H : m = 25.0 is true

0Reject H

1.0

0.5

Figure 6.2.3

If a probability of 0.28 represents too little benefit of the doubt being ac- corded to H0 and 0.0003 represents too much, what value should we choose for P(Y ≥ y ∗ | H0 is true)? While there is no way to answer that question definitively or mathematically, researchers who use hypothesis testing have come to the consensus that the probability of rejecting H0 when H0 is true should be somewhere in the neighborhood of 0.05. Experience seems to suggest that when a 0.05 probability is used, null hypotheses are neither dismissed too capriciously nor embraced too wholeheartedly. (More will be said about this particular probability, and its consequences, in Section 6.3.)

Comment In 1768, British troops were sent to Boston to quell an outbreak of civil disturbances. Five citizens were killed in the aftermath, and several soldiers were subsequently put on trial for manslaughter. Explaining the guidelines under which a verdict was to be reached, the judge told the jury, “If upon the whole, ye are in any reasonable doubt of their guilt, ye must then, agreeable to the rule of law, declare them innocent” (188). Ever since, the expression “beyond all reasonable doubt” has been a frequently used indicator of how much evidence is needed in a jury trial to overturn a defendant’s presumption of innocence. For many experimenters, choosing y ∗ such that

P(We reject H0 | H0 is true) = 0.05

is comparable to a jury convicting a defendant only if the latter’s guilt is established “beyond all reasonable doubt.” (In a curious twist of fate, the reluctantly-serving de- fense attorney for the soldiers accused of the “Boston massacre” was none other than the future second President of the United States, John Adams. Despite his well-documented anti-British sentiments, Adams managed to get most of his clients acquitted.)

Suppose the 0.05 “criterion” is applied here. Finding the corresponding y ∗ is a calculation similar to what was done in Example 4.3.6. Given that

P(Y ≥ y ∗ | H0 is true) = 0.05

it follows that

P

( Y − 25.0 2.4/

√ 30

≥ y ∗ − 25.0

2.4/ √

30

) = P

( Z ≥ y

∗ − 25.0 2.4/

√ 30

) = 0.05

Section 6.2 The Decision Rule 347

But we know from Appendix A.1 that P(Z ≥ 1.64) = 0.05. Therefore, y ∗ − 25.0 2.4/

√ 30

= 1.64 (6.2.1)

which implies that y ∗ = 25.718. The company’s statistical strategy is now completely determined: They should

reject the null hypothesis that the additive has no effect if y ≥ 25.718. Since the sample mean was 26.3, the appropriate decision is, indeed, to reject H0. It appears that the additive does increase mileage.

Comment It must be remembered that rejecting H0 does not prove that H0 is false, any more than a jury’s decision to convict guarantees that the defendant is guilty. The 0.05 decision rule is simply saying that if the true mean (μ) is 25.0, sample means (y) as large or larger than 25.718 are expected to occur only 5% of the time. Be- cause of that small probability, a reasonable conclusion when y ≥ 25.718 is that μ is not 25.0.

Table 6.2.1 is a computer simulation of this particular 0.05 decision rule. A total of seventy-five random samples, each of size 30, have been drawn from a normal distribution having μ = 25.0 and σ = 2.4. The corresponding y for each sample is then compared with y ∗ = 25.718. As the entries in the table indicate, five of the samples lead to the erroneous conclusion that H0: μ = 25.0 should be rejected.

Since each sample mean has a 0.05 probability of exceeding 25.718 (when μ = 25.0), we would expect 75(0.05), or 3.75, of the data sets to result in a “reject H0” conclusion. Reassuringly, the observed number of incorrect inferences (= 5) is quite close to that expected value.

Table 6.2.1

y ≥ 25.718? y ≥ 25.718? y ≥ 25.718? 25.133 no 25.259 no 25.200 no 24.602 no 25.866 yes 25.653 no 24.587 no 25.623 no 25.198 no 24.945 no 24.550 no 24.758 no 24.761 no 24.919 no 24.842 no 24.177 no 24.770 no 25.383 no 25.306 no 25.080 no 24.793 no 25.601 no 25.307 no 24.874 no 24.121 no 24.004 no 25.513 no 25.516 no 24.772 no 24.862 no 24.547 no 24.843 no 25.034 no 24.235 no 25.771 yes 25.150 no 25.809 yes 24.233 no 24.639 no 25.719 yes 24.853 no 24.314 no 25.307 no 25.018 no 25.045 no 25.011 no 25.176 no 24.803 no 24.783 no 24.750 no 24.780 no 25.196 no 25.578 no 25.691 no 24.577 no 24.807 no 24.207 no 24.762 no 24.298 no 24.743 no 25.805 yes 24.807 no 24.618 no 24.380 no 24.346 no 25.401 no 25.224 no 25.261 no 24.958 no 24.371 no 25.062 no 25.678 no 25.033 no 25.391 no 24.795 no

348 Chapter 6 Hypothesis Testing

Definition 6.2.1 If H0: μ = μ0 is rejected using a 0.05 decision rule, the difference between y and μ0 is said to be statistically significant.

EXPRESSING DECISION RULES IN TERMS OF Z RATIOS

As we have seen, decision rules are statements that spell out the conditions under which a null hypothesis is to be rejected. The format of those statements, though, can vary. Depending on the context, one version may be easier to work with than another.

Recall Equation 6.2.1. Rejecting H0: μ = 25.0 when

y ≥ y ∗ = 25.0 + 1.64 · 2.4√ 30

= 25.718

is clearly equivalent to rejecting H0 when

y − 25.0 2.4/

√ 30

≥ 1.64 (6.2.2)

(if one rejects the null hypothesis, the other will necessarily do the same). We know from Chapter 4 that the random variable Y−25.0

2.4/ √

30 has a standard normal

distribution (if μ = 25.0). When a particular y is substituted for Y (as in Inequality 6.2.2), we call y−25.0

2.4/ √

30 the observed z. Choosing between H0 and H1 is typically (and

most conveniently) done in terms of the observed z. In Section 6.4, though, we will encounter certain questions related to hypothesis testing that are best answered by phrasing the decision rule in terms of y ∗.

Definition 6.2.2 Any function of the observed data whose numerical value dictates whether H0 is accepted or rejected is called a test statistic. The set of values for the test statistic that result in the null hypothesis being rejected is called the critical region and is denoted C. The particular point in C that separates the rejection region from the acceptance region is called the critical value.

Comment For the gas mileage example, both y and y−25.0 2.4/

√ 30

qualify as test statistics. If the sample mean is used, the associated critical region would be written

C = {y; y ≥ 25.718} (and 25.718 is the critical value). If the decision rule is framed in terms of a Z ratio,

C = {

z : z = y − 25.0 2.4/

√ 30

≥ 1.64 }

In this latter case, the critical value is 1.64.

Definition 6.2.3 The probability that the test statistic lies in the critical region when H0 is true is called the level of significance and is denoted α.

Section 6.2 The Decision Rule 349

Comment In principle, the value chosen for α should reflect the consequences of making the mistake of rejecting H0 when H0 is true. As those consequences get more severe, the critical region C should be defined so that α gets smaller. In practice, though, efforts to quantify the costs of making incorrect inferences are arbitrary at best. In most situations, experimenters abandon any such attempts and routinely set the level of significance equal to 0.05. If another α is used, it is likely to be either 0.01 or 0.10.

ONE-SIDED VERSUS TWO-SIDED ALTERNATIVES

In most hypothesis tests, H0 consists of a single number, typically the value of the parameter that represents the status quo. The “25.0” in H0: μ = 25.0, for example, is the mileage that would be expected when the additive has no effect. If the mean of a normal distribution is the parameter being tested, our general notation for the null hypothesis will be H0: μ = μ0, where μ0 is the “no effect” value of μ.

Alternative hypotheses, by way of contrast, invariably embrace entire ranges of parameter values. If there is reason to believe before any data are collected that the parameter being tested is necessarily restricted to one particular “side” of H0, then H1 is defined to reflect that limitation and we say that the alternative hypothesis is one-sided. Two variations are possible: H1 can be one-sided to the left (H1: μ < μ0) or it can be one-sided to the right (H1: μ> μ0). If no such a priori information is available, the alternative hypothesis needs to accommodate the possibility that the true parameter value might lie on either side of μ0. Any such alternative is said to be two-sided. For testing H0: μ= μ0, the two-sided alternative is written H1: μ �= μ0.

In the gasoline example, it was tacitly assumed that the additive either would have no effect (in which case μ = 25.0 and H0 would be true) or would increase mileage (implying that the true mean would lie somewhere “to the right” of H0). Accordingly, we wrote the alternative hypothesis as H1: μ > 25.0. If we had reason to suspect, though, that the additive might interfere with the gasoline’s combustibil- ity and possibly decrease mileage, it would have been necessary to use a two-sided alternative (H1: μ �= 25.0).

Whether the alternative hypothesis is defined to be one-sided or two-sided is important because the nature of H1 plays a key role in determining the form of the critical region. We saw earlier that the 0.05 decision rule for testing

H0: μ = 25.0 versus

H1: μ > 25.0

calls for H0 to be rejected if y−25.0

2.4/ √

30 ≥ 1.64. That is, only if the sample mean is sub-

stantially larger than 25.0 will we reject H0. If the alternative hypothesis had been two-sided, sample means either much

smaller than 25.0 or much larger than 25.0 would be evidence against H0 (and in support of H1). Moreover, the 0.05 probability associated with the critical region C would be split into two halves, with 0.025 being assigned to the left-most por- tion of C, and 0.025 to the right-most portion. From Appendix Table A.1, though, P(Z ≤ −1.96) = P(Z ≥ 1.96) = 0.025, so the two-sided 0.05 decision rule would call for H0: μ = 25.0 to be rejected if y−25.02.4/√30 is either (1) ≤ −1.96 or (2) ≥ 1.96.

350 Chapter 6 Hypothesis Testing

TESTING H0: μ = μ0 (σ KNOWN) Let zα be the number having the property that P(Z ≥ zα) = α. Values for zα can be found from the standard normal cdf tabulated in Appendix A.1. If α = 0.05, for example, z.05 = 1.64 (see Figure 6.2.4). Of course, by the symmetry of the normal curve, −zα has the property that P(Z ≤ −zα) = α.

0 .05z = 1.64

Zf (z) 0.4

0.2 Area = 0.05

Standard normal curve

z

Figure 6.2.4

Theorem 6.2.1

Let y1, y2, . . . , yn be a random sample of size n from a normal distribution where σ is known. Let z = y−μ0

σ/ √

n .

a. To test H0: μ = μ0 versus H1: μ > μ0 at the α level of significance, reject H0 if z ≥ zα.

b. To test H0: μ = μ0 versus H1: μ < μ0 at the α level of significance, reject H0 if z ≤ −zα.

c. To test H0: μ = μ0 versus H1: μ �= μ0 at the α level of significance, reject H0 if z is either (1) ≤ −zα/2 or (2) ≥ zα/2.

Example 6.2.1

As part of a “Math for the Twenty-First Century” initiative, Bayview High was cho- sen to participate in the evaluation of a new algebra and geometry curriculum. In the recent past, Bayview’s students were considered “typical,” having earned scores on standardized exams that were very consistent with national averages.

Two years ago, a cohort of eighty-six Bayview sophomores, all randomly se- lected, were assigned to a special set of classes that integrated algebra and geometry. According to test results that have just been released, those students averaged 502 on the SAT-I math exam; nationwide, seniors averaged 494 with a standard deviation of 124. Can it be claimed at the α = 0.05 level of significance that the new curriculum had an effect?

To begin, we define the parameter μ to be the true average SAT-I math score that we could expect the new curriculum to produce. The obvious “status quo” value for μ is the current national average—that is, μ0 = 494. The alternative hypothesis here should be two-sided because the possibility certainly exists that a revised curriculum—however well intentioned—would actually lower a student’s achievement.

According to part (c) of Theorem 6.2.1, then, we should reject H0: μ = 494 in favor of H1: μ �= 494 at the α = 0.05 level of significance if the test statistic z is either (1) ≤ −z.025(= −1.96) or (2) ≥ z.025(= 1.96). But y = 502, so

z = 502 − 494 124/

√ 86

= 0.60

Section 6.2 The Decision Rule 351

implying that our decision should be “Fail to reject H0.” Even though Bayview’s 502 is eight points above the national average, it does not follow that the improve- ment was due to the new curriculum: An increase of that magnitude could easily have occurred by chance, even if the new curriculum had no effect whatsoever (see Figure 6.2.5).

0 1.96 z = 0.60

Zf (z)

Area = 0.025 Area = 0.025

0.4

0.2

–1.96

Reject H0 Reject H0

Standard normal curve

Figure 6.2.5

Comment If the null hypothesis is not rejected, we should phrase the conclusion as “Fail to reject H0” rather than “Accept H0.” Those two statements may seem to be the same, but, in fact, they have very different connotations. The phrase “Accept H0” suggests that the experimenter is concluding that H0 is true. But that may not be the case. In a court trial, when a jury returns a verdict of “Not guilty,” they are not saying that they necessarily believe that the defendant is innocent. They are simply asserting that the evidence—in their opinion—is not sufficient to overturn the pre- sumption that the defendant is innocent. That same distinction applies to hypothesis testing. If a test statistic does not fall in the critical region (which was the case in Example 6.2.1), the proper interpretation is to conclude that we “Fail to reject H0.”

THE P-VALUE

There are two general ways to quantify the amount of evidence against H0 that is contained in a given set of data. The first involves the level of significance concept introduced in Definition 6.2.3. Using that format, the experimenter selects a value for α (usually 0.05) before any data are collected. Once α is specified, a corresponding critical region can be identified. If the test statistic falls in the critical region, we reject H0 at the α level of significance. The second strategy is to calculate the test statistic’s P-value.

Definition 6.2.4 The P-value associated with an observed test statistic is the probability of get- ting a value for that test statistic as extreme as or more extreme than what was actually observed (relative to H1) given that H0 is true.

Comment Test statistics that yield small P-values should be interpreted as evidence against H0. More specifically, if the P-value calculated for a test statistic is less than or equal to α, the null hypothesis can be rejected at the α level of significance. Or, put another way, the P-value is the smallest α at which we can reject H0.

Example 6.2.2

Recall Example 6.2.1. Given that H0: μ = 494 is being tested against H1: μ �= 494, what P-value is associated with the calculated test statistic, z = 0.60, and how should it be interpreted?

352 Chapter 6 Hypothesis Testing

If H0: μ = 494 is true, the random variable Z = Y−494124/√86 has a standard normal pdf. Relative to the two-sided H1, any value of Z greater than or equal to 0.60 or less than or equal to −0.60 qualifies as being “as extreme as or more extreme than” the observed z. Therefore, by Definition 6.2.4,

P-value = P(Z ≥ 0.60) + P(Z ≤ −0.60) = 0.2743 + 0.2743 = 0.5486

See Figure 6.2.6.

0

0.60

More extreme

– 0.60

More extreme

0.4

Area = 0.2743

P-value = 0.2743 + 0.2743 = 0.5486

Area = 0.2743

z

Zf (z) Standard normal curve

Figure 6.2.6

As noted in the preceding comment, P-values can be used as decision rules. In Example 6.2.1, 0.05 was the stated level of significance. Having determined here that the P-value associated with z = 0.60 is 0.5486, we know that H0: μ = 494 would not be rejected at the given α. Indeed, the null hypothesis would not be rejected for any value of α up to and including 0.5486.

Notice that the P-value would have been halved had H1 been one-sided. Suppose we were confident that the new algebra and geometry classes would not lower a stu- dent’s math SAT. The appropriate hypothesis test in that case would be H0: μ = 494 versus H1: μ > 494. Moreover, only values in the right-hand tail of fZ(z) would be considered more extreme than the observed z = 0.60, so by Definition 6.2.4

P-value = P(Z ≥ 0.60) = 0.2743

Questions

6.2.1. State the decision rule that would be used to test the following hypotheses. Evaluate the appropriate test statis- tic and state your conclusion. (a) H0: μ = 120 versus H1: μ < 120; y = 114.2, n = 25, σ = 18, α = 0.08 (b) H0: μ = 42.9 versus H1: μ �= 42.9; y = 45.1, n = 16, σ = 3.2, α = 0.01 (c) H0: μ = 14.2 versus H1: μ > 14.2; y = 15.8, n = 9, σ = 4.1, α = 0.13 6.2.2. An herbalist is experimenting with juices extracted from berries and roots that may have the ability to af- fect the Stanford-Binet IQ scores of students afflicted with mild cases of attention deficit disorder (ADD). A random sample of twenty-two children diagnosed with

the condition have been drinking Berry Smart daily for two months. Past experience suggests that children with ADD score an average of 95 on the IQ test with a stan- dard deviation of 15. If the data are to be analyzed us- ing the α = 0.06 level of significance, what values of y would cause H0 to be rejected? Assume that H1 is two-sided.

6.2.3. (a) Suppose H0: μ = μ0 is rejected in favor of H1: μ �= μ0 at the α = 0.05 level of significance. Would H0 necessarily be rejected at the α = 0.01 level of significance? (b) Suppose H0: μ = μ0 is rejected in favor of H1: μ �= μ0 at the α = 0.01 level of significance. Would H0 neces- sarily be rejected at the α = 0.05 level of significance?

Section 6.3 Testing Binomial Data—H0: p = po 353

6.2.4. Company records show that drivers get an average of 32,500 miles on a set of Road Hugger All-Weather ra- dial tires. Hoping to improve that figure, the company has added a new polymer to the rubber that should help pro- tect the tires from deterioration caused by extreme tem- peratures. Fifteen drivers who tested the new tires have reported getting an average of 33,800 miles. Can the com- pany claim that the polymer has produced a statistically significant increase in tire mileage? Test H0: μ = 32,500 against a one-sided alternative at the α = 0.05 level. As- sume that the standard deviation (σ) of the tire mileages has not been affected by the addition of the polymer and is still four thousand miles.

6.2.5. If H0: μ = μ0 is rejected in favor of H1: μ > μ0, will it necessarily be rejected in favor of H1: μ �= μ0? Assume that α remains the same.

6.2.6. A random sample of size 16 is drawn from a nor- mal distribution having σ = 6.0 for the purpose of test- ing H0: μ = 30 versus H1: μ �= 30. The experimenter chooses to define the critical region C to be the set of sample means lying in the interval (29.9, 30.1). What level of significance does the test have? Why is (29.9, 30.1) a poor choice for the critical region? What range of y values should comprise C, assuming the same α is to be used?

6.2.7. Recall the breath analyzers described in Exam- ple 4.3.5. The following are thirty blood alcohol deter- minations made by Analyzer GTE-10, a three-year-old unit that may be in need of recalibration. All thirty measurements were made using a test sample on which a properly adjusted machine would give a reading of 12.6%.

12.3 12.7 13.6 12.7 12.9 12.6 12.6 13.1 12.6 13.1 12.7 12.5 13.2 12.8 12.4 12.6 12.4 12.4 13.1 12.9 13.3 12.6 12.6 12.7 13.1 12.4 12.4 13.1 12.4 12.9

(a) If μ denotes the true average reading that Analyzer GTE-10 would give for a person whose blood alcohol con- centration is 12.6%, test

H0: μ = 12.6 versus

H1: μ �= 12.6 at the α = 0.05 level of significance. Assume that σ = 0.4. Would you recommend that the machine be readjusted? (b) What statistical assumptions are implicit in the hy- pothesis test done in part (a)? Is there any reason to suspect that those assumptions may not be satisfied?

6.2.8. Calculate the P-values for the hypothesis tests indi- cated in Question 6.2.1. Do they agree with your decisions on whether or not to reject H0?

6.2.9. Suppose H0: μ = 120 is tested against H1: μ �= 120. If σ = 10 and n = 16, what P-value is associated with the sample mean y = 122.3? Under what circumstances would H0 be rejected?

6.2.10 As a class research project, Rosaura wants to see whether the stress of final exams elevates the blood pres- sures of freshmen women. When they are not under any untoward duress, healthy eighteen-year-old women have systolic blood pressures that average 120 mm Hg with a standard deviation of 12 mm Hg. If Rosaura finds that the average blood pressure for the fifty women in Statistics 101 on the day of the final exam is 125.2, what should she conclude? Set up and test an appropriate hypothesis.

6.2.11. As input for a new inflation model, economists predicted that the average cost of a hypothetical “food basket” in east Tennessee in July would be $145.75. The standard deviation (σ) of basket prices was assumed to be $9.50, a figure that has held fairly constant over the years. To check their prediction, a sample of twenty-five baskets representing different parts of the region were checked in late July, and the average cost was $149.75. Let α = 0.05. Is the difference between the economists’ prediction and the sample mean statistically significant?

6.3 Testing Binomial Data—H0: p = po Suppose a set of data—k1, k2, . . . , kn—represents the outcomes of n Bernoulli trials, where ki = 1 or 0, depending on whether the ith trial ended in success or failure, respectively. If p = P(ith trial ends in success) is unknown, it may be appropriate to test the null hypothesis H0: p = po, where po is some particularly relevant (or status quo) value of p. Any such procedure is called a binomial hypothesis test because the appropriate test statistic is the sum of the ki’s—call it k—and we know from Theorem 3.2.1 that the total number of successes, X , in n independent trials has the binomial distribution,

pX (k; p) = P(X = k) = (

n k

) pk(1 − p)n−k, k = 0, 1, 2, . . . , n

354 Chapter 6 Hypothesis Testing

Two different procedures for testing H0: p = po need to be considered, the dis- tinction resting on the magnitude of n. If

0 < npo − 3 √

npo(1 − po) < npo + 3 √

npo(1 − po) < n (6.3.1)

a “large-sample” test of H0: p = po is done, based on an approximate Z ratio. Otherwise, a “small-sample” decision rule is used, one where the critical region is defined in terms of the exact binomial distribution associated with the random variable X .

Comment The rationale behind Eq. 6.3.1 is clear: If n is large enough so that the range of values for X lying from three standard deviations to the left of E(X ) to three standard deviations to the right of E(X ) falls entirely within the possible value of X (0 to n), then the distribution of X is sufficiently bell-shaped to be adequately approximated by a normal curve.

A LARGE-SAMPLE TEST FOR THE BINOMIAL PARAMETER p

Suppose the number of observations, n, making up a set of Bernoulli random vari- ables is sufficiently large that Inequality 6.3.1 is satisfied. We know in that case from Section 4.3 that the random variable X−npo√

npo(1−po) has approximately a standard normal

pdf, fZ(z), if p = po. Values of X−npo√ npo(1−po)

close to zero, of course, would be evidence

in favor of H0: p = po [since E (

X−npo√ npo(1−po)

) = 0 when p = po]. Conversely, the

credibility of H0: p = po clearly diminishes as X−npo√ npo(1−po)

moves further and further

away from zero. The large-sample test of H0: p = po, then, takes the same basic form as the test of H0: μ = μ0 in Section 6.2.

Theorem 6.3.1

Let k1, k2, . . . , kn be a random sample of n Bernoulli random variables for which 0 < npo − 3

√ npo(1 − po) < npo + 3

√ npo(1 − po) < n. Let k = k1 + k2 +· · ·+ kn

denote the total number of “successes” in the n trials. Define z = k−npo√ npo(1−po)

.

a. To test H0: p = po versus H1: p > po at the α level of significance, reject H0 if z ≥ zα.

b. To test H0: p = po versus H1: p < po at the α level of significance, reject H0 if z ≤ −zα.

c. To test H0: p = po versus H1: p �= po at the α level of significance, reject H0 if z is either (1) ≤ −zα/2 or (2) ≥ zα/2.

CASE STUDY 6.3.1

In gambling parlance, a point spread is a hypothetical increment added to the score of the presumably weaker of two teams playing. By intention, its magnitude should have the effect of making the game a toss-up; that is, each team should have a 50% chance of beating the spread.

Section 6.3 Testing Binomial Data—H0: p = po 355

In practice, setting the “line” on a game is a highly subjective endeavor, which raises the question of whether or not the Las Vegas crowd actually gets it right (120). Addressing that issue, a recent study examined the records of one hundred twenty-four National Football League games; it was found that in sixty- seven of the matchups (or 54%), the favored team beat the spread. Is the dif- ference between 54% and 50% small enough to be written off to chance, or did the study uncover convincing evidence that oddsmakers are not capable of ac- curately quantifying the competitive edge that one team holds over another?

Let p = P(Favored team beats spread). If p is any value other than 0.50, the bookies are assigning point spreads incorrectly. To be tested, then, are the hypotheses

H0: p = 0.50 versus

H1: p �= 0.50 Suppose 0.05 is taken to be the level of significance.

In the terminology of Theorem 6.3.1, n = 124, po = 0.50, and

ki = {

1 if favored team beats spread in ith game 0 if favored team does not beat spread in ith game

for i = 1, 2, . . . , 124. Therefore, the sum k = k1 + k2 + · · · + k124 denotes the total number of times the favored team beat the spread.

According to the two-sided decision rule given in part (c) of Theorem 6.3.1, the null hypothesis should be rejected if z is either less than or equal to −1.96 (= − z.05/2) or greater than or equal to 1.96 (= z.05/2). But

z = 67 − 124(0.50)√ 124(0.50)(0.50)

= 0.90

does not fall in the critical region, so H0 : p = 0.50 should not be rejected at the α = 0.05 level of significance. The outcomes of these one hundred twenty-four games, in other words, are entirely consistent with the presumption that bookies know which of two teams is better, and by how much.

About the Data Here the observed z is 0.90 and H1 is two-sided, so the P-value is 0.37:

P-value = P(Z ≤ −0.90) + P(Z ≥ 0.90) = 0.1841 + 0.1841 .= 0.37 According to the Comment following Definition 6.2.4, then, the conclusion could be written

“Fail to reject H0 for any α < 0.37.”

Would it also be correct to summarize the data with the statement

“Reject H0 at the α = 0.40 level of significance”? In theory, yes; in practice, no. For all the reasons discussed in Section 6.2, the ra- tionale underlying hypothesis testing demands that α be kept small (and “small” usually means less than or equal to 0.10).

(Continued on next page)

356 Chapter 6 Hypothesis Testing

(Case Study 6.3.1 continued)

It is typically the experimenter’s objective to reject H0, because H0 repre- sents the status quo, and there is seldom a compelling reason to devote time and money to a study for the purpose of confirming what is already believed. That being the case, experimenters are always on the lookout for ways to in- crease their probability of rejecting H0. There are a number of entirely appro- priate actions that can be taken to accomplish that objective, several of which will be discussed in Section 6.4. However, raising α above 0.10 is not one of the appropriate actions; and raising α as high as 0.40 would absolutely never be done.

CASE STUDY 6.3.2

There is a theory that people may tend to “postpone” their deaths until after some event that has particular meaning to them has passed (144). Birthdays, a fam- ily reunion, or the return of a loved one have all been suggested as the sorts of personal milestones that might have such an effect. National elections may be another. Studies have shown that the mortality rate in the United States drops noticeably during the Septembers and Octobers of presidential election years. If the postponement theory is to be believed, the reason for the decrease is that many of the elderly who would have died in those two months “hang on” until they see who wins.

Some years ago, a national periodical reported the findings of a study that looked at obituaries published in a Salt Lake City newspaper. Among the seven hundred forty-seven decedents, the paper identified that only sixty, or 8.0%, had died in the three-month period preceding their birth months (131). If individuals are dying randomly with respect to their birthdays, we would expect 25% to die during any given three-month interval. What should we make, then, of the decrease from 25% to 8%? Has the study provided convincing evidence that the death months reported for the sample do not constitute a random sample of months?

Imagine the seven hundred forty-seven deaths being divided into two cate- gories: those that occurred in the three-month period prior to a person’s birth- day and those that occurred at other times during the year. Let ki = 1 if the ith person belongs to the first category and ki = 0, otherwise. Then k = k1 + k2 + · · · + k747 denotes the total number of deaths in the first category. The latter, of course, is the value of a binomial random variable with parameter p, where

p = P(Person dies in three months prior to birth month) If people do not postpone their deaths (to wait for a birthday), p should

be 312 , or 0.25; if they do, p will be something less than 0.25. Assessing the de- crease from 25% to 8%, then, is done with a one-sided binomial hypothesis test:

H0 : p = 0.25 versus

H1 : p < 0.25

Section 6.3 Testing Binomial Data—H0: p = po 357

Let α = 0.05. According to part (b) of Theorem 6.3.1, H0 should be rejected if

z = k − npo√ npo(1 − po)

≤ −z.05 = −1.64

Substituting for k, n, and po, we find that the test statistic falls far to the left of the critical value:

z = 60 − 747(0.25)√ 747(0.25)(0.75)

= −10.7

The evidence is overwhelming, therefore, that the decrease from 25% to 8% is due to something other than chance. Explanations other than the postpone- ment theory, of course, may be wholly or partially responsible for the nonrandom distribution of deaths. Still, the data show a pattern entirely consistent with the notion that we do have some control over when we die.

About the Data A similar conclusion was reached in a study conducted among the Chinese community living in California. The “significant event” in that case was not a birthday—it was the annual Harvest Moon festival, a celebration that holds particular meaning for elderly women. Based on census data tracked over a twenty-four-year period, it was determined that fifty-one deaths among elderly Chinese women should have occurred during the week before the festivals, and fifty-two deaths after the festivals. In point of fact, thirty-three died the week before and seventy died the week after (25).

A SMALL-SAMPLE TEST FOR THE BINOMIAL PARAMETER p

Suppose that k1, k2, . . . , kn is a random sample of Bernoulli random variables where n is too small for Inequality 6.3.1 to hold. The decision rule, then, for testing H0: p = po that was given in Theorem 6.3.1 would not be appropriate. Instead, the critical region is defined by using the exact binomial distribution (rather than a normal approximation).

Example 6.3.1

Suppose that n = 19 elderly patients are to be given an experimental drug designed to relieve arthritis pain. The standard treatment is known to be effective in 85% of similar cases. If p denotes the probability that the new drug will reduce a patient’s pain, the researcher wishes to test

H0: p = 0.85 versus

H1: p �= 0.85 The decision will be based on the magnitude of k, the total number in the sample for whom the drug is effective—that is, on

k = k1 + k2 + · · · + k19 where

ki = {

0 if the new drug fails to relieve ith patient’s pain 1 if the new drug does relieve ith patient’s pain

358 Chapter 6 Hypothesis Testing

What should the decision rule be if the intention is to keep α somewhere near 10%? [Note that Theorem 6.3.1 does not apply here because Inequality 6.3.1 is not satisfied—specifically, npo + 3

√ npo(1 − po) = 19(0.85) + 3

√ 19(0.85)(0.15) = 20.8

is not less than n(= 19).] If the null hypothesis is true, the expected number of successes would be npo =

19(0.85) or 16.2. It follows that values of k to the extreme right or extreme left of 16.2 should constitute the critical region.

MTB > pdf; SUBC > binomial 19 0.85.

Probability Density Function

Binomial with n = 19 and p = 0.85 x P(X = x) 6 0.000000 7 0.000002 8 0.000018 9 0.000123

10 0.000699 11 0.003242 12 0.012246 13 0.037366 14 0.090746 15 0.171409 16 0.242829 17 0.242829 18 0.152892 19 0.045599 → P(X = 19) = 0.045599

⎫⎪⎪⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎪⎪⎭

→ P(X ≤ 13) = 0.053696

Figure 6.3.1

Figure 6.3.1 is a Minitab printout of pX (k) = (19

k

) (0.85)k(0.15)19−k. By inspection,

we can see that the critical region

C = {k: k ≤ 13 or k = 19} would produce an α close to the desired 0.10 (and would keep the probabilities as- sociated with the two sides of the rejection region roughly the same). In random variable notation,

P(X ∈ C | H0 is true) = P(X ≤ 13 | p = 0.85) + P(X = 19 | p = 0.85) = 0.053696 + 0.045599 = 0.099295 .= 0.10

Questions

6.3.1. Commercial fishermen working certain parts of the Atlantic Ocean sometimes find their efforts hindered by the presence of whales. Ideally, they would like to scare away the whales without frightening the fish. One of the strategies being experimented with is to transmit under- water the sounds of a killer whale. On the fifty-two oc- casions that technique has been tried, it worked twenty- four times (that is, the whales immediately left the area). Experience has shown, though, that 40% of all whales sighted near fishing boats leave of their own accord, prob- ably just to get away from the noise of the boat. (a) Let p = P(Whale leaves area after hearing sounds of killer whale). Test H0: p = 0.40 versus H1: p > 0.40 at the α = 0.05 level of significance. Can it be argued on the basis of these data that transmitting underwater predator

sounds is an effective technique for clearing fishing waters of unwanted whales? (b) Calculate the P-value for these data. For what values of α would H0 be rejected?

6.3.2. Efforts to find a genetic explanation for why certain people are right-handed and others left-handed have been largely unsuccessful. Reliable data are difficult to find be- cause of environmental factors that also influence a child’s “handedness.” To avoid that complication, researchers of- ten study the analogous problem of “pawedness” in ani- mals, where both genotypes and the environment can be partially controlled. In one such experiment (30), mice were put into a cage having a feeding tube that was equally accessible from the right or the left. Each mouse was then

Section 6.4 Type I and Type II Errors 359

carefully watched over a number of feedings. If it used its right paw more than half the time to activate the tube, it was defined to be “right-pawed.” Observations of this sort showed that 67% of mice belonging to strain A/J are right-pawed. A similar protocol was followed on a sam- ple of thirty-five mice belonging to strain A/HeJ. Of those thirty-five, a total of eighteen were eventually classified as right-pawed. Test whether the proportion of right-pawed mice found in the A/HeJ sample was significantly differ- ent from what was known about the A/J strain. Use a two- sided alternative and let 0.05 be the probability associated with the critical region.

6.3.3. Defeated in his most recent attempt to win a congressional seat because of a sizeable gender gap, a politician has spent the last two years speaking out in favor of women’s rights issues. A newly released poll claims to have contacted a random sample of one hundred twenty of the politician’s current supporters and found that seventy-two were men. In the election that he lost, exit polls indicated that 65% of those who voted for him were men. Using an α = 0.05 level of significance, test the null hypothesis that the proportion of his male supporters has remained the same. Make the alternative hypothesis one-sided.

6.3.4. Suppose H0: p = 0.45 is to be tested against H1: p > 0.45 at the α = 0.14 level of significance, where p = P(ith trial ends in success). If the sample size is two hundred, what is the smallest number of successes that will cause H0 to be rejected?

6.3.5. Recall the median test described in Example 5.3.2. Reformulate that analysis as a hypothesis test rather than a confidence interval. What P-value is associated with the outcomes listed in Table 5.3.3?

6.3.6. Among the early attempts to revisit the death post- ponement theory introduced in Case Study 6.3.2 was an examination of the birth dates and death dates of three hundred forty-eight U.S. celebrities (144). It was found

that sixteen of those individuals had died in the month preceding their birth month. Set up and test the appro- priate H0 against a one-sided H1. Use the 0.05 level of significance.

6.3.7. What α levels are possible with a decision rule of the form “Reject H0 if k ≥ k∗” when H0: p = 0.5 is to be tested against H1: p > 0.5 using a random sample of size n = 7? 6.3.8. The following is a Minitab printout of the binomial pdf pX (k) =

( 9 k

) (0.6)k(0.4)9−k, k = 0, 1, . . . , 9. Suppose

H0: p = 0.6 is to be tested against H1: p > 0.6 and we wish the level of significance to be exactly 0.05. Use The- orem 2.4.1 to combine two different critical regions into a single randomized decision rule for which α = 0.05.

MTB > pdf;

SUBC > binomial 9 0.6.

Probability Density Function

Binomial with n = 9 and p = 0.6 x P(X = x) 0 0.000262 1 0.003539 2 0.021234 3 0.074318 4 0.167215 5 0.250823 6 0.250823 7 0.161243 8 0.060466 9 0.010078

6.3.9. Suppose H0: p = 0.75 is to be tested against H1: p < 0.75 using a random sample of size n = 7 and the decision rule “Reject H0 if k ≤ 3.” (a) What is the test’s level of significance? (b) Graph the probability that H0 will be rejected as a function of p.

6.4 Type I and Type II Errors The possibility of drawing incorrect conclusions is an inevitable byproduct of hypoth- esis testing. No matter what sort of mathematical facade is laid atop the decision- making process, there is no way to guarantee that what the test tells us is the truth. One kind of error—rejecting H0 when H0 is true—figured prominently in Section 6.3: It was argued that critical regions should be defined so as to keep the probability of making such errors small, often on the order of 0.05.

In point of fact, there are two different kinds of errors that can be committed with any hypothesis test: (1) We can reject H0 when H0 is true and (2) we can fail to reject H0 when H0 is false. These are called Type I and Type II errors, respectively. At the same time, there are two kinds of correct decisions: (1) We can fail to reject a true H0 and (2) we can reject a false H0. Figure 6.4.1 shows these four possible “Decision/State of nature” combinations.

360 Chapter 6 Hypothesis Testing

True State of Nature

H0 is true H1 is true

Fail to Correct Type II reject H0 decision errorOur

Decision Type I Correct

Reject H0 error decision

Figure 6.4.1

COMPUTING THE PROBABILITY OF COMMITTING A TYPE I ERROR

Once an inference is made, there is no way to know whether the conclusion reached was correct. It is possible, though, to calculate the probability of having made an er- ror, and the magnitude of that probability can help us better understand the “power” of the hypothesis test and its ability to distinguish between H0 and H1.

Recall the fuel additive example developed in Section 6.2: H0: μ = 25.0 was to be tested against H1: μ > 25.0 using a sample of size n = 30. The decision rule stated that H0 should be rejected if y, the average mpg with the new additive, equalled or ex- ceeded 25.718. Given that setup, the probability of committing a Type I error is 0.05:

P(Type I error) = P(Reject H0 | H0 is true) = P(Y ≥ 25.718 | μ = 25.0)

= P (

Y − 25.0 2.4/

√ 30

≥ 25.718 − 25.0 2.4/

√ 30

)

= P(Z ≥ 1.64) = 0.05 Of course, the fact that the probability of committing a Type I error here equals

0.05 should come as no surprise. In the earlier discussion of how “beyond reasonable doubt” should be interpreted numerically, we specifically chose the critical region so that the probability of the decision rule rejecting H0 when H0 is true would be 0.05. Computing the probability of a Type I error, then, is a non-problem: It automatically equals whatever value the experimenter chooses for α.

COMPUTING THE PROBABILITY OF COMMITTING A TYPE II ERROR

Unlike Type I errors, which are defined for only a single parameter value (here, μ = 25.0), Type II errors are typically defined for an infinite number of parameter values (in this case, μ > 25.0). Associated with each parameter value, of course, is a different probability of committing a Type II error.

As an example, suppose we want to find the probability of committing a Type II error in the gasoline experiment if the true μ (with the additive) were 25.75. By definition,

P(Type II error | μ = 25.75) = P(We fail to reject H0 | μ = 25.75) = P(Y < 25.718 | μ = 25.75)

= P (

Y − 25.75 2.4/

√ 30

< 25.718 − 25.75

2.4/ √

30

)

= P(Z < −0.07) = 0.4721

Section 6.4 Type I and Type II Errors 361

So, even if the new additive increased the fuel economy to 25.75 mpg (from 25 mpg), our decision rule would be “tricked” 47% of the time: that is, it would tell us on those occasions not to reject H0.

The symbol for the probability of committing a Type II error is β. Figure 6.4.2 shows the sampling distribution of Y when μ = 25.0 (i.e., when H0 is true) and when μ = 25.75 (H1 is true); the areas corresponding to α and β are shaded.

25.718

Sampling distribution of Y when H is true

Sampling distribution of Y when m = 25.75

b = 0.4721 a = 0.05

1.0

0.5

Accept H0

0

0Reject H

24 25 26 27

Figure 6.4.2

Clearly, the magnitude of β is a function of the presumed value for μ. If, for example, the gasoline additive is so effective as to raise fuel efficiency to 26.8 mpg, the probability that our decision rule would lead us to make a Type II error is a much smaller 0.0068:

P(Type II error | μ = 26.8) = P(We fail to reject H0 | μ = 26.8) = P(Y < 25.718 | μ = 26.8)

= P (

Y − 26.8 2.4/

√ 30

< 25.718 − 26.8

2.4/ √

30

)

= P(Z < −2.47) = 0.0068

See Figure 6.4.3.

25.718

Sampling distribution of Y when H is true

Sampling distribution of Y when m = 26.8

b = 0.0068 a = 0.05

1.0

0.5

Accept H0

0

0Reject H

24 25 26 27 28

Figure 6.4.3

362 Chapter 6 Hypothesis Testing

POWER CURVES

If β is the probability that we fail to reject H0 when H1 is true, then 1 − β is the probability of the complement—that we reject H0 when H1 is true. We call 1 − β the power of the test; it represents the ability of the decision rule to “recognize” (correctly) that H0 is false. A graph of 1 − β (on the y–axis) versus values of the parameter being tested (on the x-axis) is called a power curve.

Figure 6.4.4 shows the power curve for testing

H0: μ = 25.0 versus

H1: μ > 25.0

where μ is the mean of a normal distribution with σ = 2.4, and the decision rule is “Reject H0 if y ≥ 25.718,” where y is based on a random sample of size n = 30. The two marked points on the curve represent the (μ, 1 − β) pairs just determined, (25.75, 0.5297) and (26.8, 0.9932). One other point can be gotten for every power curve, without doing any calculations: When μ = μ0 (the value specified by H0), 1 − β = α. As the true mean gets further and further away from the H0 mean, the power, of course, will converge to 1.

25.50 26.00 26.50 27.00

0.5

a

1.0

25.00

Power = 0.72

1 – b

Power = 0.29

Presumed value for m

Figure 6.4.4

Power curves serve two different purposes. On the one hand, they completely characterize the performance that can be expected from a hypothesis test. In Figure 6.4.4, for example, the two arrows show that the probability of rejecting H0 : μ = 25 in favor of H1 : μ > 25 when μ = 26.0 is approximately 0.72. (Or, equiv- alently, Type II errors will be committed roughly 28% of the time when μ = 26.0.) As the true mean moves closer to μ0 (and becomes more difficult to distinguish), the power of the test understandably diminishes. If μ = 25.5, for example, the graph shows that 1 − β falls to 0.29.

Power curves are also useful for comparing one inference procedure with another. For every conceivable hypothesis testing situation, a variety of procedures for choosing between H0 and H1 will be available. How do we know which to use?

The answer to that question is not always simple. Some procedures will be computationally more convenient or easier to explain than others; some will make slightly different assumptions about the pdf being sampled. Associated with each of them, though, is a power curve. If the selection of a hypothesis test is to hinge

Section 6.4 Type I and Type II Errors 363

solely on its ability to distinguish H0 from H1, then the procedure to choose is the one having the steepest power curve.

Figure 6.4.5 shows the power curves for two hypothetical methods A and B, each of which is testing H0: θ = θo versus H1: θ �= θo at the α level of significance. From the standpoint of power, Method B is clearly the better of the two—it always has a higher probability of correctly rejecting H0 when the parameter θ is not equal to θo.

a

1 Method B

Method A

u-axisu0

1 – b

Figure 6.4.5

FACTORS THAT INFLUENCE THE POWER OF A TEST

The ability of a test procedure to reject H0 when H0 is false is clearly of prime im- portance, a fact that raises an obvious question: What can an experimenter do to influence the value of 1 − β? In the case of the Z test described in Theorem 6.2.1, 1 − β is a function of α, σ, and n. By appropriately raising or lowering the values of those parameters, the power of the test against any given μ can be made to equal any desired level.

THE EFFECT OF α ON 1 − β Consider again the test of

H0: μ = 25.0 versus

H1: μ > 25.0

In its original form, α = 0.05, σ = 2.4, n = 30, and the decision rule called for H0 to be rejected if y ≥ 25.718.

Figure 6.4.6 shows what happens to 1−β (when μ = 25.75) if σ, n, and μ are held constant but α is increased to 0.10. The top pair of distributions shows the configu- ration that appears in Figure 6.4.2; the power in this case is 1 − 0.4721, or 0.53. The bottom portion of the graph illustrates what happens when α is set at 0.10 instead of 0.05—the decision rule changes from “Reject H0 if y ≥ 25.718” to “Reject H0 if y ≥ 25.561” (see Question 6.4.2) and the power increases from 0.53 to 0.67:

1 − β = P(Reject H0 | H1 is true) = P(Y ≥ 25.561 | μ = 25.75)

= P (

Y − 25.75 2.4/

√ 30

≥ 25.561 − 25.75 2.4/

√ 30

)

= P(Z ≥ −0.43) = 0.6664

364 Chapter 6 Hypothesis Testing

25.718

Sampling distribution of Y when H is true

Sampling distribution of Y when m = 25.75

b = 0.4721 a = 0.05

a = 0.05

a = 0.10

As a↑, b↓ and (1 2 b)↑

1.0

0.5

Power = 0.53

0

Accept H0 Reject H0

25.561

Sampling distribution of Y when H is true

Sampling distribution of Y when m = 25.75

b = 0.3336 a = 0.10

1.0

0.5

Power = 0.67

0

Accept H0 Reject H0

24 25 26 27

24 25 26 27

Figure 6.4.6

The specifics of Figure 6.4.6 accurately reflect what is true in general: Increasing α decreases β and increases the power. That said, it does not follow in practice that experimenters should manipulate α to achieve a desired 1 − β. For all the reasons cited in Section 6.2, α typically should be set equal to a number somewhere in the neighborhood of 0.05. If the corresponding 1 − β against a particular μ is deemed to be inappropriate, adjustments should be made in the values of σ and/or n.

THE EFFECTS OF σ AND n ON 1 − β Although it may not always be feasible (or even possible), decreasing σ will necessar- ily increase 1 − β. In the gasoline additive example, σ is assumed to be 2.4 mpg, the latter being a measure of the variation in gas mileages from driver to driver achieved in a cross-country road trip from Boston to Los Angeles (recall p. 344). Intuitively, the environmental differences inherent in a trip of that magnitude would be consid- erable. Different drivers would encounter different weather conditions and varying amounts of traffic, and would perhaps take alternate routes.

Suppose, instead, that the drivers simply did laps around a test track rather than drive on actual highways. Conditions from driver to driver would then be much more uniform and the value of σ would surely be smaller. What would be the effect on 1 − β when μ = 25.75 (and α = 0.05) if σ could be reduced from 2.4 mpg to 1.2 mpg?

As Figure 6.4.7 shows, reducing σ has the effect of making the H0 distribution of Y more concentrated around μ0(= 25) and the H1 distribution of Y more concen- trated around μ(= 25.75). Substituting into Equation 6.2.1 (with 1.2 for σ in place of 2.4), we find that the critical value y ∗ moves closer to μ0 [from 25.718 to 25.359

Section 6.4 Type I and Type II Errors 365

24 25 26

25.718

27

When s = 2.4

Sampling distribution of Y when H is true

Sampling distribution of Y when m = 25.75

b = 0.4721 a = 0.05

1.0

0.5

Power = 0.53

b = 0.0375 a = 0.05

2.0 Power = 0.96

0

Sampling distribution of Y when H is true0

Accept H0 Reject H0

Sampling distribution of Y when m = 25.75

24 25 26 27

When s = 1.2

25.359

Accept H0 Reject H0

a = 0.05

a = 0.05

As s↓, (1 2 b)↑

Figure 6.4.7

(= 25 + 1.64 · 1.2√ 30

)] and the proportion of the H1 distribution above the rejection

region (i.e., the power) increases from 0.53 to 0.96:

1 − β = P(Y ≥ 25.359 | μ = 25.75)

= P (

Z ≥ 25.359 − 25.75 1.2/

√ 30

) = P(Z ≥ −1.78) = 0.9625

In theory, reducing σ can be a very effective way of increasing the power of a test, as Figure 6.4.7 makes abundantly clear. In practice, though, refinements in the way data are collected that would have a substantial impact on the magnitude of σ are often either difficult to identify or prohibitively expensive. More typically, exper- imenters achieve the same effect by simply increasing the sample size.

Look again at the two sets of distributions in Figure 6.4.7. The increase in 1 − β from 0.53 to 0.96 was accomplished by cutting the denominator of the test statistic(

z = y−25 σ/

√ 30

) in half by reducing the standard deviation from 2.4 to 1.2. The same

366 Chapter 6 Hypothesis Testing

numerical effect would be produced if σ were left unchanged but n was increased from 30 to 120—that is, 1.2√

30 = 2.4√

120 . Because it can easily be increased or decreased,

the sample size is the parameter that researchers almost invariably turn to as the mechanism for ensuring that a hypothesis test will have a sufficiently high power against a given alternative.

Example 6.4.1

Suppose an experimenter wishes to test

H0: μ = 100 versus

H1: μ > 100

at the α = 0.05 level of significance and wants 1−β to equal 0.60 when μ = 103. What is the smallest (i.e., cheapest) sample size that will achieve that objective? Assume that the variable being measured is normally distributed with σ = 14.

Finding n, given values for α, 1 − β, σ, and μ, requires that two simultaneous equations be written for the critical value y ∗, one in terms of the H0 distribution and the other in terms of the H1 distribution. Setting the two equal will yield the minimum sample size that achieves the desired α and 1 − β.

Consider, first, the consequences of the level of significance being equal to 0.05. By definition,

α = P(We reject H0 | H0 is true) = P(Y ≥ y ∗ | μ = 100)

= P (

Y − 100 14/

√ n

≥ y ∗ − 100 14/

√ n

)

= P (

Z ≥ y ∗ − 100 14/

√ n

) = 0.05

But P(Z ≥ 1.64) = 0.05, so y ∗ − 100 14/

√ n

= 1.64

or, equivalently,

y ∗ = 100 + 1.64 · 14√ n

(6.4.1)

Similarly,

1 − β = P(We reject H0 | H1 is true) = P(Y ≥ y ∗ | μ = 103)

= P (

Y − 103 14/

√ n

≥ y ∗ − 103 14/

√ n

) = 0.60

From Appendix Table A.1, though, P(Z ≥ −0.25) = 0.5987 .= 0.60, so y ∗ − 103 14/

√ n

= −0.25

Section 6.4 Type I and Type II Errors 367

which implies that

y ∗ = 103 − 0.25 · 14√ n

(6.4.2)

It follows, then, from Equations 6.4.1 and 6.4.2 that

100 + 1.64 · 14√ n

= 103 − 0.25 · 14√ n

Solving for n shows that a minimum of seventy-eight observations must be taken to guarantee that the hypothesis test will have the desired precision:

n = (16.134)2 · (

1.64 3

)2 .= 78

DECISION RULES FOR NONNORMAL DATA

Our discussion of hypothesis testing thus far has been confined to inferences involv- ing either binomial data or normal data. Decision rules for other types of probability functions are rooted in the same basic principles.

In general, to test H0: θ = θo, where θ is the unknown parameter in a pdf fY (y; θ), we initially define the decision rule in terms of θ̂, where the latter is a sufficient statis- tic for θ. The corresponding critical region is the set of values of θ̂ least compatible with θo (but admissible under H1) whose total probability when H0 is true is α. In the case of testing H0: μ = μ0 versus H1: μ > μ0, for example, where the data are normally distributed, Y is a sufficient statistic for μ, and the least likely values for the sample mean that are admissible under H1 are those for which y ≥ y ∗, where P(Y ≥ y ∗ | H0 is true) = α.

Example 6.4.2

A random sample of size n = 8 is drawn from the uniform pdf, fY (y; θ) = 1/θ, 0 ≤ y ≤ θ, for the purpose of testing

H0: θ = 2.0 versus

H1: θ < 2.0

at the α = 0.10 level of significance. Suppose the decision rule is to be based on Y ′8, the largest order statistic. What would be the probability of committing a Type II error when θ = 1.7?

If H0 is true, Y ′8 should be close to 2.0, and values of the largest order statistic that are much smaller than 2.0 would be evidence in favor of H1: θ < 2.0. It follows, then, that the form of the decision rule should be

“Reject H0: θ = 2.0 if y′8 ≤ c” where P(Y ′8 ≤ c | H0 is true) = 0.10.

From Theorem 3.10.1,

fY ′8 (y; θ = 2) = 8 (y

2

)7 · 1

2 , 0 ≤ y ≤ 2

Therefore, the constant c that appears in the α = 0.10 decision rule must satisfy the equation ∫ c

0 8

(y 2

)7 · 1

2 dy = 0.10

368 Chapter 6 Hypothesis Testing

or, equivalently, ( c 2

)8 = 0.10

implying that c = 1.50. Now, β when θ = 1.7 is, by definition, the probability that Y ′8 falls in the accep-

tance region when H1: θ = 1.7 is true. That is,

β = P(Y ′8 > 1.50 | θ = 1.7) = ∫ 1.7

1.50 8

( y 1.7

)7 · 1

1.7 dy

= 1 − (

1.5 1.7

)8 = 0.63

See Figure 6.4.8.

y9 1 21.70

5

4

3

2

1

P ro

ba bi

lit y

de ns

it y

1.5

Reject H0

pdf of Y98 when H : u = 1.71

is true

pdf of Y98 when H : u = 2.00

8

is true

b = 0.63

a = 0.10

Figure 6.4.8

Example 6.4.3

Four measurements—k1, k2, k3, k4—are taken on a Poisson random variable, X , where pX (k; λ) = e−λλk/k!, k = 0, 1, 2, . . . , for the purpose of testing

H0: λ = 0.8 versus

H1: λ > 0.8

What decision rule should be used if the level of significance is to be 0.10, and what will be the power of the test when λ = 1.2?

From Example 5.6.1, we know that X is a sufficient statistic for λ; the same would

be true, of course, for 4∑

i=1 Xi. It will be more convenient to state the decision rule in

terms of the latter because we already know the probability model that describes its behavior: If X1, X2, X3, X4 are four independent Poisson random variables, each

with parameter λ, then 4∑

i=1 Xi has a Poisson distribution with parameter 4λ (recall

Example 3.12.10). Figure 6.4.9 is a Minitab printout of the Poisson probability function having λ =

3.2, which would be the sampling distribution of 4∑

i=1 Xi when H0: λ = 0.8 is true.

Section 6.4 Type I and Type II Errors 369

MTB > pdf; SUBC > poisson 3.2.

Probability Density Function

Poisson with mean = 3.2 x P(X = x) 0 0.040762 1 0.130439 2 0.208702 3 0.222616 4 0.178093 5 0.113979

Critical region

⎧⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎩

6 0.060789 7 0.027789 8 0.011116 9 0.003952

10 0.001265 11 0.000368 12 0.000098 13 0.000024 14 0.000006 15 0.000001 16 0.000000

⎫⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎭

α = P(RejectH0|H0 is true) = 0.105408

Figure 6.4.9

By inspection, the decision rule “Reject H0: λ = 0.8 if 4∑

i=1 ki ≥ 6” gives an α close to

the desired 0.10.

If H1 is true and λ = 1.2, 4∑

i=1 Xi will have a Poisson distribution with a parameter

equal to 4.8. According to Figure 6.4.10, the probability that the sum of a random sample of size 4 from such a distribution would equal or exceed 6 (i.e., 1 − β when λ = 1.2) is 0.348993.

MTB > pdf; SUBC > poisson 4.8.

Probability Density Function

Poisson with mean = 4.8 x P(X = x) 0 0.008230 1 0.039503 2 0.094807 3 0.151691 4 0.182029 5 0.174748 6 0.139798 7 0.095862 8 0.057517 9 0.030676

10 0.014724 11 0.006425 12 0.002570 13 0.000949 14 0.000325 15 0.000104 16 0.000031 17 0.000009 18 0.000002 19 0.000001 20 0.000000

⎫⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎭

1 − β = P(RejectH0|H1 is true) = 0.348993

Figure 6.4.10

370 Chapter 6 Hypothesis Testing

Example 6.4.4

Suppose a random sample of seven observations is taken from the pdf fY (y; θ) = (θ + 1)yθ, 0 ≤ y ≤ 1, to test

H0: θ = 2 versus

H1: θ > 2

As a decision rule, the experimenter plans to record X , the number of yi’s that exceed 0.9, and reject H0 if X ≥ 4. What proportion of the time would such a decision rule lead to a Type I error?

To evaluate α = P(Reject H0 | H0 is true), we first need to recognize that X is a binomial random variable where n = 7 and the parameter p is an area under fY (y; θ = 2):

p = P(Y ≥ 0.9 | H0 is true) = P[Y ≥ 0.9 | fY (y; 2) = 3y2]

= ∫ 1

0.9 3y2 dy

= 0.271

It follows, then, that H0 will be incorrectly rejected 9.2% of the time:

α = P(X ≥ 4 | θ = 2) = 7∑

k=4

( 7 k

) (0.271)k(0.729)7−k

= 0.092

Comment The basic notions of Type I and Type II errors first arose in a quality- control context. The pioneering work was done at the Bell Telephone Laboratories: There the terms producer’s risk and consumer’s risk were introduced for what we now call α and β. Eventually, these ideas were generalized by Neyman and Pearson in the 1930s and evolved into the theory of hypothesis testing as we know it today.

AN APPROXIMATE Z TEST BASED ON A MONTE CARLO ANALYSIS

Suppose X is a test statistic whose expected value, standard deviation, and prob- ability distribution are all unknown. Is it still possible to test H0: μ = μ0 where μ = E(X )? Sometimes, yes. If values of X when μ = μ0 can be simulated, a large number of such simulations would provide an estimate of the pdf of X, which, in turn, would allow μ0 and σ0 to be estimated. The ratio (X −μ̂0)/(σ̂0/

√ n), then, might have

approximately a standard normal distribution, and the decision rules given in Theo- rem 6.2.1 would apply.

Case Study 6.2.1 describes an unusual experiment (“bizarre” might be a better description . . . ) where the measured variable, X , was based on the number of runs in a sequence of six letters, each letter being either an A or a B. The letters represented two different mating preferences exhibited by a pair of hermaphroditic worms in a series of six consecutive (shall we say) “affairs of the heart.”

CASE STUDY 6.4.1

Simultaneously hemaphroditic polychaetes are small segmented worms that have both male and female sexual organs at the same time (as opposed to sequen- tial hermaphrodites that are born one sex and sometime later in their life cycle

Section 6.4 Type I and Type II Errors 371

switch to the other). Although simultaneous hemaphrodites can breed via self- fertilization, many prefer to spawn in pairs, with one member providing the eggs and the other member, the sperm.

The mating behavior of many simultaneously hermaphroditic polychaetes remains a topic of research. In a sequence of matings involving the same pair, for example, does one member tend to provide the eggs or is that choice made at random or do members of a pair tend to alternate that responsibility? Table 6.4.1 shows a set of data collected to answer that question for Ophryotrochu gracilis (Huth), a small, marine-dwelling polychaete found in the English Channel (171).

Table 6.4.1

Mating Pair Spawning Sequence No. of runs

1 A B A B A B 6 2 A A B A B A 5 3 B A A B A B 5 4 B B B A B A 4 5 A B A B B A 5 6 A B A B A B 6 7 B B A A B A 4 8 B A B A B B 5 9 B A A A B A 4 10 B A B A B A 6

Total: 50

Ten mating pairs were established with one being dyed with a sulfate blue solution so the two could be distinguished. Six consecutive spawning sequences were monitored for each of the ten pairs; the letter A signified that the eggs were released by the unmarked polychaete; B was recorded if the eggs came from the polychaete that had been dyed blue.

Characterizing each spawning sequence is the number of runs it contains. By definition, a run is an uninterrupted series of the same letter. For example, the sequence found for Pair 7,

B B A A B A

has 4 runs: BB, AA, B, and A. From the experimenter’s standpoint, the number of runs in a spawning

sequence is a reflection of which mating behavior is operative. If one mem- ber of a mating pair tends to provide the eggs for fertilization, the spawn- ing sequences would have relatively few runs—sequences like AAAABB and BBBAAA would not be unusual. If egg producers tended to alternate between breeding partners, spawning sequences would have relatively large numbers of runs—for example, ABBABA or BABABA. Random egg producers, on the other hand, would tend to generate spawning sequences having a moderate number of runs, like BBAAAB or BAABBB. It follows that the average num- ber of runs recorded for these ten pairs could be used as the basis for a hy- pothesis test that might identify which mating behavior the polychaetes have adopted.

Let μ denote the true average number of runs that would be found in spawn- ing sequences of length six for this particular polychaete, and let μ0 denote the

(Continued on next page)

372 Chapter 6 Hypothesis Testing

(Case Study 6.4.1 continued)

average number of runs that would be expected if the A’s and B’s were chosen randomly. The hypotheses to be tested, then, would be written

H0: μ = μ0 versus

H1: μ �= μ0 The underlying random variable here would be

X = number of runs in a spawning sequence of length six To identify the critical region for testing H0 versus H1 requires that we know p0(k), the probability function of X when H0 is true. At this point we have not developed the necessary background to derive the exact p0(k), but the function can be approximated using Monte Carlo techniques.

Take any six digits from a random number table—for example,

4 0 7 7 2 9

Replace digits 0 to 4, inclusive, with the letter A and digits 5 to 9, inclusive, with the letter B. Then 4 0 7 7 2 9 becomes A A B B A B, and the latter represents a spawning sequence (with X = 4 runs) where the egg donor (A or B) for each mating is chosen at random.

Table 6.4.2 gives p̂0(k), the simulated distribution of X based on five hun- dred samples of size six. Using definitions from Chapter 3, then, we can calculate estimates

Table 6.4.2

X = k = no. of runs Obs. freq. p̂0(k) 1 11 0.022 2 80 0.160 3 167 0.334 4 149 0.298 5 81 0.162 6 12 0.024

Totals: 500 1.000

for μ0 and σ20:

μ̂0 = E(X ) = 6∑

k=1 k · p̂0(k) = 1(0.022) + 2(0.160) + · · · + 6(0.024)

= 3.49 and

σ̂20 = E(X 2) − [E(X )]2

= 12(0.022) + 22(0.160) + · · · + 62(0.024) − (3.49)2

= 1.17 An appropriate test statistic, then, would be

Z = (X − μ̂0)/(σ̂0/ √

10)

which would have approximately a standard normal distribution. (While the un- derlying probability function, p̂0(k), is not normal, nor is it even continuous,

Section 6.4 Type I and Type II Errors 373

Table 6.4.2 shows it to have a roughly bell-shaped configuration, and the sample size of n = 10 associated with X is reasonably large).

If α is set equal to 0.05, H0 should be rejected if the observed Z is either 1) ≤ −1.96 or 2) ≥ 1.96. But

(x̄ − μ̂0)/(σ̂0/ √

10) = (50/10 − 3.49)/( √

1.17/ √

10) = 4.41 so H0 is rejected—the exceptionally large number of runs suggests that the two members of a mating pair of these particular simultaneously hermaphroditic polychaetes tend to alternate supplying the eggs to be fertilized.

Questions

6.4.1. Recall the “Math for the Twenty-First Century” hy- pothesis test done in Example 6.2.1. Calculate the power of that test when the true mean is 500.

6.4.2. Carry out the details to verify the decision rule change cited on p. 364 in connection with Figure 6.4.6.

6.4.3. For the decision rule found in Question 6.2.2 to test H0: μ = 95 versus H1: μ �= 95 at the α = 0.06 level of significance, calculate 1 − β when μ = 90. 6.4.4. Construct a power curve for the α = 0.05 test of H0: μ = 60 versus H1: μ �= 60 if the data consist of a random sample of size 16 from a normal distribution hav- ing σ = 4. 6.4.5. If H0: μ = 240 is tested against H1: μ < 240 at the α = 0.01 level of significance with a random sample of twenty-five normally distributed observations, what pro- portion of the time will the procedure fail to recognize that μ has dropped to two hundred twenty? Assume that σ = 50. 6.4.6. Suppose n = 36 observations are taken from a nor- mal distribution where σ = 8.0 for the purpose of testing H0: μ = 60 versus H1: μ �= 60 at the α = 0.07 level of significance. The lead investigator skipped statistics class the day decision rules were being discussed and intends to reject H0 if y falls in the region (60 − y ∗, 60 + y ∗). (a) Find y ∗. (b) What is the power of the test when μ = 62? (c) What would the power of the test be when μ = 62 if the critical region had been defined the correct way?

6.4.7. If H0: μ = 200 is to be tested against H1: μ < 200 at the α = 0.10 level of significance based on a random sam- ple of size n from a normal distribution where σ = 15.0, what is the smallest value for n that will make the power equal to at least 0.75 when μ = 197? 6.4.8. Will n = 45 be a sufficiently large sample to test H0: μ = 10 versus H1: μ �= 10 at the α = 0.05 level of significance if the experimenter wants the Type II error

probability to be no greater than 0.20 when μ = 12? As- sume that σ = 4. 6.4.9. If H0: μ = 30 is tested against H1: μ > 30 us- ing n = 16 observations (normally distributed) and if 1 − β = 0.85 when μ = 34, what does α equal? Assume that σ = 9. 6.4.10. Suppose a sample of size 1 is taken from the pdf fY (y) = (1/λ)e−y/λ, y > 0, for the purpose of testing

H0: λ = 1 versus

H1: λ > 1

The null hypothesis will be rejected if y ≥ 3.20. (a) Calculate the probability of committing a Type I error. (b) Calculate the probability of committing a Type II error when λ = 43 . (c) Draw a diagram that shows the α and β calculated in parts (a) and (b) as areas.

6.4.11. Polygraphs used in criminal investigations typi- cally measure five bodily functions: (1) thoracic respira- tion, (2) abdominal respiration, (3) blood pressure and pulse rate, (4) muscular movement and pressure, and (5) galvanic skin response. In principle, the magnitude of these responses when the subject is asked a relevant ques- tion (“Did you murder your wife?”) indicate whether he is lying or telling the truth. The procedure, of course, is not infallible, as a recent study bore out (90). Seven ex- perienced polygraph examiners were given a set of forty records—twenty were from innocent suspects and twenty from guilty suspects. The subjects had been asked eleven questions, on the basis of which each examiner was to make an overall judgment: “Innocent” or “Guilty.” The results are as follows:

Suspect’s True Status Innocent Guilty

Examiner’s “Innocent”

Decision “Guilty” 131 15

9 125

374 Chapter 6 Hypothesis Testing

What would be the numerical values of α and β in this con- text? In a judicial setting, should Type I and Type II errors carry equal weight? Explain.

6.4.12. An urn contains ten chips. An unknown number of the chips are white; the others are red. We wish to test

H0: exactly half the chips are white versus

H1: more than half the chips are white

We will draw, without replacement, three chips and reject H0 if two or more are white. Find α. Also, find β when the urn is (a) 60% white and (b) 70% white.

6.4.13. Suppose that a random sample of size 5 is drawn from a uniform pdf:

fY (y; θ) = {

1 θ , 0 < y < θ

0, elsewhere

We wish to test

H0: θ = 2 versus

H1: θ > 2

by rejecting the null hypothesis if ymax ≥ k. Find the value of k that makes the probability of committing a Type I error equal to 0.05.

6.4.14. A sample of size 1 is taken from the pdf

fY (y) = (θ + 1)yθ, 0 ≤ y ≤ 1 The hypothesis H0: θ = 1 is to be rejected in favor of H1: θ > 1 if y ≥ 0.90. What is the test’s level of signifi- cance?

6.4.15. A series of n Bernoulli trials is to be observed as data for testing

H0: p = 12 versus

H1: p > 12 The null hypothesis will be rejected if k, the observed number of successes, equals n. For what value of p will the probability of committing a Type II error equal 0.05?

6.4.16. Let X1 be a binomial random variable with n = 2 and pX1 = P(success). Let X2 be an independent bino- mial random variable with n = 4 and pX2 = P(success). Let X = X1 + X2. Calculate α if

H0: pX1 = pX2 = 12 versus

H1: pX1 = pX2 > 12 is to be tested by rejecting the null hypothesis when k ≥ 5.

6.4.17. A sample of size 1 from the pdf fY (y) = (1 + θ)yθ, 0 ≤ y ≤ 1 and θ > −1, is to be the basis for testing

H0: θ = 1 versus

H1: θ < 1

The critical region will be the interval y ≤ 12 . Find an ex- pression for 1 − β as a function of θ.

6.4.18. An experimenter takes a sample of size 1 from the Poisson probability model, pX (k) = e−λλk/k!, k = 0, 1, 2, . . . , and wishes to test

H0: λ = 6 versus

H1: λ < 6

by rejecting H0 if k ≤ 2. (a) Calculate the probability of committing a Type I error. (b) Calculate the probability of committing a Type II error when λ = 4.

6.4.19. A sample of size 1 is taken from the geometric probability model, pX (k) = (1 − p)k−1 p, k = 1, 2, 3, . . . , to test H0: p = 13 versus H1: p > 13 . The null hypothesis is to be rejected if k ≥ 4. What is the probability that a Type II error will be committed when p = 12 ? 6.4.20. Suppose that one observation from the exponen- tial pdf, fY (y) = λe−λy, y > 0, is to be used to test H0: λ = 1 versus H1: λ < 1. The decision rule calls for the null hypothesis to be rejected if y ≥ ln 10. Find β as a function of λ.

6.4.21. A random sample of size 2 is drawn from a uniform pdf defined over the interval [0, θ]. We wish to test

H0: θ = 2 versus

H1: θ < 2

by rejecting H0 when y1 +y2 ≤ k. Find the value for k that gives a level of significance of 0.05.

6.4.22. Suppose that the hypotheses of Question 6.4.21 are to be tested with a decision rule of the form “Reject H0: θ = 2 if y1y2 ≤ k∗.” Find the value of k∗ that gives a level of significance of 0.05 (see Theorem 3.8.5).

6.4.23. A machine stamps out a certain type of automo- bile part. When working properly the part has an aver- age weight of μ = 1.6 pounds and standard deviation σ = 0.22 pounds. To test the proper working of the ma- chine, quality control staff take forty of the parts and weigh them. They will reject the hypothesis that the ma- chine is working properly (in other words they want to test H0: μ = 1.6 versus H1: μ > 1.6) if the average weight is ȳ ≥ 1.67.

Section 6.5 A Notion of Optimality: The Generalized Likelihood Ratio 375

(a) What is α, the level of significance of this test? (b) What is β, the probability of Type II error of this test when μ = 1.68?

6.4.24. Given the pdf fY (y; θ) = 2yθ2 , 0 ≤ y ≤ θ. Take a sample of size 3 from this pdf. Use the statistic Ymax to

test H0: θ = 5 versus H1: θ > 5. Recall that for n = 3 the pdf of Ymax is fYmax (y; θ) = 6y

5

θ6 , 0 ≤ y ≤ θ.

(a) Find the critical value to give a test of significance α = 0.05. (b) Suppose θ = 7. What is the Type II error for the test in part (a).

6.5 A Notion of Optimality: The Generalized Likelihood Ratio

In the next several chapters we will be studying some of the particular hypothesis tests that statisticians most often use in dealing with real-world problems. All of these have the same conceptual heritage—a fundamental notion known as the generalized likelihood ratio, or GLR. More than just a principle, the generalized likelihood ratio is a working criterion for actually suggesting test procedures.

As a first look at this important idea, we will conclude Chapter 6 with an appli- cation of the generalized likelihood ratio to the problem of testing the parameter θ in a uniform pdf. Notice the relationship here between the likelihood ratio and the definition of an “optimal” hypothesis test.

Suppose y1, y2, . . . , yn is a random sample from a uniform pdf over the interval [0, θ], where θ is unknown, and our objective is to test

H0: θ = θo versus

H1: θ < θo

at a specified level of significance α. What is the “best” decision rule for choosing between H0 and H1, and by what criterion is it considered optimal?

As a starting point in answering those questions, it will be necessary to define two parameter spaces, ω and Ω. In general, ω is the set of unknown parameter values admissible under H0. In the case of the uniform, the only parameter is θ, and the null hypothesis restricts it to a single point:

ω = {θ: θ = θo} The second parameter space, Ω, is the set of all possible values of all unknown pa- rameters. Here,

Ω = {θ: 0 < θ ≤ θo} Now, recall the definition of the likelihood function, L, from Definition 5.2.1.

Given a sample of size n from a uniform pdf,

L = L(θ) = n� i=1

fY (yi; θ) = {( 1

θ

)n , 0 ≤ yi ≤ θ

0, otherwise

For reasons that will soon be clear, we need to maximize L(θ) twice, once under ω and again under Ω. Since θ can take on only one value—θo—under ω,

max ω

L(θ) = L(θo) = {(

1 θo

)n , 0 ≤ yi ≤ θo

0, otherwise

Maximizing L(θ) under Ω—that is, with no restrictions—is accomplished by sim- ply substituting the maximum likelihood estimate for θ into L(θ). For the uni- form parameter, ymax is the maximum likelihood estimate (recall Question 5.2.10).

376 Chapter 6 Hypothesis Testing

Therefore,

max Ω

L(θ) = (

1 ymax

)n For notational simplicity, we denote max

ω L(θ) and max

Ω L(θ) by L(ωe) and L(Ωe),

respectively.

Definition 6.5.1 Let y1, y2, . . . , yn be a random sample from fY (y; θ1, . . . , θk). The generalized likelihood ratio, λ, is defined to be

λ = max

ω L(θ1, . . . , θk)

max Ω

L(θ1, . . . , θk) = L(ωe)

L(Ωe)

For the uniform distribution,

λ = (1/θ0) n

(1/ymax)n =

( ymax θ0

)n Note that, in general, λ will always be positive but never greater than 1 (why?). Fur- thermore, values of the likelihood ratio close to 1 suggest that the data are very com- patible with H0. That is, the observations are “explained” almost as well by the H0 parameters as by any parameters [as measured by L(ωe) and L(Ωe)]. For these values of λ we should accept H0. Conversely, if L(ωe)/L(Ωe) were close to 0, the data would not be very compatible with the parameter values in ω and it would make sense to reject H0.

Definition 6.5.2 A generalized likelihood ratio test (GLRT) is one that rejects H0 whenever

0 < λ ≤ λ ∗

where λ ∗ is chosen so that

P(0 < � ≤ λ ∗ | H0 is true) = α (Note: In keeping with the capital letter notation introduced in Chapter 3, � denotes the generalized likelihood ratio expressed as a random variable.)

Let f�(λ | H0) denote the pdf of the generalized likelihood ratio when H0 is true. If f�(λ | H0) were known, λ ∗ (and, therefore, the decision rule) could be determined by solving the equation

α = ∫ λ ∗

0 f�(λ | H0) dλ

(see Figure 6.5.1). In many situations, though, f�(λ | H0) is not known, and it be- comes necessary to show that � is a monotonic function of some quantity W , where the distribution of W is known. Once we have found such a statistic, any test based on w will be equivalent to one based on λ.

Section 6.5 A Notion of Optimality: The Generalized Likelihood Ratio 377

Here, a suitable W is easy to find. Note that

P(� ≤ λ ∗ | H0 is true) = α = P [(

Ymax θ0

)n ≤ λ ∗ | H0 is true

]

= P (

Ymax θ0

≤ n√λ ∗ | H0 is true )

0 l l

fL (l | H0)

Reject H0

a

Figure 6.5.1

Let W = Ymax/θ0 and w ∗ = n √

λ ∗. Then

P(� ≤ λ ∗ | H0 is true) = P(W ≤ w ∗ | H0 is true) (6.5.1) Here the right-hand side of Equation 6.5.1 can be evaluated from what we already know about the density function for the largest order statistic from a uniform distri- bution. Let fYmax (y; θ0) be the density function for Ymax. Then

fW (w; θ0) = θ0 fYmax (θ0w; θ0) (recall Theorem 3.8.2) which, from Theorem 3.10.1, reduces to

θ0n(θ0w)n−1

θn0 = nwn−1, 0 ≤ w ≤ 1

Therefore,

P(W ≤ w ∗ | H0 is true) = ∫ w ∗

0 nwn−1dw = (w ∗)n = α

implying that the critical value for W is

w ∗ = n√α That is, the GLRT calls for H0 to be rejected if

w = ymax θ0

≤ n√α

Note: This does not conclude our discussion of Generalized Likelihood Ratio Tests. Several other GLRT derivations are described at length in Chapters 7 and 9.

Questions

6.5.1. Let k1, k2, . . . , kn be a random sample from the ge- ometric probability function

pX (k; p) = (1 − p)k−1 p, k = 1, 2, . . . Find λ, the generalized likelihood ratio for testing H0: p = p0 versus H1: p �= p0. 6.5.2. Let y1, y2, . . . , y10 be a random sample from an ex- ponential pdf with unknown parameter λ. Find the form

of the GLRT for H0: λ = λ0 versus H1: λ �= λ0. What inte- gral would have to be evaluated to determine the critical value if α were equal to 0.05?

6.5.3. Let y1, y2, . . . , yn be a random sample from a normal pdf with unknown mean μ and variance 1. Find the form of the GLRT for H0: μ= μ0 versus H1: μ �= μ0.

378 Chapter 6 Hypothesis Testing

6.5.4. In the scenario of Question 6.5.3, suppose the alter- native hypothesis is H1: μ = μ1, for some particular value of μ1. How does the likelihood ratio test change in this case? In what way does the critical region depend on the particular value of μ1?

6.5.5. Let k denote the number of successes observed in a sequence of n independent Bernoulli trials, where p = P(success). (a) Show that the critical region of the likelihood ratio test of H0: p = 12 versus H1: p �= 12 can be written in the form

k · ln(k) + (n − k) · ln(n − k) ≥ λ∗∗

(b) Use the symmetry of the graph of

f (k) = k · ln(k) + (n − k) · ln(n − k) to show that the critical region can be written in the form∣∣∣∣k − 12

∣∣∣∣ ≥ c where c is a constant determined by α.

6.5.6. Suppose a sufficient statistic exists for the parameter θ. Use Theorem 5.6.1 to show that the critical region of a likelihood ratio test will depend on the sufficient statistic.

6.6 Taking a Second Look at Hypothesis Testing (Statistical Significance versus “Practical” Significance)

The most important concept in this chapter—the notion of statistical significance— is also the most problematic. Why? Because statistical significance does not always mean what it seems to mean. By definition, the difference between, say, y and μ0 is statistically significant if H0: μ = μ0 can be rejected at the α = 0.05 level. What that implies is that a sample mean equal to the observed y is not likely to have come from a (normal) distribution whose true mean was μ0. What it does not imply is that the true mean is necessarily much different than μ0.

Recall the discussion of power curves in Section 6.4 and, in particular, the effect of n on 1 − β. The example illustrating those topics involved an additive that might be able to increase a car’s gas mileage. The hypotheses being tested were

H0: μ = 25.0 versus

H1: μ > 25.0

where σ was assumed to be 2.4 (mpg) and α was set at 0.05. If n = 30, the decision rule called for H0 to be rejected when y ≥ 25.718 (see p. 347). Figure 6.6.1 is the test’s power curve. The point (μ, 1 − β) = (25.75, 1 − 0.47) was calculated on p. 360.

1

0.75

0.50

0.25

25 0

25.5 26

(n = 30)

1 – b

26.5 m

Figure 6.6.1

Section 6.6 Taking a Second Look at Hypothesis Testing 379

The important point was made in Section 6.4 that researchers have a variety of ways to increase the power of a test—that is, to decrease the probability of commit- ting a Type II error. Experimentally, the usual way is to increase the sample size, which has the effect of reducing the overlap between the H0 and H1 distributions (Figure 6.4.7 pictured such a reduction when the sample size was kept fixed but σ was decreased from 2.4 to 1.2). Here, to show the effect of n on 1 − β, Figure 6.6.2 superimposes the power curves for testing H0: μ = 25.0 versus H1: μ > 25.0 in the cases where n = 30, n = 60, and n = 900 (keeping α = 0.05 and σ = 2.4).

1

0.75

0.50

0.25

25 0

25.5 26

(n = 30)

(n = 60)

(n = 900)

1 – b

26.5 m

Figure 6.6.2

There is good news in Figure 6.6.2 and there is bad news in Figure 6.6.2. The good news—not surprisingly—is that the probability of rejecting a false hypothesis increases dramatically as n increases. If the true mean μ is 25.25, for example, the Z test will (correctly) reject H0: μ = 25.0 14% of the time when n = 30, 20% of the time when n = 60, and a robust 93% of the time when n = 900.

The bad news implicit in Figure 6.6.2 is that any false hypothesis, even one where the true μ is just “epsilon” away from μ0, can be rejected virtually 100% of the time if a large enough sample size is used. Why is that bad? Because saying that a difference (between y and μ0) is statistically significant makes it sound meaningful when, in fact, it may be totally inconsequential.

Suppose, for example, an additive could be found that would increase a car’s gas mileage from 25.000 mpg to 25.001 mpg. Such a minuscule improvement would mean basically nothing to the consumer, yet if a large enough sample size were used, the probability of rejecting H0: μ = 25.000 in favor of H1: μ > 25.000 could be made arbitrarily close to 1. That is, the difference between y and 25.000 would qualify as be- ing statistically significant even though it had no “practical significance” whatsoever.

Two lessons should be learned here, one old and one new. The new lesson is to be wary of inferences drawn from experiments or surveys based on huge sample sizes. Many statistically significant conclusions are likely to result in those situations, but some of those “reject H0’s” may be driven primarily by the sample size. Paying attention to the magnitude of y − μ0 (or kn − p0) is often a good way to keep the conclusion of a hypothesis test in perspective.

The second lesson has been encountered before and will come up again: Ana- lyzing data is not a simple exercise in plugging into formulas or reading computer printouts. Real-world data are seldom simple, and they cannot be adequately sum- marized, quantified, or interpreted with any single statistical technique. Hypothesis tests, like every other inference procedure, have strengths and weaknesses, assump- tions and limitations. Being aware of what they can tell us—and how they can trick us—is the first step toward using them properly.

Chapte r

7Inferences Based onthe Normal Distribution CHAPTER OUTLINE

7.1 Introduction 7.2 Comparing Y−μ

σ/ √

n and

Y−μ S/

√ n

7.3 Deriving the Distribution of Y−μ

S/ √

n

7.4 Drawing Inferences About μ

7.5 Drawing Inferences About σ2

7.6 Taking a Second Look at Statistics (Type II Error)

Appendix 7.A.1 Some Distribution Results for Y and S2

Appendix 7.A.2 A Proof That the One-Sample t Test Is a GLRT

Appendix 7.A.3 A Proof of Theorem 7.5.2

� + 3�� + �� – � � + 2��� – 2�� – 3�

I know of scarcely anything so apt to impress the imagination as the wonderful form of cosmic order expressed by the “law of frequency of error” (the normal distribution). The law would have been personified by the Greeks and deified, if they had known of it. It reigns with serenity and in complete self effacement amidst the wildest confusion. The huger the mob, and the greater the anarchy, the more perfect is its sway. It is the supreme law of Unreason.

—Francis Galton

7.1 INTRODUCTION Finding probability distributions to describe—and, ultimately, to predict—empirical data is one of the most important contributions a statistician can make to the research scientist. Already we have seen a number of functions playing that role. The binomial is an obvious model for the number of correct responses in the Pratt-Woodruff ESP experiment (Case Study 4.3.1); the probability of holding a win- ning ticket in the Florida Lottery is given by the hypergeometric (Example 3.2.6); and applications of the Poisson have run the gamut from radioactive decay (Case Study 4.2.2) to the number of wars starting in a given year (Case Study 4.2.3). Those examples notwithstanding, by far the most widely used probability model in statistics is the normal (or Gaussian) distribution,

fY (y) = 1√ 2πσ

e−(1/2)[(y−μ)/σ] 2 , −∞ < y < ∞ (7.1.1)

380

Section 7.2 Comparing Y−μ σ/

√ n and

Y−μ S/

√ n 381

Some of the history surrounding the normal curve has already been discussed in Chapter 4—how it first appeared as a limiting form of the binomial, but then soon found itself used most often in nonbinomial situations. We also learned how to find areas under normal curves and did some problems involving sums and av- erages. Chapter 5 provided estimates of the parameters of the normal density and showed their role in fitting normal curves to data. In this chapter, we will take a sec- ond look at the properties and applications of this singularly important pdf, this time paying attention to the part it plays in estimation and hypothesis testing.

7.2 Comparing Y−μ σ/

√ n

and Y−μ S/

√ n

Suppose that a random sample of n measurements, Y1,Y2, . . . ,Yn, is to be taken on a trait that is thought to be normally distributed, the objective being to draw an inference about the underlying pdf’s true mean, μ. If the variance σ2 is known, we already know how to proceed: A decision rule for testing H0 : μ = μ0 is given in Theorem 6.2.1, and the construction of a confidence interval for μ is described in Section 5.3. As we learned, both of those procedures are based on the fact that the ratio Z = Y−μ

σ/ √

n has a standard normal distribution, fZ(z).

In practice, though, the parameter σ2 is seldom known, so the ratio Y−μ σ/

√ n cannot

be calculated, even if a value for the mean—say, μ0—is substituted for μ. Typically, the only information experimenters have about σ2 is what can be gleaned from the Yi’s themselves. The usual estimator for the population variance, of course, is S2 =

1 n−1

n∑ i=1

(Yi − Y)2, the unbiased version of the maximum likelihood estimator for σ2. The question is, what effect does replacing σ with S have on the Z ratio? Are there probabilistic differences between Y−μ

σ/ √

n and Y−μ S/

√ n ?

Historically, many early practitioners of statistics felt that replacing σ with S had, in fact, no effect on the distribution of the Z ratio. Sometimes they were right. If the sample size is very large (which was a common state of affairs in many of the early applications of statistics), the estimator S is essentially a constant and for all intents and purposes equal to the true σ. Under those conditions, the ratio Y−μS/√n will behave much like a standard normal random variable, Z. When the sample size n is small, though, replacing σ with S does matter, and it changes the way we draw inferences about μ.

Credit for recognizing that Y−μ σ/

√ n and

Y−μ S/

√ n do not have the same distribution goes

to William Sealy Gossett. After graduating in 1899 from Oxford with First Class de- grees in Chemistry and Mathematics, Gossett took a position at Arthur Guinness, Son & Co., Ltd., a firm that brewed a thick, dark ale known as stout. Given the task of making the art of brewing more scientific, Gossett quickly realized that any experimental studies would necessarily face two obstacles. First, for a variety of eco- nomic and logistical reasons, sample sizes would invariably be small; and second, there would never be any way to know the exact value of the true variance, σ2, asso- ciated with any set of measurements.

So, when the objective of a study was to draw an inference about μ, Gossett found himself working with the ratio Y−μS/√n , where n was often on the order of four or five. The more he encountered that situation, the more he became convinced that ratios of that sort are not adequately described by the standard normal pdf. In par- ticular, the distribution of Y−μS/√n seemed to have the same general bell-shaped config- uration as fZ(z), but the tails were “thicker”—that is, ratios much smaller than zero or much greater than zero were not as rare as the standard normal pdf would predict.

382 Chapter 7 Inferences Based on the Normal Distribution

Figure 7.2.1 illustrates the distinction between the distributions of Y−μ σ/

√ n and

Y−μ S/

√ n

that caught Gossett’s attention. In Figure 7.2.1a, five hundred samples of size n = 4 have been drawn from a normal distribution where the value of σ is known. For each sample, the ratio Y−μ

σ/ √

4 has been computed. Superimposed over the shaded histogram

of those five hundred ratios is the standard normal curve, fZ(z). Clearly, the proba- bilistic behavior of the random variable Y−μ

σ/ √

4 is entirely consistent with fZ(z).

fZ (z)

Y – � 4�/

(500 samples)

Observed distribution of

–4 –3 –2 –1 0 1 2 3 4

0.2

0.1D en

si ty

(a)

fZ(z) Y – �

4S/ (500 samples)

Observed distribution of

–4 –3 –2 –1 0 1 2 3 4

0.2

0.1D en

si ty

(b)

Figure 7.2.1

The histogram pictured in Figure 7.2.1b is also based on five hundred samples of size n = 4 drawn from a normal distribution. Here, though, S has been calculated for each sample, so the ratios comprising the histogram are Y−μ

S/ √

4 rather than Y−μ

σ/ √

4 .

In this case, the superimposed standard normal pdf does not adequately describe the histogram—specifically, it underestimates the number of ratios much less than zero as well as the number much larger than zero (which is exactly what Gossett had noted).

Gossett published a paper in 1908 entitled “The Probable Error of a Mean,” in which he derived a formula for the pdf of the ratio Y−μS/√n . To prevent disclo- sure of confidential company information, Guinness prohibited its employees from publishing any papers, regardless of content. So, Gossett’s work, one of the major statistical breakthroughs of the twentieth century, was published under the name “Student.”

Section 7.3 Deriving the Distribution of Y−μS/√n 383

Initially, Gossett’s discovery attracted very little attention. Virtually none of his contemporaries had the slightest inkling of the impact that Gossett’s paper would have on modern statistics. Indeed, fourteen years after its publication, Gossett sent R.A. Fisher a tabulation of his distribution, with a note saying, “I am sending you a copy of Student’s Tables as you are the only man that’s ever likely to use them.”

Fisher very much understood the value of Gossett’s work and believed that Gos- sett had effected a “logical revolution.” Fisher presented a rigorous mathematical derivation of Gossett’s pdf in 1924, the core of which appears in Appendix 7.A.1. Fisher somewhat arbitrarily chose the letter t for the Y−μS/√n statistic. Consequently, its pdf is known as the Student t distribution.

7.3 Deriving the Distribution of Y−μ S/

√ n

Broadly speaking, the set of probability functions that statisticians have occasion to use fall into two categories. There are a dozen or so that can effectively model the individual measurements taken on a variety of real-world phenomena. These are the distributions we studied in Chapters 3 and 4—most notably, the normal, bino- mial, Poisson, exponential, hypergeometric, and uniform. There is a smaller set of probability distributions that model the behavior of functions based on sets of n ran- dom variables. These are called sampling distributions, and they are typically used for inference purposes.

The normal distribution belongs to both categories. We have seen a number of scenarios (IQ scores, for example) where the Gaussian distribution is very effective at describing the distribution of repeated measurements. At the same time, the normal distribution is used to model the probabilistic behavior of Z = Y−μ

σ/ √

n . In the latter capacity, it serves as a sampling distribution.

Next to the normal distribution, the three most important sampling distributions are the Student t distribution, the chi square distribution, and the F distribution. All three will be introduced in this section, partly because we need the latter two to derive fT (t), the pdf for the t ratio, T = Y−μS/√n . So, although our primary objective in this section is to study the Student t distribution, we will in the process introduce the two other sampling distributions that we will be encountering over and over again in the chapters ahead.

Deriving the pdf for a t ratio is not a simple matter. That may come as a sur- prise, given that deducing the pdf for Y−μ

σ/ √

n is quite easy (using moment-generating

functions). But going from Y−μ σ/

√ n to

Y−μ S/

√ n creates some major mathematical

complications because T (unlike Z) is the ratio of two random variables, Y and S, both of which are functions of n random variables, Y1,Y2, . . . ,Yn. In general—and this ratio is no exception—finding pdfs of quotients of random variables is difficult, especially when the numerator and denominator random variables have cumber- some pdfs to begin with.

As we will see in the next few pages, the derivation of fT (t) plays out in several

steps. First, we show that m∑

j=1 Z2j , where the Zj’s are independent standard normal

random variables, has a gamma distribution (more specifically, a special case of the gamma distribution, called a chi square distribution). Then we show that Y and S2, based on a random sample of size n from a normal distribution, are independent random variables and that (n−1)S

2

σ2 has a chi square distribution. Next we derive the

pdf of the ratio of two independent chi square random variables (which is called

384 Chapter 7 Inferences Based on the Normal Distribution

the F distribution). The final step in the proof is to show that T 2 = (

Y−μ S/

√ n

)2 can be

written as the quotient of two independent chi square random variables, making it a special case of the F distribution. Knowing the latter allows us to deduce fT (t).

Theorem 7.3.1

Let U = m∑

j=1 Z2j , where Z1, Z2, . . . , Zm are independent standard normal random

variables. Then U has a gamma distribution with r = m2 and λ = 12 . That is,

fU (u) = 1 2m/2�

(m 2

)u(m/2)−1e−u/2, u ≥ 0 Proof First take m = 1. For any u ≥ 0,

FZ2 (u) = P(Z2 ≤ u) = P (−√u ≤ Z ≤ √u) = 2P(0 ≤ Z ≤ √u)

= 2√ 2π

∫ √u 0

e−z 2/2 dz

Differentiating both sides of the equation for FZ2 (u) gives fZ2 (u):

fZ2 (u) = d

du FZ2 (u) =

2√ 2π

1 2 √

u e−u/2 = 1

21/2� ( 1

2

)u(1/2)−1e−u/2 Notice that fU (u) = fZ2 (u) has the form of a gamma pdf with r = 12 and λ = 12 . By Theorem 4.6.4, then, the sum of m such squares has the stated gamma distribution with r = m ( 12) = m2 and λ = 12 .

The distribution of the sum of squares of independent standard normal random variables is sufficiently important that it gets its own name, despite the fact that it represents nothing more than a special case of the gamma distribution.

Definition 7.3.1 The pdf of U =

m∑ j=1

Z2j , where Z1, Z2, . . . , Zm are independent standard normal

random variables, is called the chi square distribution with m degrees of freedom.

The next theorem is especially critical in the derivation of fT (t). Using simple algebra, it can be shown that the square of a t ratio can be written as the quotient of two chi square random variables, one a function of Y and the other a function of S2. By showing that Y and S2 are independent (as Theorem 7.3.2 does), Theorem 3.8.4 can be used to find an expression for the pdf of the quotient.

Theorem 7.3.2

Let Y1,Y2, . . . ,Yn be a random sample from a normal distribution with mean μ and variance σ2. Then

a. S2 and Y are independent.

b. (n−1)S 2

σ2 = 1

σ2

n∑ i=1

(Yi − Y)2 has a chi square distribution with n − 1 degrees of freedom.

Proof See Appendix 7.A.1

Section 7.3 Deriving the Distribution of Y−μS/√n 385

As we will see shortly, the square of a t ratio is a special case of an F random vari- able. The next definition and theorem summarize the properties of the F distribution that we will need to find the pdf associated with the Student t distribution.

Definition 7.3.2 Suppose that U and V are independent chi square random variables with n and m degrees of freedom, respectively. A random variable of the form V/mU/n is said to have an F distribution with m and n degrees of freedom.

Comment The F in the name of this distribution commemorates the renowned statistician Sir Ronald Fisher.

Theorem 7.3.3

Suppose Fm,n = V/mU/n denotes an F random variable with m and n degrees of freedom. The pdf of Fm,n has the form

fFm,n (w) = � (m+n

2

) mm/2nn/2w(m/2)−1

� (m

2

) � ( n

2

) (n + mw)(m+n)/2 , w ≥ 0

Proof We begin by finding the pdf for V/U . From Theorem 7.3.1 we know that fV (v) = 12m/2�(m/2)v(m/2)−1e−v/2 and fU (u) = 12n/2�(n/2) u(n/2)−1e−u/2.

From Theorem 3.8.4, we have that the pdf of W = V/U is

fV/U (w) = ∫ ∞

0 |u| fU (u) fV (uw) du

= ∫ ∞

0 u

1 2n/2�(n/2)

u(n/2)−1e−u/2 1

2m/2�(m/2) (uw)(m/2)−1e−uw/2 du

= 1 2(n+m)/2�(n/2)�(m/2)

w(m/2)−1 ∫ ∞

0 u

n+m 2 −1e−[(1+w)/2]u du

The integrand is the variable part of a gamma density with r = (n + m)/2 and λ = (1 + w)/2. Thus, the integral equals the inverse of the density’s constant. This gives

fV/U = 12(n+m)/2�(n/2)�(m/2)w (m/2)−1 �

( n+m 2

) [(1 + w)/2] n+m2 =

� ( n+m

2

) �(n/2)�(m/2)

w(m/2)−1

(1 + w) n+m2 The statement of the theorem, then, follows from Theorem 3.8.2:

f V/m U/n

(w) = f n m V/U (w) =

1 n/m

fV/U

( w

n/m

) = m

n fV/U

(m n

w )

F TABLES

When graphed, an F distribution looks very much like a typical chi square distribution—values of V/mU/n can never be negative and the F pdf is skewed sharply to the right. Clearly, the complexity of fFm,n (r) makes the function difficult to work with directly. Tables, though, are widely available that give various percentiles of F distributions for different values of m and n.

386 Chapter 7 Inferences Based on the Normal Distribution

Figure 7.3.1 shows fF3,5 (r). In general, the symbol Fp,m,n will be used to denote the 100 pth percentile of the F distribution with m and n degrees of freedom. Here, the 95th percentile of fF3,5 (r)—that is, F.95,3,5—is 5.41 (see Appendix Table A.4).

1 2 64 530

0.6

0.2

0.4

P ro

ba bi

lit y

de ns

it y f (r)F3, 5

F.95, 3, 5

Area = 0.05Area = 0.95

( = 5.41)

r

Figure 7.3.1

USING THE F DISTRIBUTION TO DERIVE THE pdf FOR t RATIOS

Now we have all the background results necessary to find the pdf of Y−μS/√n . Actually, though, we can do better than that because what we have been calling the “t ratio” is just one special case of an entire family of quotients known as t ratios. Finding the pdf for that entire family will give us the probability distribution for Y−μS/√n as well.

Definition 7.3.3 Let Z be a standard normal random variable and let U be a chi square random variable independent of Z with n degrees of freedom. The Student t ratio with n degrees of freedom is denoted Tn, where

Tn = Z√ U n

Comment The term “degrees of freedom” is often abbreviated by df.

Lemma The pdf for Tn is symmetric: fTn (t) = fTn (−t), for all t.

Proof For convenience of notation, let V = √

U n . Then by Theorem 3.8.4 and the

symmetry of the pdf of Z,

fTn (t) = ∫ ∞

0 v fV (v) fZ(tv)dv =

∫ ∞ 0

v fV (v) fZ(−tv)dv = fTn (−t)

Theorem 7.3.4

The pdf for a Student t random variable with n degrees of freedom is given by

fTn (t) = � ( n+1

2

) √

nπ� ( n

2

) ( 1 + t2n

)(n+1)/2 , −∞ < t < ∞

Section 7.3 Deriving the Distribution of Y−μS/√n 387

Proof Note that T 2n = Z 2

U/n has an F distribution with 1 and n df. Therefore,

fT 2n (t) = nn/2�

( n+1 2

) � ( 1

2

) � ( n

2

) t−1/2 1 (n + t)(n+1)/2 , t > 0

Suppose that t > 0. By the symmetry of fTn (t),

FTn (t) = P(Tn ≤ t) = 1 2

+ P(0 ≤ Tn ≤ t)

= 1 2

+ 1 2

P(−t ≤ Tn ≤ t)

= 1 2

+ 1 2

P ( 0 ≤ T 2n ≤ t2

) = 1

2 + 1

2 FT 2n (t

2)

Differentiating FTn (t) gives the stated result:

fTn (t) = F ′Tn (t) = t · fT 2n (t2)

= t n n/2�

( n+1 2

) � ( 1

2

) � ( n

2

) (t2)−(1/2) 1 (n + t2)(n+1)/2

= � ( n+1

2

) √

nπ � ( n

2

) · 1[ 1 +

( t2 n

)](n+1)/2

Comment Over the years, the lowercase t has come to be the accepted symbol for the random variable of Definition 7.3.3. We will follow that convention when the con- text allows some flexibility. In mathematical statements about distributions, though, we will be consistent with random variable notation and denote the Student t ratio as Tn.

All that remains to be verified, then, to accomplish our original goal of finding the pdf for Y−μS/√n is to show that the latter is a special case of the Student t random variable described in Definition 7.3.3. Theorem 7.3.5 provides the details. Notice that a sample of size n yields a t ratio in this case having n − 1 degrees of freedom.

Theorem 7.3.5

Let Y1,Y2, . . . ,Yn be a random sample from a normal distribution with mean μ and standard deviation σ. Then

Tn−1 = Y − μ S/

√ n

has a Student t distribution with n − 1 degrees of freedom. Proof We can rewrite Y−μS/√n in the form

Y − μ S/

√ n

= Y−μ σ/

√ n√

(n−1)S2 σ2(n−1)

(Continued on next page)

388 Chapter 7 Inferences Based on the Normal Distribution

(Theorem 7.3.5 continued)

But Y−μ σ/

√ n is a standard normal random variable and

(n−1)S2 σ2

has a chi square distri- bution with n − 1 df. Moreover, Theorem 7.3.2 shows that

Y − μ σ/

√ n

and (n − 1)S2

σ2

are independent. The statement of the theorem follows immediately, then, from Definition 7.3.3.

fTn(t) AND fZ (z): HOW THE TWO PDFS ARE RELATED

Despite the considerable disparity in the appearance of the formulas for fTn (t) and fZ(z), Student t distributions and the standard normal distribution have much in common. Both are bell shaped, symmetric, and centered around zero. Student t curves, though, are flatter.

Figure 7.3.2 is a graph of two Student t distributions—one with 2 df and the other with 10 df. Also pictured is the standard normal pdf, fZ(z). Notice that as n increases, fTn (t) becomes more and more like fZ(z).

0.4

0.2

43210–1–2–3–4

f (z)Z

f (t)T2

f (t)T10

Figure 7.3.2

The convergence of fTn (t) to fZ(z) is a consequence of two estimation properties:

1. The sample standard deviation is asymptotically unbiased for σ.

2. The standard deviation of S goes to 0 as n approaches ∞. (See Question 7.3.4.) Therefore as n gets large, the probabilistic behavior of Y−μS/√n will become increasingly

similar to the distribution of Y−μ σ/

√ n —that is, to fZ(z).

Questions

7.3.1. Show directly—without appealing to the fact that χ2n is a gamma random variable—that fU (u) as stated in Definition 7.3.1 is a true probability density function.

7.3.2. Find the moment-generating function for a chi square random variable and use it to show that E

( χ2n ) = n

and Var ( χ2n ) = 2n.

7.3.3. Is it believable that the numbers 65, 30, and 55 are a random sample of size 3 from a normal distribution with μ = 50 and σ = 10? Answer the question by using a chi

square distribution. (Hint: Let Zi = (Yi − 50)/10 and use Theorem 7.3.1.)

7.3.4. Use the fact that (n−1)S2/σ2 is a chi square random variable with n − 1 df to prove that

Var(S2) = 2σ 4

n − 1 (Hint: Use the fact that the variance of a chi square ran- dom variable with k df is 2k.)

Section 7.4 Drawing Inferences About μ 389

7.3.5. Let Y1,Y2, . . . ,Yn be a random sample from a nor- mal distribution. Use the statement of Question 7.3.4 to prove that S2 is consistent for σ2.

7.3.6. If Y is a chi square random variable with n degrees of freedom, the pdf of (Y − n)/√2n converges to fZ(z) as n goes to infinity (recall Question 7.3.2). Use the asymp- totic normality of (Y − n)/√2n to approximate the 40th percentile of a chi square random variable with 200 de- grees of freedom.

7.3.7. Use Appendix Table A.4 to find (a) F.50,6,7 (b) F.001,15,5 (c) F.90,2,2

7.3.8. Let V and U be independent chi square random variables with 7 and 9 degrees of freedom, respectively. Is it more likely that V/7U/9 will be between (1) 2.51 and 3.29 or (2) 3.29 and 4.20?

7.3.9. Use Appendix Table A.4 to find the values of x that satisfy the following equations: (a) P(0.109 < F4,6 < x) = 0.95 (b) P(0.427 < F11,7 < 1.69) = x (c) P(Fx,x > 5.35) = 0.01 (d) P(0.115 < F3,x < 3.29) = 0.90 (e) P

( x < V/2U/3

) = 0.25, where V is a chi square random

variable with 2 df and U is an independent chi square ran- dom variable with 3 df.

7.3.10. Suppose that two independent samples of size n are drawn from a normal distribution with variance σ2. Let S21 and S

2 2 denote the two sample variances. Use the fact

that (n−1)S 2

σ2 has a chi square distribution with n − 1 df to

explain why

lim n→∞ m→∞

Fm,n = 1

7.3.11. If the random variable F has an F distribution with m and n degrees of freedom, show that 1/F has an F dis- tribution with n and m degrees of freedom.

7.3.12. Use the result claimed in Question 7.3.11 to ex- press percentiles of fFn,m (r) in terms of percentiles from fFm,n (r). That is, if we know the values a and b for which P(a ≤ Fm,n ≤ b) = q, what values of c and d will satisfy the equation P(c ≤ Fn,m ≤ d) = q? “Check” your an- swer with Appendix Table A.4 by comparing the values of F.05,2,8, F.95,2,8, F.05,8,2, and F.95,8,2.

7.3.13. Show that as n → ∞, the pdf of a Student t random variable with n df converges to fZ(z). (Hint: To show that the constant term in the pdf for Tn converges to 1/

√ 2π,

use Stirling’s formula,

n! .= √

2πn nne−n)

Also, recall that lim n→∞

( 1 + an

)n = ea. 7.3.14. Evaluate the integral∫ ∞

0

1 1 + x2 dx

using the Student t distribution.

7.3.15. For a Student t random variable T with n degrees of freedom and any positive integer k, show that E(T 2k) exists if 2k < n. (Hint: Integrals of the form∫ ∞

0

1 (1 + yα)β dy

are finite if α > 0, β > 0, and αβ > 1.)

7.4 Drawing Inferences About μ One of the most common of all statistical objectives is to draw inferences about the mean of the population being represented by a set of data. Indeed, we already took a first look at that problem in Section 6.2. If the Yi’s come from a normal distibution where σ is known, the null hypothesis H0 : μ = μ0 can be tested by calculating a Z ratio, Y−μ

σ/ √

n (recall Theorem 6.2.1). Implicit in that solution, though, is an assumption not likely to be satisfied:

rarely does the experimenter actually know the value of σ. Section 7.3 dealt with precisely that scenario and derived the pdf of the ratio Tn−1 = Y−μS/√n , where σ has been replaced by an estimator, S. Given Tn−1 (which we learned has a Student t distribution with n − 1 degrees of freedom), we now have the tools necessary to draw inferences about μ in the all-important case where σ is not known. Sec- tion 7.4 illustrates these various techniques and also examines the key assumption underlying the “t test” and looks at what happens when that assumption is not satisfied.

390 Chapter 7 Inferences Based on the Normal Distribution

t TABLES

We have already seen that doing hypothesis tests and constructing confidence in- tervals using Y−μ

σ/ √

n or some other Z ratio requires that we know certain upper and/or lower percentiles from the standard normal distribution. There will be a similar need to identify appropriate “cutoffs” from Student t distributions when the inference procedure is based on Y−μS/√n , or some other t ratio.

Figure 7.4.1 shows a portion of the t table that typically appears in the back of statistics books. Each row corresponds to a different Student t pdf. The column head- ings give the area to the right of the number appearing in the body of the table.

df .20 .15 .10 .05 .025 .01 .005

1 1.376 1.963 3.078 6.3138 12.706 31.821 63.657 2 1.061 1.386 1.886 2.9200 4.3027 6.965 9.9248 3 0.978 1.250 1.638 2.3534 3.1825 4.541 5.8409 4 0.941 1.190 1.533 2.1318 2.7764 3.747 4.6041 5 0.920 1.156 1.476 2.0150 2.5706 3.365 4.0321 6 0.906 1.134 1.440 1.9432 2.4469 3.143 3.7074

30 0.854 1.055 1.310 1.6973 2.0423 2.457 2.7500 ---------------------------------------------------------------------------------------- ` 0.84 1.04 1.28 1.64 1.96 2.33 2.58

Figure 7.4.1

For example, the entry 4.541 listed in the α = .01 column and the df = 3 row has the property that P(T3 ≥ 4.541) = 0.01.

More generally, we will use the symbol tα,n to denote the 100(1 −α)th percentile of fTn (t). That is, P(Tn ≥ tα,n) = α (see Figure 7.4.2). No lower percentiles of Student t curves need to be tabulated because the symmetry of fTn (t) implies that P(Tn ≤ −tα,n) = α.

0 t

f (t)Tn

t �, n

�, nnArea = � = P(T � t )

Figure 7.4.2

The number of different Student t pdfs summarized in a t table varies consider- ably. Many tables will provide cutoffs for degrees of freedom ranging only from 1 to 30; others will include df values from 1 to 50, or even from 1 to 100. The last row in most t tables, though, is labeled “∞”: Those entries, of course, correspond to zα.

CONSTRUCTING A CONFIDENCE INTERVAL FOR μ

The fact that Y−μS/√n has a Student t distribution with n − 1 degrees of freedom justifies the statement that

P

( −tα/2,n−1 ≤ Y − μ

S/ √

n ≤ tα/2,n−1

) = 1 − α

Section 7.4 Drawing Inferences About μ 391

or, equivalently, that

P (

Y − tα/2,n−1 · S√ n

≤ μ ≤ Y + tα/2,n−1 · S√ n

) = 1 − α (7.4.1)

(provided the Yi’s are a random sample from a normal distribution). When the actual data values are then used to evaluate Y and S, the lower and

upper endpoints identified in Equation 7.4.1 define a 100(1−α)% confidence interval for μ.

Theorem 7.4.1

Let y1, y2, . . . , yn be a random sample of size n from a normal distribution with (unknown) mean μ. A 100(1 − α)% confidence interval for μ is the set of values(

y − tα/2,n−1 · s√ n

, y + tα/2,n−1 · s√ n

)

CASE STUDY 7.4.1

To hunt flying insects, bats emit high-frequency sounds and then listen for their echoes. Until an insect is located, these pulses are emitted at intervals of from fifty to one hundred milliseconds. When an insect is detected, the pulse-to-pulse interval suddenly decreases—sometimes to as low as ten milliseconds—thus en- abling the bat to pinpoint its prey’s position. This raises an interesting question: How far apart are the bat and the insect when the bat first senses that the insect is there? Or, put another way, what is the effective range of a bat’s echolocation system?

The technical problems that had to be overcome in measuring the bat-to- insect detection distance were far more complex than the statistical problems involved in analyzing the actual data. The procedure that finally evolved was to put a bat into an eleven-by-sixteen-foot room, along with an ample supply of fruit flies, and record the action with two synchronized sixteen-millimeter sound-on-film cameras. By examining the two sets of pictures frame by frame, scientists could follow the bat’s flight pattern and, at the same time, monitor its pulse frequency. For each insect that was caught (70), it was therefore possible to estimate the distance between the bat and the insect at the precise moment the bat’s pulse-to-pulse interval decreased (see Table 7.4.1).

Table 7.4.1

Catch Number Detection Distance (cm)

1 62 2 52 3 68 4 23 5 34 6 45 7 27 8 42 9 83

10 56 11 40

(Continued on next page)

392 Chapter 7 Inferences Based on the Normal Distribution

(Case Study 7.4.1 continued)

Define μ to be a bat’s true average detection distance. Use the eleven observations in Table 7.4.1 to construct a 95% confidence interval for μ.

Letting y1 = 62, y2 = 52, . . . , y11 = 40, we have that 11∑

i=1 yi = 532 and

11∑ i=1

y2i = 29,000

Therefore,

y = 532 11

= 48.4 cm and

s = √

11(29,000) − (532)2 11(10)

= 18.1 cm

If the population from which the yi’s are being drawn is normal, the behavior of

Y − μ S/

√ n

will be described by a Student t curve with 10 degrees of freedom. From Table A.2 in the Appendix,

P(−2.2281 < T10 < 2.2281) = 0.95 Accordingly, the 95% confidence interval for μ is[

y − 2.2281 (

s√ 11

) , y + 2.2281

( s√ 11

)]

= [

48.4 − 2.2281 (

18.1√ 11

) , 48.4 + 2.2281

( 18.1√

11

)] = (36.2 cm, 60.6 cm)

Example 7.4.1

The sample mean and sample standard deviation for the random sample of size n = 20 given in the following list are 2.6 and 3.6, respectively. Let μ denote the true mean of the distribution being represented by these yi’s.

2.5 0.1 0.2 1.3 3.2 0.1 0.1 1.4 0.5 0.2 0.4 11.2 0.4 7.4 1.8 2.1 0.3 8.6 0.3 10.1

Is it correct to say that a 95% confidence interval for μ is the set of following values?( y − t.025,n−1 · s√

n , y + t.025,n−1 · s√

n

)

= (

2.6 − 2.0930 · 3.6√ 20

, 2.6 + 2.0930 · 3.6√ 20

) = (0.9, 4.3)

Section 7.4 Drawing Inferences About μ 393

No. It is true that all the correct factors have been used in calculating (0.9, 4.3), but Theorem 7.4.1 does not apply in this case because the normality assumption it makes is clearly being violated. Figure 7.4.3 is a histogram of the twenty yi’s. The extreme skewness that is so evident there is not consistent with the presumption that the data’s underlying pdf is a normal distribution. As a result, the pdf describing the probabilistic behavior of Y−μ

S/ √

20 would not be fT19 (t).

5 100

10

Fr eq

ue nc

y

y

5

Figure 7.4.3

Comment To say that Y−μ S/

√ 20

in this situation is not exactly a T19 random variable leaves unanswered a critical question: Is the ratio approximately a T19 random vari- able? We will revisit the normality assumption—and what happens when that as- sumption is not satisfied—later in this section when we discuss a critically important property known as robustness.

Questions

7.4.1. Use Appendix Table A.2 to find the following probabilities: (a) P(T6 ≥ 1.134) (b) P(T15 ≤ 0.866) (c) P(T3 ≥ −1.250) (d) P(−1.055 < T29 < 2.462) 7.4.2. What values of x satisfy the following equations? (a) P(−x ≤ T22 ≤ x) = 0.98 (b) P(T13 ≥ x) = 0.85 (c) P(T26 < x) = 0.95 (d) P(T2 ≥ x) = 0.025 7.4.3. Which of the following differences is larger? Explain.

t.05,n − t.10,n or t.10,n − t.15,n 7.4.4. A random sample of size n = 9 is drawn from a nor- mal distribution with μ = 27.6. Within what interval (−a, +a) can we expect to find Y−27.6

S/ √

9 80% of the time? 90% of

the time?

7.4.5. Suppose a random sample of size n = 11 is drawn from a normal distribution with μ = 15.0. For what value of k is the following true?

P

(∣∣∣∣∣Y − 15.0S/√11 ∣∣∣∣∣ ≥ k

) = 0.05

7.4.6. Let Y and S denote the sample mean and sample standard deviation, respectively, based on a set of n = 20 measurements taken from a normal distribution with μ = 90.6. Find the function k(S) for which

P[90.6 − k(S) ≤ Y ≤ 90.6 + k(S)] = 0.99 7.4.7. Cell phones emit radio frequency energy that is ab- sorbed by the body when the phone is next to the ear and may be harmful. The table in the next column gives the absorption rate for a sample of twenty high-radiation cell phones. (The Federal Communication Commission sets a maximum of 1.6 watts per kilogram for the absorption rate of such energy.) Construct a 90% confidence interval for the true average cell phone absorption rate.

1.54 1.41 1.54 1.40 1.49 1.40 1.49 1.39 1.48 1.39 1.45 1.39 1.44 1.38 1.42 1.38 1.41 1.37 1.41 1.33

Data from: http://cellphones.procon.org/view.resource.php?resourceID=003054

7.4.8. The following table lists the typical cost of re- pairing the bumper of a moderately priced midsize car

394 Chapter 7 Inferences Based on the Normal Distribution

damaged by a corner collision at 3 mph. Use these obser- vations to construct a 95% confidence interval for μ, the true average repair cost for all such automobiles with sim- ilar damage. The sample standard deviation for these data is s = $369.02.

Repair Cost

Repair CostMake/Model Make/Model

Hyundai Sonata $1019 Honda Accord $1461 Nissan Altima $1090 Volkswagen Jetta $1525 Mitsubishi Galant $1109 Toyota Camry $1670 Saturn AURA $1235 Chevrolet Malibu $1685 Subaru Legacy $1275 Volkswagen Passat $1783 Pontiac G6 $1361 Nissan Maxima $1787 Mazda 6 $1437 Ford Fusion $1889 Volvo S40 $1446 Chrysler Sebring $2484

Data from: www.iihs.org/ratings/bumpersbycategory.aspx?

7.4.9. Creativity, as any number of studies have shown, is very much a province of the young. Whether the focus is music, literature, science, or mathematics, an individual’s best work seldom occurs late in life. Einstein, for example, made his most profound discoveries at the age of twenty- six; Newton, at the age of twenty-three. The following are twelve scientific breakthroughs dating from the middle of the sixteenth century to the early years of the twentieth century (217). All represented high-water marks in the ca- reers of the scientists involved.

Discovery Discoverer Year Age, y

Earth goes around sun Copernicus 1543 40 Telescope, basic laws of

astronomy Galileo 1600 34

Principles of motion, gravitation, calculus

Newton 1665 23

Nature of electricity Franklin 1746 40 Burning is uniting with

oxygen Lavoisier 1774 31

Earth evolved by gradual processes

Lyell 1830 33

Evidence for natural selection controlling evolution

Darwin 1858 49

Field equations for light Maxwell 1864 33 Radioactivity Curie 1896 34 Quantum theory Planck 1901 43 Special theory of relativity,

E = mc2 Einstein 1905 26

Mathematical foundations for quantum theory

Schrödinger 1926 39

(a) What can be inferred from these data about the true average age at which scientists do their best work? Answer the question by constructing a 95% confidence interval. (b) Before constructing a confidence interval for a set of observations extending over a long period of time, we

should be convinced that the yi’s exhibit no biases or trends. If, for example, the age at which scientists made major discoveries decreased from century to century, then the parameter μ would no longer be a constant, and the confidence interval would be meaningless. Plot “date” versus “age” for these twelve discoveries. Put “date” on the abscissa. Does the variability in the yi’s appear to be random with respect to time?

7.4.10. How long does it take to fly from Atlanta to New York’s LaGuardia airport? There are many components of the time elapsed, but one of the more stable measure- ments is the actual in-air time. For a sample of eighty-three flights between these destinations on Fridays in October, the time in minutes (y) gave the following results:

83∑ i=1

yi = 8622 and 83∑

i=1 y2i = 899,750

Find a 99% confidence interval for the average flight time.

Data from: apps.bts.gov

7.4.11. In a nongeriatric population, platelet counts ranging from 140 to 440 (thousands per mm3 of blood) are considered “normal.” The following are the platelet counts recorded for twenty-four female nursing home residents (180).

Subject Count Subject Count

1 125 13 180 2 170 14 180 3 250 15 280 4 270 16 240 5 144 17 270 6 184 18 220 7 176 19 110 8 100 20 176 9 220 21 280

10 200 22 176 11 170 23 188 12 160 24 176

Use the following sums:

24∑ i=1

yi = 4645 and 24∑

i=1 y2i = 959,265

How does the definition of “normal” above compare with the 90% confidence interval?

7.4.12. If a normally distributed sample of size n = 16 pro- duces a 95% confidence interval for μ that ranges from 44.7 to 49.9, what are the values of y and s?

7.4.13. Two samples, each of size n, are taken from a nor- mal distribution with unknown mean μ and unknown

Section 7.4 Drawing Inferences About μ 395

standard deviation σ. A 90% confidence interval for μ is constructed with the first sample, and a 95% confidence interval for μ is constructed with the second. Will the 95% confidence interval necessarily be longer than the 90% confidence interval? Explain.

7.4.14. Revenues reported last week from nine boutiques franchised by an international clothier averaged $59,540 with a standard deviation of $6860. Based on those fig- ures, in what range might the company expect to find the average revenue of all of its boutiques?

7.4.15. What “confidence” is associated with each of the following random intervals? Assume that the Yi’s are nor- mally distributed.

(a) [ Y − 2.0930

( S√ 20

) ,Y + 2.0930

( S√ 20

)]

(b) [ Y − 1.345

( S√ 15

) ,Y + 1.345

( S√ 15

)]

(c) [ Y − 1.7056

( S√ 27

) ,Y + 2.7787

( S√ 27

)]

(d) [ −∞,Y + 1.7247

( S√ 21

)]

7.4.16. The weather station at Dismal Swamp, California, recorded monthly precipitation (y) for twenty-eight years.

For these data, 336∑ i=1

yi = 1392.6 and 336∑ i=1

y2i = 10, 518.84. (a) Find the 95% confidence interval for the mean monthly precipitation. (b) The table on the right gives a frequency distribution for the Dismal Swamp precipitation data. Does this dis- tribution raise questions about using Theorem 7.4.1?

Rainfall in Inches Frequency

0–1 85 1–2 38 2–3 35 3–4 41 4–5 28 5–6 24 6–7 18 7–8 16 8–9 16

9–10 5 10–11 9 11–12 21

Data from: www.wcc.nrcs.usda.gov.

TESTING H0 : μ = μ0 (THE ONE-SAMPLE t TEST) Suppose a normally distributed random sample of size n is observed for the purpose of testing the null hypothesis that μ = μ0. If σ is unknown—which is usually the case—the procedure to use is called a one-sample t test. Conceptually, the latter is much like the Z test of Theorem 6.2.1, except that the decision rule is defined in terms of t = y−μ0s/√n rather than z =

y−μ0 σ/

√ n [which requires that the critical values come

from fTn−1 (t) rather than fZ(z)].

Theorem 7.4.2

Let y1, y2, . . . , yn be a random sample of size n from a normal distribution where σ is unknown. Let t = y−μ0s/√n . a. To test H0 : μ = μ0 versus H1 : μ > μ0 at the α level of significance, reject H0 if

t ≥ tα,n−1. b. To test H0 : μ = μ0 versus H1 : μ < μ0 at the α level of significance, reject H0 if

t ≤ −tα,n−1. c. To test H0 : μ = μ0 versus H1 : μ �= μ0 at the α level of significance, reject H0 if

t is either (1) ≤ −tα/2,n−1 or (2) ≥ tα/2,n−1.

Proof Appendix 7.A.2 gives the complete derivation that justifies using the proce- dure described in Theorem 7.4.2. In short, the test statistic t = y−μ0s/√n is a monotonic function of the λ that appears in Definition 6.5.2, which makes the one-sample t test a GLRT.

396 Chapter 7 Inferences Based on the Normal Distribution

CASE STUDY 7.4.2

Not all rectangles are created equal. Since antiquity, societies have expressed aesthetic preferences for rectangles having certain width (w) to length (l) ratios.

One “standard” calls for the width-to-length ratio to be equal to the ratio of the length to the sum of the width and the length. That is,

w

l = l

w + l (7.4.2)

Equation 7.4.2 implies that the width is 12 ( √

5−1), or approximately 0.618, times as long as the length. The Greeks called this the golden rectangle and used it often in their architecture (see Figure 7.4.4). Many other cultures were similarly inclined. The Egyptians, for example, built their pyramids out of stones whose faces were golden rectangles. Today in our society, the golden rectangle remains an architectural and artistic standard, and even items such as driver’s licenses, business cards, and picture frames often have w/l ratios close to 0.618.

w

l

Figure 7.4.4

The fact that many societies have embraced the golden rectangle as an aes- thetic standard has two possible explanations. One, they “learned” to like it because of the profound influence that Greek writers, philosophers, and artists have had on cultures all over the world. Or two, there is something unique about human perception that predisposes a preference for the golden rectangle.

Researchers in the field of experimental aesthetics have tried to test the plausibility of those two hypotheses by seeing whether the golden rectangle is accorded any special status by societies that had no contact whatsoever with the Greeks or with their legacy. One such study (41) examined the w/l ratios of beaded rectangles sewn by the Shoshoni Indians as decorations on their blankets and clothes. Table 7.4.2 lists the ratios found for twenty such rectangles.

If, indeed, the Shoshonis also had a preference for golden rectangles, we would expect their ratios to be “close” to 0.618. The average value of the entries in Table 7.4.2, though, is 0.661. What does that imply? Is 0.661 close enough to 0.618 to support the position that liking the golden rectangle is a human charac- teristic, or is 0.661 so far from 0.618 that the only prudent conclusion is that the Shoshonis did not agree with the aesthetics espoused by the Greeks?

Table 7.4.2 Width-to-Length Ratios of Shoshoni Rectangles

0.693 0.749 0.654 0.670 0.662 0.672 0.615 0.606 0.690 0.628 0.668 0.611 0.606 0.609 0.601 0.553 0.570 0.844 0.576 0.933

Section 7.4 Drawing Inferences About μ 397

Let μ denote the true average width-to-length ratio of Shoshoni rectangles. The hypotheses to be tested are

H0 : μ = 0.618 versus

H1 : μ �= 0.618

For tests of this nature, the value of α = 0.05 is often used. For that value of α and a two-sided test, the critical values, using part (c) of Theorem 7.4.2 and Appendix Table A.2, are t.025,19 = 2.0930 and −t.025,19 = −2.0930.

The data in Table 7.4.2 have y = 0.661 and s = 0.093. Substituting these values into the t ratio gives a test statistic that lies just inside of the interval between −2.0930 and 2.0930:

t = y − μ0 s/

√ n

= 0.661 − 0.618 0.093/

√ 20

= 2.068

Thus, these data do not rule out the possibility that the Shoshoni Indians also embraced the golden rectangle as an aesthetic standard.

About the Data Like π and e, the ratio w/l for golden rectangles (more com- monly referred to as either phi or the golden ratio), is an irrational number with all sorts of fascinating properties and connections.

Algebraically, the solution of the equation

w

l = l

w + l is the continued fraction

w

l = 1 + 1

1 + 1 1 + 1

1 + 1 1 + · · ·

Among the curiosities associated with phi is its relationship with the Fibonacci series. The latter, of course, is the famous sequence in which each term is the sum of its two predecessors—that is,

1 1 2 3 5 8 13 21 34 55 89 . . .

Quotients of consecutive terms in the Fibonacci sequence alternate above and below the golden ratio and converge to its value (= 0.61803 . . .) : 1/1 = 1.0000, 1/2 = 0.5000, 2/3 = 0.6667, 3/5 = 0.6000, 5/8 = 0.6250, 8/13 = 0.6154, 13/21 = 0.6190, and so on.

Example 7.4.2

Three banks serve a metropolitan area’s inner-city neighborhoods: Federal Trust, American United, and Third Union. The state banking commission is concerned that loan applications from inner-city residents are not being accorded the same consid- eration that comparable requests have received from individuals in rural areas. Both constituencies claim to have anecdotal evidence suggesting that the other group is being given preferential treatment.

398 Chapter 7 Inferences Based on the Normal Distribution

Records show that last year these three banks approved 62% of all the home mortgage applications filed by rural residents. Listed in Table 7.4.3 are the approval rates posted over that same period by the twelve branch offices of Federal Trust (FT), American United (AU), and Third Union (TU) that work primarily with the inner- city community. Do these figures lend any credence to the contention that the banks are treating inner-city residents and rural residents differently? Analyze the data using an α = 0.05 level of significance.

Table 7.4.3

Bank Location Affiliation Percent Approved

1 3rd & Morgan AU 59 2 Jefferson Pike TU 65 3 East 150th & Clark TU 69 4 Midway Mall FT 53 5 N. Charter Highway FT 60 6 Lewis & Abbot AU 53 7 West 10th & Lorain FT 58 8 Highway 70 FT 64 9 Parkway Northwest AU 46

10 Lanier & Tower TU 67 11 King & Tara Court AU 51 12 Bluedot Corners FT 59

As a starting point, we might want to test

H0 : μ = 62 versus

H1 : μ �= 62 where μ is the true average approval rate for all inner-city banks. Table 7.4.4 summa- rizes the analysis. The two critical values are ± t.025,11 = ± 2.2010, and the observed t ratio is −1.66

( = 58.667−62

6.946/ √

12

) , so our decision is “Fail to reject H0.”

Table 7.4.4

Banks n y s t Ratio Critical Value Reject H0?

All 12 58.667 6.946 −1.66 ±2.2010 No

About the Data The “overall” analysis of Table 7.4.4, though, may be too simplis- tic. Common sense would tell us to look also at the three banks separately. What emerges, then, is an entirely different picture (see Table 7.4.5). Now we can see why both groups felt discriminated against: American United (t = −3.63) and Third

Table 7.4.5

Banks n y s t Ratio Critical Value Reject H0?

American United 4 52.25 5.38 −3.63 ±3.1825 Yes Federal Trust 5 58.80 3.96 −1.81 ±2.7764 No Third Union 3 67.00 2.00 +4.33 ±4.3027 Yes

Section 7.4 Drawing Inferences About μ 399

Union (t = +4.33) each had rates that differed significantly from 62%—but in oppo- site directions! Only Federal Trust seems to be dealing with inner-city residents and rural residents in an even-handed way.

Questions

7.4.17. Recall the Bacillus subtilis data in Question 5.3.2. Test the null hypothesis that exposure to the enzyme does not affect a worker’s respiratory capacity (as measured by the FEV1/VC ratio). Use a one-sided H1 and let α = 0.05. Assume that σ is not known.

7.4.18. Recall Case Study 5.3.1. Assess the credibility of the theory that Etruscans were native Italians by testing an appropriate H0 against a two-sided H1. Set α equal to 0.05. Use 143.8 mm and 6.0 mm for y and s, respec- tively, and let μ0 = 132.4. Do these data appear to satisfy the distribution assumption made by the t test? Explain.

7.4.19. MBAs R Us advertises that its program increases a person’s score on the GMAT by an average of forty points. As a way of checking the validity of that claim, a consumer watchdog group hired fifteen students to take both the review course and the GMAT. Prior to starting the course, the fifteen students were given a diagnostic test that predicted how well they would do on the GMAT in the absence of any special training. The following ta- ble gives each student’s actual GMAT score minus his or her predicted score. Set up and carry out an appropriate hypothesis test. Use the 0.05 level of significance.

Subject yi = act. GMAT − pre. GMAT y2i SA 35 1225 LG 37 1369 SH 33 1089 KN 34 1156 DF 38 1444 SH 40 1600 ML 35 1225 JG 36 1296 KH 38 1444 HS 33 1089 LL 28 784 CE 34 1156 KK 47 2209 CW 42 1764 DP 46 2116

7.4.20. In addition to the Shoshoni data of Case Study 7.4.2, a set of rectangles that might tend to the golden ratio are national flags. The table below gives the width-to-length ratios for a random sample of the flags of thirty-four countries. Let μ be the width-to-

length ratio for national flags. At the α = 0.01 level, test H0 : μ = 0.618 versus H1 : μ �= 0.618.

Ratio Ratio Country Width to Height Country Width to Height

Afghanistan 0.500 Iceland 0.720 Albania 0.714 Iran 0.571 Algeria 0.667 Israel 0.727 Angola 0.667 Laos 0.667 Argentina 0.667 Lebanon 0.667 Bahamas 0.500 Liberia 0.526 Denmark 0.757 Macedonia 0.500 Djibouti 0.553 Mexico 0.571 Ecuador 0.500 Monaco 0.800 Egypt 0.667 Namibia 0.667 El Salvador 0.600 Nepal 1.250 Estonia 0.667 Romania 0.667 Ethiopia 0.500 Rwanda 0.667 Gabon 0.750 South Africa 0.667 Fiji 0.500 St. Helena 0.500 France 0.667 Sweden 0.625 Honduras 0.500 United

Kingdom 0.500

Data from: http://www.anyflag.com/country/costaric.php.

7.4.21. A manufacturer of pipe for laying underground electrical cables is concerned about the pipe’s rate of cor- rosion and whether a special coating may retard that rate. As a way of measuring corrosion, the manufacturer ex- amines a short length of pipe and records the depth of the maximum pit. The manufacturer’s tests have shown that in a year’s time in the particular kind of soil the manufacturer must deal with, the average depth of the maximum pit in a foot of pipe is 0.0042 inch. To see whether that average can be reduced, ten pipes are coated with a new plastic and buried in the same soil. After one year, the following maximum pit depths are recorded (in inches): 0.0039, 0.0041, 0.0038, 0.0044, 0.0040, 0.0036, 0.0034, 0.0036, 0.0046, and 0.0036. Given that the sam- ple standard deviation for these ten measurements is 0.000383 inch, can it be concluded at the α = 0.05 level of significance that the plastic coating is beneficial?

7.4.22. In athletic contests, a wide-spread conviction ex- ists that the home team has an advantage. However, one explanation for this is that a team schedules some much weaker opponents to play at home. To avoid this bias, a study of college football games considered only games

400 Chapter 7 Inferences Based on the Normal Distribution

between teams ranked in the top twenty-five. For three hundred seventeen such games, the margin of victory (y = home team score–visitors score) was recorded. For these data, y = 4.57 and s = 18.29. Does this study confirm the existence of a home field advantage? Test H0 : μ = 0 versus H1 : μ > 0 at the 0.05 level of significance.

7.4.23. The first analysis done in Example 7.4.2 (using all n = 12 banks with y = 58.667) failed to reject H0: μ = 62 at the α = 0.05 level. Had μ0 been, say, 61.7 or 58.6, the same conclusion would have been reached. What do we call the entire set of μ0’s for which H0: μ = μ0 would not be rejected at the α = 0.05 level?

TESTING H0: μ = μ0 WHEN THE NORMALITY ASSUMPTION IS NOT MET

Every t test makes the same explicit assumption—namely, that the set of n yi’s is normally distributed. But suppose the normality assumption is not true. What are the consequences? Is the validity of the t test compromised?

Figure 7.4.5 addresses the first question. We know that if the normality assump- tion is true, the pdf describing the variation of the t ratio, Y−μ0S/√n , is fTn−1 (t). The lat- ter, of course, provides the decision rule’s critical values. If H0 : μ = μ0 is to be tested against H1 : μ �= μ0, for example, the null hypothesis is rejected if t is either (1) ≤ −tα/2,n−1 or (2) ≥ tα/2,n−1 (which makes the Type I error probability equal to α).

0

f (t) = pdf of t when data are not normally distributed T *

Area = �/2

Reject H0

�/2, n – 1

Reject H

Area = �/2

–t �/2, n – 1t

0

f (t) = pdf of t whenTn –1 data are normally distributed

t

Figure 7.4.5

If the normality assumption is not true, the pdf of Y−μ0S/√n will not be fTn−1 (t) and in general

P

( Y − μ0 S/

√ n

≤ −tα/2,n−1 )

+ P (

Y − μ0 S/

√ n

≥ tα/2,n−1 )

�= α

In effect, violating the normality assumption creates two α’s: The “nominal” α is the Type I error probability we specify at the outset—typically, 0.05 or 0.01. The “true” α is the actual probability that Y−μ0S/√n falls in the rejection region (when H0 is true). For the two-sided decision rule pictured in Figure 7.4.5,

true α = ∫ −tα/2,n−1

−∞ fT ∗(t) dt +

∫ ∞ tα/2,n−1

fT ∗(t) dt

Whether or not the validity of the t test is “compromised” by the normality as- sumption being violated depends on the numerical difference between the two α’s. If fT ∗(t) is, in fact, quite similar in shape and location to fTn−1 (t), then the true α will be approximately equal to the nominal α. In that case, the fact that the yi’s are not normally distributed would be essentially irrelevant. On the other hand, if fT ∗(t) and fTn−1 (t) are dramatically different (as they appear to be in Figure 7.4.5), it would fol- low that the normality assumption is critical, and establishing the “significance” of a t ratio becomes problematic.

Section 7.4 Drawing Inferences About μ 401

Unfortunately, getting an exact expression for fT ∗(t) is essentially impossible because the distribution depends on the pdf being sampled, and there is seldom any way of knowing precisely what that pdf might be. However, we can still meaningfully explore the sensitivity of the t ratio to violations of the normality assumption by simulating samples of size n from selected distributions and comparing the resulting histogram of t ratios to fTn−1 (t).

Figure 7.4.6 shows four such simulations, using Minitab; the first three consist of one hundred random samples of size n = 6. In Figure 7.4.6(a), the samples come from a uniform pdf defined over the interval [0, 1]; in Figure 7.4.6(b), the underlying pdf is the exponential with λ = 1; and in Figure 7.4.6(c), the data are coming from a Poisson pdf with λ = 5.

If the normality assumption were true, t ratios based on samples of size 6 would vary in accordance with the Student t distribution with 5 df. On pp. 401–402, fT5 (t) has been superimposed over the histograms of the t ratios coming from the three different pdfs. What we see there is really quite remarkable. The t ratios based on yi’s coming from a uniform pdf, for example, are behaving much the same way as t ratios would vary if the yi’s were normally distributed—that is, fT ∗(t) in this case appears to be very similar to fT5 (t). The same is true for samples coming from a Poisson distribution (see Theorem 4.2.2). For both of those underlying pdfs, in other words, the true α would not be much different from the nominal α.

Figure 7.4.6(b) tells a slightly different story. When samples of size 6 are drawn from an exponential pdf, the t ratios are not in particularly close agreement with

(a)

Sample distribution

0 6

0.4

0.2f (t)T5

42–2–4–6 8

t ratio (n = 6)

f (y) = 1Y

1

10

P ro

ba bi

lit y

de ns

it y

MTB > random¨100¨cl-c6; SUBC> uniform¨0¨1. MTB > rmean¨cl-c6¨c7 MTB > rstdev¨cl-c6¨c8 MTB > let¨c9¨=¨sqrt(6)*(((c7)-0.5)/(c8)) MTB > histogram¨c9

y – � n s/

y – 0.5 6s /

=

This command calculates

y

Figure 7.4.6

402 Chapter 7 Inferences Based on the Normal Distribution

(b)

Sample distribution

0 2–2–4–6–8–10–12–14 4

0.4

0.2f (t)T5

t ratio (n = 6)

MTB > random¨100¨cl-c6; SUBC> exponential¨1. MTB > rmean¨cl-c6¨c7 MTB > rstdev¨cl-c6¨c8 MTB > let¨c9¨=¨sqrt(6)*(((c7)¨-¨1.0)/(c8)) MTB¨>¨histogram¨c9

y – � 6s/

=

6

P ro

ba bi

lit y

de ns

it y

f (y) = eY –y

1.00

0 4

0.50

2 y

Sample distribution

0

0.4

0.2 f (t)T5

42–2–4

t ratio (n = 6)

(c)

MTB¨>¨random¨100¨cl-c6; SUBC¨>¨poisson¨5. MTB¨>¨rmean¨cl-c6¨c7 MTB¨>¨rstdev¨cl-c6¨c8 MTB¨>¨let¨c9¨=¨sqrt(6)*(((c7)¨-¨5.0)/(c8)) MTB¨>¨histogram¨c9

p (k) =X

0.16

0.08

0 0 2 4 6 8 10

P ro

ba bi

lit y e 5–5 k

k!

k

Figure 7.4.6 (Continued)

Section 7.4 Drawing Inferences About μ 403

fT5 (t). Specifically, very negative t ratios are occurring much more often than the Student t curve would predict, while large positive t ratios are occurring less often (see Question 7.4.24). But look at Figure 7.4.6(d). When the sample size is increased to n = 15, the skewness so prominent in Figure 7.4.6(b) is mostly gone.

Sample distribution

0

0.4

0.2f (t)T14

2–2–4

t ratio (n = 15)

(d)

f (y) = eY –y

1.00

0 4

0.50

2 6

P ro

ba bi

lit y

de ns

it y

MTB > random 100 cl-c15; SUBC > exponential 1. MTB > rmean cl-c15 c16 MTB > rstdev cl-c15 c17 MTB > let c18 = sqrt(15)*(((c16 - 1.0)/(c17)) MTB > histogram c18

y

Figure 7.4.6 (Continued)

Reflected in these specific simulations are some general properties of the t ratio:

1. The distribution of Y−μS/√n is relatively unaffected by the pdf of the yi’s (provided fY (y) is not too skewed and n is not too small).

2. As n increases, the pdf of Y−μS/√n becomes increasingly similar to fTn−1 (t).

In mathematical statistics, the term robust is used to describe a procedure that is not heavily dependent on whatever assumptions it makes. Figure 7.4.6 shows that the t test is robust with respect to departures from normality.

From a practical standpoint, it would be difficult to overstate the importance of the t test being robust. If the pdf of Y−μS/√n varied dramatically depending on the origin of the yi’s, we would never know if the true α associated with, say, a 0.05 decision rule was anywhere near 0.05. That degree of uncertainty would make the t test virtually worthless.

404 Chapter 7 Inferences Based on the Normal Distribution

Questions

7.4.24. Explain why the distribution of t ratios calcu- lated from small samples drawn from the exponential pdf, fY (y) = e−y, y ≥ 0, will be skewed to the left [recall Fig- ure 7.4.6(b)]. (Hint: What does the shape of fY (y) imply about the possibility of each yi being close to 0? If the en- tire sample did consist of yi’s close to 0, what value would the t ratio have?)

7.4.25. Suppose one hundred samples of size n = 3 are taken from each of the pdfs

(1) fY (y) = 2y, 0 ≤ y ≤ 1 and

(2) fY (y) = 4y3, 0 ≤ y ≤ 1 and for each set of three observations, the ratio

y − μ s/

√ 3

is calculated, where μ is the expected value of the par- ticular pdf being sampled. How would you expect the

distributions of the two sets of ratios to be different? How would they be similar? Be as specific as possible.

7.4.26. Suppose that random samples of size n are drawn from the uniform pdf, fY (y) = 1, 0 ≤ y ≤ 1. For each sample, the ratio t = y−0.5s/√n is calculated. Parts (b) and (d) of Figure 7.4.6 suggest that the pdf of t will become in- creasingly similar to fTn−1 (t) as n increases. To which pdf is fTn−1 (t), itself, converging as n increases?

7.4.27. On which of the following sets of data would you be reluctant to do a t test? Explain.

y(a)

y(b)

y(c)

7.5 Drawing Inferences About σ2

When random samples are drawn from a normal distribution, it is usually the case that the parameter μ is the target of the investigation. More often than not, the mean mirrors the “effect” of a treatment or condition, in which case it makes sense to apply what we learned in Section 7.4—that is, either construct a confidence interval for μ or test the hypothesis that μ = μ0.

But exceptions are not that uncommon. Situations occur where the “precision” associated with a measurement is, itself, important—perhaps even more important than the measurement’s “location.” If so, we need to shift our focus to the often used measure of variability parameter, σ2. Two key facts that we learned earlier about the population variance will now come into play. First, an unbiased estimator for σ2 based on its maximum likelihood estimator is the sample variance, S2, where

S2 = 1 n − 1

n∑ i=1

(Yi − Y)2

And, second, the ratio

(n − 1)S σ2

2

= 1 σ2

n∑ i=1

(Yi − Y)2

has a chi square distribution with n − 1 degrees of freedom. Putting these two pieces of information together allows us to draw inferences about σ2—in particular, we can construct confidence intervals for σ2 and test the hypothesis that σ2 = σ2o.

CHI SQUARE TABLES

Just as we need a t table to carry out inferences about μ (when σ2 is unknown), we need a chi square table to provide the cutoffs for making inferences involving σ2. The

Section 7.5 Drawing Inferences About σ2 405

layout of chi square tables is dictated by the fact that all chi square pdfs (unlike Z and t distributions) are skewed (see, for example, Figure 7.5.1, showing a chi square curve having 5 degrees of freedom). Because of that asymmetry, chi square tables need to provide cutoffs for both the left-hand tail and the right-hand tail of each chi square distribution.

4 8 12 160

0.15

0.10

0.05

P ro

ba bi

lit y

de ns

it y

1.145 15.086

f (y) = (3 2p) y ex –1 3/2 –y/22

5

Area = 0.05 Area = 0.01

Figure 7.5.1

Figure 7.5.2 shows the top portion of the chi square table that appears in Ap- pendix A.3. Successive rows refer to different chi square distributions (each having a different number of degrees of freedom). The column headings denote the areas to the left of the numbers listed in the body of the table.

p

df .01 .025 .05 .10 .90 .95 .975 .99

6.635 9.210

11.345 13.277 15.086 16.812 18.475 20.090 21.666 23.209 24.725 26.217

5.024 7.378 9.348

11.143 12.832 14.449 16.013 17.535 19.023 20.483 21.920 23.336

3.841 5.991 7.815 9.488

11.070 12.592 14.067 15.507 16.919 18.307 19.675 21.026

2.706 4.605 6.251 7.779 9.236

10.645 12.017 13.362 14.684 15.987 17.275 18.549

0.0158 0.211 0.584 1.064 1.610 2.204 2.833 3.490 4.168 4.865 5.578 6.304

0.00393 0.103 0.352 0.711 1.145 1.635 2.167 2.733 3.325 3.940 4.575 5.226

0.000982 0.0506 0.216 0.484 0.831 1.237 1.690 2.180 2.700 3.247 3.816 4.404

0.000157

2.558 3.053 3.571

0.0201 0.115 0.297 0.554 0.872 1.239 1.646 2.088

1 2 3 4 5 6 7 8 9

10 11 12

Figure 7.5.2

We will use the symbol χ2p,n to denote the number along the horizontal axis that cuts off, to its left, an area of p under the chi square distribution with n degrees of freedom. For example, from the fifth row of the chi square table, we see the num- bers 1.145 and 15.086 under the column headings .05 and .99, respectively. It follows that

P ( χ25 ≤ 1.145

) = 0.05 and

P ( χ25 ≤ 15.086

) = 0.99 (see Figure 7.5.1). In terms of the χ2p,n notation, 1.145 = χ2.05,5 and 15.086 = χ2.99,5. (The area to the right of 15.086, of course, must be 0.01.)

406 Chapter 7 Inferences Based on the Normal Distribution

CONSTRUCTING CONFIDENCE INTERVALS FOR σ2

Since (n−1)S 2

σ2 has a chi square distribution with n − 1 degrees of freedom, we can

write

P [ χ2α/2,n−1 ≤

(n − 1)S2 σ2

≤ χ21−α/2,n−1 ]

= 1 − α (7.5.1)

If Equation 7.5.1 is then inverted to isolate σ2 in the center of the inequalities, the two endpoints will necessarily define a 100(1 − α)% confidence interval for the population variance. The algebraic details are left as an exercise.

Theorem 7.5.1

Let s2 denote the sample variance calculated from a random sample of n observa- tions drawn from a normal distribution with mean μ and variance σ2. Then

a. a 100(1 − α)% confidence interval for σ2 is the set of values( (n − 1)s2 χ21−α/2,n−1

, (n − 1)s2 χ2

α/2,n−1

)

b. a 100(1 − α)% confidence interval for σ is the set of values(√ (n − 1)s2 χ21−α/2,n−1

,

√ (n − 1)s2 χ2

α/2,n−1

)

CASE STUDY 7.5.1

The chain of events that define the geological evolution of the Earth began hun- dreds of millions of years ago. Fossils play a key role in documenting the relative times those events occurred, but to establish an absolute chronology, scientists rely primarily on radioactive decay.

One of the dating techniques uses a rock’s potassium-argon ratio. Almost all minerals contain potassium (K) as well as certain of its isotopes, including 40K. The latter, though, is unstable and decays into isotopes of argon and calcium, 40Ar and 40Ca. By knowing the rates at which the various daughter products are formed and by measuring the amounts of 40Ar and 40K present in a specimen, geologists can estimate the object’s age.

Critical to the interpretation of any such dates, of course, is the precision of the underlying procedure. One obvious way to estimate that precision is to use the technique on a sample of rocks known to have the same age. Whatever variation occurs, then, from rock to rock is reflecting the inherent precision (or lack of precision) of the procedure.

Table 7.5.1 lists the potassium-argon estimated ages of nineteen mineral sam- ples, all taken from the Black Forest in southeastern Germany (118). Assume that the procedure’s estimated ages are normally distributed with (unknown) mean μ and (unknown) variance σ2. Construct a 95% confidence interval for σ.

Section 7.5 Drawing Inferences About σ2 407

Table 7.5.1

Specimen Estimated Age (millions of years)

1 249 2 254 3 243 4 268 5 253 6 269 7 287 8 241 9 273

10 306 11 303 12 280 13 260 14 256 15 278 16 344 17 304 18 283 19 310

Here

19∑ i=1

yi = 5261

19∑ i=1

y2i = 1,469,945

so the sample variance is 733.4:

s2 = 19(1,469,945) − (5261) 2

19(18) = 733.4

Since n = 19, the critical values appearing in the left-hand and right-hand limits of the σ confidence interval come from the chi square pdf with 18 df. According to Appendix Table A.3,

P ( 8.23 < χ218 < 31.53

) = 0.95 so the 95% confidence interval for the potassium-argon method’s precision is the set of values

(√ (19 − 1)(733.4)

31.53 ,

√ (19 − 1)(733.4)

8.23

) = (20.5 million years, 40.0 million years)

408 Chapter 7 Inferences Based on the Normal Distribution

Example 7.5.1

The width of a confidence interval for σ2 is a function of both n and S2:

Width = upper limit − lower limit

= (n − 1)S 2

χ2 α/2,n−1

− (n − 1)S 2

χ21−α/2,n−1

= (n − 1)S2 (

1 χ2

α/2,n−1 − 1

χ21−α/2,n−1

) (7.5.2)

As n gets larger, the interval will tend to get narrower because the unknown σ2 is being estimated more precisely. What is the smallest number of observations that will guarantee that the average width of a 95% confidence interval for σ2 is no greater than σ2?

Since S2 is an unbiased estimator for σ2, Equation 7.5.2 implies that the expected width of a 95% confidence interval for the variance is the expression

E(width) = (n − 1)σ2 (

1 χ2

.025,n−1 − 1

χ2 .975,n−1

)

Clearly, then, for the expected width to be less than or equal to σ2, n must be chosen so that

(n − 1) (

1 χ2

.025,n−1 − 1

χ2 .975,n−1

) ≤ 1

Trial and error can be used to identify the desired n. The first three columns in Table 7.5.2 come from the chi square distribution in Appendix Table A.3. As the computation in the last column indicates, n = 39 is the smallest sample size that will yield 95% confidence intervals for σ2 whose average width is less than σ2.

Table 7.5.2

n χ2.025,n−1 χ 2 .975,n−1 (n − 1)

( 1

χ2.025,n−1 − 1

χ2.975,n−1

) 15 5.629 26.119 1.95 20 8.907 32.852 1.55 30 16.047 45.722 1.17 38 22.106 55.668 1.01 39 22.878 56.895 0.99

TESTING H0: σ2 = σ20 The generalized likelihood ratio criterion introduced in Section 6.5 can be used to set up hypothesis tests for σ2. The complete derivation appears in Appendix 7.A.3. Theorem 7.5.2 states the resulting decision rule. Playing a key role—just as it did in the construction of confidence intervals for σ2—is the chi square ratio from Theorem 7.3.2.

Section 7.5 Drawing Inferences About σ2 409

Theorem 7.5.2

Let s2 denote the sample variance calculated from a random sample of n observa- tions drawn from a normal distribution with mean μ and variance σ2. Let χ2 = (n − 1)s2/σ20. a. To test H0 : σ2 = σ20 versus H1 : σ2 > σ20 at the α level of significance, reject H0 if

χ2 ≥ χ21−α,n−1. b. To test H0 : σ2 = σ20 versus H1 : σ2 < σ20 at the α level of significance, reject H0 if

χ2 ≤ χ2 α,n−1.

c. To test H0 : σ2 = σ20 versus H1 : σ2 �= σ20 at the α level of significance, reject H0 if χ2 is either (1) ≤ χ2

α/2,n−1 or (2) ≥ χ21−α/2,n−1.

CASE STUDY 7.5.2

Mutual funds are investment vehicles consisting of a portfolio of various types of investments. If such an investment is to meet annual spending needs, the owner of shares in the fund is interested in the average of the annual returns of the fund. Investors are also concerned with the volatility of the annual returns, mea- sured by the variance or standard deviation. One common method of evaluat- ing a mutual fund is to compare it to a benchmark, the Lipper Average being one of these. This index number is the average of returns from a universe of mutual funds.

The Global Rock Fund is a typical mutual fund, with heavy investments in international funds. It claimed to best the Lipper Average in terms of volatil- ity over the period from 1989 through 2007. Its returns are given in the table below.

Investment Investment Year Return % Year Return %

1989 15.32 1999 27.43 1990 1.62 2000 8.57 1991 28.43 2001 1.88 1992 11.91 2002 −7.96 1993 20.71 2003 35.98 1994 −2.15 2004 14.27 1995 23.29 2005 10.33 1996 15.96 2006 15.94 1997 11.12 2007 16.71 1998 0.37

The sample standard deviation for these nineteen returns is 11.28%; the (true) corresponding volatility measure for Lipper Averages is known to be 11.67%. The question to be answered is whether the decrease from 11.67% to 11.28% is statistically significant.

Let σ2 denote the true volatility characteristic of the Global Rock Fund. The hypothesis to be tested, then, would be written

(Continued on next page)

410 Chapter 7 Inferences Based on the Normal Distribution

(Case Study 7.5.2 continued)

H0 : σ2 = (11.67)2

versus

H1 : σ2 < (11.67)2

Let α = 0.05. With n = 19, the critical value for the chi square ratio (from part (b) of Theorem 7.5.2) is χ2

α,n−1 = χ2.05,18 = 9.390 (see Figure 7.5.3). But

χ2 = (n − 1)s 2

σ20 = (19 − 1)(11.28)

2

(11.67)2 = 16.82

so our decision is clear: Do not reject H0. P

ro ba

bi lit

y de

ns it

y

Area = 0.05

9.390 Reject H0

0.08

0 0 5 10 15 20 25 30 35

0.01

0.02

0.03

0.04

0.05

0.06

0.07

f (y) x2

18

Figure 7.5.3

Questions

7.5.1. Use Appendix Table A.3 to find the following cut- offs and indicate their location on the graph of the appro- priate chi square distribution. (a) χ2

.95,14

(b) χ2.90,2 (c) χ2

.025,9

7.5.2. Evaluate the following probabilities: (a) P

( χ217 ≥ 8.672

) (b) P

( χ26 < 10.645

) (c) P

( 9.591 ≤ χ220 ≤ 34.170

) (d) P

( χ22 < 9.210

) 7.5.3. Find the value y that satisfies each of the following equations:

(a) P ( χ29 ≥ y

) = 0.99 (b) P

( χ215 ≤ y

) = 0.05 (c) P

( 9.542 ≤ χ222 ≤ y

) = 0.09 (d) P

( y ≤ χ231 ≤ 48.232

) = 0.95 7.5.4. For what value of n is each of the following state- ments true? (a) P

( χ2n ≥ 5.009

) = 0.975 (b) P

( 27.204 ≤ χ2n ≤ 30.144

) = 0.05 (c) P

( χ2n ≤ 19.281

) = 0.05 (d) P

( 10.085 ≤ χ2n ≤ 24.769

) = 0.80 7.5.5. For df values beyond the range of Appendix Table A.3, chi square cutoffs can be approximated by us- ing a formula based on cutoffs from the standard normal

Section 7.5 Drawing Inferences About σ2 411

pdf, fZ(z). Define χ2p,n and z ∗ p so that P

( χ2n ≤ χ2p,n

) = p and P(Z ≤ z∗p) = p, respectively. Then

χ2p,n .= n (

1 − 2 9n

+ z∗p √

2 9n

)3

Approximate the 95th percentile of the chi square distri- bution with 200 df. That is, find the value of y for which

P ( χ2200 ≤ y

) .= 0.95 7.5.6. Let Y1,Y2, . . . ,Yn be a random sample of size n from a normal distribution having mean μ and variance σ2. What is the smallest value of n for which the following is true?

P (

S2

σ2 < 2 )

≥ 0.95

(Hint: Use a trial-and-error method.)

7.5.7. Start with the fact that (n − 1)S2/σ2 has a chi square distribution with n − 1 df (if the Yi’s are normally distributed) and derive the confidence interval formulas given in Theorem 7.5.1.

7.5.8. A random sample of size n = 19 is drawn from a normal distribution for which σ2 = 12.0. In what range are we likely to find the sample variance, s2? Answer the question by finding two numbers a and b such that

P(a ≤ S2 ≤ b) = 0.95 7.5.9. How long sporting events last is quite variable. This variability can cause problems for TV broadcasters, since the amount of commercials and commentator blather varies with the length of the event. As an example of this variability, the table below gives the lengths for a random sample of middle-round contests at the 2008 Wimbledon Championships in women’s tennis.

Match Length (minutes)

Cirstea-Kuznetsova 73 Srebotnik-Meusburger 76 De Los Rios-V. Williams 59 Kanepi-Mauresmo 104 Garbin-Szavay 114 Bondarenko-Lisicki 106 Vaidisova-Bremond 79 Groenefeld-Moore 74 Govortsova-Sugiyama 142 Zheng-Jankovic 129 Perebiynis-Bammer 95 Bondarenko-V. Williams 56 Coin-Mauresmo 84 Petrova-Pennetta 142 Wozniacki-Jankovic 106 Groenefeld-Safina 75

Data from: 2008.usopen.org/en US/scores/cmatch/index.html?promo=t.

(a) Assume that match lengths are normally distributed. Use Theorem 7.5.1 to construct a 95% confidence interval for the standard deviation of match lengths. (b) Use these same data to construct two one-sided 95% confidence intervals for σ.

7.5.10. How much interest certificates of deposit (CDs) pay varies by financial institution and also by length of the investment. A large sample of national one-year CD offerings in 2009 showed an average interest rate of 1.84 and a standard deviation σ = 0.262. A five-year CD ties up an investor’s money, so it usually pays a higher rate of interest. However, higher rates might cause more variability. The table lists the five-year CD rate offerings from n = 10 banks in the northeast United States. Find a 95% confidence interval for the standard deviation of five-year CD rates. Do these data suggest that interest rates for five-year CDs are more variable than those for one-year certificates?

Bank Interest Rate (%)

Domestic Bank 2.21 Stonebridge Bank 2.47 Waterfield Bank 2.81 NOVA Bank 2.81 American Bank 2.96 Metropolitan National Bank 3.00 AIG Bank 3.35 iGObanking.com 3.44 Discover Bank 3.44 Intervest National Bank 3.49

Data from: Company reports.

7.5.11. In Case Study 7.5.1, the 95% confidence interval was constructed for σ rather than for σ2. In practice, is an experimenter more likely to focus on the standard devia- tion or on the variance, or do you think that both formu- las in Theorem 7.5.1 are likely to be used equally often? Explain.

7.5.12. (a) Use the asymptotic normality of chi square ran- dom variables (see Question 7.3.6) to derive large-sample confidence interval formulas for σ and σ2. (b) Use your answer to part (a) to construct an approx- imate 95% confidence interval for the standard devi- ation of estimated potassium-argon ages based on the nineteen yi’s in Table 7.5.1. How does this confidence in- terval compare with the one in Case Study 7.5.1?

7.5.13. If a 90% confidence interval for σ2 is reported to be (51.47, 261.90), what is the value of the sample standard deviation?

7.5.14. Let Y1,Y2, . . . ,Yn be a random sample of size n from the pdf

fY (y) = (

1 θ

) e−y/θ, y > 0; θ > 0

412 Chapter 7 Inferences Based on the Normal Distribution

(a) Use moment-generating functions to show that the ratio 2nY/θ has a chi square distribution with 2n df. (b) Use the result in part (a) to derive a 100(1−α)% con- fidence interval for θ.

7.5.15. Another method for dating rocks was used before the advent of the potassium-argon method described in Case Study 7.5.1. Because of a mineral’s lead content, it was capable of yielding estimates for this same time pe- riod with a standard deviation of 30.4 million years. The potassium-argon method in Case Study 7.5.1 had a smaller sample standard deviation of

√ 733.4 = 27.1 million years.

Is this “proof” that the potassium-argon method is more precise? Using the data in Table 7.5.1, test at the 0.05 level whether the potassium-argon method has a smaller stan- dard deviation than the older procedure using lead.

7.5.16. When working properly, the amounts of cement that a filling machine puts into 25-kg bags have a standard deviation (σ) of 1.0 kg. In the next column are the weights recorded for thirty bags selected at random from a day’s production. Test H0: σ2 = 1 versus H1: σ2 > 1 using the α = 0.05 level of significance. Assume that the weights are normally distributed.

26.18 24.22 24.22 25.30 26.48 24.49 25.18 23.97 25.68 24.54 25.83 26.01 25.14 25.05 25.50

25.44 26.24 25.84 24.49 25.46 26.09 25.01 25.01 25.21 25.12 24.71 26.04 25.67 25.27 25.23

Use the following sums: 30∑

i=1 yi = 758.62 and

30∑ i=1

y2i = 19,195.7938

7.5.17. A stock analyst claims to have devised a mathemat- ical technique for selecting high-quality mutual funds and promises that a client’s portfolio will have higher average ten-year annualized returns and lower volatility; that is, a smaller standard deviation. After ten years, one of the analyst’s twenty-four-stock portfolios showed an average ten-year annualized return of 11.50% and a standard de- viation of 10.17%. The benchmarks for the type of funds considered are a mean of 10.10% and a standard deviation of 15.67%. (a) Let μ be the mean for a twenty-four-stock portfolio se- lected by the analyst’s method. Test at the 0.05 level that the portfolio beat the benchmark; that is, test H0: μ = 10.1 versus H1: μ > 10.1. (b) Let σ be the standard deviation for a twenty-four- stock portfolio selected by the analyst’s method. Test at the 0.05 level that the portfolio beat the benchmark; that is, test H0: σ = 15.67 versus H1: σ < 15.67.

7.6 Taking a Second Look at Statistics (Type II Error) For data that are normal, and when the variance σ2 is known, both Type I errors and Type II errors can be determined, staying within the family of normal distributions. (See Example 6.4.1, for instance.) As the material in this chapter shows, the situa- tion changes radically when σ2 is not known. With the development of the Student t distribution, tests of a given level of significance α can be constructed. But what is the Type II error of such a test?

To answer this question, let us first recall the form of the test statistic and critical region testing, for example,

H0 : μ = μ0 versus H1 : μ > μ0 The null hypothesis is rejected if

Y − μ0 S/

√ n

≥ tα,n−1

The probability of the Type II error, β, of the test at some value μ1 > μ0 is

P

( Y − μ0 S/

√ n

< tα,n−1

)

However, since μ0 is not the mean of Y under H1, the distribution of Y−μ0 S/

√ n is not

Student t. Indeed, a new distribution is called for.

Section 7.6 Taking a Second Look at Statistics (Type II Error) 413

The following algebraic manipulations help to place the needed density into a recognizable form.

Y − μ0 S/

√ n

= Y − μ1 + (μ1 − μ0) S/

√ n

= Y−μ1

σ + (μ1−μ0)

σ

S/ √

n σ

= Y−μ1 σ/

√ n +

(μ1−μ0) σ/

√ n

S/σ

= Y−μ1 σ/

√ n +

(μ1−μ0) σ/

√ n√

(n−1)S2/σ2 n−1

= Y−μ1 σ/

√ n + δ√

(n−1)S2/σ2 n−1

= Z + δ√ U

n−1

where Z = Y−μ1 σ/

√ n is normal, U =

(n−1)S2 σ2

is a chi square variable with n − 1 degrees of freedom, and δ = (μ1−μ0)

σ/ √

n is an (unknown) constant. Note that the random variable Z+δ√

U n−1

differs from the Student t with n − 1 degrees of freedom Z√ U

n−1 only because

of the additive term δ in the numerator. But adding δ changes the nature of the pdf significantly.

An expression of the form Z+δ√ U

n−1 is said to have a noncentral t distribution with

n − 1 degrees of freedom and noncentrality parameter δ. The probability density function for a noncentral t variable is now well known

(105). Even though there are computer approximations to the distribution, not know- ing σ2 means that δ is also unknown. One approach often taken is to specify the dif- ference between the true mean and the hypothesized mean as a given proportion of σ. That is, the Type II error is given as a function of μ1−μ0

σ rather than μ1. In some

cases, this quantity can be approximated by μ1−μ0s . The following numerical example will help to clarify these ideas.

Example 7.6.1

Suppose we wish to test H0 : μ = μ0 versus H1 : μ > μ0 at the α = 0.05 level of significance. Let n = 20. In this case the test is to reject H0 if the test statistic y−μ0s/√n is greater than t.05,19 = 1.7291. What will be the Type II error if the mean has shifted by 0.5 standard deviations to the right of μ0?

Saying that the mean has shifted by 0.5 standard deviations to the right of μ0 is equivalent to setting μ1−μ0

σ = 0.5. In that case, the noncentrality parameter is

δ = μ1−μ0 σ/

√ n = (0.5) ·

√ 20 = 2.236.

The probability of a Type II error is

P(T19,2.236 ≤ 1.7291) where T19,2.236 is a noncentral t variable with 19 degrees of freedom and noncentrality parameter 2.236.

To calculate this quantity, we need the cdf of T19,2.236. Fortunately, many statisti- cal software programs have this function.

Using such software for the Student t distribution with 19 DF and noncentrality parameter 2.236 gives the cdf FX (1.729) = 0.304828.

Thus, the sought-after Type II error to three decimal places is 0.305.

SIMULATIONS

As we have seen, with enough distribution theory, the tools for finding Type II errors for the Student t test exist. Also, there are noncentral chi square and F distributions.

However, the assumption that the underlying data are normally distributed is necessary for such results. In the case of Type I errors, we have seen that the t test is somewhat robust with regard to the data deviating from normality. (See Section 7.4.)

414 Chapter 7 Inferences Based on the Normal Distribution

In the case of the noncentral t, dealing with departures from normality presents sig- nificant analytical challenges. But the empirical approach of using simulations can bypass such difficulties and still give meaningful results.

To start, consider a simulation of the problem presented in Example 7.6.1. Sup- pose the data have a normal distribution with μ0 = 5 and σ = 3. The sample size is n = 20. Suppose we want to find the Type II error when the true δ = 2.236. For the given σ = 3, this is equivalent to

2.236 = μ1 − μ0 σ/

√ n

= μ1 − 5 3/

√ 20

or μ1 = 6.5. A Type II error occurs if the test statistic is less than 1.7291. In this case, H0 would

be accepted when rejection is the proper decision. Using Minitab, two hundred samples of size 20 from the normal distribution with

μ = 6.5 and σ2 = 9 are generated: Minitab produces a 200 × 20 array. For each row of the array, the test statistic y−5

s/ √

20 is calculated and placed in column 21. If this value

is less than 1.7291, a 1 is placed in that row of column 22; otherwise a 0 goes there. The sum of the entries in column 22 gives the observed number of Type II errors. Based on the computed value of the Type II error, 0.305, for the assumed value of δ, this observed number should be approximately 200(0.305) = 61.

The Minitab simulation gave sixty-four observed Type II errors—a very close figure to what was expected.

The robustness for Type II errors can lead to analytical thickets. However, sim- ulation can again shed some light on Type II errors in some cases. As an example, suppose the data are not normal, but gamma with r = 4.694 and λ = 0.722. Even though the distribution is skewed, these values make the mean μ = 6.5 and the variance σ2 = 9, as in the normal case above. Again relying on Minitab to give two hundred random samples of size 20, the observed number of Type II errors is sixty, so the test has some robustness for Type II errors in that case. Even though the data are not normal, the key statistic in the analysis, y, will be approximately normal by the Central Limit Theorem.

If the distribution of the underlying data is unknown or extremely skewed, non- parametric tests, like the ones covered in Chapter 14 and in (31) are advised.

Appendix 7.A.1 Some Distribution Results for Y and S2

Theorem 7.A.1.1

Let Y1,Y2, . . . ,Yn be a random sample of size n from a normal distribution with mean μ and variance σ2. Define

Y = 1 n

n∑ i=1

Yi and S2 = 1n − 1 n∑

i=1 (Yi − Y)2

Then

a. Y and S2 are independent.

b. (n−1)S 2

σ2 has a chi square distribution with n − 1 degrees of freedom.

Proof The proof of this theorem relies on certain linear algebra techniques as well as a change-of-variables formula for multiple integrals. Definition 7.A.1.1 and the Lemma that follows review the necessary background results. For further details, see (49) or (226).

Appendix 7.A.1 Some Distribution Results for Y and S2 415

Definition 7.A.1.1 a. A matrix A is said to be orthogonal if AAT = I. b. Let β be any n-dimensional vector over the real numbers. That is, β =

(c1, c2, . . . , cn), where each c j is a real number. The length of β will be de- fined as

‖ β ‖= (c21 + · · · + c2n)1/2 (Note that ‖ β ‖2= ββT .)

Lemma a. A matrix A is orthogonal if and only if

‖ Aβ ‖=‖ β ‖ for each β b. If a matrix A is orthogonal, then det A = 1. c. Let g be a one-to-one mapping with a continuous derivative on a subset, D, of

n-space. Then∫ g(D)

f (x1, . . . , xn) dx1 · · · dxn = ∫

D f [g(y1, . . . , yn)] det J(g) dy1 · · · dyn

where J(g) is the Jacobian of the transformation.

Set Xi = (Yi − μ)/σ for i = 1, 2, . . . , n. Then all the Xi’s are N(0, 1). Let A be an n × n orthogonal matrix whose last row is ( 1√n , 1√n , . . . , 1√n). Let ⇀X = (X1, . . . , Xn)T and define

Z = (Z1, Z2, . . . , Zn)T by the transformation ⇀

Z = A ⇀X . (Note that Zn =( 1√ n

) X1 + · · · +

( 1√ n

) Xn =

√ n X .)

For any set D,

P( ⇀

Z ∈ D) = P(A ⇀X ∈ D) = P( ⇀X ∈ A−1D)

= ∫

A−1D fX1,...,Xn (x1, . . . , xn) dx1 · · · dxn

= ∫

D fX1,...,Xn [g(

⇀z)] det J(g) dz1 · · · dzn

= ∫

D fX1,...,Xn (A

−1⇀z) · 1 · dz1 · · · dzn

where g(⇀z) = A−1⇀z. But A−1 is orthogonal, so setting (x1, . . . , xn)T = A−1z, we have that

x21 + · · · + x2n = z21 + · · · + z2n Thus

fX1,...,Xn ( ⇀

x) = (2π)−n/2e−(1/2) (

x21+···+x2n )

= (2π)−n/2e−(1/2) (

z21+···+z2n )

From this we conclude that

P( ⇀

Z ∈ D) = ∫

D (2π)−n/2e−(n/2)

( z21+···+z2n

) dz1 · · · dzn

implying that the Zj’s are independent standard normals.

416 Chapter 7 Inferences Based on the Normal Distribution

Finally,

n∑ j=1

Z2j = n−1∑ j=1

Z2j + nX 2 =

n∑ j=1

X 2j = n∑

j=1 (Xj − X )2 + nX 2

Therefore,

n−1∑ j=1

Z2j = n∑

j=1 (Xj − X )2

and X 2

(and thus X ) is independent of n∑

j=1 (Xi − X )2, so the conclusion follows

for standard normal variables. Also, since Y = σX + μ and n∑

i=1 (Yi − Y)2 =

σ2 n∑

i=1 (Xi − X )2, the conclusion follows for N(μ, σ2) variables.

Comment As part of the proof just presented, we established a version of Fisher’s lemma:

Let X1, X2, . . . , Xn be independent standard normal random variables and let A be an orthogonal matrix. Define (Z1, . . . , Zn)T = A(X1, . . . , Xn)T . Then the Zi’s are independent standard normal random variables.

Appendix 7.A.2 A Proof That the One-Sample t Test Is a GLRT

Theorem 7.A.2.1

The one-sample t test, as outlined in Theorem 7.4.2, is a GLRT.

Proof Consider the test of H0: μ = μ0 versus H1: μ �= μ0. The two parameter spaces restricted to H0 and H0 ∪ H1—that is, ω and Ω, respectively—are given by

ω = {(μ, σ2): μ = μ0; 0 ≤ σ2 < ∞} and

Ω = {(μ, σ2): − ∞ < μ < ∞; 0 ≤ σ2 < ∞} Without elaborating the details (see Example 5.2.4 for a very similar problem), it can be readily shown that, under ω,

μe = μ0 and σ2e = 1 n

n∑ i=1

(yi − μ0)2

Under Ω,

μe = y and σ2e = 1 n

n∑ i=1

(yi − y)2

Therefore, since

L(μ, σ2) = (

1√ 2πσ

)n exp

[ −1

2

n∑ i=1

( yi − μ

σ

)2]

Appendix 7.A.2 A Proof That the One-Sample t Test Is a GLRT 417

direct substitution gives

L(ωe) =

⎡ ⎢⎢⎢⎢⎣

√ n

√ 2π

√ n∑

i=1 (yi − μ0)2

⎤ ⎥⎥⎥⎥⎦

n

e−n/2

=

⎡ ⎢⎢⎣ ne−1

2π n∑

i=1 (yi − μ0)2

⎤ ⎥⎥⎦

n/2

and

L(Ωe) =

⎡ ⎢⎢⎣ ne−1

2π n∑

i=1 (yi − y)2

⎤ ⎥⎥⎦

n/2

From L(ωe) and L(Ωe) we get the likelihood ratio:

λ = L(ωe) L(Ωe)

=

⎡ ⎢⎢⎣

n∑ i=1

(yi − y)2 n∑

i=1 (yi − μ0)2

⎤ ⎥⎥⎦

n/2

, 0 < λ ≤ 1

As is often the case, it will prove to be more convenient to base a test on a monotonic function of λ, rather than on λ itself. We begin by rewriting the ratio’s denominator:

n∑ i=1

(yi − μ0)2 = n∑

i=1 [(yi − y) + (y − μ0)]2

= n∑

i=1 (yi − y)2 + n(y − μ0)2

Therefore,

λ =

⎡ ⎢⎢⎣1 + n(y − μ0)2n∑

i=1 (yi − y)2

⎤ ⎥⎥⎦

−n/2

= (

1 + t 2

n − 1 )−n/2

where

t = y − μ0 s/

√ n

Observe that as t2 increases, λ decreases. This implies that the original GLRT—which, by definition, would have rejected H0 for any λ that was too small, say, less than λ∗—is equivalent to a test that rejects H0 whenever t2 is too large. But t is an observation of the random variable

T = Y − μ0 S/

√ n

(= Tn−1 by Theorem 7.3.5) (Continued on next page)

418 Chapter 7 Inferences Based on the Normal Distribution

(Theorem 7.A.2.1 continued)

Thus “too large” translates numerically into tα/2,n−1:

0 < λ ≤ λ∗ ⇔ t2 ≥ (tα/2,n−1)2

But

t2 ≥ (tα/2,n−1)2 ⇔ t ≤ −tα/2,n−1 or t ≥ tα/2,n−1 and the theorem is proved.

Appendix 7.A.3 A Proof of Theorem 7.5.2

We begin by considering the test of H0: σ2 = σ20 against a two-sided H1. The relevant parameter spaces are

ω = {(μ, σ2): − ∞ < μ < ∞, σ2 = σ20} and

Ω = {(μ, σ2): − ∞ < μ < ∞, 0 ≤ σ2} In both, the maximum likelihood estimate for μ is y. In ω, the maximum likelihood

estimate for σ2 is simply σ20; in Ω, σ 2 e = (1/n)

n∑ i=1

(yi − y)2 (see Example 5.4.4). There- fore, the two likelihood functions, maximized over ω and over Ω, are

L(ωe) = (

1 2πσ20

)n/2 exp

[ −1

2

n∑ i=1

( yi − y

σ0

)2]

and

L(Ωe) =

⎡ ⎢⎢⎣ n

2π n∑

i=1 (yi − y)2

⎤ ⎥⎥⎦

n/2

exp

⎧⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎩

−n 2

n∑ i=1

⎡ ⎢⎢⎢⎢⎣

yi − y√ n∑

i=1 (yi − y)2

⎤ ⎥⎥⎥⎥⎦

2⎫⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎭

=

⎡ ⎢⎢⎣ n

2π n∑

i=1 (yi − y)2

⎤ ⎥⎥⎦

n/2

e−n/2

It follows that the generalized likelihood ratio is given by

λ = L(ωe) L(Ωe)

=

⎡ ⎢⎢⎣

n∑ i=1

(yi − y)2

nσ20

⎤ ⎥⎥⎦

n/2

· exp [ −1

2

n∑ i=1

( yi − y

σ0

)2 + n

2

]

= (

σ2e

σ20

)n/2 · e−(n/2)

( σ2e/σ

2 0

) +n/2

Appendix 7.A.3 A Proof of Theorem 7.5.2 419

We need to know the behavior of λ, considered as a function of (σ2e/σ 2 0). For

simplicity, let x = (σ2e/σ20). Then λ = xn/2e−(n/2)x+n/2 and the inequality λ ≤ λ∗ is equivalent to xe−x ≤ e−1(λ∗)2/n. The right-hand side is again an arbitrary constant, say, k∗. Figure 7.A.3.1 is a graph of y = xe−x. Notice that the values of x = (σ2e/σ20) for which xe−x ≤ k∗, and equivalently λ ≤ λ∗, fall into two regions, one for values of σ2e/σ

2 0 close to 0 and the other for values of σ

2 e/σ

2 0 much larger than 1. According

to the likelihood ratio principle, we should reject H0 for any λ ≤ λ∗, where P(� ≤ λ∗|H0) = α. But λ∗ determines (via k∗) numbers a and b, so the critical region is C = {(σ2e/σ20) : (σ2e/σ20) ≤ a or (σ2e/σ20) ≥ b}.

Reject H0Reject H0

y = xe

k*

– x

0 a b x

Figure 7.A.3.1

Comment At this point it is necessary to make a slight approximation. Just because P(� ≤ λ∗|H0) = α, it does not follow that

P

⎡ ⎢⎢⎣ ( 1

n

) n∑ i=1

(Yi − Y)2

σ20 ≤ a

⎤ ⎥⎥⎦ = α2 = P

⎡ ⎢⎢⎣ ( 1

n

) n∑ i=1

(Yi − Y)2

σ20 ≥ b

⎤ ⎥⎥⎦

and, in fact, the two tails of the critical regions will not have exactly the same probability. Nevertheless, the two are numerically close enough that we will not substantially compromise the likelihood ratio criterion by setting each one equal to α/2.

Note that

P

⎡ ⎢⎢⎣ ( 1

n

) n∑ i=1

(Yi − Y)2

σ20 ≤ a

⎤ ⎥⎥⎦ = P

⎡ ⎢⎢⎣

n∑ i=1

(Yi − Y)2

σ20 ≤ na

⎤ ⎥⎥⎦

= P [

(n − 1)S2 σ20

≤ na ]

= P(χ2n−1 ≤ na) and, similarly,

P

⎡ ⎢⎢⎣ ( 1

n

) n∑ i=1

(Yi − Y)2

σ20 ≥ b

⎤ ⎥⎥⎦ = P(χ2n−1 ≥ nb)

420 Chapter 7 Inferences Based on the Normal Distribution

Thus we will choose as critical values χ2 α/2,n−1 and χ

2 1−α/2,n−1 and reject H0 if either

(n − 1)s2 σ20

≤ χ2α/2,n−1 or

(n − 1)s2 σ20

≥ χ21−α/2,n−1

See Figure 7.A.3.2.

� 2

2 � /2, n – 1

Reject H0Reject H0

� 21 – � /2, n – 1

distribution2n – 1

� 2

D en

si ty

Figure 7.A.3.2

Comment One-sided tests for dispersion are set up in a similar fashion. In the case of

H0: σ2 = σ20 versus

H1: σ2 < σ20

H0 is rejected if

(n − 1)s2 σ20

≤ χ2α,n−1

For

H0: σ2 = σ20 versus

H1: σ2 > σ20

H0 is rejected if

(n − 1)s2 σ20

≥ χ21−α,n−1

Chapte r

8Types of Data: A BriefOverview CHAPTER OUTLINE

8.1 Introduction 8.2 Classifying Data 8.3 Taking a Second

Look at Statistics (Why Samples Are Not “Valid”!)

“You haven’t told me yet,” said Lady Nuttal, “what it is your fiance does for a living.” “He’s a statistician,” replied Lamia, with an annoying sense of being on the

defensive. Lady Nuttal was obviously taken aback. It had not occurred to her statisticians

entered into normal social relationships. The species, she would have surmised, was perpetuated in some collateral manner, like mules.

“But Aunt Sara, it’s a very interesting profession,” said Lamia warmly. “I don’t doubt it,” said her aunt, who obviously doubted it very much. “To

express anything important in mere figures is so plainly impossible that there must be endless scope for well-paid advice on how to do it. But don’t you think that life with a statistician would be rather, shall we say, humdrum?”

Lamia was silent. She felt reluctant to discuss the surprising depth of emotional possibility which she had discovered below Edward’s numerical veneer.

“It’s not the figures themselves,” she said finally, “it’s what you do with them that matters.”

—K.A.C. MANDERVILLE, The Undoing of Lamia Gurdleneck

8.1 INTRODUCTION Chapters 6 and 7 have introduced the basic principles of statistical inference. The typical objective in that material was either to construct a confidence interval or to test the credibility of a null hypothesis. A variety of formulas and decision rules were derived to accommodate distinctions in the nature of the data and the parameter being investigated. It should not go unnoticed, though, that every set of data in those two chapters, despite their superficial differences, shares a criti- cally important common denominator—each represents the exact same experimental design.

A working knowledge of statistics requires that the subject be pursued at two different levels. On one level, attention needs to be paid to the mathematical prop- erties inherent in the individual measurements. These are what might be thought of as the “micro” structure of statistics. What is the pdf of the Yi’s? Do we know E(Yi) or Var(Yi)? Are the Yi’s independent?

Viewed collectively, though, every set of measurements also has a certain overall structure, or design. It will be those “macro” features that we focus on in this chapter. A number of issues need to be addressed. How is one design different from another?

421

422 Chapter 8 Types of Data: A Brief Overview

Under what circumstances is a given design desirable? Or undesirable? How does the design of an experiment influence the analysis of that experiment?

The answers to some of these questions will need to be deferred until each de- sign is taken up individually and in detail later in the text. For now our objective is much more limited—Chapter 8 is meant to be a brief introduction to some of the important ideas involved in the classification of data. What we learn here will serve as a backdrop and a frame of reference for the multiplicity of statistical procedures derived in Chapters 9 through 15.

DEFINITIONS

To describe an experimental design, and to distinguish one design from another, requires that we understand several key definitions.

Factors and Factor Levels The word factor is used to denote any treatment or therapy “applied to” the subjects being measured or any relevant feature (age, sex, ethnicity, etc.) “characteristic” of those subjects. Different versions, extents, or aspects of a factor are referred to as levels.

CASE STUDY 8.1.1

Generations of athletes have been cautioned that cigarette smoking impedes per- formance. One measure of the truth of that warning is the effect of smoking on heart rate. In one study (79), six nonsmokers, six light smokers, six moder- ate smokers, and six heavy smokers each engaged in sustained physical exercise. Table 8.1.1 lists their heart rates after they had rested for three minutes.

Table 8.1.1 Heart Rates

Light Moderate Heavy Nonsmokers Smokers Smokers Smokers

69 55 66 91 52 60 81 72 71 78 70 81 58 58 77 67 59 62 57 95 65 66 79 84

Averages: 62.3 63.2 71.7 81.7

The single factor in this experiment is smoking, and its levels are the four different column headings in Table 8.1.1. A more elaborate study addressing this same concern about smoking could easily be designed to incorporate three fac- tors. Common sense tells us that the harmful effects of smoking may not be the same for men as they are for women, and they may be more (or less) pronounced in senior citizens than they are in young adults. As a factor, gender would have two levels, male and female, and age could easily have at least three—for exam- ple, 18–34, 35–64, and 65+. If all three factors were included, the format of the data table would look like Figure 8.1.1.

Section 8.1 Introduction 423

Nonsmokers Light Smokers Moderate Smokers Heavy Smokers

M F M F M F M F

18–34

Age 35–64

65+

Figure 8.1.1

Blocks Sometimes subjects or environments share certain characteristics that affect the way that levels of a factor respond, yet those characteristics are of no intrinsic interest to the experimenter. Any such set of conditions or subjects is called a block.

CASE STUDY 8.1.2

Table 8.1.2 summarizes the results of a rodent-control experiment that was car- ried out in Milwaukee, Wisconsin, over a period of ten weeks. The study’s single factor was rat poison flavor, and it had four levels—plain, butter-vanilla, roast beef, and bread.

Table 8.1.2 Bait-Acceptance Percentages

Survey Number Plain Butter-Vanilla Roast Beef Bread

1 13.8 11.7 14.0 12.6 2 12.9 16.7 15.5 13.8 3 25.9 29.8 27.8 25.0 4 18.0 23.1 23.0 16.9 5 15.2 20.2 19.0 13.7

Eight hundred baits of each flavor were placed around garbage-storage ar- eas. After two weeks, the percentages of baits taken were recorded. For the next two weeks, another set of thirty-two hundred baits were placed at a different set of locations, and the same protocol was followed. Altogether, five two-week “surveys” were completed (93).

Clearly, each survey created a unique experimental environment. Baits were placed at different locations, weather conditions would not be the same, and the availability of other sources of food might change. For those reasons and maybe others, Survey 3, for example, yielded percentages noticeably higher than those of Surveys 1 and 2. The experimenters’ sole objective, though, was to com- pare the four flavors—which did the rodents prefer? The fact that the survey “environments” were not identical was both anticipated and irrelevant. The five different surveys, then, qualify as blocks.

424 Chapter 8 Types of Data: A Brief Overview

Independent and Dependent Observations Whatever the context, measurements collected for the purpose of comparing two or more factor levels are necessarily either dependent or independent. Two or more observations are dependent if they share a particular commonality relevant to what is being measured. If there is no such linkage, the observations are independent.

An example of dependent data is the acceptance percentages recorded in Table 8.1.2. The 13.8, for example, shown in the upper-left-hand corner is measuring both the rodents’ preference for plain baits and also the environmental conditions that prevailed in Survey 1; similarly, the observation immediately to its right, 11.7, measures the rodents’ preference for the butter-vanilla flavor and the same survey environmental conditions. By definition, then, 13.8 and 11.7 are dependent measure- ments because their values have the commonality of sharing the same conditions of Survey 1. Taken together, then, the data in Table 8.1.2 are five sets of dependent observations, each set being a sample of size 4.

By way of contrast, the observations in Table 8.1.1 are independent. The 69 and 55 in the first row, for example, have nothing exceptional in common—they are simply measuring the effects of two different factor levels applied to two different people. Would the first two entries in the first column, 69 and 52, be considered dependent? No. Simply sharing the same factor level does not make observations dependent.

For reasons that will be examined in detail in later chapters, factor levels can often be compared much more efficiently with dependent observations than with in- dependent observations. Fortunately, dependent observations come about quite nat- urally in a number of different ways. Measurements made on twins, siblings, or litter- mates are automatically dependent because of the subjects’ shared genetic structure (and, of course, repeated measurements taken on the same individual are depen- dent). In agricultural experiments, crops grown in the same general location are de- pendent because they share similar soil quality, drainage, and weather conditions. Industrial measurements taken with the same piece of equipment or by the same operator are likewise dependent. And, of course, time and place (like the surveys in Table 8.1.2) are often used to induce shared conditions. Those are some of the “stan- dard” ways to make observations dependent. Over the years, experimenters have become very adept at finding “nonstandard” ways as well. We will encounter some examples of the latter in the chapters ahead.

Similar and Dissimilar Units Units also play a role in a data set’s macrostructure. Two measurements are said to be similar if their units are the same and dissimilar otherwise. Comparing the effects of different factor levels is the typical objective when the units in a set of data are all the same. This was the situation in both Case Studies 8.1.1 and 8.1.2. Dissimilar measurements are analyzed by quantifying their relationship, which is the objective in Case Study 8.1.3.

CASE STUDY 8.1.3

When Nazi Germany surrendered in 1945, the United States and the USSR were left as the world’s only superpowers. The two countries had profoundly different international objectives, and the competition and paranoia that quickly ensued produced what George Orwell coined as the “cold war.” It lasted almost forty- five years. Among its legacies was a frightening, spare-no-expense arms race. Figure 8.1.2 shows the size of the United States’ intercontinental ballistic missile arsenal for the years 1960 to 1969 (10).

About the Data The S-shaped curve pictured in Figure 8.1.2 is an example of a logistic equation. One of the most useful of all nonlinear models, the logistic

Section 8.1 Introduction 425

equation is especially good at describing growth, whether that growth refers to the acceptance of a new idea, the increase in the number of organisms belonging to a certain population, the sales penetration of a new product, or the prolifera- tion of weapons of mass destruction.

Years Years after 1959, x Number of ICBMs, y

1960 1 18 1961 2 63 1962 3 294 1963 4 424 1964 5 834 1965 6 854 1966 7 904 1967 8 1054 1968 9 1054 1969 10 1054

200

400

600

800

1000

1200

0 1 2 3 4 Years after 1959, x

N o.

o f I

C B

M s,

y

5 6 7 8 9 10

Figure 8.1.2

Quantitative Measurements and Qualitative Measurements Measurements are considered quantitative if their possible values are numerical. The heart rates in Table 8.1.1 and the bait-acceptance percentages in Table 8.1.2 are two examples. Qualitative measurements have ‘‘values’’ that are categories, characteristics, or conditions.

CASE STUDY 8.1.4

Criminologists recognize two distinct types of stalkers. Individuals who form obsessive romantic attractions to celebrities, former friends, or even complete strangers are referred to as amorous stalkers. Judicial stalkers, on the other hand, target and harass federal judges, usually in retaliation to a ruling that went con- trary to what the stalker expected.

Knowing that stalking crimes take two different forms raises an obvious question: Are the two types of stalking criminals different? One attempt to shed some light on that issue was a comparison of thirty-four subjects incarcerated in a New York jail for having violated restraining orders. Fourteen of the detainees were amorous stalkers; the others were judicial stalkers. (162).

Among the various bits of information recorded on the thirty-four subjects was the nature of their employment. Four of the amorous stalkers (29%) had white-collar professions as did ten (50%) of the judicial stalkers (see Table 8.1.3).

(Continued on next page)

426 Chapter 8 Types of Data: A Brief Overview

(Case Study 8.1.4 continued)

Table 8.1.3 Stalker Employment

Type of Stalker

Amorous Judicial

Yes 4 10 No 10 10

14 20 % “yes” 28.6 50.0

Had white- collar job?

Despite all the numbers displayed in Table 8.1.3, the data themselves are not quantitative. What we are seeing here is a quantitative summary of qualita- tive measurements. Figure 8.1.3 shows that when the data were being recorded the “Type of stalker” variable, X , had two possible qualitative outcomes—Amorous and Judicial—and the “Had white-collar job?” variable, Y , had two possible qualitative outcomes, Yes or No.

Inmate # Name Type of Stalker Had White-Collar Job?

1 ML Amorous No 2 JG Judicial Yes 3 DF Judicial No ...

... ...

... 34 CW Amorous Yes

Figure 8.1.3

About the Data The search for suspects who may have been involved in the commission of a crime can sometimes be facilitated by having a “profile” of the likely perpetrator—that is, a list of characteristics he or she is likely to have. The entries in Table 8.1.3 suggest that “Type of profession” may be a useful addition to stalker profiles.

POSSIBLE DESIGNS

The definitions just cited can give rise to a sizeable number of different experimental designs, far more than can be covered in this text. Still, the number of designs that are widely used is fairly small. Much of the data likely to be encountered fall into one of the following eight formats:

One-sample data Two-sample data k-sample data Paired data Randomized block data Regression data/Correlation data Categorical data Factorial data

The heart rates listed in Table 8.1.1, for example, are k-sample data, the ro- dent bait acceptances in Table 8.1.2 are Randomized block data, the ICBM stockpile

Section 8.2 Classifying Data 427

graphed in Figure 8.1.2 are Regression/Correlation data, and the stalker profiles dis- played in Table 8.1.3 are Categorical data.

In Section 8.2, each design will be described in general terms, illustrated with a Case Study, and reduced to a mathematical model. Special attention will be given to each one’s objectives—that is, for what type of inference is a given model likely to be used?

8.2 Classifying Data The answers to no more than five questions are needed to classify a set of data that belongs to one of the eight basic models listed in the preceding section:

1. Are the observations quantitative or qualitative?

2. Are the units similar or dissimilar?

3. Is there one factor or more than one?

4. How many factor levels are involved?

5. Are the observations dependent or independent?

In practice, these five questions are ALWAYS the starting point in EVERY statistical analysis. By identifying the data’s underlying experimental design, they dictate how the analysis must necessarily proceed.

ONE-SAMPLE DATA

The simplest of all experimental designs, the One-sample data model, consists of a single random sample of size n. Necessarily, the n observations reflect one particular set of conditions or one specific factor. Often the conditions or assumptions under which the observations are recorded dictate the probability function they likely represent. The one-sample data summarized in Table 4.2.4 of Case Study 4.2.3, for example, represent four hundred twenty-three observations drawn from a Poisson distribution. And, because of Theorem 4.2.3, the two hundred eighteen intervals between two hundred nineteen consecutive New Madrid earthquakes described in Case Study 4.2.4 can be assumed to be a sample from an exponential distribution.

By far the most frequently encountered set of assumptions associated with One- sample data, though, is that the yi’s are a random sample of size n from a normal distribution with unknown mean μ and unknown standard deviation σ. Possible in- ference procedures would be either hypothesis tests or confidence intervals for μ and/or σ, whichever would be appropriate for the experimenter’s objectives.

In describing experimental designs, the assumptions given for a set of measure- ments are often written in the form of a model equation, which, by definition, ex- presses the value of an aribitrary Yi as the sum of fixed and variable components. For One-sample data, the usual model equation is

Yi = μ + εi, i = 1, 2, . . . , n where εi is a normally distributed random variable with mean 0 and standard devia- tion σ.

CASE STUDY 8.2.1

Inventions, whether simple or complex, can take a long time to become mar- ketable. Minute Rice, for example, was developed in 1931 but appeared for the first time on grocery shelves in 1949, some eighteen years later. Listed in Ta- ble 8.2.1 are the conception dates and realization dates for seventeen familiar

(Continued on next page)

428 Chapter 8 Types of Data: A Brief Overview

(Case Study 8.2.1 continued)

products (208). Computed for each and shown in the last column is the product’s development time, y. In the case of Minute Rice, y = 18 (= 1949 − 1931).

Table 8.2.1 Product Development Times

Conception Realization Development Invention Date Date Time (years)

Automatic transmission 1930 1946 16 Ballpoint pen 1938 1945 7 Filter cigarettes 1953 1955 2 Frozen foods 1908 1923 15 Helicopter 1904 1941 37 Instant coffee 1934 1956 22 Minute Rice 1931 1949 18 Nylon 1927 1939 12 Photography 1782 1838 56 Radar 1904 1939 35 Roll-on deodorant 1948 1955 7 Telegraph 1820 1838 18 Television 1884 1947 63 Transistor 1940 1956 16 VCR 1950 1956 6 Xerox copying 1935 1950 15 Zipper 1883 1913 30

Average 22.2

About the Data In addition to exhibiting One-sample data, Table 8.2.1 is typical of the “fun list” format that appears so often in the print media. These are en- tertainment data more so than serious scientific research. Here, for example, the average development time is 22.2 years. Would it make sense to use that average as part of a formal inference procedure? Not really. If it could be assumed that these seventeen inventions were in some sense a random sample of all possible inventions, then using 22.2 years to draw an inference about the “true” average development time would be legitimate. But the arbitrariness of the inventions included in Table 8.2.1 makes that assumption highly questionable at best. Data like these are meant to be enjoyed and to inform, not to be analyzed.

TWO-SAMPLE DATA

Two-sample data consist of two independent random samples of sizes m and n, each having quantitative, similar unit measurements. Each sample is associated with a dif- ferent factor level. Sometimes the two samples are sequences of Bernoulli trials, in which case the measurements are 0’s and 1’s. Given that scenario, the data’s two pa- rameters are the unknown “success” probabilities pX and pY , and the usual inference procedure would be to test H0 : pX = pY .

Much more often, the two samples are normally distributed with possibly differ- ent means and possibly different standard deviations. If X1, X2, . . . , Xn denotes the first sample and Y1,Y2, . . . ,Ym the second, the usual model equation assumptions would be written

Xi = μX + εi, i = 1, 2, . . . , n Yj = μY + ε′j, j = 1, 2, . . . , m

Section 8.2 Classifying Data 429

where εi is normally distributed with mean 0 and standard deviation σX , and ε′j is normally distributed with mean 0 and standard deviation σY .

With Two-sample data, inference procedures are more likely to be hypothesis tests than confidence intervals. A two-sample t test is used to assess the credibility of H0 : μX = μY ; an F test is used when the objective is to choose between H0: σX = σY and, say, H1: σX �= σY . Both procedures will be described in Chapter 9.

To experimenters, Two-sample data address what is sometimes a serious flaw with One-sample data. The usual one-sample hypothesis test, H0: μ = μ0, makes the tacit assumption that the Yi’s (whose true mean is μ) were collected under the same conditions that gave rise to the ‘‘standard’’ value μ0, against which μ is being tested. There may be no way to know whether that assumption is true, or even remotely true. The two-sample format, on the other hand, lets the experimenter control the conditions (and subjects) under which both sets of measurements are taken. Doing so heightens the chances that the true means are being compared in a fair and equitable way.

CASE STUDY 8.2.2

Sunspots are tornado-like magnetic storms that appear as darkened areas on the surface of the Sun. Variations in the frequency of sunspots have attracted the at- tention of astronomers for hundreds of years. Since the late nineteenth century, daily estimates of sunspot activity have been recorded using a counting formula known as the Zurich number, RZ, where

RZ = 10 · number of sunspot groups observed + 1 · number of individual sunspots observed

Values of RZ above 120 are considered to be indicative of high sunspot activity; values below 10 denote low sunspot activity.

Meteorologists have shown a keen interest in this topic because the release of charged particles and electromagnetic radiation associated with sunspots has been suspected of being related to the frequency of hurricanes. Addressing that possibility, Table 8.2.2 shows the number of North Atlantic hurricanes that formed during the ten years on record having the highest Zurich numbers and the ten years having the lowest (43).

Table 8.2.2 Sunspot Activities

Highest Lowest

No. of No. of Year RZ Hurricanes, X Year RZ Hurricanes, Y

1947 151.6 5 1888 6.8 5 1956 141.7 4 1889 6.3 5 1957 190.2 3 1901 2.7 3 1958 184.8 7 1902 5.0 3 1959 159.0 7 1911 5.7 3 1979 155.4 5 1912 3.6 4 1980 154.6 9 1913 1.4 3 1989 157.7 7 1923 5.8 3 1990 141.8 8 1933 5.7 10 1991 145.2 4 1954 4.4 8

Average = 5.9 Average = 4.7

(Continued on next page)

430 Chapter 8 Types of Data: A Brief Overview

(Case Study 8.2.2 continued)

In the terminology introduced on p. 422, the Factor being studied here is Sunspot activity, and its two Levels are High and Low. The two random vari- ables to be compared are X , the number of hurricanes occurring in years having high sunspot activity, and Y , the number occurring in years having low sunspot activity. The question to be addressed is whether the difference between the two sample averages, x̄ = 5.9 and ȳ = 4.7, is statistically significant. The two-sample t test, described in Chapter 9, will provide an answer by deciding whether or not the null hypothesis, H0 : μX = μY should be rejected.

About the Data Regardless of what the t test in Chapter 9 concludes about the sample averages, the twenty individual measurements in Table 8.2.2 tell their own story. Two of the highest hurricane years (1933 and 1954) had two of the lowest Zurich numbers, and one of the lowest hurricane years (1957) had one of the highest Zurich numbers. For the samples to overlap that much when the two factor levels are as extreme as they could possibly be suggests that some factor or factors other than sunspot activity play a major role in the formation of hurricanes.

In point of fact, scientists now believe that hurricanes are most likely to form when the atmosphere is unstable, a condition caused by disparities in the ocean temperature and temperatures in the lower and upper atmosphere. High levels of sunspot activity do have the potential to perturb those temperatures in ways that increase the likelihood of a hurricane. But depending on the initial values for those temperatures, heightened sunspot activity also has the potential to change those temperatures in ways that decrease the chances of a hurricane. That sort of sometimes positive and sometimes negative correlation might very well explain the apparent anomalies in Table 8.2.2.

k-SAMPLE DATA

When more than two factor levels are being compared, and when the observations are quantitative, have similar units, and are independent, the measurements are said to be k-sample data. Although their assumptions are comparable, Two-sample data and k-sample data are treated as distinct experimental designs because the ways they are analyzed are totally different. The t test format that figures so prominently in the interpretation of One-sample and Two-sample data cannot be extended to accommo- date k-sample data. A more powerful technique, the analysis of variance, is needed and will be the sole topic of Chapters 12 and 13.

Their multiplicity of factor levels also requires that k-sample data be identified using double-subscript notation. The ith observation appearing in the jth factor level will be denoted Yi j, so the model equations take the form

Yi j = μ j + εi j, i = 1, 2, . . . , nj, j = 1, 2, . . . , k

where nj denotes the sample size associated with the jth factor level (n1 + n2 +· · ·+ nk = n), and εi j is a normally distributed random variable with mean 0 and the same standard deviation σ for all i and j.

The first step in analyzing k-sample data is to test H0: μ1 = μ2 = · · · = μk. Procedures are also available for testing subhypotheses involving certain factor levels irrespective of all the others—in effect, fine-tuning the focus of the inferences.

Section 8.2 Classifying Data 431

CASE STUDY 8.2.3

The notion that Earth is surrounded by a magnetic field was first articulated by an English physician, William Gilbert (1540–1603). Understanding how that field came to be and how it would likely evolve have proven to be challenging problems for researchers to fully explain.

Some planets—most notably, Mars and Venus—do not even have magnetic fields. And over the years, ours has shown some rather erratic behavior. When the magnetic north pole was first found in 1831, it was located over northern Canada, fairly close to the geographic north pole. Since then it has moved almost 25 miles a year and in a generation or so is likely to be over Russia. Moreover, there is irrefutable evidence that the polarity of the field has sometimes comp- letely flipped, meaning the north magnetic pole became the south magnetic pole, and vice versa (which, if it happened again, could be a real problem for anyone using a GPS device or for migratory birds who think they are flying to a sunny beach in Miami only to end up in a two-foot snowdrift in downtown Anchorage).

Surprisingly, much of what scientists know about the history of our magnetic field comes from volcanoes. When the molten lava emitted during a volcanic eruption cools, the nickel and iron particles it contains line up in the direction of the magnetic field prevailing at the time. Analyzing lava flows from different eruptions of the same volcano can then provide evidence of the rate at which the magnetic field is changing.

A case in point are the data in Table 8.2.3 showing the directions of the magnetic fields “captured” by the 1669, 1780, and 1865 eruptions of Mount Etna (181). Listed for each of three blocks of solidified lava randomly selected from each of the eruptions is its magnetic declination, defined to be the angular dif- ference measured on a flat map between the true north (the northern end of the Earth’s axis of rotation) and the prevailing magnetic north.

Table 8.2.3 Declination of Magnetic Field

In 1669 In 1780 In 1865

57.8 57.9 52.7 60.2 55.2 53.0 60.3 54.8 49.4

Averages: 59.4 56.0 51.7

At issue from a statistical perspective is whether the differences between the three averages—59.4, 56.0, and 51.7—are great enough (relative to the dif- ferences within the averages) to reject the null hypothesis that the magnetic field was directionally the same for these three time periods.

The key to drawing inferences based on between-sample and within-sample variation turns out to be the F distribution, which was introduced in Section 7.3. Because of its many applications, the F test, as it came to be known, is unques- tionably the most important data analysis technique developed in the twentieth century. It will be discussed at length in Chapters 12, 13, and 15.

About the Data Every factor in every experiment is said to be either a fixed ef- fect or a random effect—a fixed effect if the factor’s levels have been preselected by the experimenter, a random effect, otherwise. Here, “Time” would be consid- ered a random effect because its three levels—1669, 1780, and 1865—were not preselected: They were simply the years when the volcano erupted.

(Continued on next page)

432 Chapter 8 Types of Data: A Brief Overview

(Case Study 8.2.3 continued)

The statistical analyses appropriate for the first seven data models listed on p. 426 are unaffected by whether their factors would be considered fixed or ran- dom. As we will see in Chapter 15, that is not the case with Factorial data, where the nature of the factors can have a profound effect on the conclusions ultimately drawn.

PAIRED DATA

In the two-sample and k-sample designs, factor levels are compared using indepen- dent samples. An alternative is to use dependent samples by grouping the subjects into n blocks. If only two factor levels are involved, the blocks are referred to as pairs, which gives the design its name.

The responses to factor levels X and Y in the ith pair are recorded as Xi and Yi, respectively. Whatever contributions to those values are due to the conditions prevailing in Pair i will be denoted Pi. The model equations, then, can be written

Xi = μX + Pi + εi, i = 1, 2, . . . , n and

Yi = μY + Pi + ε′i, i = 1, 2, . . . , n where εi and ε′i are independent normally distributed random variables with mean 0 and standard deviations σ and σ′, respectively. The fact that Pi is the same for both Xi and Yi is what makes the samples dependent.

The statistical objective of Two-sample data and Paired data is often the same. Both use t tests to focus on the null hypothesis that the true means (μX and μY ) associated with the two factor levels are equal. A Paired-data analysis, though, tests H0: μX = μY by defining μD = μX − μY and testing H0: μD = 0. In effect, a paired t test is a one-sample t test done on the set of within-pair differences, di = xi − yi, i = 1, 2, . . . , n.

Some of the more common ways to form paired data have already been men- tioned on p. 424. Perhaps the most frequently used of those is to measure each subject twice—before a treatment has been administered, and after. The data in Table 8.2.4 show how that technique was applied in a study designed to see whether aspirin affects the rate at which a person’s blood clots.

CASE STUDY 8.2.4

Blood coagulates only after a complex chain of chemical reactions has taken place. The final step is the transformation of fibrinogen, a protein found in plasma, into fibrin, which forms the clot. The fibrinogen-fibrin reaction is triggered by another protein, thrombin, which itself is formed under the influence of still other proteins, including one called prothrombin.

A person’s blood-clotting ability is typically expressed in terms of a pro- thrombin time, which is defined to be the interval between the initiation of the thrombin-prothrombin reaction and the formation of the final clot.

Identifying factors that can modify the coagulation process is important for establishing certain therapeutic regimens. Warfarin, for example, is a widely used anticoagulant that lengthens a person’s prothrombin time as a way of helping to prevent strokes and heart attacks. And Vitamin K supplements are often rec- ommended for “bleeders” to help facilitate blood clotting by shortening their prothrombin times.

Section 8.2 Classifying Data 433

The data in Table 8.2.4 was part of a study to see what effect, if any, aspirin has on prothrombin time. Twelve adult males participated (222). Their prothrombin times were measured before and three hours after each was given two aspirin tablets (650 mg).

Table 8.2.4 Prothrombin Times (sec)

Subject Before Aspirin (xi) After Aspirin (yi) di = xi − yi 1 12.3 12.0 0.3 2 12.0 12.3 −0.3 3 12.0 12.5 −0.5 4 13.0 12.0 1.0 5 13.0 13.0 0 6 12.5 12.5 0 7 11.3 10.3 1.0 8 11.8 11.3 0.5 9 11.5 11.5 0

10 11.0 11.5 −0.5 11 11.0 11.0 0 12 11.3 11.5 −0.2

Average: 0.108

If μX and μY denote the true average prothrombin times before and after aspirin, respectively, and if μD = μX −μY , the hypotheses to be tested would be

H0 : μD = 0 versus

H1 : μD �= 0

About the Data When responses to two factor levels are to be compared, ex- perimenters often have the choice of using either the two-sample format or the paired-data format. That would be the case here. To investigate aspirin’s effect on prothrombin time using the two-sample format, the experimenter would need two sets of subjects. The first set would simply have their prothrombin times measured; the second set would be given the 650 mg of aspirin and then have their prothrombin times measured three hours later.

Which format would be better? At this point, we have no way to answer that question. It is probably true, though, that most experimenters would feel much more comfortable doing it exactly as indicated in Table 8.2.4, that is, using the paired-data format. What we will see in Chapter 13, though, is that in hindsight the two-sample format might have done just about as well. The critical issue is the amount of variability in the Pi’s, relative to the �i’s. If that ratio is small, the two-sample format is better; if the ratio is large, the paired-data format should be used. The data in Table 8.2.4 fall somewhere in between.

RANDOMIZED BLOCK DATA

Randomized block data have the same basic structure as paired data—quantitative measurements, similar units, and dependent samples; the only difference is that more than two factor levels are involved in Randomized block data. Those additional fac- tor levels, though, add a degree of complexity that the paired t test is unable to

434 Chapter 8 Types of Data: A Brief Overview

handle. Like k-sample data, Randomized block data require the analysis of variance for their interpretation.

Suppose the data set consists of k factor levels, all of which are applied in each of b blocks. The model equation for Yi j, the observation appearing in the ith block and receiving the jth factor level, then becomes

Yi j = μ j + Bi + εi j, i = 1, 2, . . . , b; j = 1, 2, . . . , k where μ j is the true average response associated with the jth factor level, Bi is the portion of the value of Yi j that can be attributed to the net effect of all the conditions that characterize Block i, and εi j is a normally distributed random variable with mean 0 and the same standard deviation σ for all i and j.

CASE STUDY 8.2.5

In recent years, the sports world has been rocked by scandals involving high- profile athletes using illegal performance-enhancing drugs (PEDs). The prob- lem in baseball has been amphetamines, steroids, and human-growth hormones. In cross-country skiing, track and field events, and cycling, the abuses have pri- marily involved blood-doping.

By definition, blood-doping refers to techniques for artificially increasing the body’s ability to bring oxygen to muscles, typically by increasing the amount of hemoglobin in the bloodstream. Often that can be accomplished by transfusions or by injections of EPO (erythropoietin), a hormone that regulates the production of red blood cells. The intended effect is to increase the athlete’s endurance.

Table 8.2.5 summarizes the results of a randomized block experiment set up to study the effects of blood-doping on marathon runners. Six subjects participated (17). Each was timed in three ten-thousand-meter races: once after receiving extra red blood cells, once after being injected with a placebo, and once after receiving no treatment whatsoever. Listed are their times (in minutes) to complete the race.

Table 8.2.5 Blood Doping

Subject No Injection Placebo Blood Doping

1 34.03 34.53 33.03 2 32.85 32.70 31.55 3 33.50 33.62 32.33 4 32.52 31.23 31.20 5 34.15 32.85 32.80 6 33.77 33.05 33.07

Clearly, the times in a given row are dependent: All three reflect to some ex- tent the inherent speed of the subject, regardless of which factor level might also be operative. Focussing on those underlying subject differences, though, would not be the objective for doing this sort of study; the primary issue to be addressed are the treatment differences. That is, if μ1, μ2, and μ3 denote the true average times characteristic of the no injection, placebo, and blood-doping factor levels, respectively, the experimenter’s first priority would be to test H0 : μ1 = μ2 = μ3. About the Data The name randomized block derives from one of the proper- ties that such data supposedly have—namely, that the factor levels within each block have been applied in a random order. To do otherwise—that is, to take the measurements in any sort of systematic fashion (however well intentioned)—is to create the opportunity for the observations to become biased. If that worst- case scenario should happen, the data are worthless because there is no way to

Section 8.2 Classifying Data 435

separate the “factor effect” from the “bias effect” (and, of course, there is no way to know for certain whether the data were biased in the first place).

For the same reasons, Two-sample data and k-sample data should be com- pletely randomized, which means that the entire set of measurements should be taken in a random order. Figure 8.2.1 shows an acceptable measurement se- quence for the performance times in Table 8.2.5 and the magnetic field declina- tions in Table 8.2.3.

Subject No Injection Placebo Blood Doping

1 2 3 1 2 1 2 3 3 2 1 3 4 2 1 3 5 3 2 1 6 3 1 2

In 1669 In 1780 In 1865

3 8 5 4 1 9 7 6 2

Figure 8.2.1

REGRESSION/CORRELATION DATA

All the experimental designs introduced up to this point share the property that their measurements have the same units. Moreover, each has had the same basic objec- tive: to quantify or to compare the effects of one or more factor levels. In contrast, Regression/Correlation data typically consist of measurements with dissimilar units, and the objective is to study the functional relationship between the variables.

Regression data often have the form (xi, Yi), i = 1, 2, . . . , n, where xi is the value of an independent variable (typically preselected by the experimenter) and Yi is a dependent random variable (usually having units different from those of xi). A par- ticularly important special case is the simple linear model,

Yi = β0 + β1xi + εi, i = 1, 2, . . . , n where εi is assumed to be normally distributed with mean 0 and standard deviation σ. Here E(Yi) = β0 + β1xi, but more generally, E(Yi) can be any function g(xi)—for example,

E(Yi) = β0xβ1i or E(Yi) = β0eβ1xi The details will not be presented in this text, but the simple linear model can be

extended to include k independent variables. The result is a multiple linear regression model,

Yi = β0 + β1x1i + β2x2i + · · · + βkxki + εi, i = 1, 2, . . . , n An important special case of the regression model occurs when the xi’s are

not preselected by the experimenter. Suppose, for example, that the relationship between height and weight is to be studied in adult males. One way to collect a set of relevant data would be to choose a random sample of n adult males and

436 Chapter 8 Types of Data: A Brief Overview

record each subject’s height and weight. Neither variable in that case would be pre- selected or controlled by the experimenter: the height, Xi, and the weight, Yi, of the ith subject are both random variables, and the measurements in that case— (X1, Y1), (X2, Y2), . . . , (Xn, Yn)—are said to be correlation data. The usual assump- tion invoked for correlation data is that the (X , Y)’s are jointly distributed according to a bivariate normal distribution (see Figure 8.2.2).

Y

X

Figure 8.2.2

The implications of the independent variable being either preselected (xi) or random (Xi) will be explored at length in Chapter 11. Suffice it to say that if the objective is to summarize the relationship between the two variables with a straight line, as it is in Figure 8.2.3, it makes absolutely no difference whether the data have the form (xi, Yi) or (Xi, Yi)—the resulting equation will be the same.

CASE STUDY 8.2.6

One of the most startling and profound scientific revelations of the twentieth century was the discovery in 1929 by the American astronomer Edwin Hubble that the universe is expanding. Hubble’s announcement shattered forever the an- cient belief that the heavens are basically in a state of cosmic equilibrium. Quite the contrary, galaxies are receding from each other at mind-bending velocities (the cluster Hydra, for example, is moving away from other clusters at the rate of 38.0 thousand miles/sec).

If v is a galaxy’s recession velocity (relative to that of any other galaxy) and d is its distance (from that other galaxy), Hubble’s law states that

v = Hd where H is known as Hubble’s constant.

Table 8.2.6 summarizes his findings. Listed are distance and velocity deter- minations made for eleven galactic clusters (26). The value of H is estimated

Table 8.2.6 Expanding Universe

Distance, d Velocity, v Cluster (millions of light-years) (thousands of miles/sec)

Virgo 22 0.75 Pegasus 68 2.4 Perseus 108 3.2 Coma Berenices 137 4.7 Ursa Major No. 1 255 9.3 Leo 315 12.0 Corona Borealis 390 13.4 Gemini 405 14.4 Bootes 685 24.5 Ursa Major No. 2 700 26.0 Hydra 1100 38.0

Section 8.2 Classifying Data 437

from these data to be 0.03544 (using a technique covered in Chapter 11). Figure 8.2.3 shows that v = 0.03544d fits the data exceptionally well.

v = 0.03544 d

Distance (millions of light-years), d

V el

oc it

y (1

00 0’

s of

m ile

s pe

r se

co nd

), v

0 200 400 600 800 1000

40

30

20

10

Figure 8.2.3

About the Data Hubble’s constant is an extremely significant number to cos- mologists. Given that distance (d) equals rate (v) times time (t) and Hubble showed that v = Hd, we can write

t = d/v = d/Hd = 1/H But t in this context is the age of the universe, or, at the very least, the amount of time elapsed since the Big Bang. To express t in, say, years, we need to reexpress the units of H. Since the v’s and d’s are given in thousands of miles per second and millions of light years, respectively, the units of H are

thousand miles (sec)(millions of light years)

But a million light years is 5.87850 × 1018 miles, so H = 0.03544 = (0.03544 thousand miles)/((sec)(5.87850 × 1018 miles))

Therefore,

t = age of the universe (in sec) = 1/H = ((sec)(5.87850 × 1018 miles))/35.44 miles = 1.6587 × 1017 seconds

or approximately 5.2 billion years. Astronomers today put the age of the uni- verse closer to 15 billion years. The reason for the discrepancy is that tech- niques for measuring interstellar distances have been greatly refined since the 1920’s when Hubble worked with the data of Table 8.2.6. If the most current dis- tance/velocity measurements are fit with an equation of the form v = Hd, the resulting value of H is found to be about a third of Hubble’s original figure, a revision that effectively multiplies by three the estimated age of the universe.

CATEGORICAL DATA

Suppose two qualitative, dissimilar variables are observed on each of n subjects, where the first variable has R possible values and the second variable, C possible values. We call such measurements Categorical data.

The number of times each value of one variable occurs with each value of the other variable is typically displayed in a contingency table, which necessarily has R

438 Chapter 8 Types of Data: A Brief Overview

rows and C columns. Whether the two variables are independent is the question that an experimenter can use categorical data to answer.

CASE STUDY 8.2.7

Parenting books and magazines are rife with discussions of birth orders and the influence they have on children’s personalities and, ultimately, on their futures. We are told that first borns are assertive, responsible, and have leadership skills (think Chairman of the Board); “in betweens” are highly competitive with diverse interests (think entrepreneur); and last borns are socially successful and have high self-esteem (think politician). What is seldom discussed are which birth orders are most likely to encourage little Mary and little Johnny to become bank robbers, spouse-abusers, or serial killers.

An exception are the categorical data summarized in Table 8.2.7 showing the relationship between birth order and a child’s likelihood of becoming a ju- venile delinquent. The subjects were 1,154 girls enrolled in public high schools. Each was asked to fill out a questionnaire that measured the degree to which she had exhibited delinquency in terms of criminal acts or immoral behavior. Each subject was also asked to indicate her birth order as being either (1) the oldest (2) “in between” (3) the youngest or (4) an only child (132).

Table 8.2.7 Birth Order and Delinquency

Oldest In Between Youngest Only Child

Delinquent Yes 24 29 35 23 behavior? No 450 312 211 70

474 341 246 93 % yes: 5.1 8.5 14.2 24.7

In statistical terms, the issue to be resolved here is whether or not the chances of a high school girl exhibiting delinquent behavior are independent of her birth order. The answer will take the form of a χ2 test, which is probably the most frequently used procedure in analyzing social science data. One type of χ2 test has already been described in Section 7.5, but the version appropriate for data similar to what appears in Table 8.2.7 will be taken up in Chapter 10.

About the Data If Birth Order and Delinquency were independent, we would expect the % yeses to be similar over the four birth orders: Here, they are most definitely not. For whatever reason in this particular set of data, girls without sib- lings were much more likely to run afoul of the law than were girls representing the other three birth orders.

Ultimately, what is most remarkable about these data is not the fact that the null hypothesis of independence is rejected but, rather, the strength of that re- jection. As we will see in Chapter 10, the P value associated with the test statistic calculated from the entries in Table 8.2.7 is basically 0. Other researchers have found linkages between delinquency and first borns as well as between delin- quency and other birth orders, or no linkage at all. For a subject that has been studied for almost one hundred years, the lack of a consensus might suggest that either the relationship is generally weak or different researchers are using dif- ferent definitions of juvenile delinquency.

Section 8.2 Classifying Data 439

FACTORIAL DATA

Factorial data are multifactor designs characterized by the number of factors in- cluded. The smallest possible number would be two. In that simplest case, Factor A would have r levels (A1, A2, . . . , Ar), Factor B, c levels (B1, B2, . . . , Bc), and n in- dependent replicates would be taken at each of the rc combinations of Ai and B j. Theoretically, the factorial model can accommodate any number of factors; in prac- tice, though, that number is usually two, three, or four (except for certain special cases discussed at the end of Chapter 15). Each factor can be either fixed or random, and the distinction is critically important (recall the discussion on p. 431).

Two basic questions need to be answered in connection with any set of factorial data. First, which, if any of the factors has a statistically significant effect on the re- sponse variable? And second, do any of the factors interact? Specifically, is the joint effect produced by levels Ai and B j different than the sum of the effects produced by Ai and B j individually? If the answer to that question is “yes,” then Factors A and B, by definition, interact. Often, the answer to the second question will be more important than the answer to the first.

CASE STUDY 8.2.8

The heights of human figures drawn by children are widely recognized by psy- chologists as a useful tool for assessing a child’s self-perception and attitude to- wards adults. Children raised with a mother and father, for example, will typically draw male figures slightly taller than female figures. If the parents divorce, though, and the father leaves the household, the male figures will tend to get shorter and shorter over time, much as the day-to-day involvement of the fathers with their children diminishes.

Table 8.2.8 shows a portion of the results from a four-factor “figure height” study, each factor having two levels:

Factor A: Sex of subject—Boy (B) or Girl (G)

Factor B: Age of subject—Elementary School (ES) or High School (HS)

Factor C: Type of figure drawn—Male figure (Mf) or Female figure (Ff)

Factor D: Subject’s family structure—Mother only (Mo) or Mother and father (MoFa)

Displayed are the average figure heights (in mm) drawn by the children belong- ing to each of the sixteen treatment combinations (138).

Table 8.2.8 Diagnostic Figure Heights

Male Figure Female Figure

Mo. Only Mo. & Fa. Mo. Only Mo. & Fa.

ES 110.1 108.2 121.8 117.6Boy HS 140.1 129.7 154.1 146.4 ES 110.0 112.2 140.3 127.1 HS 149.0 151.8 167.9 162.0Girl

About the Data Child psychiatrists familiar with “figure height” experi- ments would immediately see something very unusual about these data: the

(Continued on next page)

440 Chapter 8 Types of Data: A Brief Overview

(Case Study 8.2.8 continued)

female figures, on the average, are taller than the male figures for every combi- nation of the other three factors:

Treatment comb. Avg. Male Ht. Avg. Female Ht. Fem. Ht. − Male Ht. B/ES/Mo 110.1 121.8 +11.7 B/ES/MoFa 108.2 117.6 +9.4 B/HS/Mo 140.1 154.1 +14.0 B/HS/MoFa 129.7 146.4 +16.7 G/ES/Mo 110.0 140.3 +30.3 G/ES/MoFa 112.2 127.1 +14.9 G/HS/Mo 149.0 167.9 +18.9 G/HS/MoFa 151.8 162.0 +10.2

Studies of this sort have been done throughout the United States for quite a few years, and boys will invariably draw males taller than females. What was different about how these data were collected that might explain the obvious anomaly?

The answer to that question is not how they were collected but where they were collected. This study was not done in the United States. The subjects were all residents of Barbados, an island nation known to have something of a matri- archal society in the sense that mothers play a disproportionately prominent role in raising children, even when fathers are living in the household. So, the very fact that these data are different lends credence to the claim that figure heights are a useful tool for studying parent/child relationships.

A FLOWCHART FOR CLASSIFYING DATA

Differentiating the eight data formats just discussed are the answers to the five ques- tions cited at the beginning of this section: Are the data qualitative or quantita- tive? Are the units similar or dissimilar? Is there one factor or more than one? How many factor levels are involved? Are the samples dependent or independent? The flowchart pictured in Figure 8.2.4 shows the sequence of responses that leads to each of the eight models.

DATA MODEL EQUIVALENCIES

Typically, the experimental designs we encounter will belong to one—and only one— of the eight data models profiled in this chapter. But not always. There are three types of measurements that can each be correctly identified as representing two different data models.

Suppose, for example, a set of measurements qualifies as quantitative data, has similar units, focuses on one factor that appears with exactly two levels, and has sam- ples that are dependent. According to the flowchart in Figure 8.2.5, those measure- ments satisfy all the requirements for the paired data model and for the randomized block model. Is that a problem? No.

As we will see in the chapters ahead, each data model is analyzed in a different way based on a different set of mathematical principles. But the model “overlaps” indicated by the flowchart are situations where those two analyses end up testing the same hypotheses and the inferences they ultimately draw are exactly the same. So, if a set of data satisfies all the requirements for a paired data model and for the randomized block model, it does not matter how the experimenter chooses to characterize the data—either choice will lead to the same conclusions.

Section 8.2 Classifying Data 441

Start

Are the data qualitative or quantitative?

Qualitative

Quantitative

Similar

One factor

Two factor levels

Are the units similar or

dissimilar?

How many factor levels are included–one or two or more?

Are the samples dependent or independent?

Two sample model

k-sample model

Randomized block model

Are the samples dependent or independent?

Is there one factor or two or more

factors?

Categorical model

Dissimilar Regression model

One

factor levelfactor levels One sample

model

Dependent

Independent IndependentDependent

Paired data model

Factorial model

Two or more

Two or more

factors

Figure 8.2.4

Note: The other obvious data model overlap occurs when the answers to the first four questions on p. 427 are quantitative, similar, one, exactly two, and the answer to the fifth question is independent. Given that configuration, a set of data qualifies as a two-sample model and a k-sample model.

The third overlap referred to earlier is not obvious by looking at Figure 8.2.4. It will be discussed in Chapter 11.

Example 8.2.1

Use the flowchart as a guideline for determining the data model that each of the following examples represents.

Sulfite ions (SO2−3 ) occur at low concentrations in all wines as a by-product of the chemical reaction between sulfur dioxide and water. Many vintners artificially increase that concentration because the SO2−3 radical helps control the fermenta- tion process and ultimately lengthens the wine’s shelf life. High levels of sulfites, though, have been linked to serious respiratory problems, especially for individuals with a history of asthma, so for years their concentrations in wines have been closely monitored and regulated.

Laboratory methods for measuring sulfite levels are typically multistep proce- dures involving an aeration-oxidation apparatus that is not particularly efficient. Recently a technique known as Diffuse Reflectance Fourier Transform Infrared

442 Chapter 8 Types of Data: A Brief Overview

Spectroscopy (DRS-FTIR) was proposed as an alternative (202). The latter is easier to use and more efficient in the sense that it can measure SO2−3 concentrations using only a single drop of wine.

Its greater efficiency notwithstanding, the DRS-FTIR approach is credible only if the sulfite concentrations it reports are consistent with those found by the standard technique. To that end, Table 8.2.9 compares the SO2−3 levels measured by the two methods for two white wines and two red wines.

Table 8.2.9 Measured Concentrations of SO2−3 (μg/ml)

DRS-FTIR Standard Method

White wine 1 112.9 115.1 White wine 2 123.1 125.6 Red wine 1 135.2 132.4 Red wine 2 140.2 143.7

Data Model ID The measurements here are quantitative and similar, and “Measured Concentration” is an obvious factor having DRS-FTIR and Standard Method as its two levels.

Is “Type of Wine” a second factor? No. The fact that the wines are labelled so generically (for example, White wine 1 and Red wine 2) implies that the experi- menters had no interest in any particular one. The wines are simply serving as four different experimental environments in which to compare the SO2−3 concentrations measured by the two factor levels. The two data points in each row, therefore, repre- sent dependent samples, so Table 8.2.9 qualifies as a set of Paired data or Randomized block data (following the discussion on p. 440).

It should be noted that the objective of this experiment is a bit atypical. Usually in a Paired Data experiment the researchers are trying to reject the null hypothesis that the standard procedure and the new procedure are the same and show, instead, that the new procedure is somehow better. Here, the researchers are hoping that H0 is not rejected. They want the two measured concentrations to be the same. Their best outcome would be a test statistic with a value close to 0 and a P value close to 1.

Example 8.2.2

Selective logging refers to practices designed to remove lumber from heavily wooded areas in ways that are commercially viable and not harmful to the area’s ecosystem. Monitoring the environmental impact of any such attempts typically reduces to keep- ing a close watch on the avian and mammalian populations.

A recent study in a Borneo rainforest (213) modified that basic strategy by fo- cussing on butterflies rather than vertebrates. A total of eight tracts of land represent- ing two distinct habitats comprised the region to be surveyed. Four of the eight were “primary” sites, that is, forested areas that had never been logged; the other four had been selectively logged six years earlier. Two of the four primary sites and two of the four logged sites were higher elevation, ridge-top environments. The remaining two primary sites and two logged sites were lower-elevation, river-side environments.

Shown in Table 8.2.10 are the numbers of species of butterflies identified in the eight different tracts. (Note: Contrary to expectations, the total number of butter- fly species observed in the logged sites was greater than the total number seen in the primary sites. That difference might imply that thinning the forest canopy actu- ally improved the habitat from the butterflies’ perspective. It might also suggest, of

Section 8.2 Classifying Data 443

Table 8.2.10 Number of Species of Butterflies

Primary Sites Selectively Logged Sites

River-side 71 79 58 93Elevation

Ridge-top 64 52 74 90

course, that logging simply had a more negative effect on butterfly predators than it did on butterflies.)

Data Model ID Similar to what we saw in Example 8.2.1, the data in Table 8.2.10 are quantitative and have similar units. Also, the survey location is an obvious factor with its two levels being “Primary sites” and “Selectively logged sites.”

Unlike the Wines in Example 8.2.1, though, “Elevation” is a legitimate sec- ond factor. Its two levels, “River-side” and “Ridge-top”, represent distinctly differ- ent and well-defined ecosystems, both of which would be of inherent interest to the researchers. Following the flowchart, then, these would be Factorial data. (Another indication that the experimenters intend “Elevation” to be a factor are the repeated measurements (in this case, two) taken at each treatment combination. This is never done for the pairs in Paired data or the blocks in Randomized block data.)

Example 8.2.3

Brown-headed cowbirds may have many commendable traits, but being good parents is not one of them. Among all North American birds, they are the most notorious practitioners of brood parasitism, which means they lay their eggs in other birds’ nests. And just in case the soon-to-be foster mom can count, they pitch one of her own eggs out of the nest so she won’t become suspicious. The ruse often works— there is no shortage of brown-headed cowbirds.

A long-term study was done in southern Michigan to see what effect the cow- birds’ outrageous behavior had on indigo buntings (139). A total of six hundred ninety-three indigo bunting nests were monitored. Out of that set, five hundred fifty- six had not been parasitized by cowbirds and three hundred fifteen of those proved to be “successful” in the sense that they fledged a bunting (meaning that at least one of their own reached maturity). Of the nests that had been invaded by cowbirds, twenty-six fledged a bunting.

Data Model ID Two measurements have been recorded here on each of six hundred ninety-three indigo bunting nests. The first had two possible values: “nest was parasitized by cow- birds” and “nest was not parasitized by cowbirds.” The second also had two possible values: “nest fledged a bunting” and “nest did not fledge a bunting.” Clearly, both measurements are qualitative. According to the first box in the flowchart, these are Categorical data.

Summaries of the two measurements take the form of the contingency table displayed in Figure 8.2.5. Any notion that these two measurements might be independent and that brood parasitism is of no consequence is quickly dispelled by looking at the entries in the “% fledged” row. Cowbirds are clearly a threat to bunting survival.

444 Chapter 8 Types of Data: A Brief Overview

26

Nest parasitized

Nest f ledged bunting

Nest did not f ledge bunting

Nest not parasitized

111

289 315

267

137 556 % F ledged 19.0 52.0

378

693

Figure 8.2.5

Questions

For Questions 8.2.1–8.2.12 use the flowchart in Figure 8.2.4 to identify the experimental designs represented. In each case, answer whichever of the questions on p. 427 are nec- essary to make the determination.

8.2.1. Kepler’s third law states that “the squares of the pe- riods of the planets are proportional to the cubes of their mean distance from the Sun.” Listed below are the peri- ods of revolution (x), the mean distances from the sun (y), and the values x2/y3 for the eight planets in the solar sys- tem (3).

Planet xi (years) yi (astronomical units) x2i /y 3 i

Mercury 0.241 0.387 1.002 Venus 0.615 0.723 1.001 Earth 1.000 1.000 1.000 Mars 1.881 1.524 1.000 Jupiter 11.86 5.203 0.999 Saturn 29.46 9.54 1.000 Uranus 84.01 19.18 1.000 Neptune 164.8 30.06 1.000

8.2.2. Mandatory helmet laws for motorcycle riders re- main a controversial issue. Some states have a “limited” ordinance that applies only to younger riders; others have a “comprehensive” statute requiring all riders to wear hel- mets. Listed in the next column are the deaths per ten thousand registered motorcycles reported by states hav- ing each type of legislation (196).

Limited Helmet Law Comprehensive Helmet Law

6.8 7.0 9.1 7.1 4.8 7.0 10.6 4.1 0.5 11.2 5.0 6.8 9.6 5.7 6.7 17.9 8.1 7.3 9.1 7.6 6.4 11.3 5.5 12.9 5.2 3.0 4.7 8.5 11.7 3.7

13.2 6.7 15.0 9.3 4.0 5.2 6.9 7.3 4.7 5.4 7.0 6.9 8.1 4.2 4.8 10.5 9.3 8.6

8.2.3. Aedes aegypti is the scientific name of the mosquito that transmits yellow fever. Although no longer a major

health problem in the Western world, yellow fever was perhaps the most devastating communicable disease in the United States for almost two hundred years. To see how long it takes the Aedes mosquito to complete a feed- ing, five young females were allowed to bite an exposed human forearm without the threat of being swatted. The resulting blood-sucking times (in seconds) are summa- rized below (97).

Mosquito Bite Duration (sec)

1 176.0 2 202.9 3 315.0 4 374.6 5 352.5

8.2.4. Male cockroaches can be very antagonistic toward other male cockroaches. Encounters may be fleeting or quite spirited, the latter often resulting in missing anten- nae and broken wings. A study was done to see whether cockroach density has any effect on the frequency of se- rious altercations. Ten groups of four male cockroaches (Byrsotria fumigata) were each subjected to three levels of density: high, intermediate, and low. The following are the numbers of “serious” encounters per minute that were observed (16).

Group High Intermediate Low

1 0.30 0.11 0.12 2 0.20 0.24 0.28 3 0.17 0.13 0.20 4 0.25 0.36 0.15 5 0.27 0.20 0.31 6 0.19 0.12 0.16 7 0.27 0.19 0.20 8 0.23 0.08 0.17 9 0.37 0.18 0.18

10 0.29 0.20 0.20

Averages: 0.25 0.18 0.20

8.2.5. Luxury suites, many costing more than $100,000 to rent, have become big-budget status symbols in new

Section 8.2 Classifying Data 445

sports arenas. Below are the numbers of suites (x) and their projected revenues (y) for nine of the country’s newest facilities (207).

Number of Projected Revenues Arena Suites, x (in millions), y

Palace (Detroit) 180 $11.0 Orlando Arena 26 1.4 Bradley Center (Milwaukee) 68 3.0 America West (Phoenix) 88 6.0 Charlotte Coliseum 12 0.9 Target Center (Minneapolis) 67 4.0 Salt Lake City Arena 56 3.5 Miami Arena 18 1.4 ARCO Arena (Sacramento) 30 2.7

8.2.6. Depth perception is a life-or-death ability for lambs inhabiting rugged mountain terrain. How quickly a lamb develops that faculty may depend on the amount of time it spends with its ewe. Thirteen sets of lamb littermates were the subjects of an experiment that addressed that question (107). One member of each litter was left with its mother; the other was removed immediately after birth. Once ev- ery hour, the lambs were placed on a simulated cliff, part of which included a platform of glass. If a lamb placed its feet on the glass, it “failed” the test, since that would have been equivalent to walking off the cliff. Below are the trial numbers when the lambs first learned not to walk on the glass—that is, when they first developed depth perception.

Number of Trials to Learn Depth Perception

Group Mothered, xi Unmothered, yi

1 2 3 2 3 11 3 5 10 4 3 5 5 2 5 6 1 4 7 1 2 8 5 7 9 3 5

10 1 4 11 7 8 12 3 12 13 5 7

8.2.7. To see whether teachers’ expectations for students can become self-fulfilling prophecies, fifteen first graders were given a standard IQ test. The childrens’ teachers, though, were told it was a special test for predicting whether a child would show sudden spurts of intellectual growth in the near future (see 156). Researchers divided the children into three groups of sizes 6, 5, and 4 at ran- dom, but they informed the teachers that, according to the test, the children in group I would not demonstrate any pronounced intellectual growth for the next year, those in

group II would develop at a moderate rate, and those in group III could be expected to make exceptional progress. A year later, the same fifteen children were again given a standard IQ test. Below are the differences in the two scores for each child (second test – first test).

Changes in IQ (second test − first test) Group I Group II Group III

3 10 20 2 4 9 6 11 18

10 14 19 10 3 5

8.2.8. Among young drivers, roughly a third of all fatal automobile accidents are speed-related; by age 60 that proportion drops to about one-tenth. Listed below are a recent year’s percentages of speed-related fatalities for ages ranging from 16 to 72 (200).

Age Percent Speed-Related Fatalities

16 37 17 32 18 33 19 34 20 33 22 31 24 28 27 26 32 23 42 16 52 13 57 10 62 9 72 7

8.2.9. Gorillas are not the solitary creatures that they are often made out to be: They live in groups whose average size is about 16, which usually includes three adult males, six adult females, and seven “youngsters.” Listed below are the sizes of ten groups of mountain gorillas observed in the volcanic highlands of the Albert National Park in the Congo (166).

Group No. of Gorillas

1 8 2 19 3 5 4 24 5 11 6 20 7 18 8 21 9 27

10 16

446 Chapter 8 Types of Data: A Brief Overview

8.2.10. Roughly 360,000 bankruptcies were filed in U.S. Federal Court during 1981; by 1990 the annual num- ber was more than twice that figure. The following are the numbers of business failures reported year by year through the 1980s (186).

Year Bankruptcies Filed

1981 360,329 1982 367,866 1983 374,734 1984 344,275 1985 364,536 1986 477,856 1987 561,274 1988 594,567 1989 642,993 1990 726,484

8.2.11. The diversity of bird species in a given area is re- lated to plant diversity, as measured by variation in fo- liage heights as well as the variety of flora. Below are indices measured on those two traits for thirteen desert- type habitats (116).

Plant Cover Bird Species Area Diversity, xi Diversity, yi

1 0.90 1.80 2 0.76 1.36 3 1.67 2.92 4 1.44 2.61 5 0.20 0.42 6 0.16 0.49 7 1.12 1.90 8 1.04 2.38 9 0.48 1.24

10 1.33 2.80 11 1.10 2.41 12 1.56 2.80 13 1.15 2.16

8.2.12. Male toads often have trouble distinguishing be- tween other male toads and female toads, a state of affairs that can lead to awkward moments during mating season. When male toad A inadvertently makes inappropriate ro- mantic overtures to male toad B, the latter emits a short call known as a release chirp. Below are the lengths of the release chirps measured for fifteen male toads innocently caught up in misadventures of the heart (19).

Toad Length of Release Chirp (sec)

1 0.11 2 0.06 3 0.06 4 0.06 5 0.11 6 0.08

7 0.08 8 0.10 9 0.06

10 0.06 11 0.15 12 0.16 13 0.11 14 0.10 15 0.07

For Questions 8.2.13–8.2.32 identify the experimental de- sign (one-sample, two-sample, etc.) that each set of data represents.

8.2.13. A pharmaceutical company is testing two new drugs designed to improve the blood-clotting ability of hemophiliacs. Six subjects volunteering for the study are randomly divided into two groups of size 3. The first group is given drug A; the second group, drug B. The response variable in each case is the subject’s prothrombin time, a number that reflects the time it takes for a clot to form. The results (in seconds) for group A are 32.6, 46.7, and 81.2; for group B, 25.9, 33.6, and 35.1.

8.2.14. Investment firms financing the construction of new shopping centers pay close attention to the amount of retail floor space already available. Listed below are population and floor space figures for five southern cities.

Retail Floor Space City Population, x (in million square meters), y

1 400,000 3,450 2 150,000 1,825 3 1,250,000 7,480 4 2,975,000 14,260 5 760,000 5,290

8.2.15. Nine political writers were asked to assess the United States’ culpability in murders committed by rev- olutionary groups financed by the CIA. Scores were as- signed using a scale of 0 to 100. Three of the writers were native Americans living in the United States, three were native Americans living abroad, and three were foreign nationals.

Foreign Americans in U.S. Americans Abroad Nationals

45 65 75 45 50 90 40 55 85

8.2.16. To see whether low-priced homes are easier to sell than moderately priced homes, a national realty com- pany collected the following information on the lengths of times homes were on the market before being sold.

Section 8.2 Classifying Data 447

Number of Days on Market

City Low-Priced Moderately Priced

Buffalo 55 70 Charlotte 40 30 Newark 70 110

8.2.17. The following is a breakdown of what 120 college freshmen intend to do next summer.

Work School Play

Male 22 14 19 Female 14 31 20

8.2.18. An efficiency study was done on the delivery of first-class mail originating from the four cities listed in the following table. Recorded for each city was the average length of time (in days) that it took a letter to reach a destination in that same city. Samples were taken on two occasions, Sept. 1, 2010 and Sept. 1, 2014.

City Sept. 1, 2010 Sept. 1, 2014

Wooster 1.8 1.7 Midland 2.0 2.0 Beaumont 2.2 2.5 Manchester 1.9 1.7

8.2.19. Two methods (A and B) are available for remov- ing dangerous heavy metals from public water supplies. Eight water samples collected from various parts of the United States were used to compare the two methods. Four were treated with Method A and four were treated with Method B. After the processes were completed, each sample was rated for purity on a scale of 1 to 100.

Method A Method B

88.6 81.4 92.1 84.6 90.7 91.4 93.6 78.6

8.2.20. Out of one hundred twenty senior citizens polled, sixty-five favored a complete overhaul of the health care system while fifty-five preferred more modest changes. When the same choice was put to eighty-five first-time voters, forty said they were in favor of major reform while forty-five opted for minor revisions.

8.2.21. To illustrate the complexity and arbitrariness of IRS regulations, a tax-reform lobbying group has sent the same five clients to each of two professional tax prepar- ers. The following are the estimated tax liabilities quoted by each of the preparers.

Client Preparer A Preparer B

GS $31,281 $26,850 MB 14,256 13,958 AA 26,197 25,520 DP 8,283 9,107 SB 47,825 43,192

8.2.22. The production of a certain organic chemical re- quires ammonium chloride. The manufacturer can obtain the ammonium chloride in one of three forms: powdered, moderately ground, and coarse. To see if the consistency of the NH4Cl is itself a factor that needs to be considered, the manufacturer decides to run the reaction seven times with each form of ammonium chloride. The following are the resulting yields (in pounds).

Moderately Powdered NH4Cl Ground NH4Cl Coarse NH4Cl

146 150 141 152 144 138 149 148 142 161 155 146 158 154 139 154 148 137 149 150 145

8.2.23. An investigation was conducted of one hundred seven fatal poisonings of children. Each death was caused by one of three drugs. In each instance it was determined how the child received the fatal overdose. Responsibility for the one hundred seven accidents was assessed accord- ing to the following breakdown.

Drug A Drug B Drug C

Child Responsible 10 10 18 Parent Responsible 10 14 10 Another Person Responsible 4 18 13

8.2.24. As part of an affirmative-action litigation, records were produced showing the average salaries earned by white, black, and Hispanic workers in a large manufac- turing plant. Three different departments were selected at random for the comparison. The entries shown are average annual salaries, in thousands of dollars.

White Black Hispanic

Department 1 40.2 39.8 39.9 Department 2 40.6 39.0 39.2 Department 3 39.7 40.0 38.4

8.2.25. In Eastern Europe a study was done on fifty peo- ple bitten by rabid animals. Twenty victims were given the standard Pasteur treatment, while the other thirty were

448 Chapter 8 Types of Data: A Brief Overview

given the Pasteur treatment in addition to one or more doses of antirabies gamma globulin. Nine of those given the standard treatment survived; twenty survived in the gamma globulin group.

8.2.26. To see if any geographical pricing differences exist, the cost of a basic-cable TV package was determined for a random sample of six cities, three in the southeast and three in the northwest. Monthly charges for the southeastern cities were $13.20, $11.55, and $16.75; residents in the three northwestern cities paid $14.80, $17.65, and $19.20.

8.2.27. A public relations firm hired by a would-be presidential candidate has conducted a poll to see whether their client faces a gender gap. Out of 800 men interviewed, 325 strongly supported the candidate, 151 were strongly opposed, and 324 were undecided. Among the 750 women included in the sample, 258 were strong supporters, 241 were strong opponents, and 251 were undecided.

8.2.28. As part of a review of its rate structure, an automo- bile insurance company has compiled the following data on claims filed by five male policyholders and five female policyholders.

Client Claims Filed Client Claims Filed (male) in 2014 (female) in 2014

MK $2750 SB 0 JM 0 ML 0 AK 0 MS 0 KT $1500 BM $2150 JT 0 LL 0

8.2.29. A company claims to have produced a blended gasoline that can improve a car’s fuel consumption. They decide to compare their product with the leading gas currently on the market. Three different cars were used for the test: a Porsche, a Buick, and a VW. The Porsche got 13.6 mpg with the new gas and 12.2 mpg with the “standard” gas; the Buick got 18.7 mpg with the new gas and 18.5 with the standard; the figures for the VW were 34.5 and 32.6, respectively.

8.2.30. In a survey conducted by State University’s Learn- ing Center, a sample of three freshmen said they studied 6, 4, and 10 hours, respectively, over the weekend. The same question was posed to three sophomores, who reported study times of 4, 5, and 7 hours. For three juniors, the re- sponses were 2, 8, and 6 hours.

8.2.31. A consumer advocacy group, investigating the prices of steel-belted radial tires produced by three major manufacturers, collects the following data.

Year Company A Company B Company C

1995 $62.00 $68.00 $65.00 2000 $70.00 $72.00 $69.00 2005 $78.00 $75.00 $75.00

8.2.32. A small fourth-grade class is randomly split into two groups. Each group is taught fractions using a dif- ferent method. After three weeks, both groups are given the same 100-point test. The scores of students in the first group are 82, 86, 91, 72, and 68; the scores reported for the second group are 76, 63, 80, 72, and 67.

8.3 Taking a Second Look at Statistics (Why Samples Are Not “Valid”!)

Designing an experiment invariably requires that two fundamental issues be re- solved. First and foremost is the choice of the design itself. Based on the type of data available and the objectives to be addressed, what overall “structure” should the experiment have? Eight of the most frequently occurring answers to that ques- tion are the eight models profiled in this chapter, ranging from the simplicity of the one-sample design to the complexity of the factorial design.

As soon as a design has been chosen, a second question immediately follows: How large should the sample size (or sample sizes) be? It is precisely that question, though, that leads to a very common sampling misconception. There is a widely held belief (even by many experienced experimenters, who should know better) that some samples are “valid” (presumably because of their size), while others are not. Every consulting statistician could probably retire to Hawaii at an early age if he or she got a dollar for every time an experimenter posed the following sort of question: “I intend to compare Treatment X and Treatment Y using the two-sample format. My plan is to take twenty measurements on each of the two treatments. Will those be valid samples?”

Section 8.3 Taking a Second Look at Statistics (Why Samples Are Not “Valid”!) 449

The sentiment behind such a question is entirely understandable: the researcher is asking whether two samples of size 20 will be “adequate” (in some sense) for ad- dressing the objectives of the experiment. Unfortunately, the word “valid” is mean- ingless in this context. There is no such thing as a valid sample because the word “valid” has no statistical definition.

To be sure, we have already learned how to calculate the smallest values of n that will achieve certain objectives, typically expressed in terms of the precision of an estimator or the power of a hypothesis test. Recall Theorem 5.3.2. To guarantee that the estimator X/n for the binomial parameter p has at least a 100(1 − α)% chance of lying within a distance d of p requires that n be at least as large as z2α/2/4d

2. Suppose, for example, that we want a sample size capable of guaranteeing that

X/n will have an 80%[= 100(1 − α)%] chance of being within 0.05 (= d) of p. By Theorem 5.3.2,

n ≥ (1.28) 2

4(0.05)2 = 164

On the other hand, that sample of n = 164 would not be large enough to guaran- tee that X/n has, say, a 95% chance of being within 0.03 of p. To meet these latter requirements, n would have to be as least as large as 1068 [= (1.96)2/4(0.03)2].

Therein lies the problem. Sample sizes that can satisfy one set of specifications will not necessarily be capable of satisfying another. There is no “one size fits all” value for n that qualifies a sample as being “adequate” or “sufficient” or “valid.”

In a broader sense, the phrase “valid sample” is much like the expression “statis- tical tie” discussed in Section 5.3. Both are widely used, and each is a well-intentioned attempt to simplify an important statistical concept. Unfortunately, both also share the dubious distinction of being mathematical nonsense.

Chapte r

9Two-Sample Inferences CHAPTER OUTLINE

9.1 Introduction 9.2 Testing H0: μX = μY 9.3 Testing H0:

σ2X = σ2Y—The F Test 9.4 Binomial Data:

Testing H0: pX = pY 9.5 Confidence Intervals

for the Two-Sample Problem

9.6 Taking a Second Look at Statistics (Choosing Samples)

Appendix 9.A.1 A Derivation of the Two-Sample t Test (A Proof of Theorem 9.2.2)

After earning an Oxford degree in mathematics and chemistry, William Sealy Gosset (1876–1937) began working in 1899 for Messrs. Guinness, a Dublin brewery. Fluctuations in materials and temperature and the necessarily small-scale experiments inherent in brewing convinced him of the necessity for a new, small-sample theory of statistics. Writing under the pseudonym “Student,” he published work with the t ratio that was destined to become a cornerstone of modern statistical methodology.

9.1 INTRODUCTION The simplicity of the one-sample model makes it the logical starting point for any dis- cussion of statistical inference, but that simplicity also limits its usefulness. Very few experiments involve just a single treatment or a single set of conditions. Researchers show a definite preference for designing studies that compare responses to several different treatment levels.

In this chapter we examine the simplest of these multilevel designs, the two- sample models. Structurally, two-sample inferences always fall into one of two dif- ferent formats: Either two (presumably) different treatment levels are applied to two independent sets of similar subjects, or the same treatment is applied to two (presum- ably) different kinds of subjects. Comparing the effectiveness of germicide A relative to that of germicide B by measuring the zones of inhibition each one produces in two sets of similarly cultured Petri dishes would be an example of the first type. On the other hand, examining the bones of sixty-year-old men and sixty-year-old women, all lifelong residents of the same city, to see whether both sexes absorb environmental strontium-90 at the same rate would be an example of the second type.

Inference in two-sample problems usually reduces to a comparison of location parameters. We might assume, for example, that the population of responses associ- ated with, say, treatment X is normally distributed with mean μX and standard de- viation σX while the Y distribution is normal with mean μY and standard deviation σY . Comparing location parameters, then, reduces to testing H0: μX = μY . As always, the alternative may be either one-sided, H1: μX < μY or H1: μX > μY , or two-sided, H1: μX �= μY . If the data are binomial, the location parameters are pX and pY , the true “success” probabilities for treatments X and Y , and the null hypothesis takes the form H0: pX = pY .

Sometimes, although much less frequently, it becomes more relevant to compare the variabilities of two treatments, rather than their locations. A food company, for example, trying to decide which of two types of machines to buy for filling cereal

450

Section 9.2 Testing H0: μX = μY 451

boxes would naturally be concerned about the average weights of the boxes filled by each type, but they would also want to know something about the variabilities of the weights. Obviously, a machine that produces high proportions of “underfills” and “overfills” would be a distinct liability. In a situation of this sort, the appropriate null hypothesis is H0: σ2X = σ2Y .

For comparing the means of two normal populations when σX = σY , the standard procedure is the two-sample t test. As described in Section 9.2, this is a relatively straightforward extension of Chapter 7’s one-sample t test. If σX �= σY , an approximate t test is used. For comparing variances, though, it will be necessary to introduce a completely new test—this one based on the F distribution of Section 7.3. The binomial version of the two-sample problem, testing H0: pX = pY , is taken up in Section 9.4.

It was mentioned in connection with one-sample problems that certain infer- ences, for various reasons, are more aptly phrased in terms of confidence intervals rather than hypothesis tests. The same is true of two-sample problems. In Section 9.5, confidence intervals are constructed for the location difference of two populations, μX − μY or pX − pY , and the variability quotient, σ2X /σ2Y .

9.2 Testing H0: μX = μY We will suppose that the data for a given experiment consist of two independent ran- dom samples, X1, X2, . . . , Xn and Y1,Y2, . . . ,Ym, representing either of the models referred to in Section 9.1. Furthermore, the two populations from which the X ’s and Y ’s are drawn will be presumed normal. Let μX and μY denote their means. Our objective is to derive a procedure for testing H0: μX = μY .

As it turns out, the precise form of the test we are looking for depends on the variances of the X and Y populations. If it can be assumed that σ2X and σ

2 Y are equal,

it is a relatively straightforward task to produce the GLRT for H0: μX = μY . (This is, in fact, what we will do in Theorem 9.2.2.) But if the variances of the two populations are not equal, the problem becomes much more complex. This second case, known as the Behrens-Fisher problem, is more than seventy-five years old and remains one of the more famous “unsolved” problems in statistics. What headway investigators have made has been confined to approximate solutions. These will be discussed later in this section. For what follows next, it can be assumed that σ2X = σ2Y .

For the one-sample test that μ = μ0, the GLRT was shown to be a function of a special case of the t ratio introduced in Definition 7.3.3 (recall Theorem 7.3.5). We be- gin this section with a theorem that gives still another special case of Definition 7.3.3.

Theorem 9.2.1

Let X1, X2, . . . , Xn be a random sample of size n from a normal distribution with mean μX and standard deviation σ and let Y1,Y2, . . . ,Ym be an independent random sample of size m from a normal distribution with mean μY and standard deviation σ. Let S2X and S

2 Y be the two corresponding sample variances, and S

2 p the pooled vari-

ance, where

S2p = (n − 1)S2X + (m − 1)S2Y

n + m − 2 =

n∑ i=1

(Xi − X )2 + m∑

i=1 (Yi − Y)2

n + m − 2 Then

Tn+m−2 = X − Y − (μX − μY ) Sp √

1 n + 1m

has a Student t distribution with n + m − 2 degrees of freedom. (Continued on next page)

452 Chapter 9 Two-Sample Inferences

(Theorem 9.2.1 continued)

Proof The method of proof here is very similar to what was used for Theo- rem 7.3.5. Note that an equivalent formulation of Tn+m−2 is

Tn+m−2 = X−Y−(μX −μY )

σ √

1 n + 1m√

S2p/σ2

= X−Y−(μX −μY )

σ √

1 n + 1m√

1 n+m−2

[ n∑

i=1

( Xi−X

σ

)2 +

m∑ i=1

( Yi−Y

σ

)2]

But E(X − Y) = μX − μY and Var(X − Y) = σ2/n + σ2/m, so the numerator of the ratio has a standard normal distribution, fZ(z).

In the denominator, n∑

i=1

( Xi − X

σ

)2 = (n − 1)S

2 X

σ2

and m∑

i=1

( Yi − Y

σ

)2 = (m − 1)S

2 Y

σ2

are independent χ2 random variables with n − 1 and m − 1 df, respectively, so n∑

i=1

( Xi − X

σ

)2 +

m∑ i=1

( Yi − Y

σ

)2

has a χ2 distribution with n + m − 2 df (recall Theorem 7.3.1 and Theorem 4.6.4). Also, by Theorem 7.3.2, the numerator and denominator are independent. It follows from Definition 7.3.3, then, that

X − Y − (μX − μY ) Sp √

1 n + 1m

has a Student t distribution with n + m − 2 df.

Theorem 9.2.2

Let x1, x2, . . . , xn and y1, y2, . . . , ym be independent random samples from normal distributions with means μX and μY , respectively, and with the same standard devi- ation σ. Let

t = x − y sp √

1 n + 1m

a. To test H0: μX = μY versus H1: μX > μY at the α level of significance, reject H0 if t ≥ tα,n+m−2.

b. To test H0: μX = μY versus H1: μX < μY at the α level of significance, reject H0 if t ≤ −tα,n+m−2.

c. To test H0: μX = μY versus H1: μX �= μY at the α level of significance, reject H0 if t is either (1) ≤ −tα/2,n+m−2 or (2) ≥ tα/2,n+m−2.

This test is a GLRT.

Proof See Appendix 9.A.1.

Section 9.2 Testing H0: μX = μY 453

CASE STUDY 9.2.1

Claims of disputed authorship can be very difficult to resolve. Speculation has persisted for several hundred years that some of William Shakespeare’s works were written by someone else—one of the popular candidates being Edward de Vere. And whether it was Alexander Hamilton or James Madison who wrote certain of the Federalist Papers is still an open question. Less well known is a controversy surrounding Mark Twain and his role in the Civil War.

One of the most revered of all American writers, Twain was twenty-six years old when the war broke out. At issue is whether he was ever a participant, and, if so, on which side. Twain always dodged the question. Even had he made a full disclosure of his military record, his role would probably still be a mystery because of his self-proclaimed predisposition to be less than truthful. Reflecting on his life, Twain made a confession that would give any would-be biographer pause: “I am an old man,” he said, “and have known a great many troubles, but most of them never happened.”

A tantalizing clue that might shed some light on the matter is a set of ten war-related essays written by one Quintus Curtius Snodgrass, who claimed to be in the Louisiana militia, although no records documenting his service have ever been found. If Snodgrass was just a pen name Twain used, as some suspect, then these essays are basically a diary of Twain’s activities during the war, and the mystery is solved. If Quintus Curtius Snodgrass was not a pen name, these essays are just a red herring, and all questions about Twain’s military activities remain unanswered.

Assessing the likelihood that Twain and Snodgrass were one and the same would be the job of a “forensic statistician.” Authors have characteristic word- length profiles that effectively serve as verbal fingerprints (much like incrim- inating evidence left at a crime scene). If Authors A and B tend to use, say, three-letter words with significantly different frequencies, a reasonable inference would be that A and B are different people.

Table 9.2.1 shows the proportions of three-letter words in each of the ten Snodgrass essays and in eight essays known to have been written by Mark Twain. If xi denotes the ith Twain proportion, i = 1, 2, . . . , 8, and yi denotes the ith Snodgrass proportion, i = 1, 2, . . . , 10, then

Table 9.2.1 Proportion of Three-Letter Words

Twain Proportion QCS Proportion

Sergeant Fathom letter 0.225 Letter I 0.209 Madame Caprell letter 0.262 Letter II 0.205 Mark Twain letters in Letter III 0.196

Territorial Enterprise Letter IV 0.210 First letter 0.217 Letter V 0.202 Second letter 0.240 Letter VI 0.207 Third letter 0.230 Letter VII 0.224 Fourth letter 0.229 Letter VIII 0.223

First Innocents Abroad letter Letter IX 0.220 First half 0.235 Letter X 0.201 Second half 0.217

8∑ i=1

xi = 1.855 so x = 1.855/8 = 0.2319

(Continued on next page)

454 Chapter 9 Two-Sample Inferences

(Case Study 9.2.1 continued)

and 10∑

i=1 yi = 2.097 so y = 2.097/10 = 0.2097

The question to be answered is whether the difference between 0.2319 and 0.2097 is statistically significant.

Let μX and μY denote the true average proportions of three-letter words that Twain and Snodgrass, respectively, tended to use. Our objective is to test

H0 : μX = μY versus

H1 : μX �= μY Since

8∑ i=1

x2i = 0.4316 and 10∑

i=1 y2i = 0.4406

the two sample variances are

s2X = 8(0.4316) − (1.855)2

8(7)

= 0.0002103 and

s2Y = 10(0.4406) − (2.097)2

10(9)

= 0.0000955 Combined, they give a pooled standard deviation of 0.0121:

sp =

√√√√√ 8∑i=1 (xi − 0.2319)2 + 10∑

i=1 (yi − 0.2097)2

n + m − 2

= √

(n − 1)s2X + (m − 1)s2Y n + m − 2

= √

7(0.0002103) + 9(0.0000955) 8 + 10 − 2

= √

0.0001457

= 0.0121 According to Theorem 9.2.1, if H0: μX = μY is true, the sampling distribu-

tion of

T = X − Y Sp √

1 8 + 110

is described by a Student t curve with 16 (= 8 + 10 − 2) degrees of freedom.

Section 9.2 Testing H0: μX = μY 455

Suppose we let α = 0.01. By part (c) of Theorem 9.2.2, H0 should be rejected in favor of a two-sided H1 if either (1) t ≤ −tα/2,n+m−2 = −t.005,16 = −2.9208 or (2) t ≥ tα/2,n+m−2 = t.005,16 = 2.9208 (see Figure 9.2.1). But

t = 0.2319 − 0.2097 0.0121

√ 1 8 + 110

= 3.88

0

Reject H0

– 2.9208

Reject H

Area = 0.005

Student t distribution with 16 df

2.9208

0

Figure 9.2.1

a value falling considerably to the right of t.005,16. Therefore, we should reject H0. It appears that Twain and Snodgrass were not the same person. Nothing that Twain did, then, can be reasonably inferred from anything that Snodgrass wrote.

About the Data The Xi’s and Yi’s in Table 9.2.1, being proportions, are neces- sarily not normally distributed random variables with the same variance, so the basic conditions of Theorem 9.2.2 are not met. Fortunately, the consequences of violated assumptions on the probabilistic behavior of Tn+m−2 are frequently minimal. The robustness property of the one-sample t ratio that we investigated in Chapter 7 also holds true for the two-sample t ratio.

CASE STUDY 9.2.2

Dislike your statistics instructor? Retaliation time will come at the end of the semester when you pepper the student course evaluation form with 1’s. Were you pleased? Then send a signal with a load of 5’s. Either way, students’ evalu- ations of their instructors do matter. These instruments are commonly used for promotion, tenure, and merit raise decisions.

Studies of student course evaluations show that they do have value. They tend to show reliability and consistency. Yet questions remain as to the ability of these questionnaires to identify good teachers and courses.

A veteran instructor of developmental psychology decided to do a study (212) on how a single changed factor might affect his students’ course evalua- tions. He had attended a workshop extolling the virtue of an enthusiastic style in the classroom—more hand gestures, increased voice pitch variability, and the like. The vehicle for the study was the large-lecture undergraduate develop- mental psychology course he had taught in the fall semester. He set about to teach the spring-semester offering in the same way, with the exception of a more enthusiastic style.

(Continued on next page)

456 Chapter 9 Two-Sample Inferences

(Case Study 9.2.2 continued)

The professor fully understood the difficulty of controlling for the many variables. He selected the spring class to have the same demographics as the one in the fall. He used the same textbook, syllabus, and tests. He listened to audiotapes of the fall lectures and reproduced them as closely as possible, covering the same topics in the same order.

The first step in examining the effect of enthusiasm on course evaluations is to establish that students have, in fact, perceived an increase in enthusiasm. Table 9.2.2 summarizes the ratings the instructor received on the “enthusiasm” question for the two semesters. Unless the increase in sample means (2.14 to 4.21) is statistically significant, there is no point in trying to compare fall and spring responses to other questions.

Table 9.2.2

Fall, xi Spring, yi

n = 229 m = 243 x = 2.14 y = 4.21

sX = 0.94 sY = 0.83

Let μX and μY denote the true means associated with the two differ- ent teaching styles. There is no reason to think that increased enthusiasm on the part of the instructor would decrease the students’ perception of enthusi- asm, so it can be argued here that H1 should be one-sided. That is, we want to test

H0: μX = μY versus

H1: μX < μY

Let α = 0.05. Since n = 229 and m = 243, the t statistic has 229 + 243 − 2 = 470 degrees

of freedom. Thus, the decision rule calls for the rejection of H0 if

t = x − y sP √

1 229 + 1243

≤ −tα,n+m−2 = −t.05,470

A glance at Table A.2 in the Appendix shows that for any value n > 100, zα is a good approximation of tα,n. That is, −t.05,470 .= −z.05 = −1.64.

The pooled standard deviation for these data is 0.885:

sP = √

228(0.94)2 + 242(0.83)2 229 + 243 − 2 = 0.885

Therefore,

t = 2.14 − 4.21 0.885 √

1 229 + 1243

= −25.42

and our conclusion is a resounding rejection of H0. The increased enthusiasm was, indeed, noticed.

The real question of interest is whether the change in enthusiasm produced a perceived change in some other aspect of teaching that we know did not change.

Section 9.2 Testing H0: μX = μY 457

For example, the instructor did not become more knowledgeable about the ma- terial over the course of the two semesters. The student ratings, though, disagree.

Table 9.2.3 shows the instructor’s fall and spring ratings on the “knowledge- able” question. Is the increase from x = 3.61 to y = 4.05 statistically significant? Yes. For these data, sP = 0.898 and

t = 3.61 − 4.05 0.898 √

1 229 + 1243

= −5.33

which falls far to the left of the 0.05 critical value (= −1.64). What we can glean from these data is both reassuring yet a bit disturbing.

Table 9.2.2 appears to confirm the widely held belief that enthusiasm is an impor- tant factor in effective teaching. Table 9.2.3, on the other hand, strikes a more cautionary note. It speaks to another widely held belief—that student evalua- tions can sometimes be difficult to interpret. Questions that purport to be mea- suring one trait may, in fact, be reflecting something entirely different.

Table 9.2.3

Fall, xi Spring, yi

n = 229 m = 243 x = 3.61 y = 4.05

sX = 0.84 sY = 0.95

About the Data The five-choice responses in student evaluation forms are very common in survey questionnaires. Such questions are known as Likert items, named after the psychologist Rensis Likert. The item typically asks the respondent to choose his or her level of agreement with a statement, for example, ‘‘The instructor shows concern for students.’’ The choices start with ‘‘strongly disagree,’’ which is scored with a ‘‘1,’’ and go up to a ‘‘5’’ for ‘‘strongly agree.’’ The statistic for a given question in a survey is the average value taken over all responses.

Is a t test an appropriate way to analyze data of this sort? Maybe, but the nature of the responses raises some serious concerns. First of all, the fact that students talk with each other about their instructors suggests that not all the sample values will be independent. More importantly, the five-point Likert scale hardly resembles the normality assumption implicit in a Student t analysis. For many practitioners—but not all—the robustness of the t test would be enough to justify the analysis described in Case Study 9.2.2.

THE BEHRENS-FISHER PROBLEM

Finding a statistic with known density for testing the equality of two means from normally distributed random samples when the standard deviations of the samples are not equal is known as the Behrens-Fisher problem. No exact solution is known, but a widely used approximation is based on the test statistic

W = X − Y − (μX − μY )√ S2X n +

S2Y m

where, as usual, X and Y are the sample means, and S2X and S 2 Y are the unbiased

estimators of the variance. B. L. Welch, a faculty member at University College,

458 Chapter 9 Two-Sample Inferences

London, in a 1938 Biometrika article showed that W is approximately distributed as a Student t random variable with degrees of freedom given by the nonintuitive expression (

σ2X n +

σ2Y m

)2 σ4X

n2(n−1) + σ4Y

m2(m−1)

To understand Welch’s approximation, it helps to rewrite the random variable W as

W = X − Y − (μX − μY )√ S2X n +

S2Y m

= X − Y − (μX − μY )√ σ2X n +

σ2Y m

÷ √

S2X n +

S2Y m√

σ2X n +

σ2Y m

In this form, the numerator is a standard normal variable. Suppose there is a chi square random variable V with ν degrees of freedom such that the square of the denominator is equal to V/ν. Then the expression would indeed be a Student t variable with ν degrees of freedom. However, in general, the denominator will not have exactly that distribution. The strategy, then, is to find an approximate equality for

S2X n +

S2Y m

σ2X n +

σ2Y m

= V ν

or, equivalently,

S2X n

+ S 2 Y

m = (

σ2X

n + σ

2 Y

m

) V ν

At issue is the value of ν. The method of moments (recall Section 5.2) suggests a solution. If the means and variances of both sides are equated, it can be shown that

ν = (

σ2X n +

σ2Y m

)2 σ4X

n2(n−1) + σ4Y

m2(m−1)

Moreover, the expression for ν depends only on the ratio of the variances, θ = σ2X σ2Y

.

To see why, divide the numerator and denominator by σ4Y . Then( 1 n

σ2X σ2Y

+ 1m )2

1 n2(n−1)

( σ2X σ2Y

)2 + 1m2(m−1)

= ( 1

nθ + 1m )2

1 n2(n−1)θ

2 + 1m2(m−1)

and multiplying numerator and denominator by n2 gives the somewhat more appeal- ing form

ν = ( θ + nm )2

1 (n−1)θ

2 + 1(m−1) ( n

m

)2 Of course, the main application of this theory occurs when σ2X and σ

2 Y are un-

known and θ must thus be estimated, the obvious choice being θ̂ = s2X s2Y

. This leads us to the following theorem for testing the equality of means when

the variances cannot be assumed equal.

Section 9.2 Testing H0: μX = μY 459

Theorem 9.2.3

Let X1, X2, . . . , Xn and Y1,Y2, . . . ,Ym be independent random samples from normal distributions with means μX and μY , and standard deviations σX and σY , respectively. Let

W = X − Y − (μX − μY )√ S2X n +

S2Y m

Using θ̂ = s2X s2Y

, take ν to be the expression ( θ̂+ nm )

2

1 (n−1) θ̂

2+ 1(m−1) ( nm ) 2 , rounded to the nearest in-

teger. Then W has approximately a Student t distribution with ν degrees of freedom.

CASE STUDY 9.2.3

While a successful company’s large number of sales should mean bigger prof- its, does it yield greater profitability? Forbes magazine periodically rates the top two hundred small companies (57), and for each gives the profitability as mea- sured by the five-year percentage return on equity. Using data from the Forbes article, Table 9.2.4 gives the return on equity for the twelve companies with the largest number of sales (ranging from $679 million to $738 million) and for the twelve companies with the smallest number of sales (ranging from $25 million to $66 million). Based on these data, can we say that the return on equity differs between the two types of companies?

Table 9.2.4

Return on Return on Large-Sales Companies Equity (%), x Small-Sales Companies Equity (%), y

Deckers Outdoor 21 NVE 21 Jos. A. Bank Clothiers 23 Hi-Shear Technology 21 National Instruments 13 Bovie Medical 14 Dolby Laboratories 22 Rocky Mountain 31 Quest Software 7 Chocolate Factory Green Mountain Coffee Roasters 17 Rochester Medical 19 Lufkin Industries 19 Anika Therapeutics 19 Red Hat 11 Nathan’s Famous 11 Matrix Service 2 Somanetics 29 DXP Enterprises 30 Bolt Technology 20 Franklin Electric 15 Energy Recovery 27 LSB Industries 43 Transcend Services 27

IEC Electronics 24

Let μX and μY be the respective average returns on equity. The indicated test of hypotheses is

H0 : μX = μY versus

H1 : μX �= μY For the data in the table, x = 18.6, y = 21.9, s2X = 115.9929, and s2Y = 35.7604. The test statistic is

w = x − y − (μX − μY )√ s2X n +

s2Y m

= 18.6 − 21.9√ 115.9929

12 + 35.760412 = −0.928

(Continued on next page)

460 Chapter 9 Two-Sample Inferences

(Case Study 9.2.3 continued)

Also,

θ̂ = s 2 X

s2Y = 115.9929

35.7604 = 3.244

so ( 3.244 + 1212

)2 1

11 (3.244) 2 + 111

( 12 12

)2 = 17.2 which implies that ν = 17.

We should reject H0 at the α = 0.05 level of significance if w > t0.025,17 = 2.1098 or w < −t0.025,17 = −2.1098. Here, w = −0.928 falls in between the two critical values, so the difference between x and y is not statistically significant.

Comment It occasionally happens that an experimenter wants to test H0: μX = μY and knows the values of σ2X and σ

2 Y . For those situations, the t test of The-

orem 9.2.2 is inappropriate. If the n Xi’s and m Yi’s are normally distributed, it follows from the corollary to Theorem 4.3.3 that

Z = X − Y − (μX − μY )√ σ2X n +

σ2Y m

(9.2.1)

has a standard normal distribution. Any such test of H0: μX = μY , then, should be based on an observed Z ratio rather than an observed t ratio.

If the degrees of freedom for a t test exceed 100, then the test statistic of Theorem 9.2.1 is used, but it is treated as a Z ratio. In either the test of Theorem 9.2.2 or 9.2.3, if the degrees of freedom exceed 100, the statistic of Theorem 9.2.3 is used with the Z tables.

Questions

9.2.1. Some states that operate a lottery believe that restricting the use of lottery profits to supporting education makes the lottery more profitable. Other states permit general use of the lottery income. The profitability of the lottery for a group of states in each category is given below.

State Lottery Profits

For Education For General Use

State % Profit State % Profit

New Mexico 24 Massachusetts 21 Idaho 25 Maine 22 Kentucky 28 Iowa 24 South Carolina 28 Colorado 27 Georgia 28 Indiana 27 Missouri 29 Dist. Columbia 28 Ohio 29 Connecticut 29 Tennessee 31 Pennsylvania 32 Florida 31 Maryland 32 California 35 North Carolina 35 New Jersey 35

Data from: New York Times, National Section, October 7, 2007, p. 14.

Test at the α = 0.01 level whether the mean profit of states using the lottery for education is higher than that of states permitting general use. Assume that the variances of the two random variables are equal.

9.2.2. As the United States has struggled with the grow- ing obesity of its citizens, diets have become big business. Among the many competing regimens for those seeking weight reduction are the Atkins and Zone diets. In a com- parison of these two diets for one-year weight loss, a study (64) found that seventy-seven subjects on the Atkins diet had an average weight loss of x = −4.7 kg and a sample standard deviation of sX = 7.05 kg. Similar figures for the seventy-nine people on the Zone diet were y = −1.6 kg and sY = 5.36 kg. Is the greater reduction with the Atkins diet statistically significant? Test for α = 0.05. 9.2.3. A medical researcher believes that women typically have lower serum cholesterol than men. To test this hy- pothesis, he took a sample of four hundred seventy-six men between the ages of nineteen and forty-four and found their mean serum cholesterol to be 189.0 mg/dl with a sample standard deviation of 34.2. A group of five hun- dred ninety-two women in the same age range averaged 177.2 mg/dl and had a sample standard deviation of 33.3.

Section 9.2 Testing H0: μX = μY 461

Is the lower average for the women statistically signifi- cant? Set α = 0.05. Assume the variances are equal. 9.2.4. Among a number of beliefs concerning the so- called lunar effect is that more children are born during the full moon. The table below gives the average num- ber of births per day during the full moon (lunar fraction ≥ 0.95) versus the average number during a period of lu- nar fraction ≤ 0.75. The table shows the opposite effect. The average is smaller during the full moon. But is this a significant difference? Test the equality of means at the 0.05 level of significance. Assume the variances are equal.

Number of Live Births

3/4 Moon Full Moon or Smaller

n = 109 m = 494 x = 10732 y = 10970

sX = 2017 sY = 1897

9.2.5. The University of Missouri–St. Louis gave a vali- dation test to entering students who had taken calculus in high school. The group of ninety-three students receiv- ing no college credit had a mean score of 4.17 on the val- idation test with a sample standard deviation of 3.70. For the twenty-eight students who received credit from a high school dual-enrollment class, the mean score was 4.61 with a sample standard deviation of 4.28. Is there a significant difference in these means at the α = 0.01 level? Assume the variances are equal. Data from: MAA Focus, December 2008, p. 19.

9.2.6. Ring Lardner was one of this country’s most popular writers during the 1920s and 1930s. He was also a chronic alcoholic who died prematurely at the age of forty-eight. The following table lists the life spans of some of Lardner’s contemporaries (39). Those in the sample on the left were all problem drinkers; they died, on the average, at age sixty-five. The twelve (sober) writers on the right tended to live a full ten years longer. Can it be argued that an increase of that magnitude is statistically significant? Test an appropriate null hypothesis against a one-sided H1. Use the 0.05 level of significance. (Note: The pooled sample standard deviation for these two samples is 13.9.)

Authors Noted for Authors Not Noted for Alcohol Abuse Alcohol Abuse

Age at Age at Name Death Name Death

Ring Lardner 48 Carl Van Doren 65 Sinclair Lewis 66 Ezra Pound 87 Raymond Chandler 71 Randolph Bourne 32 Eugene O’Neill 65 Van Wyck Brooks 77 Robert Benchley 56 Samuel Eliot Morrison 89 J.P. Marquand 67 John Crowe Ransom 86 Dashiell Hammett 67 T.S. Eliot 77

e.e. cummings 70 Conrad Aiken 84 Edmund Wilson 77 Ben Ames Williams 64

Average: 65.2 Henry Miller 88 Archibald MacLeish 90 James Thurber 67

Average: 75.5

9.2.7. Poverty Point is the name given to a num- ber of widely scattered archaeological sites throughout Louisiana, Mississippi, and Arkansas. These are the re- mains of a society thought to have flourished during the period from 1700 to 500 b.c. Among their characteristic artifacts are ornaments that were fashioned out of clay and then baked. The following table shows the dates (in years b.c.) associated with four of these baked clay orna- ments found in two different Poverty Point sites, Terral Lewis and Jaketown (94). The averages for the two sam- ples are 1133.0 and 1013.5, respectively. Is it believable that these two settlements developed the technology to manufacture baked clay ornaments at the same time? Set up and test an appropriate H0 against a two-sided H1 at the α = 0.05 level of significance. For these data sx = 266.9 and sy = 224.3.

Terral Lewis Estimates, xi Jaketown Estimates, yi

1492 1346 1169 942 883 908 988 858

9.2.8. A major source of “mercury poisoning” comes from the ingestion of methylmercury (CH3Hg+), which is found in contaminated fish (recall Question 5.3.3). Among the questions pursued by medical investigators trying to understand the nature of this particular health problem is whether methylmercury is equally hazardous to men and women. The following (121) are the half- lives of methylmercury in the systems of six women and nine men who volunteered for a study where each sub- ject was given an oral administration of CH3Hg+. Is there evidence here that women metabolize methylmercury at a different rate than men do? Do an appropriate two- sample t test at the α = 0.01 level of significance. The two sample standard deviations for these data are sX = 15.1 and sY = 8.1.

Methylmercury ( CH3Hg+

) Half-Lives (in days)

Females, xi Males, yi

52 72 69 88 73 87 88 74 87 78 56 70

78 93 74

462 Chapter 9 Two-Sample Inferences

9.2.9. Despite its complexity, the English language does not afford many options for how subordinates might ad- dress supervisors in the workplace. Calling bosses by their first names strikes a tone that many find too familiar, and adding a title (Mr., Mrs., Doctor, or Professor) may seem stilted and too deferential. What appears to be evolving as a comfortable compromise is a strategy known as “name- avoidance”, where workers do not use any form of address in speaking to supervisors.

Whether men or women resort to name-avoidance equally often was investigated in a study (122) where seventy-four subjects (forty-nine men and twenty-five women)—all full-time employees—were asked the fol- lowing question:

“If you were to encounter your boss’s boss in a hall near your office tomorrow, what do you estimate to be the likelihood of your employing avoidance as an address strategy?”

Responses were given on a 5-point scale, with 1 mean- ing “very unlikely” and 5 meaning “very likely.” The table below gives the sample means and sample standard devi- ations for the forty-nine men and twenty-five women.

Males Females

n = 49 m = 25 x = 2.41 y = 3.00

sx = 0.96 sY = 1.02

Is the difference between 2.41 and 3.00 statistically signif- icant? Set up and test an appropriate H0 vs. H1. Use a 0.05 level of significance.

9.2.10. A company markets two brands of latex paint— regular and a more expensive brand that claims to dry an hour faster. A consumer magazine decides to test this claim by painting ten panels with each product. The av- erage drying time of the regular brand is 2.1 hours with a sample standard deviation of 12 minutes. The fast-drying version has an average of 1.6 hours with a sample standard deviation of 16 minutes. Test the null hypothesis that the more expensive brand dries an hour quicker. Use a one- sided H1. Let α = 0.05. 9.2.11. (a) Suppose H0: μX = μY is to be tested against H1: μX �= μY . The two sample sizes are 6 and 11. If sp = 15.3, what is the smallest value for |x − y| that will result in H0 being rejected at the α = 0.01 level of significance? (b) What is the smallest value for x − y that will lead to the rejection of H0: μX = μY in favor of H1: μX > μY if α = 0.05, sP = 214.9, n = 13, and m = 8? 9.2.12. Suppose that H0: μX = μY is being tested against H1: μX �= μY , where σ2X and σ2Y are known to be 17.6 and 22.9, respectively. If n = 10, m = 20, x = 81.6, and y = 79.9, what P-value would be associated with the ob- served Z ratio?

9.2.13. An executive has two routes that she can take to and from work each day. The first is by interstate; the second requires driving through town. On the average it takes her 33 minutes to get to work by the interstate and 35 minutes by going through town. The standard devia- tions for the two routes are 6 and 5 minutes, respectively. Assume the distributions of the times for the two routes are approximately normally distributed. (a) What is the probability that on a given day, driving through town would be the quicker of her choices? (b) What is the probability that driving through town for an entire week (ten trips) would yield a lower average time than taking the interstate for the entire week?

9.2.14. Prove that the Z ratio given in Equation 9.2.1 has a standard normal distribution.

9.2.15. If X1, X2, . . . , Xn and Y1, Y2, . . . ,Ym are indepen- dent random samples from normal distributions with the same σ2, prove that their pooled sample variance, S2p, is an unbiased estimator for σ2.

9.2.16. Let X1, X2, . . . , Xn and Y1,Y2, . . . , Ym be indepen- dent random samples drawn from normal distributions with means μX and μY , respectively, and with the same known variance σ2. Use the generalized likelihood ratio criterion to derive a test procedure for choosing between H0: μX = μY and H1: μX �= μY . 9.2.17. A person exposed to an infectious agent, either by contact or by vaccination, normally develops antibod- ies to that agent. Presumably, the severity of an infection is related to the number of antibodies produced. The degree of antibody response is indicated by saying that the person’s blood serum has a certain titer, with higher titers indicating greater concentrations of antibodies. The following table gives the titers of twenty-two persons in- volved in a tularemia epidemic in Vermont (21). Eleven were quite ill; the other eleven were asymptomatic. Use Theorem 9.2.3 to test H0: μX = μY against a one-sided H1 at the 0.05 level of significance.

The sample standard deviations for the “Severely Ill” and “Asymptomatic” groups are 428 and 183, respectively.

Severely Ill Asymptomatic

Subject Titer Subject Titer

1 640 12 10 2 80 13 320 3 1280 14 320 4 160 15 320 5 640 16 320 6 640 17 80 7 1280 18 160 8 640 19 10 9 160 20 640

10 320 21 160 11 160 22 320

Section 9.3 Testing H0: σ2X = σ2Y—The F Test 463

9.2.18. For the approximate two-sample t test described in Question 9.2.17, it will be true that

v < n + m − 2 Why is that a disadvantage for the approximate test? That is, why is it better to use the Theorem 9.2.1 version of the t test if, in fact, σ2X = σ2Y ? 9.2.19. The two-sample data described in Question 8.2.2 would be analyzed by testing H0: μX = μY , where μX and μY denote the true average motorcycle-related fatal- ity rates for states having “limited” and “comprehensive” helmet laws, respectively.

(a) Should the t test for H0: μX = μY follow the format of Theorem 9.2.2 or the approximation given in Theo- rem 9.2.3? Explain. (b) Is there anything unusual about these data? Explain.

9.2.20. Two popular forms of mortgage are the thirty-year fixed-rate mortgage, where the borrower has thirty years to repay the loan at a constant rate, and the adjustable rate mortgage (ARM), one version of which is for five

years with the possibility of yearly changes in the inter- est rate. Since the ARM offers less certainty, its rates are usually lower than those of fixed-rate mortgages. Test this hypothesis at the α = 0.01 level using the following sam- ple of mortgage offerings for a loan of $250,000. Do not assume the variances are equal.

$250,000 Mortgage Rates

30-Year Fixed ARM

3.525 2.923 3.625 3.385 3.383 3.154 3.625 3.363 3.661 3.226 3.791 3.283 3.941 3.427 3.781 3.437 3.660 3.746 3.733 3.438

9.3 Testing H0: σ2X = σ2Y—The F Test Although by far the majority of two-sample problems are set up to detect pos- sible shifts in location parameters, situations sometimes arise where it is equally important—perhaps even more important—to compare variability parameters. Two machines on an assembly line, for example, may be producing items whose average dimensions (μX and μY ) of some sort—say, thickness—are not significantly different but whose variabilities (as measured by σ2X and σ

2 Y ) are. This becomes a critical piece

of information if the increased variability results in an unacceptable proportion of items from one of the machines falling outside the engineering specifications (see Figure 9.3.1).

Engineering specifications

X

�Y

(Acceptable) proportion too thin (Acceptable) proportion

too thick �X

Output from machine X

(Unacceptable) proportion too thick

(Unacceptable) proportion too thin �X �Y

Output from machine Y

Figure 9.3.1 Variability of machine outputs.

In this section we will examine the generalized likelihood ratio test of H0: σ2X = σ2Y versus H1: σ

2 X �= σ2Y . The data will consist of two independent random samples

of sizes n and m: The first—x1, x2, . . . , xn—is assumed to have come from a normal distribution having mean μX and variance σ2X ; the second—y1, y2, . . . , ym—from a normal distribution having mean μY and variance σ2Y . (All four parameters are as- sumed to be unknown.) Theorem 9.3.1 gives the test procedure that will be used.

464 Chapter 9 Two-Sample Inferences

The proof will not be given, but it follows the same basic pattern we have seen in other GLRTs; the important step is showing that the likelihood ratio is a monotonic function of the F random variable described in Definition 7.3.2.

Comment Tests of H0: σ2X = σ2Y arise in another, more routine context. Recall that the procedure for testing the equality of μX and μY depends on whether or not the two population variances are equal. This implies that a test of H0: σ2X = σ2Y should precede every test of H0: μX = μY . If the former is accepted, the t test on μX and μY is done according to Theorem 9.2.2; but if H0: σ2X = σ2Y is rejected, Theorem 9.2.2 is not entirely appropriate. A frequently used alternative in that case is the approximate t test described in Theorem 9.2.3.

Theorem 9.3.1

Let x1, x2, . . . , xn and y1, y2, . . . , ym be independent random samples from nor- mal distributions with means μX and μY and standard deviations σX and σY , respectively.

a. To test H0: σ2X = σ2Y versus H1: σ2X > σ2Y at the α level of significance, reject H0 if s2Y /s

2 X ≤ Fα,m−1,n−1.

b. To test H0: σ2X = σ2Y versus H1: σ2X < σ2Y at the α level of significance, reject H0 if s2Y /s

2 X ≥ F1−α,m−1,n−1.

c. To test H0: σ2X = σ2Y versus H1: σ2X �= σ2Y at the α level of significance, reject H0 if s2Y /s

2 X is either (1) ≤ Fα/2,m−1,n−1 or (2) ≥ F1−α/2,m−1,n−1.

Comment The GLRT described in Theorem 9.3.1 is approximate for the same sort of reason the GLRT for H0: σ2 = σ20 is approximate (see Theorem 7.5.2). The dis- tribution of the test statistic, S2Y /S

2 X , is not symmetric, and the two ranges of vari-

ance ratios yielding λ’s less than or equal to λ∗ (i.e., the left tail and right tail of the critical region) have slightly different areas. For the sake of convenience, though, it is customary to choose the two critical values so that each cuts off the same area, α/2.

CASE STUDY 9.3.1

Electroencephalograms are records showing fluctuations of electrical activity in the brain. Among the several different kinds of brain waves produced, the domi- nant ones are usually alpha waves. These have a characteristic frequency of any- where from eight to thirteen cycles per second.

The objective of the experiment described in this example was to see whether sensory deprivation over an extended period of time has any effect on the alpha-wave pattern. The subjects were twenty inmates in a Canadian prison who were randomly split into two equal-sized groups. Members of one group were placed in solitary confinement; those in the other group were allowed to remain in their own cells. Seven days later, alpha-wave frequencies were measured for all twenty subjects (65), as shown in Table 9.3.1.

Judging from Figure 9.3.2, there was an apparent decrease in alpha-wave frequency for persons in solitary confinement. There also appears to have been an increase in the variability for that group. We will use the F test to determine whether the observed difference in variability (s2X = 0.21 versus s2Y = 0.36) is statistically significant.

Section 9.3 Testing H0: σ2X = σ2Y—The F Test 465

Table 9.3.1 Alpha-Wave Frequencies (CPS)

Nonconfined, xi Solitary Confinement, yi

10.7 9.6 10.7 10.4 10.4 9.7 10.9 10.3 10.5 9.2 10.3 9.3 9.6 9.9

11.1 9.5 11.2 9.0 10.4 10.9

11

0

10

9 Nonconfined Solitary

A lp

ha -w

av e

fr eq

ue nc

y (c

ps )

Figure 9.3.2

Let σ2X and σ 2 Y denote the true variances of alpha-wave frequencies for

nonconfined and solitary-confined prisoners, respectively. The hypotheses to be tested are

H0: σ2X = σ2Y versus

H1: σ2X �= σ2Y Let α = 0.05 be the level of significance. Given that

10∑ i=1

xi = 105.8 10∑

i=1 x2i = 1121.26

10∑ i=1

yi = 97.8 10∑

i=1 y2i = 959.70

the sample variances become

s2X = 10(1121.26) − (105.8)2

10(9) = 0.21

and

s2Y = 10(959.70) − (97.8)2

10(9) = 0.36

(Continued on ntext page)

466 Chapter 9 Two-Sample Inferences

(Case Study 9.3.1 continued)

Dividing the sample variances gives an observed F ratio of 1.71:

F = s 2 Y

s2X = 0.36

0.21 = 1.71

Both n and m are ten, so we would expect S2Y /S 2 X to behave like an F random

variable with 9 and 9 degrees of freedom (assuming H0: σ2X = σ2Y is true). From Table A.4 in the Appendix, we see that the values cutting off areas of 0.025 in either tail of that distribution are 0.248 and 4.03 (see Figure 9.3.3).

Since the observed F ratio falls between the two critical values, our decision is to fail to reject H0—a ratio of sample variances equal to 1.71 does not rule out the possibility that the two true variances are equal. (In light of the Comment preceding Theorem 9.3.1, it would now be appropriate to test H0: μX = μY using the two-sample t test described in Section 9.2.)

Reject H

Area = 0.025

0

0.248

Reject H

Area = 0.025

F distribution with 9 and 9 degrees

of freedom

4.03

0

Density

Figure 9.3.3

Questions

9.3.1. Case Study 9.2.3 was offered as an example of test- ing means when the variances are not assumed equal. Was this a correct assumption about the variances? Test at the 0.05 level of significance.

9.3.2. Question 9.2.20 compared the rates of thirty-year fixed-rate mortgages and adjustable rate mortgages. Since adjustable rate mortgages offer less certainty, such vehicles should show more variability in rates. Test this hypothesis at the 0.10 level of significance using the data of Question 9.2.20.

9.3.3. Among the standard personality inventories used by psychologists is the thematic apperception test (TAT) in which a subject is shown a series of pictures and is asked to make up a story about each one. Interpreted properly, the content of the stories can provide valuable insights into the subject’s mental well-being. The follow- ing data show the TAT results for forty women, twenty of whom were the mothers of normal children and twenty the mothers of schizophrenic children. In each case the subject was shown the same set of ten pictures. The figures recorded were the numbers of stories (out of ten) that re- vealed a positive parent–child relationship, one where the mother was clearly capable of interacting with her child in a flexible, open-minded way (210).

TAT Scores

Mothers of Normal Mothers of Schizophrenic Children Children

8 4 6 3 1 2 1 1 3 2 4 4 6 4 2 7 2 1 3 1 2 1 1 4 3 0 2 4 2 3 3 2 6 3 4 3 0 1 2 2

(a) Test H0 : σ2X = σ2Y versus H1 : σ2X �= σ2Y , where σ2X and σ2Y are the variances of the scores of mothers of normal children and scores of mothers of schizophrenic children, respectively. Let α = 0.05. (b) If H0 : σ2X = σ2Y is accepted in part (a), test H0 : μX = μY versus H1 : μX �= μY . Set α equal to 0.05. 9.3.4. In a study designed to investigate the effects of a strong magnetic field on the early development of mice (7), ten cages, each containing three 30-day-old albino fe- male mice, were subjected for a period of 12 days to a magnetic field having an average strength of 80 Oe/cm. Thirty other mice, housed in ten similar cages, were not put in the magnetic field and served as controls. Listed in

Section 9.3 Testing H0: σ2X = σ2Y—The F Test 467

the table are the weight gains, in grams, for each of the twenty sets of mice.

In Magnetic Field Not in Magnetic Field

Cage Weight Gain (g) Cage Weight Gain (g)

1 22.8 11 23.5 2 10.2 12 31.0 3 20.8 13 19.5 4 27.0 14 26.2 5 19.2 15 26.5 6 9.0 16 25.2 7 14.2 17 24.5 8 19.8 18 23.8 9 14.5 19 27.8

10 14.8 20 22.0

Test whether the variances of the two sets of weight gains are significantly different. Let α = 0.05. For the mice in the magnetic field, sX = 5.67; for the other mice, sY = 3.18. 9.3.5. Raynaud’s syndrome is characterized by the sudden impairment of blood circulation in the fingers, a condition that results in discoloration and heat loss. The magnitude of the problem is evidenced in the following data, where twenty subjects (ten “normals” and ten with Raynaud’s syndrome) immersed their right forefingers in water kept at 19◦C. The heat output (in cal/cm2/minute) of the fore- finger was then measured with a calorimeter (112).

Subjects with Normal Subjects Raynaud’s Syndrome

Heat Output Heat Output Patient (cal/cm2/min) Patient (cal/cm2/min)

W.K. 2.43 R.A. 0.81 M.N. 1.83 R.M. 0.70 S.A. 2.43 F.M. 0.74 Z.K. 2.70 K.A. 0.36 J.H. 1.88 H.M. 0.75 J.G. 1.96 S.M. 0.56 G.K. 1.53 R.M. 0.65 A.S. 2.08 G.E. 0.87 T.E. 1.85 B.W. 0.40 L.F. 2.44 N.E. 0.31

x = 2.11 y = 0.62 sX = 0.37 sY = 0.20

Test that the heat-output variances for normal subjects and those with Raynaud’s syndrome are the same. Use a two-sided alternative and the 0.05 level of significance.

9.3.6. The bitter, eight-month baseball strike that ended the 1994 season so abruptly was expected to have substan- tial repercussions at the box office when the 1995 season finally got under way. It did. By the end of the first week of play, American League teams were playing to 12.8% fewer fans than the year before; National League teams fared even worse—their attendance was down 15.1%

(201). Based on the team-by-team attendance figures given below, would it be appropriate to use the pooled two-sample t test of Theorem 9.2.2 to assess the statistical significance of the difference between those two means?

American League National League

Team Change Team Change

Baltimore −2% Atlanta −49% Boston +16 Chicago −4 California +7 Cincinnati −18 Chicago −27 Colorado −27 Cleveland No home games Florida −15 Detroit −22 Houston −16 Kansas City −20 Los Angeles −10 Milwaukee −30 Montreal −1 Minnesota −8 New York +34 New York −2 Philadelphia −9 Oakland No home games Pittsburgh −28 Seattle −3 San Diego −10 Texas −39 San Francisco −45 Toronto −24 St. Louis −14

Average: −12.8% Average: −15.1%

9.3.7. For the data in Question 9.2.8, the sample variances for the methylmercury half-lives are 227.77 for the females and 65.25 for the males. Does the magnitude of that differ- ence invalidate using Theorem 9.2.2 to test H0: μX = μY ? Explain.

9.3.8. Crosstown busing to compensate for de facto segre- gation was begun on a fairly large scale in Nashville during the 1960s. Progress was made, but critics argued that too many racial imbalances were left unaddressed. Among the data cited in the early 1970s are the following figures, showing the percentages of African-American students enrolled in a random sample of eighteen public schools (176). Nine of the schools were located in predominantly African-American neighborhoods; the other nine, in pre- dominantly white neighborhoods. Which version of the two-sample t test, Theorem 9.2.2 or the Behrens–Fisher approximation given in Theorem 9.2.3, would be more appropriate for deciding whether the difference between 35.9% and 19.7% is statistically significant? Justify your answer.

Schools in African-American Schools in White Neighborhoods Neighborhoods

36% 21% 28 14 41 11 32 30 46 29 39 6 24 18 32 25 45 23

Average: 35.9% Average: 19.7%

468 Chapter 9 Two-Sample Inferences

9.3.9. Show that the generalized likelihood ratio for testing H0: σ2X = σ2Y versus H1: σ2X �= σ2Y as described in Theorem 9.3.1 is given by

λ = L(ωe) L(Ωe)

= (m + n) (n+m)/2

nn/2mm/2

[ n∑

i=1 (xi − x̄)2

]n/2[ m∑ j=1

(y j − ȳ)2 ]m/2

[ n∑

i=1 (xi − x̄)2 +

m∑ j=1

(y j − ȳ)2 ](m+n)/2

9.3.10. Let X1, X2, . . . , Xn and Y1, Y2, . . . ,Ym be indepen- dent random samples from normal distributions with means μX and μY and standard deviations σX and σY , respectively, where μX and μY are known. Derive the GLRT for H0: σ2X = σ2Y versus H1: σ2X > σ2Y .

9.4 Binomial Data: Testing H0: pX = pY Up to this point, the data considered in this chapter have been independent random samples of sizes n and m drawn from two continuous distributions—in fact, from two normal distributions. Other scenarios, of course, are quite possible. The X ’s and Y ’s might represent continuous random variables but have density functions other than the normal. Or they might be discrete. In this section we consider the most common example of this latter type: situations where the two sets of data are binomial.

APPLYING THE GENERALIZED LIKELIHOOD RATIO CRITERION

Suppose that n Bernoulli trials related to treatment X have resulted in x successes, and that m (independent) Bernoulli trials related to treatment Y have yielded y suc- cesses. We wish to test whether pX and pY , the true probabilities of success for treat- ment X and treatment Y , are equal:

H0: pX = pY (= p) versus

H1: pX �= pY Let α be the level of significance.

Following the notation used for GLRTs, the two parameter spaces here are

ω = {(pX , pY ) : 0 ≤ pX = pY ≤ 1} and

Ω = {(pX , pY ) : 0 ≤ pX ≤ 1, 0 ≤ pY ≤ 1} Furthermore, the likelihood function can be written

L = pxX (1 − pX )n−x · pyY (1 − pY )m−y

Setting the derivative of ln L with respect to p(= pX = pY ) equal to 0 and solving for p gives a not-too-surprising result—namely,

pe = x + yn + m That is, the maximum likelihood estimate for p under H0 is the pooled success pro- portion. Similarly, solving ∂lnL/∂ pX = 0 and ∂lnL/∂ pY = 0 gives the two origi- nal sample proportions as the unrestricted maximum likelihood estimates, for pX and pY :

pXe = x n

, pYe = y m

Section 9.4 Binomial Data: Testing H0: pX = pY 469

Putting pe, pXe , and pYe back into L gives the generalized likelihood ratio:

λ = L(ωe) L(Ωe)

= [(x + y)/(n + m)] x+y [1 − (x + y)/(n + m)]n+m−x−y

(x/n)x [1 − (x/n)]n−x (y/m)y [1 − (y/m)]m−y (9.4.1)

Equation 9.4.1 is such a difficult function to work with that it is necessary to find an approximation to the usual generalized likelihood ratio test. There are several available. It can be shown, for example, that −2 ln λ for this problem has an asymp- totic χ2 distribution with 1 degree of freedom (211). Thus, an approximate two-sided, α = 0.05 test is to reject H0 if −2 ln λ ≥ 3.84.

Another approach, and the one most often used, is to appeal to the Central Limit Theorem and make the observation that

X n − Ym − E

(X n − Ym

)√ Var (X

n − Ym )

has an approximate standard normal distribution. Under H0, of course,

E (

X n

− Y m

) = 0

and

Var (

X n

− Y m

) = p(1 − p)

n + p(1 − p)

m

= (n + m)p(1 − p) nm

If p is now replaced by x+yn+m , its maximum likelihood estimate under ω, we get the statement of Theorem 9.4.1.

Theorem 9.4.1

Let x and y denote the numbers of successes observed in two independent sets of n and m Bernoulli trials, respectively, where pX and pY are the true success probabil- ities associated with each set of trials. Let pe = x+yn+m and define

z = x n − ym√

pe(1−pe) n + pe(1−pe)m

a. To test H0: pX = pY versus H1: pX > pY at the α level of significance, reject H0 if z ≥ zα.

b. To test H0: pX = pY versus H1: pX < pY at the α level of significance, reject H0 if z ≤ −zα.

c. To test H0: pX = pY versus H1: pX �= pY at the α level of significance, reject H0 if z is either (1) ≤ −zα/2 or (2) ≥ zα/2.

Comment The utility of Theorem 9.4.1 actually extends beyond the scope we have just described. Any continuous variable can always be dichotomized and “trans- formed” into a Bernoulli variable. For example, blood pressure can be recorded in terms of “mm Hg,” a continuous variable, or simply as “normal” or “abnormal,” a

470 Chapter 9 Two-Sample Inferences

Bernoulli variable. The next two case studies illustrate these two sources of binomial data. In the first, the measurements begin and end as Bernoulli variables; in the sec- ond, the initial measurement of “number of nightmares per month” is dichotomized into “often” and “seldom.”

CASE STUDY 9.4.1

Until almost the end of the nineteenth century, the mortality associated with surgical operations—even minor ones—was extremely high. The major prob- lem was infection. The germ theory as a model for disease transmission was still unknown, so there was no concept of sterilization. As a result, many patients died from postoperative complications.

The major breakthrough that was so desperately needed finally came when Joseph Lister, a British physician, began reading about some of the work done by Louis Pasteur. In a series of classic experiments, Pasteur had succeeded in demonstrating the role that yeasts and bacteria play in fermentation. Lister con- jectured that human infections might have a similar organic origin. To test his theory he began using carbolic acid as an operating-room disinfectant. He per- formed forty amputations with the aid of carbolic acid, and thirty-four patients survived. He also did thirty-five amputations without carbolic acid, and nine- teen patients survived. While it seems clear that carbolic acid did improve sur- vival rates, a test of statistical significance helps to rule out a difference due to chance (214).

Let pX be the true probability of survival with carbolic acid, and let pY de- note the true survival probability without the antiseptic. The hypotheses to be tested are

H0 : pX = pY (= p) versus

H1 : pX > pY

Take α = 0.01. If H0 is true, the pooled estimate of p would be the overall survival rate.

That is,

pe = 34 + 1940 + 35 = 53 75

= 0.707

The sample proportions for survival with and without carbolic acid are 34/40 = 0.850 and 19/35 = 0.543, respectively. According to Theorem 9.4.1, then, the test statistic is

z = 0.850 − 0.543√ (0.707)(0.293)

40 + (0.707)(0.293)35 = 2.92

Since z exceeds the α = 0.01 critical value (z.01 = 2.33), we should reject the null hypothesis and conclude that the use of carbolic acid saves lives.

About the Data In spite of this study and a growing body of similar evidence, the theory of antiseptic surgery was not immediately accepted in Lister’s native England. Continental European surgeons, though, understood the value of Lis- ter’s work and in 1875 presented him with a humanitarian award.

Comment The British were not alone in ignoring Lister’s accomplishments. In the fall of 1880, James A. Garfield was elected the twentieth President of the United States. The following July he was shot twice, point-blank, by a delusional

Section 9.4 Binomial Data: Testing H0: pX = pY 471

office-seeker. Garfield died an agonizing two-and-a-half months later of sys- temic infections, an outcome that probably could have been prevented had his attending physicians not dismissed Lister’s work as being of no consequence.

CASE STUDY 9.4.2

Over the years, numerous studies have sought to characterize the nightmare suf- ferer. Out of these has emerged the stereotype of someone with high anxiety, low ego strength, feelings of inadequacy, and poorer-than-average physical health. What is not so well known, though, is whether men fall into this pattern with the same frequency as women. To this end, a clinical survey (83) looked at nightmare frequencies for a sample of one hundred sixty men and one hundred ninety-two women. Each subject was asked whether he (or she) experienced nightmares “often” (at least once a month) or “seldom” (less than once a month). The per- centages of men and women saying “often” were 34.4% and 31.3%, respectively (see Table 9.4.1). Is the difference between those two percentages statistically significant?

Table 9.4.1 Frequency of Nightmares

Men Women Total

Nightmares often 55 60 115 Nightmares seldom 105 132 237

Totals 160 192 % often: 34.4 31.3

Let pM and pW denote the true proportions of men having nightmares often and women having nightmares often, respectively. The hypotheses to be tested are

H0: pM = pW versus

H1: pM �= pW Let α = 0.05. Then ± z.025 = ± 1.96 become the two critical values. More-

over, pe = 55 + 60160 + 192 = 0.327, so

z = 0.344 − 0.313√ (0.327)(0.673)

160 + (0.327)(0.673)192 = 0.62

The conclusion, then, is clear: We fail to reject the null hypothesis—these data provide no convincing evidence that the frequency of nightmares is different for men than for women.

About the Data The results of every statistical study are intended to be generalized—from the subjects measured to a broader population that the sam- ple might reasonably be expected to represent. Obviously, then, knowing some- thing about the subjects is essential if a set of data is to be interpreted (and ex- trapolated) properly. Table 9.4.1 is a cautionary case in point. The three hundred fifty-two individuals interviewed were not the typical sort of subjects solicited for a university research project. They were all institutionalized mental patients.

472 Chapter 9 Two-Sample Inferences

Questions

9.4.1. The phenomenon of handedness has been extensively studied in human populations. The percentages of adults who are right-handed, left-handed, and ambidextrous are well documented. What is not so well known is that a similar phenomenon is present in lower animals. Dogs, for example, can be either right-pawed or left-pawed. Suppose that in a random sample of two hundred beagles, it is found that fifty-five are left-pawed and that in a random sample of two hundred collies, forty are left-pawed. Can we conclude that the difference in the two sample proportions of left-pawed dogs is statistically significant for α = 0.05? 9.4.2. In a study designed to see whether a controlled diet could retard the process of arteriosclerosis, a total of 846 randomly chosen persons were followed over an eight- year period. Half were instructed to eat only certain foods; the other half could eat whatever they wanted. At the end of eight years, sixty-six persons in the diet group were found to have died of either myocardial infarction or cere- bral infarction, as compared to ninety-three deaths of a similar nature in the control group (215). Do the appro- priate analysis. Let α = 0.05. 9.4.3. Water witching, the practice of using the movements of a forked twig to locate underground water (or minerals), dates back over four hundred years. Its first detailed descriptionappears inAgricola’sDereMetallica,published in 1556. That water witching works remains a belief widely held among rural people in Europe and throughout the Americas. [In 1960 the number of ‘‘active’’ water witches in the United States was estimated to be more than 20,000 (205).] Reliable evidence supporting or refuting water witching is hard to find. Personal accounts of isolated successes or failures tend to be strongly biased by the attitude of the observer. Of all the wells dug in Fence Lake, New Mexico, twenty-nine ‘‘witched’’ wells and thirty-two ‘‘nonwitched’’ wells were sunk. Of the ‘‘witched’’ wells, twenty-four were successful. For the ‘‘nonwitched’’ wells, there were twenty- seven successes. What would you conclude?

9.4.4. If flying saucers are a genuine phenomenon, it would follow that the nature of sightings (that is, their physical characteristics) would be similar in different parts of the world. A prominent UFO investigator compiled a listing of ninety-one sightings reported in Spain and eleven hundred seventeen reported elsewhere. Among the information recorded was whether the saucer was on the ground or hovering. His data are summarized in the following table (95). Let pS and pNS denote the true probabilities of ‘‘Saucer on ground’’ in Spain and not in Spain, respectively. Test H0: pS = pNS against a two-sided H1. Let α = 0.01.

In Spain Not in Spain

Saucer on ground 53 705 Saucer hovering 38 412

9.4.5. In some criminal cases, the judge and the defen- dant’s lawyer will enter into a plea bargain, where the ac- cused pleads guilty to a lesser charge. The proportion of time this happens is called the mitigation rate. A Florida Corrections Department study showed that Escambia County had the state’s fourth highest rate, 61.7% (1033 out of 1675 cases). Concerned that the guilty were not get- ting appropriate sentences, the state attorney put in new policies to limit the number of plea bargains. A follow- up study (143) showed that the mitigation rate dropped to 52.1% (344 out of 660 cases). Is it fair to conclude that the drop was due to the new policies, or can the decline be written off to chance? Test at the α = 0.01 level.

9.4.6. Suppose H0: pX = pY is being tested against H1: pX �= pY on the basis of two independent sets of one hundred Bernoulli trials. If x, the number of successes in the first set, is sixty and y, the number of successes in the second set, is forty-eight, what P-value would be associ- ated with the data?

9.4.7. A total of 8605 students are enrolled full-time at State University this semester, 4134 of whom are women. Of the 6001 students who live on campus, 2915 are women. Can it be argued that the difference in the pro- portion of men and women living on campus is statisti- cally significant? Carry out an appropriate analysis. Let α = 0.05.

9.4.8. The kittiwake is a seagull whose mating behavior is basically monogamous. Normally, the birds separate for several months after the completion of one breeding sea- son and reunite at the beginning of the next. Whether or not the birds actually do reunite, though, may be af- fected by the success of their “relationship” the season before. A total of seven hundred sixty-nine kittiwake pair- bonds were studied (33) over the course of two breed- ing seasons; of those seven hundred sixty-nine, some six hundred nine successfully bred during the first season; the remaining one hundred sixty were unsuccessful. The fol- lowing season, one hundred seventy-five of the previously successful pair-bonds “divorced,” as did one hundred of the one hundred sixty whose prior relationship left some- thing to be desired. Can we conclude that the difference in the two divorce rates (29% and 63%) is statistically significant?

Breeding in Previous Year

Successful Unsuccessful

Number divorced 175 100 Number not divorced 434 60

Total 609 160 Percent divorced 29 63

Section 9.5 Confidence Intervals for the Two-Sample Problem 473

9.4.9. A utility infielder for a National League club bat- ted .260 last season in three hundred trips to the plate. This year he hit .250 in two hundred at-bats. The owners are trying to cut his pay for next year on the grounds that his output has deteriorated. The player argues, though, that his performances the last two seasons have not been

significantly different, so his salary should not be reduced. Who is right?

9.4.10. Compute −2 ln λ (see Equation 9.4.1) for the nightmare data of Case Study 9.4.2, and use it to test the hypothesis that pX = pY . Let α = 0.01.

9.5 Confidence Intervals for the Two-Sample Problem Two-sample data lend themselves nicely to the hypothesis testing format because a meaningful H0 can always be defined (which is not the case for every set of one- sample data). The same inferences, though, can just as easily be phrased in terms of confidence intervals. Simple inversions similar to the derivation of Equation 7.4.1 will yield confidence intervals for μX − μY , σ2X /σ2Y , and pX − pY .

Theorem 9.5.1

Let x1, x2, . . . , xn and y1, y2, . . . , ym be independent random samples drawn from normal distributions with means μX and μY , respectively, and with the same stan- dard deviation, σ. Let sp denote the data’s pooled standard deviation. A 100(1−α)% confidence interval for μX − μY is given by(

x̄ − ȳ − tα/2, n+m−2 · sp √

1 n

+ 1 m

, x̄ − ȳ + tα/2, n+m−2 · sp √

1 n

+ 1 m

)

Proof We know from Theorem 9.2.1 that

X − Y − (μX − μY ) Sp √

1 n + 1m

has a Student t distribution with n + m − 2 df. Therefore,

P

⎡ ⎣−tα/2, n+m−2 ≤ X − Y − (μX − μY )

Sp √

1 n + 1m

≤ tα/2, n+m−2 ⎤ ⎦ = 1 − α (9.5.1)

Rewriting Equation 9.5.1 by isolating μX − μY in the center of the inequalities gives the endpoints stated in the theorem.

CASE STUDY 9.5.1

Forensic scientists sometimes have difficulty identifying the sex of a murder vic- tim whose discovered body is badly decomposed. Often, dental structure can provide useful clues because female teeth and male teeth have different phys- ical and chemical characteristics. How much X-rays can penetrate enamel, for instance, is not the same for both sexes.

Listed in Table 9.5.1 are gradients for eight female teeth and eight male teeth (62). These numbers are measures of the rate of change in the amount of X-ray penetration through a 500-micron section of tooth enamel at a wavelength of 600 nm as opposed to 400 nm.

Let μX and μY be the population means of the spectropenetration gradients of male teeth and with female teeth, respectively. Construct a 95% confidence interval for μX − μY . If the interval does not contain 0, the null hypothesis H0 : μX = μY can be rejected at the α = 0.05 level (in favor of H1 : μX �= μY ).

(Continued on next page)

474 Chapter 9 Two-Sample Inferences

(Case Study 9.5.1 continued)

Table 9.5.1 Enamel Spectropene- tration Gradients

Male, xi Female, yi

4.9 4.8 5.4 5.3 5.0 3.7 5.5 4.1 5.4 5.6 6.6 4.0 6.3 3.6 4.3 5.0

Note that 8∑

i=1 xi = 43.4 and

8∑ i=1

x2i = 239.32

from which

x̄ = 43.4 8

= 5.4 and

s2X = 8(239.32) − (43.4)2

8(7) = 0.55

Similarly, 8∑

i=1 yi = 36.1 and

8∑ i=1

y2i = 166.95

so that

ȳ = 36.1 8

= 4.5 and

s2Y = 8(166.95) − (36.1)2

8(7) = 0.58

Therefore, the pooled standard deviation is equal to 0.75:

sP = √

7(0.55) + 7(0.58) 8 + 8 − 2 =

√ 0.565 = 0.75

We know that the ratio X − Y − (μX − μY )

Sp √

1 8 + 18

will be approximated by a Student t curve with 14 degrees of freedom. Since t.025,14 = 2.1448, the 95% confidence interval for μX − μY is given by(

x̄ − ȳ − 2.1448 sp √

1 8

+ 1 8

, x̄ − ȳ + 2.1448 sp √

1 8

+ 1 8

)

= [ 5.4 − 4.5 − 2.1448(0.75)

√ 0.25 , 5.4 − 4.5 + 2.1448(0.75)

√ 0.25 ]

= (0.1, 1.7)

Section 9.5 Confidence Intervals for the Two-Sample Problem 475

These data support the contention, then, that male and female teeth are different with respect to X-ray penetration because the confidence interval for μX − μY does not contain the value 0.

Comment For the scenario of Theorem of 9.5.1, if the variances are not equal, then an approximate 100(1 − α)% confidence interval is given by⎛

⎝x̄ − ȳ − tα/2,v √

s2X n

+ s 2 Y

m , x̄ − ȳ + tα/2,ν

√ s2X n

+ s 2 Y

m

⎞ ⎠

where ν = (θ̂+ n m )

2

1 (n−1) θ̂

2+ 1(m−1) ( nm ) 2 for θ̂ = s

2 X

s2Y .

If the degrees of freedom exceed 100, then the form above is used, with zα/2 replacing tα/2,v .

Theorem 9.5.2

Let x1, x2, . . . , xn and y1, y2, . . . , ym be independent random samples drawn from normal distributions with standard deviations σX and σY , respectively. A 100(1 − α)% confidence interval for the variance ratio, σ2X /σ2Y , is given by(

s2X s2Y

Fα/2,m−1,n−1, s2X s2Y

F1−α/2,m−1,n−1

)

Proof Start with the fact that S 2 Y /σ

2 Y

S2X /σ 2 X

has an F distribution with m − 1 and n − 1 df, and follow the strategy used in the proof of Theorem 9.5.1—that is, isolate σ2X /σ

2 Y

in the center of the analogous inequalities.

CASE STUDY 9.5.2

The easiest way to measure the movement, or flow, of a glacier is with a camera. First a set of reference points is marked off at various sites near the glacier’s edge. Then these points, along with the glacier, are photographed from an airplane. The problem is this: How long should the time interval be between photographs? If too short a period has elapsed, the glacier will not have moved very far and the errors associated with the photographic technique will be relatively large. If too long a period has elapsed, parts of the glacier might be deformed by the surrounding terrain, an eventuality that could introduce substantial variability into the point-to-point velocity estimates.

Two sets of flow rates for the Antarctic’s Hoseason Glacier have been cal- culated (123), one based on photographs taken three years apart, the other, five years apart (see Table 9.5.2). On the basis of other considerations, it can be assumed that the “true” flow rate was constant for the eight years in question.

The objective here is to assess the relative variabilities associated with the three- and five-year time periods. One way to do this—assuming the data to be normal—is to construct, say, a 95% confidence interval for the variance ratio. If that interval does not contain the value 1, we infer that the two time periods lead to flow rate estimates of significantly different precision.

From Table 9.5.2, 7∑

i=1 xi = 5.23 and

7∑ i=1

x2i = 3.9089

(Continued on next page)

476 Chapter 9 Two-Sample Inferences

(Case Study 9.5.2 continued)

Table 9.5.2 Flow Rates Estimated for the Hoseason Glacier (meters per day)

Three-Year Span, xi Five-Year Span, yi

0.73 0.72 0.76 0.74 0.75 0.74 0.77 0.72 0.73 0.72 0.75 0.74

so that

s2X = 7(3.9089) − (5.23)2

7(6) = 0.000224

Similarly,

5∑ i=1

yi = 3.64 and 5∑

i=1 y2i = 2.6504

making

s2Y = 5(2.6504) − (3.64)2

5(4) = 0.000120

The two critical values come from Table A.4 in the Appendix:

F.025,4,6 = 0.109 and F.975,4,6 = 6.23 Substituting, then, into the statement of Theorem 9.5.2 gives (0.203, 11.629) as a 95% confidence interval for σ2X /σ

2 Y :(

0.000224 0.000120

0.109, 0.000224 0.000120

6.23 )

= (0.203, 11.629)

Thus, although the three-year data have a larger sample variance than the five- year data, no conclusions can be drawn about the true variances being different, because the ratio σ2X /σ

2 Y = 1 is contained in the confidence interval.

Theorem 9.5.3

Let x and y denote the numbers of successes observed in two independent sets of n and m Bernoulli trials, respectively. If pX and pY denote the true success probabili- ties, an approximate 100(1 − α)% confidence interval for pX − pY is given by⎡

⎣x n

− y m

− zα/2 √( x

n

) ( 1 − xn )

n + ( y

m

) ( 1 − ym

) m

,

x n

− y m

+ zα/2 √( x

n

) ( 1 − xn )

n + ( y

m

) ( 1 − ym

) m

⎤ ⎦

Proof See Question 9.5.11.

Section 9.5 Confidence Intervals for the Two-Sample Problem 477

CASE STUDY 9.5.3

If a hospital patient’s heart stops, an emergency message, code blue, is called. A team rushes to the bedside and attempts to revive the patient. A study (141) suggests that patients are better off not suffering cardiac arrest after 11 p.m., the so-called graveyard shift. The study lasted seven years and used nonemergency room data from over five hundred hospitals. During the day and early evening hours, 58,593 cardiac arrests occurred and 11,604 patients survived to leave the hospital. For the 11 p.m. shift, of the 28,155 heart stoppages, 4139 patients lived to be discharged.

Let pX (estimated by 11,604/58,593 = 0.198) be the true probability of survival during the earlier hours. Let pY denote the true survival probability for the graveyard shift (estimated by 4139/28,155 = 0.147). To construct a 95% confidence interval for pX − pY , take zα/2 = 1.96. Then Theorem 9.5.3 gives the lower limit of the confidence interval as

0.198 − 0.147 − 1.96 √

(0.198)(0.802) 58,593

+ (0.147)(0.853) 28,155

= 0.0458

and the upper limit as

0.198 − 0.147 + 1.96 √

(0.198)(0.802) 58,593

+ (0.147)(0.853) 28,155

= 0.0562

so the 95% confidence interval is (0.0458, 0.0562). Since pX − pY = 0 is not included in the interval (which lies entirely to the

right of 0), we can conclude that survival rates are worse during the graveyard shift.

Questions

9.5.1. Historically, fluctuations in the amount of rare met- als found in coins are not uncommon (82). The following data may be a case in point. Listed are the silver percent- ages found in samples of a Byzantine coin minted on two separate occasions during the reign of Manuel I (1143– 1180). Construct a 90% confidence interval for μX − μY , the true average difference in the coin’s silver content (= “early” − “late”). What does the interval imply about the outcome of testing H0: μX = μY ? For these data sX = 0.54 and sY = 0.36.

Early Coinage, xi Late Coinage, yi (% Ag) (% Ag)

5.9 5.3 6.8 5.6 6.4 5.5 7.0 5.1 6.6 6.2 7.7 5.8 7.2 5.8 6.9 6.2

Average: 6.7 Average: 5.6

9.5.2. Male fiddler crabs solicit attention from the oppo- site sex by standing in front of their burrows and waving their claws at the females who walk by. If a female likes what she sees, she pays the male a brief visit in his bur- row. If everything goes well and the crustacean chemistry clicks, she will stay a little longer and mate. In what may be a ploy to lessen the risk of spending the night alone, some of the males build elaborate mud domes over their burrows. Do the following data (229) suggest that a male’s time spent waving to females is influenced by whether his burrow has a dome? Answer the question by constructing and interpreting a 95% confidence interval for μX − μY . Use the value sp = 11.2.

% of Time Spent Waving to Females

Males with Domes, xi Males without Domes, yi

100.0 76.4 58.6 84.2 93.5 96.5 83.6 88.8 84.1 85.3

79.1 83.6

478 Chapter 9 Two-Sample Inferences

9.5.3. Construct two 99% confidence intervals for μX − μY using the data of Case Study 9.2.3, first assuming the variances are equal, and then assuming they are not.

9.5.4. Carry out the details to complete the proof of Theorem 9.5.1.

9.5.5. Suppose that X1, X2, . . . , Xn and Y1, Y2, . . . , Ym are independent random samples from normal distributions with means μX and μY and known standard deviations σX and σY , respectively. Derive a 100(1−α)% confidence interval for μX − μY . 9.5.6. Construct a 95% confidence interval for σ2X /σ

2 Y

based on the data in Case Study 9.2.1. The hypothesis test referred to tacitly assumed that the variances were equal. Does that agree with your confidence interval? Explain.

9.5.7. One of the parameters used in evaluating myocar- dial function is the end diastolic volume (EDV). The fol- lowing table shows EDVs recorded for eight persons con- sidered to have normal cardiac function and for six with constrictive pericarditis (204). Would it be correct to use Theorem 9.2.2 to test H0: μX = μY ? Answer the question by constructing a 95% confidence interval for σ2X /σ

2 Y .

Normal, xi Constrictive Pericarditis, yi

62 24 60 56 78 42 62 74 49 44 67 28 80 48

9.5.8. Complete the proof of Theorem 9.5.2.

9.5.9. Flonase is a nasal spray for diminishing nasal al- lergic symptoms. In clinical trials for side effects, 782 sufferers from allergic rhinitis were given a daily dose

of 200 mcg of Flonase. Of this group, 126 reported headaches. A group of 758 subjects were given a placebo, and 111 of them reported headaches. Find a 95% con- fidence interval for the difference in proportion of headaches for the two groups. Does the confidence in- terval suggest a statistically significant difference in the frequency of headaches for Flonase users? Data from: http://www.drugs.com/sfx/flonase-side-effects.html.

9.5.10. Construct an 80% confidence interval for the difference pM − pW in the nightmare frequency data summarized in Case Study 9.4.2.

9.5.11. If pX and pY denote the true success probabilities associated with two sets of n and m independent Bernoulli trials, respectively, the ratio

X n − Ym − (pX − pY )√

(X/n)(1−X/n) n + (Y/m)(1−Y/m)m

has approximately a standard normal distribution. Use that fact to prove Theorem 9.5.3.

9.5.12. For obese patients, there is an increased risk of complications in the healing of a surgical incision. A prac- ticing surgeon learned of a new type of suturing that might improve surgical wound healing. Patients were randomly selected for the standard treatment, which was used as the control, and the new suturing. The results were as follows:

Treatment

Control Sutures

No complications 68 67 Complications 9 6

Find a 95% confidence interval for the difference in com- plication rates. Is there evidence that the new sutures are better?

9.6 Taking a Second Look at Statistics (Choosing Samples)

Choosing sample sizes is a topic that invariably receives extensive coverage whenever applied statistics and experimental design are discussed. Whatever the context, the number of observations making up a data set figures prominently in the ability of those data to address any and all of the questions raised by the experimenter. As sample sizes get larger, we know that estimators become more precise and hypothesis tests get better at distinguishing between H0 and H1. Larger sample sizes, of course, are also more expensive. The trade-off between how many observations researchers can afford to take and how many they would like to take is a choice that has to be made early on in the design of any experiment. If the sample sizes ultimately decided upon are too small, there is a risk that the objectives of the study will not be fully

Section 9.6 Taking a Second Look at Statistics (Choosing Samples) 479

achieved—parameters may be estimated with insufficient precision and hypothesis tests may reach incorrect conclusions.

That said, choosing sample sizes is often not as critical to the success of an exper- iment as choosing sample subjects. In a two-sample design, for example, how should we decide which particular subjects to assign to treatment X and which to treatment Y? If the subjects comprising a sample are somehow “biased” with respect to the measurement being recorded, the integrity of the conclusions is irretrievably com- promised. There are no statistical techniques for “correcting” inferences based on measurements that were biased in some unknown way. It is also true that biases can be very subtle, yet still have a pronounced effect on the final measurements. That being the case, it is incumbent on researchers to take every possible precaution at the outset to prevent inappropriate assignments of subjects to treatments.

For example, suppose for your Senior Project you plan to study whether a new synthetic testosterone can affect the behavior of female rats. Your intention is to set up a two-sample design where ten rats will be given weekly injections of the new testosterone compound and another ten rats will serve as a control group, receiving weekly injections of a placebo. At the end of eight weeks, all twenty rats will be put in a large community cage, and the behavior of each one will be closely monitored for signs of aggression.

Last week you placed an order for twenty female Rattus norvegicus from the local Rats ’R Us franchise. They arrived today, all housed in one large cage. Your plan is to remove ten of the twenty “at random,” and then put those ten in a similarly large cage. The ten removed will be receiving the testosterone injections; the ten remaining in the original cage will constitute the control group. The question is, which ten should be removed?

The obvious answer—reach in and pull out ten—is very much the wrong answer! Why? Because the samples formed in such a way might very well be biased if, for ex- ample, you (understandably) tended to avoid grabbing the rats that looked like they might bite. If that were the case, the ones you drew out would be biased, by virtue of being more passive than the ones left behind. Since the measurements ultimately to be taken deal with aggression, biasing the samples in that particular way would be a fatal flaw. Whether the total sample size was twenty or twenty thousand, the results would be seriously compromised.

In general, relying on our intuitive sense of the word “random” to allocate subjects to different treatments is risky, to say the least. The correct approach would be to number the rats from 1 to 20 and then use a random number table or a computer’s random number generator to identify the ten to be removed. Figure 9.6.1 shows the Minitab syntax for choosing a random sample of ten numbers from the integers 1 through 20. According to this particular run of the SAMPLE routine, the ten rats to be removed for the testosterone injections are (in order) numbers 1, 5, 8, 9, 10, 14, 15, 18, 19 and 20.

MTB > set c1 DATA > 1:20 DATA > end MTB > sample 10 c1 c2 MTB > print c2

Data Display

C2 18 1 20 19 9 10 8 15 14 5

Figure 9.6.1 (Courtesy of Minitab Corporation.)

There is a moral here. Designing, carrying out, and analyzing an experiment is an exercise that draws on a variety of scientific, computational, and statistical skills, some of which may be quite sophisticated. No matter how well those complex issues

480 Chapter 9 Two-Sample Interferences

are attended to, though, the enterprise will fail if the simplest and most basic aspects of the experiment—such as assigning subjects to treatments—are not carefully scrutinized and properly done. The Devil, as the saying goes, is in the details.

Appendix 9.A.1 A Derivation of the Two-Sample t Test (A Proof of Theorem 9.2.2)

To begin, we note that both the restricted and unrestricted parameter spaces, ω and Ω, are three dimensional:

ω = {(μX ,μY , σ) : −∞ < μX = μY < ∞, 0 < σ < ∞}

and

Ω = {(μX ,μY , σ) : −∞ < μX < ∞,−∞ < μY < ∞, 0 < σ < ∞}

Since the X ’s and Y ’s are independent (and normal),

L(ω) = n∏

i=1 fX (xi)

m∏ j=1

fY (y j)

= (

1√ 2πσ

)n+m exp

⎧⎨ ⎩− 12σ2

⎡ ⎣ n∑

i=1 (xi − μ)2+

m∑ j=1

(yi − μ)2 ⎤ ⎦ ⎫⎬ ⎭ (9.A.1.1)

where μ = μX = μY . If we take ln L(ω) and solve ∂ln L(ω)/∂μ = 0 and ∂ln L(ω)/∂σ2 = 0 simultaneously, the solutions will be the restricted maximum likeli- hood estimates:

μωe =

n∑ i=1

xi + m∑

j=1 y j

n + m (9.A.1.2)

and

σ2ωe =

n∑ i=1

(xi − μωe )2 + m∑

j=1

( y j − μωe

)2 n + m (9.A.1.3)

Substituting Equations 9.A.1.2 and 9.A.1.3 into Equation 9.A.1.1 gives the numerator of the generalized likelihood ratio:

L(ωe) = (

e−1

2πσ2ωe

)(n+m)/2 Similarly, the likelihood function unrestricted by the null hypothesis is

L(Ω) = (

1√ 2πσ

)n+m exp

⎧⎨ ⎩− 12σ2

⎡ ⎣ n∑

i=1 (xi − μX )2 +

m∑ j=1

(y j − μY )2 ⎤ ⎦ ⎫⎬ ⎭ (9.A.1.4)

Here, solving

∂ ln L(Ω) ∂μX

= 0 ∂ ln L(Ω) ∂μY

= 0 ∂ ln L(Ω) ∂σ2

= 0

Appendix 9.A.1 A Derivation of the Two-Sample t Test (A Proof of Theorem 9.2.2) 481

gives

μXe = x̄ μYe = ȳ

σ2Ωe =

n∑ i=1

(xi − x̄)2 + m∑

j=1 (y j − ȳ)2

n + m If these estimates are substituted into Equation 9.A.1.4, the maximum value for L(Ω) simplifies to

L(Ωe) = ( e−1/2πσ2Ωe

)(n+m)/2 It follows, then, that the generalized likelihood ratio, λ, is equal to

λ = L(ωe) L(Ωe)

= (

σ2Ωe

σ2ωe

)(n+m)/2

or, equivalently,

λ2/(n+m) =

n∑ i=1

(xi − x̄)2 + m∑

j=1

( y j − ȳ

)2 n∑

i=1

[ xi − ( nx̄ + mȳ

n + m )]2 + m∑

j=1

[ y j − ( nx̄ + mȳ

n + m )]2

Using the identity

n∑ i=1

( xi − nx̄ + mȳn + m

)2 =

n∑ i=1

(xi − x̄)2 + m 2n

(n + m)2 (x̄ − ȳ) 2

we can write λ2/(n+m) as

λ2/(n+m) =

n∑ i=1

(xi − x̄)2 + m∑

j=1

( y j − ȳ

)2 n∑

i=1 (xi − x̄)2 +

m∑ j=1

( y j − ȳ

)2 + nmn+m (x̄ − ȳ)2 = 1

1 + (x̄−ȳ)2[ n∑

i=1 (xi−x̄)2+

m∑ j=1

(y j−ȳ)2 ] ( 1n + 1m )

= n + m − 2 n + m − 2 + (x̄−ȳ)2s2p[(1/n) + (1/m)]

where s2p is the pooled variance:

s2p = 1

n + m − 2

⎡ ⎣ n∑

i=1 (xi − x̄)2 +

m∑ j=1

( y j − ȳ

)2⎤⎦ Therefore, in terms of the observed t ratio, λ2/(n+m) simplifies to

λ2/(n+m) = n + m − 2 n + m − 2 + t2 (9.A.1.5)

At this point the proof is almost complete. The generalized likelihood ratio cri- terion, rejecting H0: μX = μY when 0 < λ ≤ λ∗, is clearly equivalent to rejecting the

482 Chapter 9 Two-Sample Interferences

null hypothesis when 0 < λ2/(n+m) ≤ λ∗∗. But both of these, from Equation 9.A.1.5, are the same as rejecting H0 when t2 is too large. Thus the decision rule in terms of t2 is

Reject H0: μX = μY in favor of H1: μX �= μY if t2 ≥ t∗2

Or, phrasing this in still another way, we should reject H0 if either t ≥ t∗ or t ≤ −t∗, where

P(−t∗ < T < t∗ | H0: μX = μY is true) = 1 − α By Theorem 9.2.1, though, T has a Student t distribution with n + m − 2 df, which makes ±t∗ = ±tα/2,n+m−2, and the theorem is proved.

Chapte r

10Goodness-of-Fit Tests CHAPTER OUTLINE

10.1 Introduction 10.2 The Multinomial

Distribution 10.3 Goodness-of-Fit

Tests: All Parameters Known

10.4 Goodness-of-Fit Tests: Parameters Unknown

10.5 Contingency Tables 10.6 Taking a Second

Look at Statistics (Outliers)

Called by some the founder of twentieth-century statistics, Karl Pearson (1857–1936) received his university education at Cambridge, concentrating on physics, philosophy, and law. He was called to the bar in 1881 but never practiced. In 1911 Pearson resigned his chair of applied mathematics and mechanics at University College, London, and became the first Galton Professor of Eugenics, as was Galton’s wish. Together with Weldon, Pearson founded the prestigious journal Biometrika and served as its principal editor from 1901 until his death.

10.1 INTRODUCTION The give-and-take between the mathematics of probability and the empiricism of statistics should be, by now, a comfortably familiar theme. Time and time again we have seen repeated measurements, no matter their source, exhibiting a regularity of pattern that can be well approximated by one or more of the handful of probability functions introduced in Chapter 4. Until now, all the inferences resulting from this interfacing have been parameter specific, a fact to which the many hypothesis tests about means, variances, and binomial proportions paraded forth in Chapters 6, 7, and 9 bear ample testimony. Still, there are other situations where the basic form of pX (k) or fY (y), rather than the value of its parameters, is the most important question at issue. These situations are the focus of Chapter 10.

A geneticist, for example, might want to know whether the inheritance of a cer- tain set of traits follows the same set of ratios as those prescribed by Mendelian theory. The objective of a psychologist, on the other hand, might be to confirm or refute a newly proposed model for cognitive serial learning. Probably the most habit- ual users of inference procedures directed at the entire pdf, though, are statisticians themselves: As a prelude to doing any sort of hypothesis test or confidence inter- val, an attempt should be made, sample size permitting, to verify that the data are indeed representative of whatever distribution that procedure presumes. Often, this will mean testing to see whether a set of yi’s might conceivably represent a normal distribution.

In general, any procedure that seeks to determine whether a set of data could reasonably have originated from some given probability distribution, or class of probability distributions, is called a goodness-of-fit test. The principle behind the particular goodness-of-fit test we will look at is very straightforward: First the ob- served data are grouped, more or less arbitrarily, into k classes; then each class’s “expected” occupancy is calculated on the basis of the presumed model. If it should happen that the set of observed and expected frequencies shows considerably more

483

484 Chapter 10 Goodness-of-Fit Tests

disagreement than sampling variability would predict, our conclusion will be that the supposed pX (k) or fY (y) was incorrect.

In practice, goodness-of-fit tests have several variants, depending on the speci- ficity of the null hypothesis. Section 10.3 describes the approach to take when both the form of the presumed data model and the values of its parameters are known. More typically, we know the form of pX (k) or fY (y), but their parameters need to be estimated; these are taken up in Section 10.4.

A somewhat different application of goodness-of-fit testing is the focus of Section 10.5. There, the null hypothesis is that two random variables are indepen- dent. In more than a few fields of endeavor, tests for independence are among the most frequently used of all inference procedures.

10.2 The Multinomial Distribution Their diversity notwithstanding, most goodness-of-fit tests are based on essentially the same statistic, one that has an asymptotic chi square distribution. The underlying structure of that statistic, though, derives from the multinomial distribution, a direct extension of the familiar binomial. In this section we define the multinomial and state those of its properties that relate to goodness-of-fit testing.

Given a series of n independent Bernoulli trials, each with success probability p, we know that the pdf for X , the total number of successes, is

P(X = k) = pX (k) = (

n k

) pk(1 − p)n−k, k = 0, 1, . . . , n (10.2.1)

One of the obvious ways to generalize Equation 10.2.1 is to consider situations in which at each trial, one of t outcomes can occur, rather than just one of two. That is, we will assume that each trial will result in one of the outcomes r1, r2, . . . , rt , where

P(ri) = pi, i = 1, 2, . . . , t (see Figure 10.2.1). It follows, of course, that t∑

i=1 pi = 1.

Possible

Independent trials

outcomes

r1 r2

r1 r2

pi = P(ri ), r1 r2

i = 1, 2, . . . , t rt 1

rt 2

. . . rt n

Figure 10.2.1

In the binomial model, the two possible outcomes are denoted s and f , where P(s) = p and P( f ) = 1− p. Moreover, the outcomes of the n trials can be nicely sum- marized with a single random variable X , where X denotes the number of successes. In the more general multinomial model, we will need a random variable to count the number of times that each of the ri’s occurs. To that end, we define

Xi = number of times ri occurs, i = 1, 2, . . . , t

For a given set of n trials, X1 = k1, X2 = k2, . . . , Xt = kt and t∑

i=1 ki = n.

Section 10.2 The Multinomial Distribution 485

Theorem 10.2.1

Let Xi denote the number of times that the outcome ri occurs, i = 1, 2, . . . , t, in a series of n independent trials, where pi = P(ri). Then the vector (X1, X2, . . . , Xt) has a multinomial distribution and

pX1,X2, ... ,Xt (k1, k2, . . . , kt) = P(X1 = k1, X2 = k2, . . . , Xt = kt)

= n! k1! k2! · · · kt! p

k1 1 p

k2 2 · · · pktt ,

ki = 0, 1, . . . , n; i = 1, 2, . . . , t; t∑

i=1 ki = n

Proof Any particular sequence of k1 r1’s, k2 r2’s, . . . , and kt rt ’s has probability pk11 p

k2 2 . . . p

kt t . Moreover, the total number of outcome sequences that will generate

the values (k1, k2, . . . , kt) is the number of ways to permute n objects, k1 of one type, k2 of a second type, . . ., and kt of a tth type. By Theorem 2.6.2 that number is n!/k1!k2! . . . kt!, and the statement of the theorem follows.

Depending on the context, the ri’s associated with the n trials in Figure 10.2.1 can be either single numerical values (or categories) or ranges of numerical values (or categories). Example 10.2.1 illustrates the first type; Example 10.2.2, the second. The only requirements imposed on the ri’s are (1) they must span all of the outcomes possible at a given trial and (2) they must be mutually exclusive.

Example 10.2.1

Suppose a loaded die is tossed twelve times, where

pi = P(Face i appears) = ci, i = 1, 2, . . . , 6 What is the probability that each face will appear exactly twice?

Note that 6∑

i=1 pi = 1 =

6∑ i=1

ci = c · 6(6 + 1) 2

which implies that c = 121 (and pi = i/21). In the terminology of Theorem 10.2.1, the possible outcomes at each trial are the t = 6 faces, 1 (= r1) through 6 (= r6), and Xi is the number of times face i occurs, i = 1, 2, . . . , 6.

The question is asking for the probability of the vector

(X1, X2, X3, X4, X5, X6) = (2, 2, 2, 2, 2, 2) According to Theorem 10.2.1,

P(X1 = 2, X2 = 2, . . . , X6 = 2) = 12!2! 2! · · · 2! (

1 21

)2 ( 2 21

)2 · · ·

( 6 21

)2 = 0.0005

Example 10.2.2

Five observations are drawn at random from the pdf

fY (y) = 6y(1 − y), 0 ≤ y ≤ 1 What is the probability that one of the observations lies in the interval [0, 0.25), none in the interval [0.25, 0.50), three in the interval [0.50, 0.75), and one in the interval [0.75, 1.00]?

486 Chapter 10 Goodness-of-Fit Tests

Figure 10.2.2 shows the pdf being sampled, together with the ranges r1, r2, r3, and r4, and the intended disposition of the five data points. The pi’s of Theorem 10.2.1 are now areas. Integrating fY (y) from 0 to 0.25, for example, gives:

p1 = ∫ 0.25

0 6y(1 − y) dy

= 3y2 ∣∣∣∣0.250 − 2y3

∣∣∣∣ 0.250 = 5

32

0 0.25

1

2

0.50 0.75 1.00

P ro

ba bi

lit y

de ns

it y

f (y) = 6y(1 – y)Y

p1

r1 r4

p4

p2

r2

p3

r3

Figure 10.2.2

By symmetry, p4 = 532 . Moreover, since the area under fY (y) equals 1,

p2 = p3 = 12 (

1 − 10 32

) = 11

32

Let Xi denote the number of observations that fall into the ith range, i = 1, 2, 3, 4. The probability associated with the multinomial vector (1, 0, 3, 1), then, is 0.0198:

P(X1 = 1, X2 = 0, X3 = 3, X4 = 1) = 5!1! 0! 3! 1! (

5 32

)1 (11 32

)0 (11 32

)3 ( 5 32

)1 = 0.0198

A MULTINOMIAL/BINOMIAL RELATIONSHIP

Since the multinomial pdf is conceptually a straightforward generalization of the binomial pdf, it should come as no surprise that each Xi in a multinomial vector is, itself, a binomial random variable.

Theorem 10.2.2

Suppose the vector (X1, X2, . . . , Xt) is a multinomial random variable with parame- ters n, p1, p2, . . ., and pt . Then the marginal distribution of Xi, i = 1, 2, . . . , t, is the binomial pdf with parameters n and pi.

Proof To deduce the pdf for Xi we need simply to dichotomize the possible out- comes at each of the trials into “ri” and “not ri.” Then Xi becomes, in effect, the number of “successes” in n independent Bernoulli trials, where the probability of success at any given trial is pi. By Theorem 3.2.1, it follows that Xi is a binomial random variable with parameters n and pi.

Comment Theorem 10.2.2 gives the pdf for any given Xi in a multinomial vector. Since that pdf is the binomial, we also know that the mean and variance of each Xi are E(Xi) = npi and Var(Xi) = npi(1 − pi), respectively.

Section 10.2 The Multinomial Distribution 487

Example 10.2.3

A physics professor has just given an exam to fifty students enrolled in a thermody- namics class. From past experience, she has reason to believe that the scores will be normally distributed with μ = 80.0 and σ = 5.0. Students scoring ninety or above will receive A’s, between eighty and eighty-nine, B’s, and so on. What are the ex- pected values and variances for the numbers of students receiving each of the five letter grades?

Let Y denote the score a student earns on the exam, and let r1, r2, r3, r4, and r5 denote the ranges corresponding to the letter grades A, B, C, D, and F, respectively. Then

p1 = P(Student earns an A) = P(90 ≤ Y ≤ 100)

= P (

90 − 80 5

≤ Y − 80 5

≤ 100 − 80 5

) = P(2.00 ≤ Z ≤ 4.00) = 0.0228

If X1 is the number of A’s that are earned,

E(X1) = np1 = 50(0.0228) = 1.14 and

Var(X1) = np1(1 − p1) = 50(0.0228)(0.9772) = 1.11 Table 10.2.1 lists the means and variances for all the Xi’s. Each is an illustration

of the Comment following Theorem 10.2.2.

Table 10.2.1

Score Grade pi E(Xi) Var(Xi)

90 ≤ Y ≤ 100 A 0.0228 1.14 1.11 80 ≤ Y < 90 B 0.4772 23.86 12.47 70 ≤ Y < 80 C 0.4772 23.86 12.47 60 ≤ Y < 70 D 0.0228 1.14 1.11

Y <60 F 0.0000 0.00 0.00

Questions

10.2.1. The Advanced Placement Program allows high school students to enroll in special classes in which a sub- ject is studied at the college level. Proficiency is measured by a national examination. Universities typically grant course credit for a sufficiently strong performance. The possible scores are 1, 2, 3, 4, and 5, with 5 being the high- est. The following table gives the probabilities associated with the scores made on a Calculus BC test:

Score Probability

1 0.146 2 0.054 3 0.185 4 0.169 5 0.446

Data from: http://www.totalregistration.net/ AP-Exam-Registration-Service/2015-AP- Exam-Score-Distributions.php

Suppose six students from a class take the test. What is the probability they earn three 5’s, two 4’s, and a 3?

10.2.2. In Mendel’s classical experiments with peas, he produced hybrids in such a way that the probabilities of observing the different phenotypes listed below were 916 , 3 16 ,

3 16 , and

1 16 , respectively. Suppose that four such hybrid

plants were selected at random. What is the probability that each of the four phenotypes would be represented?

Type Probability

Round and yellow 9/16 Round and green 3/16 Angular and yellow 3/16 Angular and green 1/16

10.2.3. In one definition of hypertension, three categories are used: individuals whose systolic blood pressures are less than 140, those with blood pressures between 140

488 Chapter 10 Goodness-of-Fit Tests

and 160, and those with blood pressures over 160. For males between the ages of eighteen and twenty-four, sys- tolic blood pressures are normally distributed with a mean equal to 124 and a standard deviation equal to 13.7. Sup- pose a random sample of ten individuals from that partic- ular demographic group are examined. What is the prob- ability that six of the blood pressures will be in the first group, three in the second, and one in the third?

10.2.4. An army enlistment officer categorizes potential recruits by IQ into three groups—class I: < 90, class II: 90–110, and class III: > 110. Given that the IQs in the pop- ulation from which the recruits are drawn are normally distributed with μ = 100 and σ = 16, calculate the prob- ability that of seven enlistees, two will belong to class I, four to class II, and one to class III.

10.2.5. A disgruntled Anchorage bush pilot, upset because his gasoline credit card was cancelled, fires six air-to-surface missiles at the Alaskan pipeline. If a mis- sile lands anywhere within twenty yards of the pipeline, major structural damage will be sustained. Assume that the probability function reflecting the pilot’s expertise as a bombardier is the expression

fY (y) =

⎧⎪⎪⎪⎨ ⎪⎪⎪⎩

60 + y 3600

−60 < y < 0 60 − y 3600

0 ≤ y < 60 0 elsewhere

where y denotes the perpendicular distance (in yards) from the pipeline to the point of impact. What is the prob- ability that two of the missiles will land within twenty yards to the left of the pipeline and four will land within twenty yards to the right?

10.2.6. Based on his performance so far this season, a baseball player has the following probabilities associated with each official at-bat:

Outcome Probability

Out .713 Single .270 Double .010 Triple .002 Home run .005

If he has five official at-bats in tomorrow’s game, what are the chances he makes two outs and hits two singles and a double?

10.2.7. Suppose that a random sample of fifty observa- tions are taken from the pdf

fY (y) = 3y2, 0 ≤ y ≤ 1

Let Xi be the number of observations in the interval [0, 1/4), X2 the number in [1/4, 2/4), X3 the number in [2/4, 3/4), and X4 the number in [3/4, 1]. (a) Write a formula for pX1, X2, X3, X4 (3, 7, 15, 25). (b) Find Var(X3).

10.2.8. Let the vector of random variables (X1, X2, X3) have the trinomial pdf with parameters n, p1, p2, and p3 = 1 − p1 − p2. That is,

P(X1 = k1, X2 = k2, X3 = k3) = n!k1! k2! k3! p k1 1 p

k2 2 p

k3 3 ,

ki = 0, 1, . . . , n; i = 1, 2, 3; k1 + k2 + k3 = n By definition, the moment-generating function for (X1, X2, X3) is given by

MX1, X2, X3 (t1, t2, t3) = E(et1X1+t2X2+t3X3 )

Show that

MX1,X2,X3 (t1, t2, t3) = (p1et1 + p2et2 + p3et3 )n

10.2.9. If MX1,X2,X3 (t1, t2, t3) is the moment-generating function for (X1, X2, X3), then MX1,X2,X3 (t1, 0, 0), MX1,X2,X3 (0, t2, 0), and MX1,X2,X3 (0, 0, t3) are the moment- generating functions for the marginal pdfs of X1, X2, and X3, respectively. Use this fact, together with the re- sult of Question 10.2.8, to verify the statement of Theo- rem 10.2.2.

10.2.10. Let (k1, k2, . . . , kt) be the vector of sample obser- vations representing a multinomial random variable with parameters n, p1, p2, . . ., and pt . Show that the maximum likelihood estimate for pi is ki/n, i = 1, 2, . . . , t.

10.3 Goodness-of-Fit Tests: All Parameters Known The simplest version of a goodness-of-fit test arises when an experimenter is able to specify completely the probability model from which the sample data are alleged to have come. It might be supposed, for example, that a set of yi’s is being generated by an exponential pdf with parameter equal to 6.3, or by a normal distribution with μ = 500 and σ = 100. For continuous pdfs such as those, the hypotheses to be tested will be written

Section 10.3 Goodness-of-Fit Tests: All Parameters Known 489

H0 : fY (y) = f0(y) versus

H1 : fY (y) �= f0(y)

where fY (y) and f0(y) are the true and presumed pdfs, respectively. For a typical discrete model, the null hypothesis would be written H0 : pX (k) = p0(k). It is not uncommon, though, for discrete random variables to be characterized simply by a set of probabilities associated with the t ri’s defined in Section 10.2, rather than by an equation. Then the hypotheses to be tested take the form

H0: p1 = p10 , p2 = p20 , . . . , pt = pt0 versus

H1: pi �= pi0 for at least one i

The first procedure for testing goodness-of-fit hypotheses was proposed by Karl Pearson in 1900. Couched in the language of the multinomial, the prototype of Pear- son’s method requires that (1) the n observations be grouped into t classes and (2) the presumed model be completely specified. Theorem 10.3.1 defines Pearson’s test statistic and gives the decision rule for choosing between H0 and H1. In effect, H0 is rejected if there is too much disagreement between the actual values for the multi- nomial Xi’s and the expected values of those same Xi’s.

Theorem 10.3.1

Let r1, r2, . . . , rt be the set of possible outcomes (or ranges of outcomes) associated with each of n independent trials, where P(ri) = pi, i = 1, 2, . . . , t. Let Xi = number of times ri occurs, i = 1, 2, . . . , t. Then

a. The random variable

D = t∑

i=1

(Xi − npi)2 npi

has approximately a χ2 distribution with t − 1 degrees of freedom. For the approximation to be adequate, the t classes should be defined so that npi ≥ 5, for all i.

b. Let k1, k2, . . . , kt be the observed frequencies for the outcomes r1, r2, . . . , rt , re- spectively, and let np10 , np20 , . . . , npt0 be the corresponding expected frequen- cies based on the null hypothesis. At the α level of significance, H0: fY (y) = f0(y) [or H0: pX (k) = p0(k) or H0: p1 = p10 , p2 = p20 , . . . , pt = pt0 ] is rejected if

d = t∑

i=1

(ki − npi0 )2 npi0

≥ χ21−α,t−1

(where npi0 ≥ 5 for all i).

Proof A formal proof of part (a) lies beyond the scope of this text, but the direc- tion it takes can be illustrated for the simple case where t = 2. Under that scenario,

(Continued on next page)

490 Chapter 10 Goodness-of-Fit Tests

(Theorem 10.3.1 continued)

D = (X1 − np1) 2

np1 + (X2 − np2)

2

np2

= (X1 − np1) 2

np1 + [n − X1 − n(1 − p1)]

2

n(1 − p1)

= (X1 − np1) 2(1 − p1) + (−X1 + np1)2 p1

np1(1 − p1)

= (X1 − np1) 2

np1(1 − p1)

From Theorem 10.2.2, E(X1) = np1 and Var(X1) = np1(1 − p1), implying that D can be written

D = [

X1 − E(X1)√ Var(X1)

]2

By Theorem 4.3.1, then, D is the square of a variable that is asymptotically a stan- dard normal, and the statement of part (a) follows (for k = 2) from Definition 7.3.1. [Proving the general statement is accomplished by showing that the limit of the moment-generating function for D—as n goes to ∞—is the moment-generating function for a χ2t−1 random variable. See (68).]

Comment Although Pearson formulated his statistic before any general theories of hypothesis testing had been developed, it can be shown that a decision rule based on D is asymptotically equivalent to the generalized likelihood ratio test of H0: p1 = p10 , p2 = p20 , . . . , pt = pt0 .

CASE STUDY 10.3.1

Inhabiting many tropical waters is a small (<1 mm) crustacean, Ceriodaphnia cornuta, that occurs in two distinct morphological forms: One has a series of “horns” protruding from its exoskeleton, while the other is more rounded (see Figure 10.3.1). Are these two variants equally likely to end up as fish food, or do their predators have a preference (224)?

Unhorned Horned

Figure 10.3.1 Forms of C. cornuta.

A large number of C. cornuta were introduced into a holding tank in a three-to-one ratio—three of the unhorned variety were added for every one with horns. Also present in the tank was a natural predator of C. cornuta, a small (6-cm) fish, Melaniris chagresi. After approximately one hour, long enough

Section 10.3 Goodness-of-Fit Tests: All Parameters Known 491

for the predator to have completed its feeding, the fish was sacrificed and the contents of its stomach examined. Among the forty-four crustacean casualties, the unhorned-to-horned ratio was forty to four. What do these body counts imply?

Here, the two natural classes for the response variable are “unhorned” and “horned,” and under the null hypothesis that morphology has no effect on sur- vival, it would follow that the probability of either form’s being eaten should be proportional to the numbers of each kind available. If p1 = P (Unhorned C. cornuta is eaten) and p2 = P (Horned C. cornuta is eaten), the experimenter’s objective reduces to a test of

H0 : p1 = 34 , p2 = 1 4

versus

H1 : p1 �= 34 , p2 �= 1 4

Let α = 0.05. Since t = 2, the behavior of D will be approximated by a χ21 distribution, for

which the 0.05 critical value is 3.841 (see Figure 10.3.2). Substituting the values for the ki’s and npi0 ’s into the test statistic gives a d of 5.93:

d = [ 40 − 44 ( 34)]2

44 ( 3

4

) + [4 − 44 ( 14)]2 44

( 1 4

) = 5.93

Reject H

Area = 0.05

0

3.841

x Distribution21

0

Figure 10.3.2 χ21 distribution.

Our conclusion, then, is to reject H0—it would appear that morphology does have an effect on C. cornuta’s chances of being eaten.

About the Data Rejecting H0 in this case does not actually imply what the anal- ysis seems to suggest. The calculation of d shows that more of the unhorned cor- nuta (= 40) were eaten than the null hypothesis had predicted (= 33), and vice versa for the horned cornuta (four eaten as opposed to the eleven predicted). But the presence or absence of horns was, in fact, irrelevant! A series of follow- up experiments analyzed in much the same way clearly indicated that the reason the unhorned cornuta were snacked on more often was their enlarged eyespot, which made them more visible—and more easily edible.

492 Chapter 10 Goodness-of-Fit Tests

CASE STUDY 10.3.2

Once upon a time, when there were no computers (and calculations were ac- tually done using pencil and paper!), log tables were used to facilitate lengthy multiplications. In the early 1930s, Frank Benford, a physicist, reexamined the claim made many years earlier by Simon Newcomb that the first several pages in library logarithm books are dirtier than the last several pages (recall Exam- ple 3.3.3). Why should students and researchers have more reason to look up logarithms beginning with 1 or 2, rather than 8 or 9? Benford began looking closely at a variety of data sets, including molecular weights of chemicals, sur- face areas of rivers, and baseball statistics.

What he confirmed to his surprise was the fact that the first nonzero digits in these various numbers are not equally likely to be 1’s, 2’s, . . ., and 9’s, contrary to what our intuition would almost certainly suggest. For reasons discussed in (85), the probability that the first nonzero digit is i tends to be

pi = log(i + 1) − log(i), i = 1, 2, . . . , 9 (10.3.1) These latter probabilities are now known as Benford’s law (see Table 10.3.1).

Table 10.3.1

Digit, i log(i + 1) − log(i) 1 0.301 2 0.176 3 0.125 4 0.097 5 0.079 6 0.067 7 0.058 8 0.051 9 0.046

One particularly intriguing application of Benford’s law occurs in auditing, where eagle-eyed examiners are ever on the lookout for budgets whose numbers have been fabricated to cover up falsified records. Bookkeepers are not likely to be aware of Equation 10.3.1 and would tend to “make up” entries in such a way that each first digit from 1 to 9 would occur roughly the same percentage of the time. Let pi denote the probability that the first nonzero digit in a set of data is i, i = 1, 2, . . . , 9. A goodness-of-fit test to identify possible instances of “cre- ative” accounting would define the null hypothesis to be H0 : p1 = p10 , p2 = p20 , · · · , p9 = p90 , where the Benford law probabilities become the pi0 ’s.

An example of such a test is summarized in Table 10.3.2. The values in Col- umn 2 are a breakdown of the three hundred fifty-five first digits appearing in the 1997–98 operating budget for the University of West Florida (117). The cor- responding expected frequencies based on Benford’s law are listed in Column 4, and the goodness-of-fit test statistic, d, is the sum of the entries in Column 5:

d = [111 − 355 · (0.301)] 2

355 · (0.301) + · · · + [20 − 355 · (0.046)]2

355 · (0.046) = 2.49

Here, with t = 9 classes, the critical value for the hypothesis test comes from the chi square distribution with 8 df. If α is set equal to 0.05, χ2

.95,8 = 15.507, so our conclusion is “fail to reject H0.”

Section 10.3 Goodness-of-Fit Tests: All Parameters Known 493

Table 10.3.2

Digit Observed, ki Benford pi0 Expected (= 355 · pi0 ) (ki − 355pi0 )2/355pi0 1 111 0.301 106.9 0.16 2 60 0.176 62.5 0.10 3 46 0.125 44.4 0.06 4 29 0.097 34.4 0.86 5 26 0.079 28.0 0.15 6 22 0.067 23.8 0.13 7 21 0.058 20.6 0.01 8 20 0.051 18.1 0.20 9 20 0.046 16.3 0.82

355 1.000 355.0 2.49

About the Data There is no denying that Benford’s law is extremely counter- intuitive. On everyone’s credibility scale, it would lie somewhere beyond ridicu- lous. That said, why Benford’s law holds for so many different phenomena has a surprisingly simple explanation, as the following discussion suggests.

Suppose a random variable Y takes on values that range over several orders of magnitude—say, from 10 to 1,000,000. Also, suppose the pdf of Y when plotted on a log base 10 scale tapers off slowly, to the extent that, for example,

P(100 ≤ Y ≤ 1000) .= P(1000 ≤ Y ≤ 10, 000) .= P(10, 000 ≤ Y ≤ 100, 000) That is,

P(2 ≤ logY ≤ 3) .= P(3 ≤ logY ≤ 4) .= P(4 ≤ logY ≤ 5) (10.3.2) which implies that log Y has approximately a uniform distribution.

Now, consider the log cycle for Y values ranging from, say, 1000 up to but not including 10,000. Table 10.3.3 shows the log interval associated with each of the pos- sible first digits, 1 through 9. In the last column are the widths of each of the nine associated log intervals.

Table 10.3.3

Values of Y Associated Logs Width of Log Interval

1000 ≤ Y ≤ 1999+ 3.00000 ≤ logY ≤ 3.30103 0.30103 2000 ≤ Y ≤ 2999+ 3.30103 ≤ logY ≤ 3.47712 0.17609 3000 ≤ Y ≤ 3999+ 3.47712 ≤ logY ≤ 3.60206 0.12494 4000 ≤ Y ≤ 4999+ 3.60206 ≤ logY ≤ 3.69897 0.09691 5000 ≤ Y ≤ 5999+ 3.69897 ≤ logY ≤ 3.77815 0.07918 6000 ≤ Y ≤ 6999+ 3.77815 ≤ logY ≤ 3.84510 0.06695 7000 ≤ Y ≤ 7999+ 3.84510 ≤ logY ≤ 3.90309 0.05799 8000 ≤ Y ≤ 8999+ 3.90309 ≤ logY ≤ 3.95424 0.05115 9000 ≤ Y ≤ 9999+ 3.95424 ≤ logY ≤ 4.00000 0.04576

By the earlier assumption, log Y has approximately a uniform distribution over much of the range of Y. It follows that for a given log cycle (in this case, 3 ≤ logY ≤ 4),

P(a ≤ logY ≤ b) .= b − a

494 Chapter 10 Goodness-of-Fit Tests

Therefore, if a value is chosen at random from the interval (1000 ≤ Y ≤ 10,000), the probability that its first digit will be 1 is the width of the interval of logs associated with numbers in the range 1000 ≤ Y < 2000, that is, 3.30103 − 3.00000 = 0.30103. Applying that same argument to each of the possible first digits, 1 through 9, gives the entries listed in the third column of Table 10.3.3.

The interval widths just described, of course, are the same for every log cycle. It follows, then, that if a random sample from fY (y) is taken over its entire range, roughly 30% of the yi’s will have a first digit of 1, roughly 18% will have a first digit of 2, and so on. The entries in the third column are, in fact, Benford’s law:

P(First digit is i) = log(i + 1) − log(i), i = 1, 2, . . . , 9

One question still remains: Are there any frequently encountered probability functions that satisfy the assumptions imposed earlier on fY (y)? The answer is “yes.” There is an entire family of pdfs known as power models that have the extremely long tail necessary for Benford’s law to be applicable. Perhaps the most familiar member of that family is the Pareto distribution, where

fY (y) = ay−a−1; a > 0, 1 ≤ y < ∞

Originally developed as a model for wealth allocation among members of a popu- lation (recall Question 5.2.14), Pareto’s distribution has been shown more recently to describe phenomena as diverse as meteorite size, areas burned by forest fires, population sizes of human settlements, monetary value of oil reserves, and lengths of jobs assigned to supercomputers. Figure 10.3.3 shows two examples of Pareto pdfs.

1

0.2

1.0

2.0

a = 2

fY (y) = ay 2a21, 1 # y , `

P ro

ba bi

lit y

de ns

it y

2 3

a = 1

4 y

Figure 10.3.3

Example 10.3.1

A new statistics software package claims to be able to generate random samples from any continuous pdf. Asked to produce forty observations representing the pdf fY (y) = 6y(1 − y), 0 ≤ y ≤ 1, it printed out the numbers displayed in Table 10.3.4. Are these forty yi’s a believable random sample from fY (y)? Do an appropriate goodness-of-fit test using the α = 0.05 level of significance.

Section 10.3 Goodness-of-Fit Tests: All Parameters Known 495

Table 10.3.4

0.18 0.06 0.27 0.58 0.98 0.55 0.24 0.58 0.97 0.36 0.48 0.11 0.59 0.15 0.53 0.29 0.46 0.21 0.39 0.89 0.34 0.09 0.64 0.52 0.64 0.71 0.56 0.48 0.44 0.40 0.80 0.83 0.02 0.10 0.51 0.43 0.14 0.74 0.75 0.22

To apply Theorem 10.3.1 to a continuous pdf requires that the data first be reduced to a set of classes. Table 10.3.5 shows one possible grouping. The pi0 ’s in Column 3 are the areas under fY (y) above each of the five classes. For example,

p10 = ∫ 0.20

0 6y(1 − y) dy = 0.104

Table 10.3.5

Class Observed Frequency, ki Pi0 40pi0 0 ≤ y < 0.20 8 0.104 4.16

0.20 ≤ y < 0.40 8 0.248 9.92 0.40 ≤ y < 0.60 14 0.296 11.84 0.60 ≤ y < 0.80 5 0.248 9.92 0.80 ≤ y < 1.00 5 0.104 4.16

Column 4 shows the expected frequencies for each of the classes. Notice that 40p10 and 40p50 are both less than 5 and fail to satisfy the “npi ≥ 5” restriction cited in part (a) of Theorem 10.3.1. That violation can be easily corrected, though—we need simply to combine the first two classes and the last two classes (see Table 10.3.6).

Table 10.3.6

Class Observed Frequency, ki Pi0 40pi0 0 ≤ y < 0.40 16 0.352 14.08

0.40 ≤ y < 0.60 14 0.296 11.84 0.60 ≤ y ≤1.00 10 0.352 14.08

The test statistic d, is calculated from the entries in Table 10.3.6:

d = (16 − 14.08) 2

14.08 + (14 − 11.84)

2

11.84 + (10 − 14.08)

2

14.08

= 1.84 Since the number of classes ultimately being used is three, the number of degrees of freedom associated with d is 2, and we should reject the null hypothesis that the forty yi’s are a random sample from fY (y) = 6y(1 − y), 0 ≤ y ≤ 1 if d ≥ χ20.95, 2. But the latter is 5.991, so based on these data there is no compelling reason to doubt the advertised claim.

496 Chapter 10 Goodness-of-Fit Tests

THE GOODNESS-OF-FIT DECISION RULE—AN EXCEPTION

The fact that the decision rule given in part (b) of Theorem 10.3.1 is one-sided to the right seems perfectly reasonable—simple logic tells us that the goodness-of-fit null hypothesis should be rejected if d is large, but not if d is small. After all, small values of d will occur only if the observed frequencies are matching up very well with the predicted frequencies, and it seems that it would never make sense to reject H0 if that should happen. Not so. There is one specific scenario in which the appropriate goodness-of-fit test is one-sided to the left.

Human nature being what it is, researchers have been known (shame on them) to massage, embellish, and otherwise falsify their data. Moreover, in their overzeal- ous efforts to support whatever theory they claim is true, they often make a second mistake of fabricating data that are too good—that is, that fit their model too closely. How can that be detected? By calculating the goodness-of-fit statistic and seeing if it falls less than χ2

α,t−1, where α would be set equal to, say, 0.05 or 0.01.

CASE STUDY 10.3.3

Gregor Mendel (1822–1884) was an Austrian monk and a scientist ahead of his time. In 1866 he wrote “Experiments in Plant Hybridization,” which summa- rized his exhaustive studies on the way inherited traits in garden peas are passed from generation to generation. It was a landmark piece of work in which he cor- rectly deduced the basic laws of genetics without knowing anything about genes, chromosomes, or molecular biology. But for reasons not entirely clear, no one paid any attention and his findings were virtually ignored for the next thirty-five years.

Early in the twentieth century, Mendel’s work was rediscovered and quickly revolutionized the cultivation of plants and the breeding of domestic animals. With his posthumous fame, though, came some blistering criticism. No less an authority than Ronald A. Fisher voiced the opinion that Mendel’s results in that 1866 paper were too good to be true—the data had to have been falsified.

Table 10.3.7 summarizes one of the data sets that attracted Fisher’s attention (119). Two traits of 556 garden peas were being studied—their shape (round or angular) and their color (yellow or green). If “round” and “yellow” are dominant and if the alleles controlling those two traits separate independently, then (ac- cording to Mendel) dihybrid crosses should produce four possible phenotypes, with probabilities 9/16, 3/16, 3/16, and 1/16, respectively.

Table 10.3.7

Phenotype Obs. Freq. Mendel’s Model Exp. Freq.

(round, yellow) 315 9/16 312.75 (round, green) 108 3/16 104.25 (angular, yellow) 101 3/16 104.25 (angular, green) 32 1/16 34.75

Notice how closely the observed frequencies approximate the expected fre- quencies. The goodness-of-fit statistic from Theorem 10.3.1 (with 4 − 1 = 3 df) is equal to 0.47:

d = (315 − 312.75) 2

312.75 + (108 − 104.25)

2

104.25 + (101 − 104.25)

2

104.25 + (32 − 34.75)

2

34.75 = 0.47

Section 10.3 Goodness-of-Fit Tests: All Parameters Known 497

Figure 10.3.4 shows that the value of d = 0.47 does look suspiciously small. By itself, it does not rise to the level of a “smoking gun,” but Mendel’s critics had similar issues with other portions of his data as well.

2 4

3 2

6 8 10 y

0

d = 0.47

0

0.10

0.20

0.30

Density

fx (y)

Figure 10.3.4

About the Data Many years have passed since Fisher raised his concerns about the legitimacy of Mendel’s data, but there is still no broad consensus on whether or not portions of the data were falsified. And if they were, who was responsible? Mendel, of course, would be the logical suspect, but some would-be cold case detectives think the gardener did it! What actually happened back in 1866 may never be known, because many of Mendel’s original notes and records have been lost or destroyed.

Questions

10.3.1. Verify the following identity concerning the statis- tic of Theorem 10.3.1. Note that the right-hand side is more convenient for calculations.

t∑ i=1

(Xi − npi)2 npi

= t∑

i=1

X 2i npi

− n

10.3.2. One hundred unordered samples of size 2 are drawn without replacement from an urn containing six red chips and four white chips. Test the adequacy of the hyper- geometric model if zero whites were obtained 35 times; one white, 55 times; and two whites, 10 times. Use the 0.10 decision rule.

10.3.3. Consider again the previous question. Suppose, however, that we do not know whether the samples had been drawn with or without replacement. Test whether sampling with replacement is a reasonable model.

10.3.4. Show that the common belief in the propensity of babies to choose an inconvenient hour for birth has a ba- sis in observation. A maternity hospital reported that out of one year’s total of 2650 births, some 494 occurred be- tween midnight and 4 a.m. (179). Use the goodness-of-fit test to show that the data are not what we would expect if births are assumed to occur uniformly in all time periods. Let α = 0.05.

10.3.5. Analyze the data in the previous problem using the techniques of Section 6.3. What is the relationship be- tween the two test statistics?

10.3.6. A number of reports in the medical literature suggest that the season of birth and the incidence of schizophrenia may be related, with a higher proportion of schizophrenics being born during the early months of the year. A study (78) following up on this hypothesis looked at 5139 persons born in England or Wales during the years 1921–1955 who were admitted to a psychiatric ward with a diagnosis of schizophrenia. Of these 5139, 1383 were born in the first quarter of the year. Based on census figures in the two countries, the expected number of persons, out of a random 5139, who would be born in the first quarter is 1292.1. Do an appropriate χ2 test with α = 0.05. 10.3.7. In a move that shocked candy traditionalists at the time, in 1995, the M&M/Mars Company replaced the tan M&M’s with blue ones. According to the company there were three frequencies associated with the six colors: 30% of M&M’s brown, 20% yellow and red each, with or- ange, blue, and green each occurring 10% of the time. On learning of the change, one concerned consumer counted the number of each color appearing in three pounds of

498 Chapter 10 Goodness-of-Fit Tests

M&M’s (60). His tally is shown in the following table. Test at the α = 0.05 level of significance the hypothesis that the consumer’s data are consistent with the company’s stated intentions.

Color Number

Brown 455 Yellow 343 Red 318 Orange 152 Blue 130 Green 129

10.3.8. Test at the 0.10 level whether World Series lengths are compatible with the model that each World Series game is an independent Bernoulli trial with p = P (AL wins) = P (NL wins) = 1/2. Use the table from Question 3.2.16.

10.3.9. Records kept at an eastern racetrack showed the following distribution of winners as a function of their starting-post position. All one hundred forty-four races were run with a field of eight horses.

Starting Post 1 2 3 4 5 6 7 8

Number of Winners 32 21 19 20 16 11 14 11

Test the goodness-of-fit hypothesis that horses are equally likely to win from any starting position. Let α = 0.05. 10.3.10. The feathers of the frizzle chicken come in three variations, or phenotypes—extreme, mild, and smooth. The genes F, the dominant for frizzle, and f, the recessive, interact in what is called incomplete dominance. If two hy- brid (F, f) chickens are crossed, the ratio of extreme to nor- mal to smooth should be 1:2:1. In such a hybridization ex- periment with ninety-three offspring, the results are given in the following table. Test the hypothesis of incomplete dominance at the .05 level.

Phenotype Number Observed

Extreme frizzle 23 Mild frizzle 50 Normal 20

10.3.11. In the past, defendants convicted of grand theft auto served Y years in prison, where the pdf describing the variation in Y had the form

fY (y) = 19 y 2, 0 < y ≤ 3

Recent judicial reforms, though, may have impacted the punishment meted out for this particular crime. A review of fifty individuals convicted of grand theft auto five years ago showed that eight served less than one year in jail, sixteen served between one and two years, and twenty- six served between two and three years. Are these data consistent with fY (y)? Do an appropriate hypothesis test using the α = 0.05 level of significance. 10.3.12. The mean (μ) and standard deviation (σ) of preg- nancy durations are 266 days and 16 days, respectively. Ac- cepting those as the true parameter values, test whether the additional assumption that pregnancy durations are normally distributed is supported by the following list of seventy pregnancy durations reported by County General Hospital. Let α = 0.10 be the level of significance. Use “220 ≤ y < 230,” “230 ≤ y < 240,” and so on, as the classes.

251 264 234 283 226 244 269 241 276 274 263 243 254 276 241 232 260 248 284 253 265 235 259 279 256 256 254 256 250 269 240 261 263 262 259 230 268 284 259 261 268 268 264 271 263 259 294 259 263 278 267 293 247 244 250 266 286 263 274 253 281 286 266 249 255 233 245 266 265 264

10.4 Goodness-of-Fit Tests: Parameters Unknown More common than the sort of problems described in Section 10.3 are situations where the experimenter has reason to believe that the response variable follows some particular family of pdfs—say, the normal or the Poisson—but has little or no prior information to suggest what values should be assigned to the model’s parame- ters. In cases such as these, we will carry out the goodness-of-fit test by first estimating all unknown parameters, preferably with the method of maximum likelihood. The appropriate test statistic, denoted d1, is a modified version of Pearson’s d:

d1 = t∑

i=1

(ki − np̂i0 )2 np̂i0

Here, the factors p̂10 , p̂20 , . . . , p̂t0 denote the estimated probabilities associated with the outcomes r1, r2, . . . , rt .

Section 10.4 Goodness-of-Fit Tests: Parameters Unknown 499

For example, suppose n = 100 observations are taken from a distribution hy- pothesized to be an exponential pdf, f0(y) = λe−λy, y ≥ 0, and suppose that r1 is defined to be the interval from 0 to 1.5. If the numerical value of λ is known—say, λ = 0.4—then the probability associated with r1 would be denoted p10 , where

p10 = ∫ 1.5

0 0.4e−0.4y dy = 0.45

On the other hand, suppose λ is not known but 100∑ i=1

yi = 200. Since the maximum likelihood estimate for λ in this case is

λe = n /

100∑ i=1

yi = 100200 = 0.50

(recall Question 5.2.3), the estimated null hypothesis exponential model is f0(y) = 0.50e−0.50y, y ≥ 0, and the corresponding estimated probability associated with r1 is denoted p̂10 , where

p̂10 = ∫ 1.5

0 f0(y; λe) dy =

∫ 1.5 0

λee−λey dy = ∫ 1.5

0 0.5e−0.5y dy = 0.53

So, whereas d compares the observed frequencies of the ri’s with their expected frequencies, d1 compares the observed frequencies of the ri’s with their estimated expected frequencies.

We pay a price for having to rely on the data to fill in details about the presumed model: Each estimated parameter reduces by 1 the number of degrees of freedom associated with the χ2 distribution approximating the sampling distribution of D1. And, as we have seen in other hypothesis testing situations, as the number of de- grees of freedom associated with the test statistic decreases, so does the power of the test.

Theorem 10.4.1

Suppose that a random sample of n observations is taken from fY (y) [or pX (k)], a pdf having s unknown parameters. Let r1, r2, . . . , rt be a set of mutually exclusive ranges (or outcomes) associated with each of the n observations. Let p̂i = estimated probability of ri, i = 1, 2, . . . , t (as calculated from fY (y) [or pX (k)] after the pdfs’ unknown parameters have been replaced by their maximum likelihood estimates). Let Xi denote the number of times that ri occurs, i = 1, 2, . . . , t. Then a. the random variable

D1 = t∑

i=1

(Xi − np̂i)2 np̂i

has approximately a χ2 distribution with t − 1 − s degrees of freedom. For the approximation to be fully adequate, the ri’s should be defined so that np̂i ≥ 5 for all i.

b. to test H0: fY (y) = f0(y) [or H0: pX (k) = p0(k)] at the α level of significance, calculate

d1 = t∑

i=1

(ki − np̂i0 )2 np̂i0

(Continued on next page)

500 Chapter 10 Goodness-of-Fit Tests

(Theorem 10.4.1 continued)

where k1, k2, . . . , kt are the observed frequencies of r1, r2, . . . , rt , respectively, and np̂10 , np̂20 , . . . , np̂t0 are the corresponding estimated expected frequencies based on the null hypothesis. If

d1 ≥ χ21−α,t−1−s H0 should be rejected. (The ri’s should be defined so that np̂i0 ≥ 5 for all i.)

CASE STUDY 10.4.1

Despite the fact that batters occasionally go on lengthy hitting streaks (and slumps), there is reason to believe that the number of hits a baseball player gets in a game behaves much like a binomial random variable. Data demonstrating that claim have come from a study (142) of National League box scores from Opening Day through mid-July in 1996. Players had exactly four official at-bats a total of 4096 times during that period. The resulting distribution of their hits is summarized in Table 10.4.1. Are these numbers consistent with the hypothesis that the number of hits a player gets in four at-bats is binomially distributed?

Table 10.4.1

Number of Hits, i Obs. Freq., ki Estimated Exp. Freq., np̂io⎧⎪⎪⎪⎨ ⎪⎪⎪⎩

0 1

r′i s 2 3 4

1280 1289.1 1717 1728.0 915 868.6 167 194.0 17 16.3

Here the five possible outcomes associated with each four-at-bat game would be the number of hits a player makes, so r1 = 0, r2 = 1, . . . , r5 = 4. The presumption to be tested is that the probabilities of those ri’s are given by the binomial distribution—that is,

P(Player gets i hits in four at-bats) = (

4 i

) pi(1 − p)4−i, i = 0, 1, 2, 3, 4

where p = P(Player gets a hit on a given at-bat). In this case, p qualifies as an unknown parameter and needs to be estimated

before the goodness-of-fit analysis can go any further. Recall from Example 5.1.1 that the maximum likelihood estimate for p is the ratio of the total number of successes divided by the total number of trials. With successes being “hits” and trials being “at-bats,” it follows that

pe = 1280(0) + 1717(1) + 915(2) + 167(3) + 17(4)4096(4) = 4116

16,384 = 0.251

The precise null hypothesis being tested, then, can be written

H0: P(Player gets i hits) = (

4 i

) (0.251)i(0.749)4−i, i = 0, 1, 2, 3, 4

Section 10.4 Goodness-of-Fit Tests: Parameters Unknown 501

The third column in Table 10.4.1 shows the estimated expected frequencies based on the estimated H0 pdf. For example,

np̂10 = estimated expected frequency for r1 = estimated number of times players would get 0 hits

= 4096 · (

4 0

) (0.251)0(0.749)4

= 1289.1 Corresponding to 1289.1, of course, is the entry in the first row of Column 2 in Table 10.4.1, listing the observed number of times players got zero hits (= 1280).

If we elect to test the null hypothesis at the α = 0.05 level of significance, then by Theorem 10.4.1 H0 should be rejected if

d1 ≥ χ20.95,5−1−1 = 7.815 Here the degrees of freedom associated with the test statistic would be t−1−s = 5 − 1 − 1 = 3 because s = 1 df is lost as a result of p having been replaced by its maximum likelihood estimate.

Putting the entries from the last two columns of Table 10.4.1 into the formula for d1 gives

d1 = (1280 − 1289.1) 2

1289.1 + (1717 − 1728.0)

2

1728.0 + (915 − 868.6)

2

868.6

+ (167 − 194.0) 2

194.0 + (17 − 16.3)

2

16.3

= 6.401 Our conclusion, then, is to fail to reject H0. The data summarized in Table 10.4.1 do not rule out the possibility that the numbers of hits players get in four-at-bat games follow a binomial distribution.

About the Data The fact that the binomial pdf is not ruled out as a model for the number of hits a player gets in a game is perhaps a little surprising in light of the fact that some of its assumptions are clearly not being satisfied. The pa- rameter p, for example, is presumed to be constant over the entire set of trials. That is certainly not true for the data in Table 10.4.1. Not only does the “true” value of p obviously vary from player to player, it varies from at-bat to at-bat for the same player if different pitchers are used during the course of a game. Also in question is whether each at-bat qualifies as a truly independent event. As a game progresses, Major League players (hitters and pitchers alike) surely rehash what happened on previous at-bats and try to make adjustments accordingly. To borrow a term we used earlier in connection with hypothesis tests, it would ap- pear that the binomial model is somewhat “robust” with respect to departures from its two most basic assumptions.

CASE STUDY 10.4.2

The Poisson probability function often models rare events that occur over time, which suggests that it may prove useful in describing actuarial phenomena. Question 4.2.14 raised one such possibility—listed in Table 10.4.2 are the daily

(Continued on next page)

502 Chapter 10 Goodness-of-Fit Tests

(Case Study 10.4.2 continued)

numbers of death notices for women over the age of eighty that appeared in the London Times over a three-year period (80). Is it believable that these fatalities are occurring in a pattern consistent with a Poisson pdf?

Table 10.4.2

Number of Deaths, i Obs. Freq., ki Est. Exp. Freq., np̂i0 0 162 126.8 1 267 273.5 2 271 294.9 3 185 212.1 4 111 114.3 5 61 49.3 6 27 17.8 7 8 5.5 8 3 1.4 9 1 0.3

10+ 0 0.1 1096 1096

To claim that a Poisson pdf can model these data is to say that

P(i women over the age of eighty die on a given day) = e−λλi/i!, i = 0, 1, 2, . . . where λ is the expected number of such fatalities on a given day. Other than what the data may suggest, there is no obvious numerical value to assign to λ at the outset. However, from Chapter 5, we know that the maximum likelihood estimate for the parameter in a Poisson pdf is the sample average rate at which the events occurred—that is, the total number of occurrences divided by the total number of time periods covered. Here, that quotient comes to 2.157:

λe = total number of fatalitiestotal number of days

= 0(162) + 1(267) + 2(271) + · · · + 9(1) 1096

= 2.157 The estimated expected frequencies, then, are calculated by multiplying

1096 times e−2.157(2.157)i/i!, i = 0, 1, 2, . . .. The third column in Table 10.4.2 lists the entire set of np̂i0’s. (Note: Whenever the model being fitted has an infinite number of possible outcomes (as is the case with the Poisson), the last expected frequency is calculated by subtracting the sum of all the others from n. This guar- antees that the sum of the observed frequencies is equal to the sum of the esti- mated expected frequencies.) Applied to these data, that proviso implies that

Estimated expected frequency for “10+” = 1096 − 126.8 − 273.5 − · · · − 0.3 = 0.1

One final modification needs to be made before the test statistic, d1, can be calculated. Recall that each estimated expected frequency should be at least 5 in order for the χ2 approximation to the pdf of D1 to be adequate. The last three classes in Table 10.4.2, though, all have very small values for np̂i0 (1.4, 0.3, and 0.1). To comply with the “np̂i0 ≥ 5” requirement, we need to pool the last

Section 10.4 Goodness-of-Fit Tests: Parameters Unknown 503

four rows into a “7+” category, which would have an observed frequency of 12 (= 0 + 1 + 3 + 8) and an estimated expected frequency of 7.3 (= 0.1 + 0.3 + 1.4 + 5.5) (see Table 10.4.3).

Table 10.4.3

Number of Deaths, i Obs. Freq., ki Est. Exp. Freq., np̂i0 0 162 126.8 1 267 273.5 2 271 294.9 3 185 212.1r1, r2, . . . , r8

⎧⎪⎪⎪⎪⎪⎪⎪⎪⎪⎨ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎩

4 111 114.3 5 61 49.3 6 27 17.8 7+ 12 7.3

1096 1096

Based on the observed and estimated expected frequencies for the eight ri’s identified in Table 10.4.3, the test statistic, d1, equals 25.98:

d1 = (162 − 126.8) 2

126.8 + (267 − 273.5)

2

273.5 + · · · + (12 − 7.3)

2

7.3

= 25.98 With eight classes and one estimated parameter, the number of degrees of free- dom associated with d1 is 6 (= 8 − 1 − 1). To test

H0: P(i women over eighty die on a given day) = e−2.157(2.157)i/i!, i = 0, 1, 2, . . . at the α = 0.05 level of significance, we should reject H0 if

d1 ≥ χ20.95,6 But the 95th percentile of the χ26 distribution is 12.592, which lies well to the left of d1, so our conclusion is to reject H0. There is too much disagreement between the observed and estimated expected frequencies in Table 10.4.3 to be consistent with the hypothesis that the data’s underlying probability model is a Poisson pdf.

About the Data A row-by-row comparison of the entries in Table 10.4.3 shows a pronounced excess of days having zero fatalities and also an excess of days hav- ing large numbers of fatalities (five, six, or seven plus). One possible explanation for those disparities would be that the Poisson assumption that λ remains con- stant over the entire time covered is not satisfied. Events such as flu epidemics, for example, might cause λ to vary considerably from month to month and con- tribute to the data’s “disconnect” from the Poisson model.

CASE STUDY 10.4.3

Lambert Adolphe Jacques Quetelet (1796–1874) was a Belgian scholar of many talents. In preparation for establishing a royal observatory in Brussels, he stud- ied probability in Paris with Laplace. From Laplace he learned of the normal probability distribution. Convinced that this density would model many types of data, he collected a number of data sets from a wide range of areas. One of them

(Continued on next page)

504 Chapter 10 Goodness-of-Fit Tests

(Case Study 10.4.3 continued)

was the chest circumferences (in inches) of 5738 Scottish soldiers. The results are given in Table 10.4.4 below. Can these measurements be considered a random sample from a normal random variable Y? One way to answer this question is to employ the goodness-of-fit method not available to Quetelet.

Table 10.4.4

Chest Observed Circumference (in.) Frequency, y

33 3 34 18 35 81 36 185 37 420 38 749 39 1073 40 1079 41 934 42 658 43 370 44 92 45 50 46 21 47 4 48 1

Shown in Column 1 of Table 10.4.5 is an initial breakdown of Y into thir- teen intervals. To accommodate rounding, the observation “35”, for example, corresponds to the interval [34.5, 35.5). Notice that the first and last intervals are open-ended to reflect the fact that the presumed underlying normal distri- bution is defined for the entire real line.

Table 10.4.5

Interval Obs. Freq. Est. Exp. Freq. Test Statistic

y < 34.5 21 27.5 1.54 34.5 ≤ y < 35.5 81 75.2 0.45 35.5 ≤ y < 36.5 185 205.4 2.03 36.5 ≤ y < 37.5 420 433.2 0.40 37.5 ≤ y < 38.5 749 756.8 0.08 38.5 ≤ y < 39.5 1073 1028.8 1.90 39.5 ≤ y < 40.5 1079 1105.7 0.64 40.5 ≤ y < 41.5 934 938.7 0.02 41.5 ≤ y < 42.5 658 630.6 1.19 42.5 ≤ y < 43.5 370 334.0 3.88 43.5 ≤ y < 44.5 92 140.6 16.8 44.5 ≤ y < 45.5 50 46.5 0.26

y ≥ 45.5 26 15.0 8.07 5738 5738 37.26

In a typical test of normality—and these data are no exception—both pa- rameters, μ and σ, need to be estimated before any expected frequencies can be calculated. Here, using the formulas for the sample mean and sample standard

Section 10.4 Goodness-of-Fit Tests: Parameters Unknown 505

deviation given in Chapter 5, μe = 3.98 and σe = 2.044. To calculate the proba- bility of falling in an interval, we use the z transformation and the normal tables. So, for example, the probability of an observation in the interval [35.5, 36.5),

P(35.5 ≤ Y < 36.5) = P (

35.5 − 39.8 2.044

≤ Y < 36.5 − 39.8 2.044

)

= P(−2.10 ≤ Y < −1.61) = 0.0537 − 0.0179 = 0.0358

Then the estimated expected value is 5738(0.0358) = 205.4. The remainder of the expected frequencies are given in Column 3 of Table 10.4.5. Column 4 gives the terms of the test statistic d1. Note that d1 = 37.26. Here, there are thirteen classes and two parameters estimated, so df = 13 − 1 − 2 = 10. According to Theorem 10.4.1, the assumption that Y is a normally distributed random variable should be rejected at the α = 0.05 level of significance if d1 ≥ χ2.95,10 = 18.307. Since d1 = 37.26, the conclusion is to reject the normality assumption. About the Data Note that the value of d1 statistic for the 43.5 ≤ y ≤ 44.5 interval and that of the interval for y ≥ 45.5 comprise 24.87 of the 37.26 total. With the large number of measurements and the lack of good tools for recording data, one can easily imagine that these counts may not be accurate.

Questions

10.4.1. A public policy polling group is investigating whether people living in the same household tend to make independent political choices. They select two hundred homes where exactly three voters live. The residents are asked separately for their opinion (“yes” or “no”) on a city charter amendment. If their opinions are formed in- dependently, the number saying “yes” should be binomi- ally distributed. Do an appropriate goodness-of-fit test on the data below. Let α = 0.05.

No. Saying “yes” Frequency

0 30 1 56 2 73 3 41

10.4.2. From 1837 to 1932, the U.S. Supreme Court had forty-eight vacancies. The table in the next column shows the number of years in which exactly k of the vacancies occurred. At the α = 0.01 level of significance, test the hypothesis that these data can be described by a Poisson pdf.

Number of Vacancies Number of Years

0 59 1 27 2 9 3 1 4+ 0

10.4.3. As a way of studying the spread of a plant disease known as creeping rot, a field of cabbage plants was di- vided into two hundred seventy quadrats, each quadrat containing the same number of plants. The following table lists the numbers of plants per quadrat showing signs of creeping rot infestation.

Number of Infected Plants/Quadrat Number of Quadrats

0 38 1 57 2 68 3 47 4 23 5 9 6 10 7 7 8 3 9 4

10 2 11 1 12 1 13+ 0

Can the number of plants infected with creeping rot per quadrat be described by a Poisson pdf? Let α = 0.05. What might be a physical reason for the Poisson not be- ing appropriate in this situation? Which assumption of the Poisson appears to be violated?

506 Chapter 10 Goodness-of-Fit Tests

10.4.4. Carry out the details for a goodness-of-fit test on the horse kick data of Question 4.2.10. Use the 0.01 level of significance.

10.4.5. In rotogravure, a method of printing by rolling paper over engraved, chrome-plated cylinders, the printed paper can be flawed by undesirable lines called bands. Bands occur when grooves form on the cylinder’s sur- face. When this happens, the presses must be stopped, and the cylinders repolished or replated. The follow- ing table gives the number of workdays a printing firm experienced between successive banding shutdowns (44). Fit these data with an exponential model and perform the appropriate goodness-of-fit test at the 0.05 level of significance.

Workdays Between Shutdowns Number Observed

0–1 130 1–2 41 2–3 25 3–4 8 4–5 2 5–6 3 6–7 1 7–8 1

10.4.6. Do a goodness-of-fit test for normality on the SAT data in Table 3.13.1. Take the sample mean and sample standard deviation to be 949.4 and 68.4, respectively.

10.4.7. A sociologist is studying various aspects of the per- sonal lives of preeminent nineteenth-century scholars. A total of one hundred twenty subjects in her sample had families consisting of two children. The distribution of the number of boys in those families is summarized in the fol- lowing table. Can it be concluded that the number of boys in two-child families of preeminent scholars is binomially distributed? Let α = 0.05.

Number of boys 0 1 2 Number of families 24 64 32

10.4.8. In theory, Monte Carlo studies rely on comput- ers to generate large sets of random numbers. Partic- ularly important are random variables representing the uniform pdf defined over the unit interval, fY (y) = 1, 0 ≤ y ≤ 1. In practice, though, computers typically gener- ate pseudorandom numbers, the latter being values pro- duced systematically by sophisticated algorithms that pre- sumably mimic “true” random variables. Below are one hundred pseudorandom numbers from a uniform pdf. Set up and test the appropriate goodness-of-fit hypothesis. Let α = 0.05.

.216 .673 .130 .587 .044 .501 .958 .415 .872 .329

.786 .243 .700 .157 .614 .071 .528 .985 .442 .899

.356 .813 .270 .727 .184 .641 .098 .555 .012 .469

.926 .383 .840 .297 .754 .211 .668 .125 .582 .039

.496 .953 .410 .867 .324 .781 .238 .695 .152 .609

.066 .523 .980 .437 .894 .351 .808 .265 .722 .179

.636 .093 .550 .007 .464 .921 .378 .835 .292 .749

.206 .663 .120 .577 .034 .491 .948 .405 .862 .319

.776 .233 .690 .147 .604 .061 .518 .975 .432 .889

.346 .803 .260 .717 .174 .631 .088 .545 .002 .459

10.4.9. Because it satisfies all the assumptions implicit in the Poisson model, radioactive decay should be de- scribed by a probability function of the form pX (k) = e−λλk/k!, k = 0, 1, 2, . . . , where the random variable X denotes the number of particles emitted (or counted) during a given time interval. Does that hold true for the Rutherford and Geiger data given in Case Study 4.2.2? Set up and carry out an appropriate analysis.

10.4.10. In American football a turnover is defined as a fumble or an intercepted pass. The table below gives the number of turnovers committed by the home team in four hundred forty games. Test that these data fit a Poisson dis- tribution at the 0.05 level of significance.

Number Turnovers Observed

0 75 1 125 2 126 3 60 4 34 5 13 6+ 7

10.4.11. Is the following set of data likely to have come from the geometric pdf, pX (k) = (1 − p)k−1 p, k = 1, 2, . . .?

2 8 1 2 2 5 1 2 8 3 5 4 2 4 7 2 2 8 4 7 2 6 2 3 5 1 3 3 2 5 4 2 2 3 6 3 6 4 9 3 3 7 5 1 3 4 3 4 6 2

10.4.12. To raise money for a new rectory, the members of a church hold a raffle. A total of n tickets are sold (num- bered 1 through n), out of which a total of fifty winners are to be drawn presumably at random. The following are the fifty lucky numbers. Set up a goodness-of-fit test that

Section 10.5 Contingency Tables 507

focuses on the randomness of the draw. Use the 0.05 level of significance.

108 110 21 6 44 89 68 50 13 63 84 64 69 92 12 46 78 113 104 105 9 115 58 2 20

19 96 28 72 81 32 75 3 49 86 94 61 35 31 56 17 100 102 114 76

106 112 80 59 73

10.4.13. Case Study 5.3.1 deals with the Etruscan head breath data as though it were normal. Test this assump- tion at the α = 0.10 level using the data as grouped in the

table below. For this data set, ȳ = 143.8 mm and sY = 6.0 mm.

Interval Frequency

≤ 136 8 136 < y ≤ 139 7 139 < y ≤ 142 21 142 < y ≤ 145 15 145 < y ≤ 148 15 148 < y ≤ 151 10

y > 151 8

10.4.14. Case Study 5.2.2 claims that the earthquake data given there fits a negative binomial distribution. Use the data as formatted in Table 5.2.4 to test that assumption at the α = 0.05 level.

10.5 Contingency Tables Hypothesis tests, as we have seen, take several fundamentally different forms. Those covered in Chapters 6, 7, and 9 focus on parameters of pdfs: The one-sample, two- sided t test, for example, reduces to a choice between H0: μ = μo and H1: μ �= μo. Earlier in this chapter, the pdf itself was the issue, and the goodness-of-fit tests in Sections 10.3 and 10.4 dealt with null hypotheses of the form H0: fY (y) = fo(y).

A third (and final) category of hypothesis tests remains. These apply to sit- uations where the independence of two random variables is being questioned. Examples are commonplace. Are the incidence rates of cancer related to mental health? Do a politician’s approval ratings depend on the gender of the respondents? Are trends in juvenile delinquency linked to the increasing violence in video games? In this section, we will modify the goodness-of-fit statistic D1 in such a way that it can distinguish between events that are independent and events that are dependent.

TESTING FOR INDEPENDENCE: A SPECIAL CASE

A simple example is the best way to motivate the changes that need to be made to the structure of D1 to make it capable of testing for independence. The key is Definition 2.5.1.

Suppose A is some trait (or random variable) that has two mutually exclusive categories, A1 and A2, and suppose that B is a second trait (or random variable) that also has two mutually exclusive categories, B1 and B2. To say that A is independent of B is to say that the likelihoods of A1 or A2 occurring are not influenced by B1 or B2. More specifically, four separate conditional probability equations must hold if A and B are to be independent:

P(A1 | B1) = P(A1) P(A1 | B2) = P(A1) P(A2 | B1) = P(A2) P(A2 | B2) = P(A2)

(10.5.1)

By Definition 2.4.1, P(Ai|Bj) = P(Ai∩Bj)P(Bj) , for all i and j, so the conditions speci- fied in Equation 10.5.1 are equivalent to

P(A1 ∩ B1) = P(A1)P(B1) P(A1 ∩ B2) = P(A1)P(B2) P(A2 ∩ B1) = P(A2)P(B1) P(A2 ∩ B2) = P(A2)P(B2)

(10.5.2)

508 Chapter 10 Goodness-of-Fit Tests

Now, suppose a random sample of n observations is taken, and ni j is defined to be the number of observations belonging to Ai and Bj (so n = n11 + n12 + n21 + n22). If we imagine the two categories of A and the two categories of B defining a matrix with two rows and two columns, the four observed frequencies can be displayed in the contingency table pictured in Table 10.5.1.

Table 10.5.1

Trait B

B1 B2 Row Totals

A1 n11 n12 R1 Trait A

A2 n21 n22 R2 Column totals: C1 C2 n

If A and B are independent, the probability statements in Equation 10.5.2 would be true, and (by virtue of Theorem 10.2.2), the expected frequencies for the four com- binations of Ai and Bj would be the entries shown in Table 10.5.2.

Table 10.5.2

Trait B

B1 B2 Row Totals

A1 nP(A1)P(B1) nP(A1)P(B2) R1 Trait A

A2 nP(A2)P(B1) nP(A2)P(B2) R2 Column totals: C1 C2 n

Although P(A1), P(A2), P(B1), and P(B2) are unknown, they all have obvious estimates—namely, the sample proportion of the time that each occurs. That is,

P̂(A1) = R1n P̂(B1) = C1 n

P̂(A2) = R2n P̂(B2) = C2 n

(10.5.3)

Table 10.5.3, then, shows the estimated expected frequencies (corresponding to n11, n12, n21, and n22) based on the assumption that A and B are independent.

Table 10.5.3

Trait B

B1 B2

A1 R1C1/n R1C2/n Trait A

A2 R2C1/n R2C2/n

If traits A and B are independent, the observed frequencies in Table 10.5.1 should agree fairly well with the estimated expected frequencies in Table 10.5.3 be- cause the latter were calculated under the presumption that A and B are independent. The analog of the test statistic d1, then, would be the sum d2, where

d2 = ( n11 − R1C1n

)2 R1C1

n

+ ( n12 − R1C2n

)2 R1C2

n

+ ( n21 − R2C1n

)2 R2C1

n

+ ( n22 − R2C2n

)2 R2C2

n

Section 10.5 Contingency Tables 509

In the event that d2 is “large,” meaning that one or more of the observed frequencies is substantially different from the corresponding estimated expected frequency, H0: A and B are independent should be rejected. (In this simple case where both A and B have only two categories, D2 has approximately a χ21 pdf when H0 is true, so if α were set at 0.05, H0 would be rejected if d2 ≥ χ20.95,1 = 3.841.)

TESTING FOR INDEPENDENCE: THE GENERAL CASE

Suppose n observations are taken on a sample space S partitioned by the set of events A1, A2, . . . , Ar and also partitioned by the set of events B1,B2, . . . , Bc. That is,

Ai ∩ Aj = ∅ for all i �= j and r⋃

i=1 Ai = S

and

Bi ∩ Bj = ∅ for all i �= j and c⋃

j=1 Bj = S

Let the random variables Xi j, i = 1, 2, . . . , r, j = 1, 2, . . . , c, denote the number of observations that belong to Ai ∩ Bj. Our objective is to test whether the Ai’s are independent of the Bj’s.

Table 10.5.4 shows the two sets of events defining the rows and columns of an r × c matrix; the ki j’s that appear in the body of the table are the observed values of the Xi j’s (recall Table 10.5.1).

Table 10.5.4

B1 B2 · · · Bc Row Totals A1 k11 k12 k1c R1 A2 k21 k22 k2c R2 ...

... · · · ... ... Ar kr1 kr2 krc Rr

Column totals C1 C2 Cc n

[Note: In the terminology of Section 10.2, the Xi j’s are a set of rc multinomial random variables. Moreover, each individual Xi j is a binomial random variable with parameters n and pi j, where pi j = P(Ai ∩ Bj).]

Let pi = P(Ai), i = 1, 2, . . . , r, and let qj = P(Bj), j = 1, 2, . . . , c, so r∑

i=1 pi = 1 =

c∑ j=1

qj

Invariably, the pi’s and qj’s will be unknown, but their maximum likelihood estimates are simply the corresponding row and column sample proportions:

p̂1 = R1/n, p̂2 = R2/n, . . . , p̂r = Rr/n q̂1 = C1/n, q̂2 = C2/n, . . . , q̂c = Cc/n

Recall Equation 10.5.3. If the Ai’s and Bj’s are independent, then

P(Ai ∩ Bj) = P(Ai)P(Bj) = piq j

510 Chapter 10 Goodness-of-Fit Tests

and the expected frequency corresponding to ki j would be npiq j, i = 1, 2, . . . , r; j = 1, 2, . . . , c (recall the Comment following Theorem 10.2.2). Also, the estimated expected frequency for Ai ∩ Bj would be

np̂iq̂ j = n · Ri/n · Cj/n = RiCj/n (10.5.4) Recall Table 10.5.3.

So, for each of the rc row-and-column combinations pictured in Table 10.5.4, we have an observed frequency (ki j) and an estimated expected frequency (RiCj/n) based on the null hypothesis that the Ai’s are independent of the Bj’s. The test statis- tic that would be analogous to d1, then, would be the double sum d2, where

d2 = r∑

i=1

c∑ j=1

(ki j − np̂iq̂ j)2 np̂iq̂ j

Large values of d2 would be considered evidence against the independence assumption.

Theorem 10.5.1

Suppose that n observations are taken on a sample space partitioned by the events A1, A2, . . . , Ar and also by the events B1, B2, . . . , Bc. Let pi = P(Ai), q j = P(Bj), and pi j = P(Ai ∩ Bj), i = 1, 2, . . . , r; j = 1, 2, . . . , c. Let Xi j denote the number of observations belonging to the intersection Ai ∩ Bj. Then a. the random variable

D2 = r∑

i=1

c∑ j=1

(Xi j − npi j)2 npi j

has approximately a χ2 distribution with rc − 1 degrees of freedom (provided npi j ≥ 5 for all i and j).

b. to test H0: the Ai’s are independent of the Bj’s, calculate the test statistic

d2 = r∑

i=1

c∑ j=1

(ki j − np̂iq̂ j)2 np̂iq̂ j

where ki j is the number of observations in the sample that belong to Ai ∩ Bj, i = 1, 2, . . . , r; j = 1, 2, . . . , c and p̂i and q̂ j are the maximum likelihood esti- mates for pi and qj, respectively. The null hypothesis should be rejected at the α level of significance if

d2 ≥ χ21−α,(r−1)(c−1) (Analogous to the condition stipulated for all other goodness-of-fit tests, it will be assumed that np̂iq̂ j ≥ 5 for all i and j.)

Comment In general, the number of degrees of freedom associated with a goodness-of-fit statistic is given by the formula

df = number of classes − 1 − number of estimated parameters (recall Theorem 10.4.1). For the double sum that defines d2,

number of classes = rc number of estimated parameters = r − 1 + c − 1

Section 10.5 Contingency Tables 511

(because once r − 1 of the pi’s are estimated, the one that remains is predetermined by the fact that

r∑ i=1

pi = 1; similarly, only c − 1 of the qj’s need to be estimated). But

rc − 1 − (r − 1) − (c − 1) = (r − 1)(c − 1)

Comment The χ2 distribution with (r − 1) (c − 1) degrees of freedom provides an adequate approximation to the distribution of d2 only if np̂iq̂ j ≥ 5 for all i and j. If one or more cells in a contingency table have estimated expected frequencies that are substantially less than 5, the table should be “collapsed” and the rows and/or columns redefined.

CASE STUDY 10.5.1

Gene Siskel and Roger Ebert were popular movie critics for a syndicated televi- sion show. Viewers of the program were entertained by the frequent flare-ups of acerbic disagreement between the two. They were immediately recognizable to a large audience of movie goers by their rating system of “thumbs up” for good films, “thumbs down” for bad ones, and an occasional “sideways” for those in between.

Table 10.5.5 summarizes their evaluations of one hundred sixty movies (2). Do these numbers suggest that Siskel and Ebert had completely differ- ent aesthetics—in which case their ratings would be independent—or do they demonstrate that the two shared considerable common ground, despite their many on-the-air verbal jabs?

Table 10.5.5

Ebert Ratings

Down Sideways Up Total

Down 24 8 13 45 Siskel Ratings

Sideways 8 13 11 32 Up 10 9 64 83

Total 42 30 88 160

Using Equation 10.5.4, we can calculate the estimated expected number of times that both reviewers would say “thumbs down” if, in fact, their ratings were independent:

Ê(X11) = R1 · C1n = (45)(42)

160

= 11.8 Table 10.5.6 displays the entire set of estimated expected frequencies, all

calculated the same way. Now, suppose we wish to test

H0: Siskel ratings and Ebert ratings were independent

versus

H1: Siskel ratings and Ebert ratings were dependent

(Continued on next page)

512 Chapter 10 Goodness-of-Fit Tests

(Case Study 10.5.1 continued)

Table 10.5.6

Ebert Ratings

Down Sideways Up Total

Down 24 8 13 45 (11.8) (8.4) (24.8)

Siskel Ratings

Sideways 8 13 11 32 (8.4) (6.0) (17.6)

Up 10 9 64 83 (21.8) (15.6) (45.6)

Total 42 30 88 160

at the α = 0.01 level of significance. With r = 3 and c = 3, the number of degrees of freedom associated with the test statistic is (3 − 1)(3 − 1) = 4, and H0 should be rejected if

d2 ≥ χ20.99,4 = 13.277 But

d2 = (24 − 11.8) 2

11.8 + (8 − 8.4)

2

8.4 + · · · + (64 − 45.6)

2

45.6

= 45.37 so the evidence is overwhelming that Siskel and Ebert’s judgments were not independent.

“REDUCING” CONTINUOUS DATA TO CONTINGENCY TABLES

Most applications of contingency tables begin with qualitative data, Case Study 10.5.1 being a typical case in point. Sometimes, though, contingency tables can provide a particularly convenient format for testing the independence of two random variables that initially appear as quantitative data. If those x and y measurements are each reduced to being either “high” or “low,” for example, the original xi’s and yi’s become frequencies in a 2 × 2 contingency table (and can be used to test H0: X and Y are independent).

CASE STUDY 10.5.2

Sociologists have speculated that feelings of alienation may be a major factor contributing to an individual’s risk of committing suicide. If so, cities with more transient populations should have higher suicide rates than urban areas where neighborhoods are more stable. Listed in Table 10.5.7 is the “mobility index” (y) and the “suicide rate” (x) for each of twenty-five U.S. cities (223). (Note: The mobility index was defined in such a way that smaller values of y corre- spond to higher levels of transiency.) Do these data support the sociologists’ suspicion?

Section 10.5 Contingency Tables 513

To reduce these data to a 2 × 2 contingency table, we redefine each xi as being either “≥ x̄” or “< x̄” and each yi as being either “≥ ȳ” or “< ȳ.” Here,

x̄ = 19.3 + 17.0 + · · · + 29.3 25

= 20.8

Table 10.5.7

Suicides per Mobility Suicides per Mobility City 100,000, xi Index, yi City 100,000, xi Index, yi

New York 19.3 54.3 Washington 22.5 37.1 Chicago 17.0 51.5 Minneapolis 23.8 56.3 Philadelphia 17.5 64.6 New Orleans 17.2 82.9 Detroit 16.5 42.5 Cincinnati 23.9 62.2 Los Angeles 23.8 20.3 Newark 21.4 51.9 Cleveland 20.1 52.2 Kansas City 24.5 49.4 St. Louis 24.8 62.4 Seattle 31.7 30.7 Baltimore 18.0 72.0 Indianapolis 21.0 66.1 Boston 14.8 59.4 Rochester 17.2 68.0 Pittsburgh 14.9 70.0 Jersey City 10.1 56.5 San Francisco 40.0 43.8 Louisville 16.6 78.7 Milwaukee 19.3 66.2 Portland 29.3 33.2 Buffalo 13.8 67.6

and

ȳ = 54.3 + 51.5 + · · · + 33.2 25

= 56.0

so the twenty-five (xi, yi)’s produce the 2 × 2 contingency table shown in Table 10.5.8.

Table 10.5.8

Mobility Index

Low (<56.0) High (≥56.0) Suicide High (≥20.8) 7 4 Rate Low (<20.8) 3 11

If X and Y are independent, the four estimated expected frequencies asso- ciated with the contingency table (and calculated from Equation 10.5.4) are the entries appearing in Table 10.5.9.

Table 10.5.9

Mobility Index

Low (<56.0) High (≥56.0) Suicide High (≥20.8) 4.4∗ 6.6 Rate Low (<20.8) 5.6 8.4

∗Ê(X11) = 4.4 does not quite satisfy the “np̂iq̂ j ≥ 5” restriction stated in Theorem 10.5.1, but 4.4 is close enough to 5 to maintain the integrity of the χ2 approximation.

(Continued on next page)

514 Chapter 10 Goodness-of-Fit Tests

(Case Study 10.5.2 continued)

Substituting into the test statistic from Theorem 10.5.1 gives

d2 = (7 − 4.4) 2

4.4 + (4 − 6.6)

2

6.6 + (3 − 5.6)

2

5.6 + (11 − 8.4)

2

8.4

= 4.57 With (r − 1)(c − 1) = (2 − 1)(2 − 1) = 1 df, the α = 0.05 critical value associated with d2 is χ20.95,1 = 3.841. The appropriate conclusion, then, is to reject H0 since d2 ≥ 3.841—the sociologists’ suspicion that suicide rates and transiency in urban areas are dependent is borne out by the data.

A DATA MODEL EQUIVALENCY

Chapter 8 profiled eight of the most frequently encountered experimental designs. For the most part, those eight are mutually exclusive—a set of data cannot be both a two-sample design, for example, and a paired-data design. That said, there are three very specific types of data whose characteristics do allow them to be correctly clas- sified as two different experimental designs. One of those three exceptions occurs in this chapter. Every set of categorical data that can be displayed in a contingency table having two rows and two columns can also be analyzed as a two-sample design, as Case Study 10.5.3 demonstrates.

CASE STUDY 10.5.3

Beginning in 1647, witchcraft accusations, trials, and executions were an on- again, off-again phenomenon in the New England colonies. Occasionally, Puritan angst over matters Satanic would flare up like an epidemic, and entire communities would become convinced that many of their neighbors were in league with the Devil.

The most famous of these paranoid outbreaks were the Salem witch trials that occurred in 1692 and 1693. Altogether, a total of one hundred eighty-five adults and children were accused and brought to trial, one hundred forty-one females and forty-four males. Fourteen of the women were hanged; a similar fate befell five of the men (98). How would the classification of these data affect their analysis and interpretation?

Viewed as categorical data, the analysis of these one hundred eighty-five events would be set up to test

H0: Severity of punishment and gender of accused are independent

versus

H1: Severity of punishment and gender of accused are dependent

Following the procedure described in Case Study 10.5.1, gives the contin- gency table and expected frequencies shown in Table 10.5.10. The corresponding test statistic

d = (14 − 14.5) 2

14.5 + (5 − 4.5)

2

4.5 + (127 − 126.5)

2

126.5 + (39 − 39.5)

2

39.5 = 0.08

with (2 − 1)(2 − 1) = 1 df. For α = 0.05, the critical value is χ2 .05,1 = 3.84, and

the conclusion is “Fail to reject H0”—severity of punishment and gender are independent.

Section 10.5 Contingency Tables 515

Table 10.5.10

Accused Witches Female Male

Executed 14 5 19

(14.5) (4.5)

Not Executed 127 39 166 (126.5) (39.5)

Totals 141 44 185

Couched in the terminology of the two-sample design, the analysis of these data reduces to a comparison of two binomial proportions. If

pF = true proportion of females accused of being witches who would be executed

and

pM = true proportion of males accused of being witches who would be executed

the choice would be written

H0 : pF = pM versus H1 : pF �= pM According to Theorem 9.4.1, the test statistic is the approximate Z ratio

z = 14

141 − 544√ 19

185

( 1 − 19185

)( 1 141 + 144

) = −0.274 At the α = 0.05 level, the appropriate critical values are −1.96 and 1.96, so H0 would not be rejected—that is, the difference between 14/144 and 5/44 is not statistically significant.

So, both analyses have failed to reject their respective H0’s. Is there any reason to prefer one analysis over the other? For theoretical reasons, no. The two are equivalent in the sense that if the chi-square test rejects the null hypothesis that the two traits are independent, the Z test will necessarily reject the null hypothesis that the two binomial proportions are equal. The test statistic for the chi-square test will be the square of the test statistic for the Z test, and the critical value for the chi-square test will be the square of the critical values for the Z test. Here,

d2 = 0.0745 = (0.273)2 = (obs. z) and

χ2.95,1 = 3.84 = (±1.96)2 = z2.025 = z2.975

Comment Does it follow from the equivalency of the two analyses described in Case Study 10.5.3 that researchers are equally likely to use either one? Not really. Which analysis is chosen in a given circumstance depends to a large extent on the content of the data. For whatever reasons, researchers in the social sciences show a strong preference for the correlation model and the chi-square test, while those in the physical sciences tend to prefer the two-sample model and the Z test.

(Continued on next page)

516 Chapter 10 Goodness-of-Fit Tests

(Case Study 10.5.3 continued)

Gender preferences in witchcraft executions would fall under the broad um- brella of social science, so the data in Case Study 10.5.3 would most likely be analyzed as a chi-square test. If the same four data points, though, summarized the results of field trials on two different antiballistic missile systems (see Table 10.5.11), the comparison of Systems A and B would more than likely be couched as a Z test of the equality of two binomial proportions.

Table 10.5.11

System A System B

Missile failed to hit target 14 5 19 Missile hit target 127 39 166

185Totals 141 44

Questions

10.5.1. While there are a number of diet and physical causes of childhood obesity, there could also be an eco- nomic element. Use the table below to test if childhood obesity is related to family income. Use α = 0.10.

Obese

Yes No

Family Income Low 121 501 Middle-Upper 54 324

10.5.2. Many factors influence a company’s decision to relocate to another site. The state of Florida, hoping to attract such relocations, sponsored a study (55) on how different companies view various factors. One part of the study compared the importance of a high-quality workforce to manufacturing firms and to nonmanufac- turing firms. At the α = 0.05 level of significance, do the following data suggest that the importance of a high- quality workforce is not viewed the same by all types of businesses?

Manufacturing Other

Extremely 168 73 Importance or somewhat

Not very 42 26

10.5.3. A total of 1154 girls attending a public high school were given a questionnaire that measured how much each had exhibited delinquent behavior (132). From an anal- ysis of the results, the researchers categorized one hun- dred eleven of the girls as “delinquent.” The following is a cross-classification of the delinquents and the non-

delinquents according to their birth order. At the α = 0.01 level of significance, is there evidence here to sup- port the contention that birth order and delinquency are related?

Delinquent Not Delinquent

Oldest 24 450 In Between 29 312 Youngest 35 211 Only Child 23 70

10.5.4. Recall the rubella/birth defect study described in Case Study 8.1.3. At the α = 0.01 level of significance, can it be concluded that the risk of an abnormal birth is affected by when a rubella infection is contracted during pregnancy?

10.5.5. Research has suggested that regular use of aspirin or other nonsteroidal anti-inflammatory drugs (NSAIDs) may be effective in reducing the risk of breast cancer. In one study (190), 1442 women with breast cancer were asked whether they had used aspirin regularly one year prior to their diagnosis; 301 said “yes.” Among a matched control group of 1420 women without breast cancer, 345 reported that they were regular aspirin users. What would you conclude? Set up and test an appropriate hypothesis. Let 0.05 be the level of significance.

10.5.6. High blood pressure is known to be one of the major contributors to coronary heart disease. A study was done to see whether or not there is a significant

Section 10.6 Taking a Second Look at Statistics (Outliers) 517

relationship between the blood pressures of children and those of their fathers (96). If such a relationship did ex- ist, it might be possible to use one group to screen for high-risk individuals in the other group. The subjects were ninety-two eleventh graders, forty-seven males and forty-five females, and their fathers. Blood pressures for both the children and the fathers were categorized as belonging to either the lower, middle, or upper third of their respective distributions. Test whether or not the blood pressures of children can be considered to be independent of the blood pressures of their fathers. Let α = 0.05.

Child’s Blood Pressure

Lower Middle Upper Third Third Third

Father’s Lower third 14 11 8 blood Middle third 11 11 9 pressure Upper third 6 10 12

10.5.7. The following data were collected as part of a study to see whether a mouse’s early upbringing has any effect on its aggressiveness later in life (92). A total of three hundred seven mice were divided into two groups shortly after birth. Each of the one hundred sixty-seven mice in the first group was raised by its natural mother; the remaining one hundred forty in the second group were raised by “foster” mice. When each mouse was three months old, it was put into a small cage with an- other mouse it had not seen before. The two were then watched for a predetermined period of time (six minutes) to see whether they would start fighting. Set up and carry out an appropriate χ2 test. Let α = 0.05.

Natural Mother Foster Mother

Number fighting 27 47 Number not fighting 140 93

167 140

10.5.8. A university conducted a study to assess consis- tency of grading in a multi-section basic statistics course. To that end, the study considered the grade distribution of the course for three instructors. Does the data suggest any inconsistency? Test at the α = 0.05 level of significance.

Grade

F D C B A

801 11 19 18 20 13 Section 842 12 21 16 16 14

845 14 10 18 28 11

10.5.9. Some studies have suggested that pilots have an unusual distribution of the sex of their children. A study of children of military instructor pilots at NAS Whit- ing Field in Milton, Florida compared the distribution of sexes classified by the number of years of flying. Test the independence of these two factors at the α = 0.05 level of significance.

Sex of Children

Female Male

0–3 34 13 Years Flying 4–6 31 32

7–9 14 15 ≥ 10 12 17

10.5.10. Students elect to take Calculus I in different years of their college career. Does the table below suggest that this affects the distribution of grades? Use α = 0.01.

Calculus I Grade

A B C D–F

1 115 91 65 42 Year Taken 2 124 148 128 69

3 107 85 121 43 4 37 35 37 16

10.6 Taking a Second Look at Statistics (Outliers) This chapter has explored important questions related to the “pedigree” of a set of data. Given the measurements y1, y2, . . . , yn, for example, is it believable that they represent a random sample from some particular pdf, f0(y)? Or, given a set of bivari- ate observations, (x1, y1), (x2, y2), . . . , (xn, yn), representing the random variables X and Y , is it believable that X and Y are independent?

In practice, experimenters sometimes encounter a slightly different sort of pedi- gree question, one that focuses on individual measurements rather than on entire data sets. For example, suppose a laboratory experiment has yielded the twenty

518 Chapter 10 Goodness-of-Fit Tests

observations listed in Table 10.6.1. Grouped into classes of width 10, the data have the frequency distribution shown in Table 10.6.2. The question is, what (if anything) should be done with the measurement y = 127.6 that lies considerably to the right of the rest of the data? Is it simply the largest observation in the sample (in which case it should be kept), or does its separation from the bulk of the distribution reflect some sort of fundamental measurement error (in which case it should be discarded)?

Table 10.6.1

73.5 45.6 51.2 15.6 49.2 55.7 24.8 127.6 49.7 53.8 91.6 82.9 78.4 58.4 67.9 44.3 62.4 37.4 30.8 59.6

Table 10.6.2

Observation Frequency

10.0 ≤ y < 20.0 1 20.0 ≤ y < 30.0 1 30.0 ≤ y < 40.0 2 40.0 ≤ y < 50.0 4 50.0 ≤ y < 60.0 5 60.0 ≤ y < 70.0 2 70.0 ≤ y < 80.0 2 80.0 ≤ y < 90.0 1 90.0 ≤ y < 100.0 1

100.0 ≤ y < 110.0 0 110.0 ≤ y < 120.0 0 120.0 ≤ y < 130.0 1

While there is no way to answer that question with any certainty, there are test procedures that can shed some light on the likelihood (subject to certain assump- tions) of an “outlier” being a sample from the same pdf that generated all the other observations. One such procedure, due to Dixon (42), assumes that the observations are coming from a normal distribution and is based on either the ratio

r01 = y′n − y′n−1 y′n − y′1

or r10 = y′2 − y′1 y′n − y′1

where y′1 is the ith order statistic in the sample of size n. If the potential outlier is the largest observation in the sample, the test statistic is r01; if the potential outlier is the smallest observation, the test statistic is r10.

For the data in Table 10.6.1, n = 20, and the largest observation is the measure- ment in question, so the test statistic is

r01 = y′20 − y′19 y′20 − y′1

From Table 10.6.1, y′1 = 15.6, y′19 = 91.6, and y′20 = 127.6, so

r01 = 127.6 − 91.6127.6 − 15.6 = 0.32

Is that a large enough value to consider 127.6 an outlier? The answer depends on the critical values of the test statistic. However, a closed form pdf for this statistics is

Section 10.6 Taking a Second Look at Statistics (Outliers) 519

not available, so the values of the percentiles of the pdfs are numerically calculated. These percentiles are available as tables or through statistical software.

For the case at hand, where n = 20, the value 0.32 falls between the 95th per- centile of 0.300 and the 98th percentile of 0.356. So, should y′20 be discarded? Probably not, unless there is reason to believe that its large value was the result of a measure- ment error. The distribution of r01 makes it clear that a value of 127.6 in this case is not dramatically out of line.

A word of caution—the simplicity of testing for outliers does not mean the pro- cedure should be used capriciously. More than a few experimenters have woefully regretted discarding suspicious observations under the guise of “cleaning up” their data. Sometimes the observations not fitting the presumed model constitute the most important information in a data set because they may be the first and only clues that the presumed model is, in fact, incorrect.

Chapte r

11Regression CHAPTER OUTLINE

11.1 Introduction 11.2 The Method of Least

Squares 11.3 The Linear Model 11.4 Covariance and

Correlation 11.5 The Bivariate Normal

Distribution 11.6 Taking a Second

Look at Statistics (How Not to Interpret the Sample Correlation Coefficient)

Appendix 11.A.1 A Proof of Theorem 11.3.3

Sir Francis Galton (1822–1911) had earned a Cambridge mathematics degree and completed two years of medical school when his father died, leaving him with a substantial inheritance. Free to travel, he became an explorer of some note, but when The Origin of Species was published in 1859, his interests began to shift from geography to statistics and anthropology (Charles Darwin was his cousin). It was Galton’s work on fingerprints that made possible their use in human identification. He was knighted in 1909.

11.1 INTRODUCTION High on the list of problems that experimenters most frequently need to deal with is the determination of the relationships that exist among the various components of a complex system. If those relationships are sufficiently understood, there is a good possibility that the system’s output can be effectively modeled, maybe even controlled.

Consider, for example, the formidable problem of relating the incidence of can- cer to its many contributing causes—diet, genetic makeup, pollution, and cigarette smoking, to name only a few. Or think of the Wall Street financier trying to anticipate trends in stock prices by tracking market indices and corporate performances, as well as the overall economic climate. In those situations, a host of variables are involved, and the analysis becomes very intricate. Fortunately, many of the fundamental ideas associated with the study of relationships can be nicely illustrated when only two variables are involved. This two-variable model will be the focus of Chapter 11.

Section 11.2 gives a computational technique for determining the “best” equa- tion describing a set of points (x1, y1), (x2, y2), . . . , and (xn, yn), where best is defined geometrically. Section 11.3 adds a probability distribution to the y-variable, which allows for a variety of inference procedures to be developed. The consequences of both measurements being random variables is the topic of Section 11.4. Then Section 11.5 takes up a special case of Section 11.4, where the variability in X and Y is described by the bivariate normal pdf.

11.2 The Method of Least Squares We begin our study of the relationship between two variables by asking a simple geometry question. Given a set of n points—(x1, y1), (x2, y2), . . . , (xn, yn)—and a positive integer m, which polynomial of degree m is “closest” to the given points?

520

Section 11.2 The Method of Least Squares 521

Suppose that the desired polynomial, p(x), is written

p(x) = a + m∑

i=1 bixi

where a, b1, . . . , bm are to be determined. The method of least squares answers the question by finding the coefficient values that minimize the sum of the squares of the vertical distances from the data points to the presumed polynomial. That is, the polynomial p(x) that we will call “best” is the one whose coefficients minimize the function L, where

L = n∑

i=1 [yi − p(xi)]2

Theorem 11.2.1 summarizes the method of least squares as it applies to the important special case where p(x) is a linear polynomial. (Note: To simplify notation, the linear polynomial y = a + b1x1 will be written y = a + bx.)

Theorem 11.2.1

Given n points (x1, y1), (x2, y2), . . . , (xn, yn), the straight line y = a+bx minimizing

L = n∑

i=1 [yi − (a + bxi)]2

has slope

b = n

n∑ i=1

xiyi − (

n∑ i=1

xi

)( n∑

i=1 yi

)

n (

n∑ i=1

x2i

) − (

n∑ i=1

xi

)2 and y-intercept

a =

n∑ i=1

yi − b n∑

i=1 xi

n = ȳ − bx̄

Proof The proof is accomplished by the familiar calculus technique of taking the partial derivatives of L with respect to a and b, setting the resulting expressions equal to 0, and solving. By the first step we get

∂L ∂b

= n∑

i=1 (−2)xi[yi − (a + bxi)]

and

∂L ∂a

= n∑

i=1 (−2)[yi − (a + bxi)]

Setting the right-hand sides of ∂L/∂a and ∂L/∂b equal to 0 and simplifying yields the two equations

na + (

n∑ i=1

xi

) b =

n∑ i=1

yi

(Continued on next page)

522 Chapter 11 Regression

(Theorem 11.2.1 continued)

and ( n∑

i=1 xi

) a + (

n∑ i=1

x2i

) b =

n∑ i=1

xiyi

An application of Cramer’s rule gives the solution for b stated in the theorem. The expression for a follows immediately.

CASE STUDY 11.2.1

A manufacturer of air conditioning units is having assembly problems due to the failure of a connecting rod to meet finished-weight specifications. Too many rods are being completely tooled, then rejected as overweight. To reduce that cost, the company’s quality-control department wants to quantify the relation- ship between the weight of the finished rod, y, and that of the rough casting, x (149). Castings likely to produce rods that are too heavy can then be discarded before undergoing the final (and costly) tooling process.

As a first step in examining the xy-relationship, twenty-five (xi, yi) pairs are measured (see Table 11.2.1). Graphed, the points suggest that the weight (in ounces) of the finished rod is linearly related to the weight of the rough casting (see Figure 11.2.1). Use Theorem 11.2.1 to find the best straight line approximat- ing the xy-relationship.

Table 11.2.1

Rod Number

Rough Weight, x

Finished Weight, y

Rod Number

Rough Weight, x

Finished Weight, y

1 2.745 2.080 14 2.635 1.990 2 2.700 2.045 15 2.630 1.990 3 2.690 2.050 16 2.625 1.995 4 2.680 2.005 17 2.625 1.985 5 2.675 2.035 18 2.620 1.970 6 2.670 2.035 19 2.615 1.985 7 2.665 2.020 20 2.615 1.990 8 2.660 2.005 21 2.615 1.995 9 2.655 2.010 22 2.610 1.990

10 2.655 2.000 23 2.590 1.975 11 2.650 2.000 24 2.590 1.995 12 2.650 2.005 25 2.565 1.955 13 2.645 2.015

From Table 11.2.1, we find that

25∑ i=1

xi = 66.075 25∑

i=1 x2i = 174.672925

25∑ i=1

yi = 50.12 25∑

i=1 y2i = 100.49865

25∑ i=1

xiyi = 132.490725

Section 11.2 The Method of Least Squares 523

2.50

Rough weight, x

1.95

2.00

2.05

2.10

2.55 2.60 2.702.65 2.75

y = 0.308 + 0.642x

Fi ni

sh ed

w ei

gh t,

y

Figure 11.2.1

Therefore,

b = 25(132.490725) − (66.075)(50.12) 25(174.672925) − (66.075)2 = 0.642

and

a = 50.12 − 0.642(66.075) 25

= 0.308

making the least squares line

y = 0.308 + 0.642x The manufacturer is now in a position to make some informed policy de-

cisions. If the weight of a rough casting is, say, 2.71 oz., the least squares line predicts that its finished weight will be 2.05 oz.:

estimated weight = a + b(2.71) = 0.308 + 0.642(2.71) = 2.05 In the event that finished weights of 2.05 oz. are considered to be too heavy, rough castings weighing 2.71 oz. (or more) should be discarded.

RESIDUALS

The difference between an observed yi and the value of the least squares line when x = xi is called the ith residual. Its magnitude reflects the failure of the least squares line to “model” that particular point.

Definition 11.2.1 Let a and b be the least squares coefficients associated with the sample (x1, y1), (x2, y2), . . . , (xn, yn). For any value of x, the quantity ŷ = a + bx is known as the predicted value of y. For any given i, i = 1, 2, . . . , n, the difference yi − ŷi = yi − (a + bxi) is called the ith residual. A graph of yi − ŷi versus xi, for all i, is called a residual plot.

524 Chapter 11 Regression

INTERPRETING RESIDUAL PLOTS

Applied statisticians find residual plots to be very helpful in assessing the appropriateness of fitting a straight line through a given set of n points. If the relationship between x and y is linear, the corresponding residual plot typi- cally shows no patterns, cycles, trends, or outliers. For nonlinear relationships, though, residual plots often take on dramatically nonrandom appearances that can very effectively highlight and illuminate the underlying association between x and y.

Example 11.2.1

Make the residual plot for the data in Case Study 11.2.1. What does its appearance imply about the suitability of fitting those points with a straight line?

We begin by calculating the residuals for each of the twenty-five data points. The first observation recorded, for example, was (x1, y1) = (2.745, 2.080). The cor- responding predicted value, ŷ1, is 2.070:

ŷ1 = 0.308 + 0.642(2.745) = 2.070

The first residual, then, is y1 − ŷ1 = 2.080 − 2.070, or 0.010. The complete set of residuals appears in the last column of Table 11.2.2.

Table 11.2.2

xi yi ŷi yi − ŷi 2.745 2.080 2.070 0.010 2.700 2.045 2.041 0.004 2.690 2.050 2.035 0.015 2.680 2.005 2.029 −0.024 2.675 2.035 2.025 0.010 2.670 2.035 2.022 0.013 2.665 2.020 2.019 0.001 2.660 2.005 2.016 −0.011 2.655 2.010 2.013 −0.003 2.655 2.000 2.013 −0.013 2.650 2.000 2.009 −0.009 2.650 2.005 2.009 −0.004 2.645 2.015 2.006 0.009 2.635 1.990 2.000 −0.010 2.630 1.990 1.996 −0.006 2.625 1.995 1.993 0.002 2.625 1.985 1.993 −0.008 2.620 1.970 1.990 −0.020 2.615 1.985 1.987 −0.002 2.615 1.990 1.987 0.003 2.615 1.995 1.987 0.008 2.610 1.990 1.984 0.006 2.590 1.975 1.971 0.004 2.590 1.995 1.971 0.024 2.565 1.955 1.955 0.000

Section 11.2 The Method of Least Squares 525

0

0.010

0.020

0.030

–0.010

–0.020

–0.030 Rough weight, x

2.550 2.600 2.7002.650 2.750

R es

id ua

l, y

– ŷ

Figure 11.2.2

Figure 11.2.2 shows the residual plot generated by fitting the least squares straight line, y = 0.308 + 0.642x, to the twenty-five (xi, yi)’s. To an applied statistician, there is nothing here that would raise any serious doubts about using a straight line to describe the xy-relationship—the points appear to be randomly scattered and exhibit no obvious anomalies or patterns.

CASE STUDY 11.2.2

Table 11.2.3 lists Social Security expenditures for five-year intervals from 1965 to 2005. During that period, payouts rose from $19.2 billion to $529.9 billion. Substituting these nine (xi, yi)’s into the formulas in Theorem 11.2.1 gives

y = −38.0 + 12.9x as the least squares straight line describing the xy-relationship. Based on the data from 1965 to 2005, was it reasonable to predict that Social Security costs in the year 2010 (when x = 45) would be $543 billion [= −38.0 + 12.9(45)]?

Table 11.2.3

Year Years after 1965, x Social Security Expenditures

($ billions), y

1965 0 19.2 1970 5 33.1 1975 10 69.2 1980 15 123.6 1985 20 190.6 1990 25 253.1 1995 30 339.8 2000 35 415.1 2005 40 529.9

Data from: www.socialsecurity.gov/history/trustfunds.html.

(Continued on next page)

526 Chapter 11 Regression

(Case Study 11.2.2 continued)

Not at all. At first glance, the least squares line does appear to fit the data quite well (see Figure 11.2.3). A closer look, though, suggests that the under- lying xy-relationship may be curvilinear rather than linear. The residual plot (Figure 11.2.4) confirms that suspicion—there we see a distinctly nonrandom pattern.

50

–100

0

100

200

300

400

500

600

10 15

Years after 1965

E xp

en di

tu re

s

20 25 30 35 40 45

Figure 11.2.3

–40

–30

–20

–10

0 0 5 10 15 20 25 30 35 40 45

10

R es

id ua

l

Years after 1965

20

30

40

50

60

70

Figure 11.2.4

Clearly, extrapolating these data would be foolish. The figure for the next fifth year period, 2010, of $713 billion already exceeded the linear projection of $543 billion, leading economists to predict rapidly accelerating expenditures in the future.

Comment For the data in Table 11.2.3, the suggestion that the xy-relationship may be curvilinear is certainly present in Figure 11.2.3, but the residual plot makes the case much more emphatically. In point of fact, that will often be the case, which is why residual plots are such a valuable diagnostic tool— departures from randomness that may be only hinted at in an xy-plot will be illustrated more clearly in the corresponding residual plot.

Section 11.2 The Method of Least Squares 527

CASE STUDY 11.2.3

A new, presumably simpler laboratory procedure has been proposed for recover- ing calcium oxide (CaO) from solutions that contain magnesium. Critics of the method argue that the results are too dependent on the person who performs the analysis. To demonstrate their concern, they arrange for the procedure to be run on ten samples, each containing a known amount of CaO. Nine of the ten tests are done by Chemist A; the other is run by Chemist B. Based on the results summarized in Table 11.2.4, does their criticism seem justified?

Table 11.2.4

Chemist CaO Present (in mg), x CaO Recovered (in mg), y

A 4.0 3.7 A 8.0 7.8 A 12.5 12.1 A 16.0 15.6 A 20.0 19.8 A 25.0 24.5 B 31.0 31.1 A 36.0 35.5 A 40.0 39.4 A 40.0 39.5

Figure 11.2.5 shows the scatterplot of y versus x. The linear function appears to fit all ten points exceptionally well, which would suggest that the critics’ concerns are unwarranted. But look at the residual plot (Figure 11.2.6). The latter shows one point located noticeably farther away from zero than any of the others, and that point corresponds to the one measurement attributed to

40

30

20

10

0

100 20 CaO present (mg), x

C aO

r ec

ov er

ed (

m g)

, y

30 40

y

x

y = – 0.2281 + 0.9948x

Figure 11.2.5

(Continued on next page)

528 Chapter 11 Regression

(Case Study 11.2.3 continued)

0.5

0.3

0.1

–0.1

0.4

0.2

0.0

–0.2

0 10

R es

id ua

l, y

– ŷ

20

Chemist A

Chemist B

30 40 x

CaO present (mg), x

Figure 11.2.6

Chemist B. So, while the scatterplot has failed to identify anything unusual about the data, the residual plot has focused on precisely the question the data set out to answer.

Does the appearance of the residual plot—specifically, the separation be- tween the Chemist B data point and the nine Chemist A data points—“prove” that the output from the new procedure is dependent on the analyst? No, but it does speak to the magnitude of the disparity and, in so doing, provides the critics with at least a partial answer to their original question.

Questions

11.2.1. Crickets make their chirping sound by sliding one wing cover very rapidly back and forth over the other. Biologists have long been aware that there is a linear re- lationship between temperature and the frequency with which a cricket chirps, although the slope and y-intercept of the relationship vary from species to species. The following table lists fifteen frequency-temperature obser- vations recorded for the striped ground cricket, Nemobius fasciatus fasciatus (145). Plot these data and find the equa- tion of the least squares line, y = a+bx. Suppose a cricket of this species is observed to chirp eighteen times per second. What would be the estimated temperature?

For the data in the table, the sums needed are: 15∑

i=1 xi = 249.8

15∑ i=1

x2i = 4,200.56

15∑ i=1

yi = 1,200.6 15∑

i=1 xiyi = 20,127.47

Observation Chirps per Second, Temperature, Number x y (◦F)

1 20.0 88.6 2 16.0 71.6 3 19.8 93.3 4 18.4 84.3 5 17.1 80.6 6 15.5 75.2 7 14.7 69.7 8 17.1 82.0 9 15.4 69.4

10 16.2 83.3 11 15.0 79.6 12 17.2 82.6 13 16.0 80.6 14 17.0 83.5 15 14.4 76.3

Section 11.2 The Method of Least Squares 529

11.2.2. The aging of whisky in charred oak barrels brings about a number of chemical changes that enhance its taste and darken its color. The following table shows the change in a whisky’s proof as a function of the number of years it is stored (168).

Age, x (years) Proof, y

0 104.6 0.5 104.1 1 104.4 2 105.0 3 106.0 4 106.8 5 107.7 6 108.7 7 110.6 8 112.1

(Note: The proof initially decreases because of dilution from moisture in the staves of the barrels.) Graph these data and draw in the least squares line.

11.2.3. As water temperature increases, sodium nitrate (NaNO3) becomes more soluble. The following table (110) gives the number of parts of sodium nitrate that dis- solve in one hundred parts of water.

Temperature (degrees Celsius), x Parts Dissolved, y

0 66.7 4 71.0

10 76.3 15 80.6 21 85.7 29 92.9 36 99.4 51 113.6 68 125.1

Calculate the residuals, y1–ŷ1, . . . , y9–ŷ9, and draw the residual plot. Does it suggest that fitting a straight line through these data would be appropriate? Use the follow- ing sums:

9∑ i=1

xi = 234 9∑

i=1 yi = 811.3

9∑ i=1

x2i = 10,144 9∑

i=1 xiyi = 24,628.6

11.2.4. What, if anything, is unusual about the following residual plots?

0

R es

id ua

l, y

– ŷ

x

0

R es

id ua

l, y

– ŷ

x

11.2.5. The following is the residual plot that results from fitting the equation y = 6.0+2.0x to a set of n = 10 points. What, if anything, would be wrong with predicting that y will equal 30.0 when x = 12?

0

–1

–2

1

2

2 84 6 R

es id

ua l,

y –

ŷ x

11.2.6. Would the following residual plot produced by fit- ting a least squares straight line to a set of n = 13 points cause you to doubt that the underlying xy-relationship is linear? Explain.

0

R es

id ua

l, y

– ŷ

x

11.2.7. The relationship between school funding and stu- dent performance continues to be a hotly debated polit- ical and philosophical issue. Typical of the data available are the following figures, showing the per-pupil expendi- tures and graduation rate for twenty-six randomly chosen districts in Massachusetts.

Graph the data and superimpose the least squares line, y = a + bx. What would you conclude about the xy- relationship? Use the following sums:

26∑ i=1

xi = 360 26∑

i=1 yi = 2,256.6

26∑ i=1

x2i = 5,365.08 26∑

i=1 xiyi = 31,402

530 Chapter 11 Regression

District

Spending per Pupil

(in 1000s), x Graduation Rate, y

Dighton-Rehoboth $10.0 88.7 Duxbury $10.2 93.2 Tyngsborough $10.2 95.1 Lynnfield $10.3 94.0 Southwick-Tolland $10.3 88.3 Clinton $10.8 89.9 Athol-Royalston $11.0 67.7 Tantasqua $11.0 90.2 Ayer $11.2 95.5 Adams-Cheshire $11.6 75.2 Danvers $12.1 84.6 Lee $12.3 85.0 Needham $12.6 94.8 New Bedford $12.7 56.1 Springfield $12.9 54.4 Manchester Essex $13.0 97.9 Dedham $13.9 83.0 Lexington $14.5 94.0 Chatham $14.7 91.4 Newton $15.5 94.2 Blackstone Valley $16.4 97.2 Concord Carlisle $17.5 94.4 Pathfinder $18.1 78.6 Nantucket $20.8 87.6 Essex $22.4 93.3 Provincetown $24.0 92.3

Data from: profiles.doe.mass.edu/state–report/ppx.aspx.

11.2.8. (a) Find the equation of the least squares straight line for the plant cover diversity/bird species diversity data given in Question 8.2.11. (b) Make the residual plot associated with the least squares fit asked for in part (a). Based on the appear- ance of the residual plot, would you conclude that fitting a straight line to these data is appropriate? Explain.

11.2.9. An Atomic Energy Commission nuclear facility was established in Hanford, Washington, in 1943. Over the years, a significant amount of strontium 90 and cesium 137 leaked into the Columbia River. In a study to deter- mine how much this radioactivity caused serious medical problems for those who lived along the river, public health officials created an index of radioactive exposure for nine Oregon counties in the vicinity of the river. As a covariate, cancer mortality was determined for each of the counties (45). The results are given in the table in the next column. For the nine (xi, yi)’s in the table,

9∑ i=1

xi = 41.56 9∑

i=1 x2i = 289.4222

9∑ i=1

yi = 1,416.1 9∑

i=1 xiyi = 7,439.37

County Index of Exposure, x Cancer Mortality per

100,000, y

Umatilla 2.49 147.1 Morrow 2.57 130.1 Gilliam 3.41 129.9 Sherman 1.25 113.5 Wasco 1.62 137.5 Hood River 3.83 162.3 Portland 11.64 207.5 Columbia 6.41 177.9 Clatsop 8.34 210.3

Find the least squares straight line for these points. Also, construct the corresponding residual plot. Does it seem reasonable to conclude that x and y are linearly related?

11.2.10. Would you have any reservations about fitting the following data with a straight line? Explain.

x y

3 20 7 37 5 29 1 10

10 59 12 69 6 39

11 58 8 47 9 48 2 18 4 29

11.2.11. When two closely related species are crossed, the progeny will tend to have physical traits that lie some- where between those of the two parents. Whether a sim- ilar mixing occurs with behavioral traits was the focus of an experiment where the subjects were mallard and pintail ducks (173). A total of eleven males were studied; all were second-generation crosses. A rating scale was devised that measured the extent to which the plumage of each of the ducks resembled the plumage of the first generation’s par- ents. A score of 0 indicated that the hybrid had the same appearance (phenotype) as a pure mallard; a score of 20 meant that the hybrid looked like a pintail. Similarly, cer- tain behavioral traits were quantified and a second scale was constructed that ranged from 0 (completely mallard- like) to 15 (completely pintail-like). Use Theorem 11.2.1 and the following data to summarize the relationship be- tween the plumage and behavioral indices. Does a linear model seem adequate?

Section 11.2 The Method of Least Squares 531

Male Plumage Index, x Behavioral Index, y

R 7 3 S 13 10 D 14 11 F 6 5

W 14 15 K 15 15 U 4 7 O 8 10 V 7 4 J 9 9 L 14 11

11.2.12. Verify that the coefficients a and b of the least squares straight line are solutions of the matrix equation ⎛

⎜⎜⎜⎜⎝ n

n∑ i=1

xi

n∑ i=1

xi n∑

i=1 x2i

⎞ ⎟⎟⎟⎟⎠ (

a b

) =

⎛ ⎜⎜⎜⎜⎜⎝

n∑ i=1

yi

n∑ i=1

xiyi

⎞ ⎟⎟⎟⎟⎟⎠

11.2.13. Prove that a least squares straight line must nec- essarily pass through the point (x̄, ȳ).

11.2.14. In some regression situations, there are a priori reasons for assuming that the xy-relationship being ap- proximated passes through the origin. If so, the equation to be fit to the (xi, yi)’s has the form y = bx. Use the least squares criterion to show that the “best” slope in that case is given by

b =

n∑ i=1

xiyi

n∑ i=1

x2i

11.2.15. Case Study 8.2.6 discusses the expansion of the universe, as astronomer Edwin Hubble announced in 1929. Hubble’s law states that v = Hd, where v is a galaxy’s recession velocity relative to that of any other galaxy and d is its distance from that same galaxy. Table 8.2.6 gives distance and velocity measurements made on eleven galactic clusters (26). Use the formula cited in Question 11.2.14 and these data to estimate H, Hubble’s constant.

11.2.16. Given a set of n linearly related points, (x1, y1), (x2, y2), . . . , and (xn, yn), use the least squares criterion to find formulas for

(a) a if the slope of the xy-relationship is known to be b∗. (b) b if the y-intercept of the xy-relationship is known to be a∗.

11.2.17. Among the problems faced by job seekers want- ing to reenter the workforce, eroded skills and outdated backgrounds are two of the most difficult to overcome. Knowing that, employers are often wary of hiring in- dividuals who have spent lengthy periods of time away from the job. The following table shows the percentages of hospitals willing to rehire medical technicians who have been away from that career for x years (154). It can be argued that the fitted line should necessarily have a y-intercept of 100 because no employer would refuse to hire someone (due to outdated skills) whose career had not been interrupted at all—that is, applicants for whom x = 0. Under that assumption, use the result from Question 11.2.16 to fit these data with the model y = 100 + bx.

Percent of Hospitals Years of Willing to

Inactivity, x Hire, y

0.5 100 1.5 94 4 75 8 44

13 28 18 17

11.2.18. A graph of the luxury suite data in Question 8.2.5 suggests that the xy-relationship is linear. Moreover, it makes sense to constrain the fitted line to go through the origin, since x = 0 suites will necessarily produce y = 0 revenue. (a) Find the equation of the least squares line, y = bx. (Hint: Recall Question 11.2.14.) (b) How much revenue would 120 suites be expected to generate?

11.2.19. Set up (but do not solve) the equations necessary to determine the least squares estimates for the trigono- metric model,

y = a + bx + c sin x Assume that the data consist of the random sample (x1, y1), (x2, y2), . . . , and (xn, yn).

NONLINEAR MODELS

In Chapter 3 it was acknowledged that an infinite number of functions qualify as be- ing either discrete or continuous random variables, but at the end of the day only a handful or so are important in the sense that they accurately model the probabilistic

532 Chapter 11 Regression

behavior of real-world measurements. A similar disclaimer holds for regression func- tions. Graphed, a set of regression data (x1, y1), (x2, y2), . . . , (xn, yn) could be config- ured in any of an infinite number of fundamentally different patterns, but the reality is just the opposite—only a small number of functions are needed to describe a large proportion of the regression data likely to be encountered.

Concluding this section is a discussion of three of the most widely-used nonlin- ear regression models—exponential regression, logarithmic regression, and logistic regression. Each differs from the others in having its own unique “growth rate” for y as a function of x. And those different growth rates are the starting points for deriving the model equations themselves. The simplest example of that linkage can be seen in the linear regression described earlier. In that case, the change in y as a function of x is equal to some fixed number, b. That is,

dy/dx = b or, equivalently, ∫

dy = ∫

bdx

which implies that

y = a + bx, where a is the constant of integration.

What these nonlinear models have in common is that each can be “linearized” by applying an appropriate transformation to either y and/or x. Doing so means that Theorem 11.2.1—which ostensibly dealt with straight lines—can be used to fit each of these nonlinear models as well.

Exponential Regression Suppose y depends on x, where changes in y are propor- tional to y, that is, dydx = by, where b is a constant. Then

∫ dy y = ∫

b dx or ln y = bx+ c where c is a constant of integration. Exponentiation of both sides gives y = ebx·ec. Since ec is an arbitrary positive constant, for simplicity call it a. Thus, the growth relationship between the two variables implies that their relationship is of the form

y = aebx (11.2.1)

Depending on the value of b, Equation 11.2.1 will look like one of the graphs pictured in Figure 11.2.7. Those curvilinear shapes notwithstanding, though, there is a linear model also related to Equation 11.2.1.

x

y

x

y

y = aebx

(b < 0)

y = aebx

(b > 0)

Figure 11.2.7

If y = aebx, it is necessarily true that

ln y = ln a + bx (11.2.2)

Section 11.2 The Method of Least Squares 533

which implies that ln y and x have a linear relationship. That being the case, the for- mulas of Theorem 11.2.1 applied to x and ln y should yield the slope and y-intercept of Equation 11.2.2.

Specifically,

b = n

n∑ i=1

xi ln yi − (

n∑ i=1

xi

)( n∑

i=1 ln yi

)

n n∑

i=1 x2i − (

n∑ i=1

xi

)2 and

ln a =

n∑ i=1

ln yi − b n∑

i=1 xi

n

Comment Transformations that induce linearity often require that the slope and/or y-intercept of the transformed model be transformed “back” to the origi- nal model. Here, for example, Theorem 11.2.1 leads to a formula for ln a, which means that the constant a appearing in the original exponential model is evaluated by calculating eln a.

CASE STUDY 11.2.4

Beginning in the 1970s, computers have steadily decreased in size as they have grown in power. The ability to have more computing potential in a four-pound laptop than in a mainframe of the 1970s is a result of engineers squeezing more and more transistors onto silicon chips. The rate at which this miniaturization occurs is known as Moore’s law, after Gordon Moore, one of the founders of Intel Corporation. His prediction, first articulated in 1965, was that the number of transistors per chip would double every eighteen months.

Table 11.2.5 lists some of the growth benchmarks—namely, the number of transistors per chip—associated with the Intel chips marketed over the twenty-year period from 1975 through 1995. Based on these figures, is it be- lievable that chip capacity is, in fact, doubling at a fixed rate (meaning that Equation 11.2.1 applies)? And if so, how close is the actual doubling time to Moore’s prediction of eighteen months?

A plot of y versus x shows that their relationship is certainly not linear (see Figure 11.2.8). The scatterplot more closely resembles the graph of y = aebx when b > 0, as shown in Figure 11.2.7.

Table 11.2.5

Chip Year Years after 1975, x Transistors per Chip, y

8080 1975 0 4,500 8086 1978 3 29,000 80286 1982 7 90,000 80386 1985 10 229,000 80486 1989 14 1,200,000 Pentium 1993 18 3,100,000 Pentium Pro 1995 20 5,500,000

(Continued on next page)

534 Chapter 11 Regression

(Case Study 11.2.4 continued)

0

Years after 1975

Tr an

si st

or s

pe r

ch ip

6,000,000

5,000,000

4,000,000

3,000,000

2,000,000

1,000,000

20 x

y

15105

y = 7247.189e 0.343x

Figure 11.2.8

Table 11.2.6

Years after 1975, xi x2i Transistors per Chip, yi ln yi xi · ln yi 0 0 4,500 8.41183 0 3 9 29,000 10.27505 30.82515 7 49 90,000 11.40756 79.85292

10 100 229,000 12.34148 123.41480 14 196 1,200,000 13.99783 195.96962 18 324 3,100,000 14.94691 269.04438 20 400 5,500,000 15.52026 310.40520

72 1078 86.90093 1009.51207

Table 11.2.6 shows the calculation of the sums required to evaluate the formulas for b and ln a. Here the slope and the y-intercept of the linearized model (Equation 11.2.2) are 0.342810 and 8.888369, respectively:

b = 7(1009.51207) − 72(86.90093) 7(1078) − (72)2

= 0.342810 and

ln a = 86.9093 − (0.342810)(72) 7

= 8.888369 Therefore,

a = eln a = e8.888369 = 7247.189

Section 11.2 The Method of Least Squares 535

which implies that the best-fitting exponential model describing Intel’s techno- logical advances in chip design has the equation

y = 7247.189e0.343x

(see Figure 11.2.8). To compare Equation 11.2.1 to Moore’s “eighteen-month doubling time”

prediction requires that we write y = 7247.189e0.343x in the form y = 7247.189(2)x. But

e0.343 = 20.495

so another way to express the fitted curve would be

y = 7247.189(20.495x) (11.2.3) In Equation 11.2.3, though, y doubles when 20.495x = 2, or, equivalently, when 0.495x = 1, which implies that 2.0 years is the empirically determined technology doubling time, a pace not too much slower than Moore’s prediction of eighteen months.

About the Data In April of 2005, Gordon Moore pronounced his law dead. He said, “It can’t continue forever. The nature of exponentials is that you push them out and eventually disaster happens.” If by “disaster” he meant that tech- nology often makes a quantum leap, moving well beyond what an extrapolated law could predict, he was quite correct. Indeed, he could have made this decla- ration in 2003. By that year, the Itanium 2 featured 220,000,000 transistors on a chip, whereas the model of the case study predicts the number to be only

y = 7247.189e0.343(28) = 107, 432, 032 (In the equation, x = 2003 − 1975 = 28.)

Logarithmic Regression Another curvilinear model that can be linearized stems from the assumption that changes in y are proportional to the ratio of y to x, that is, dydx = byx , where b is a constant. Then

∫ dy y = ∫ b

x dx or log y = b log x + log a, where log x is the logarithm base 10 and log a is a constant of integration. Therefore, y = axb and logy is linear with logx. Therefore,

b = n

n∑ i=1

log xi · log yi − (

n∑ i=1

log xi

)( n∑

i=1 log yi

)

n n∑

i=1 (log xi)2 −

( n∑

i=1 log xi

)2

and

log a =

n∑ i=1

log yi − b n∑

i=1 log xi

n

Regressions of this type have slower growth rates than exponential models and are particularly useful in describing biological and engineering phenomena.

536 Chapter 11 Regression

CASE STUDY 11.2.5

Entomologists who study the behavior of ants know that a certain number are assigned foraging duties, which require them to come and go from their colonies on a regular basis. Moreover, studies have shown that if y is the total number of ants in a colony and x is the number that forage, the relationship between x and y can be effectively modeled by a logarithmic regression,

y = axb (11.2.4) where a and b vary from species to species.

Finding good estimates for a and b is a worthwhile endeavor because know- ing those values allows investigators to avoid the difficult problem of counting the very large number of ants in a colony; instead, they need simply count the much smaller number of foraging ants (x) and then use axb as an estimate for the colony size (y).

To that end, Table 11.2.7 shows the results of a “calibration” study done on the red wood ant (Formica polyctena). Listed are the colony sizes, y, and the foraging sizes, x, observed for fifteen of their colonies (102).

Table 11.2.7

Foraging Size, x Colony Size, y y/x

45 280 6.2 70 601 8.6 74 222 3.0

118 288 2.4 220 1205 5.5 338 7551 22.3 446 3229 7.2 611 8834 14.4 647 2828 4.4 765 3762 4.9 823 2769 3.4 850 12,605 14.8

4119 12,584 3.1 11,600 34,661 3.0 64,512 139,043 2.2

The first step in any regression analysis is to graph the data. Do the (xi, yi)’s show a pattern similar to what is expected? Data consistent with the model y = axb, for example, will necessarily have one of the two basic configurations pictured in Figure 11.2.9.

x

y

y = axb, b < 1

0 (a)

0 x

y

y = axb, b > 1

0 (b)

0

Figure 11.2.9

Section 11.2 The Method of Least Squares 537

Here, plotting y versus x for the data in Table 11.2.7 is problematic because of the huge ranges for both variables (x goes from 45 to 64,512; y goes from 222 to 139,043). But, if the model y = axb is appropriate, then graphing log y versus log x should produce a pattern that looks entirely consistent with data having a linear relationship. Based on Figure 11.2.10, it does.

1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0

log x

5.5

5.0

4.5

4.0

3.5

3.0

2.5

2.0

log y = 1.08028 + 0.876 log x

lo g

y

Figure 11.2.10

Suppose a sixteenth Formica polyctena colony is found and twenty-five hundred of its ants appear to be foraging. What would be a reasonable estimate for the size of that colony?

First we need to find a and b using the foraging size/colony size database summarized in Table 11.2.7. The necessary sums and sums of squares are

15∑ i=1

log xi = 41.77441 15∑

i=1 log yi = 52.79857

15∑ i=1

(log xi)2 = 126.60450 15∑

i=1 log xi · log yi = 156.03811

According to the formulas given in Example 11.2.1,

b = 15(156.03811) − (41.77441)(52.79857) 15(126.60450) − (41.77441)2 = 0.876

log a = 52.79857 − 0.876(41.77441) 15

= 1.08028 a = 101.08028 = 12.03

Therefore, y = 12.03x0.876 and the predicted colony size based on x = 2500 foraging ants would be

y = 12.03(2500)0.876 = 11, 400

Comment The fact that y = axb models these data so nicely should not have come as a complete surprise. The growth rate that defines logarithmic regression,

dy/dx = b · (y/x) (Continued on next page)

538 Chapter 11 Regression

(Case Study 11.2.5 continued)

mimics the way many animal populations evolve, where dy refers to the popu- lation’s future growth and x is some measure of its present size. For the Formica polyctena data described in Case Study 11.2.5, the number of ants foraging (x) is a proxy variable representing the current size of the colony.

Having calculated that b < 1 for the entries in Table 11.2.7, the general con- figuration of these data if y is plotted against x will look like Figure 11.2.9(a). That is, there will be an initial growth spurt as the colony gets established and quickly multiplies (and values of y/x will often be quite large because x is still small). But as time passes, increases in the denominator x make it more and more difficult for dy to increase enough to make the ratio y/x return to its earlier lev- els, and the colony’s growth begins to level off. That particular scenario—with a few exceptions—is clearly playing out in the entries listed in the third column of Table 11.2.7. Four of the lowest six values of y/x, for example, occur among the five largest colonies.

Logistic Regression Growth is a fundamental characteristic of organisms, institu- tions, and ideas. In biology, it might refer to the change in size of a Drosophila population; in economics, to the proliferation of global markets; in political science, to the gradual acceptance of tax reform. Prominent among the many growth mod- els capable of describing situations of this sort is one where changes in y are pro- portional to their present magnitudes and to their distance from an upper limit L. In that case, dydx = k yL−y , where k and L are constants. Then

∫ dy y(L−y) =

∫ k dx or

1 L · ln (

y L−y )

= kx + c, where c is a constant of integration. Exponentiating and solv- ing for y yields the logistic equation

y = L 1 + ea+bx (11.2.5)

where a, b, and L are constants. For different values of a and b, Equation 11.2.5 gen- erates a variety of S-shaped curves.

To linearize Equation 11.2.5, we start with its reciprocal:

1 y

= 1 + e a+bx

L

Therefore,

L y

= 1 + ea+bx

and L − y

y = ea+bx

Equivalently,

ln (

L − y y

) = a + bx

which implies that ln (

L − y y

) is linear with x.

Comment The parameter L is interpreted as the limit to which y is converging as x increases. In practice, L is often estimated simply by plotting the data and “eye- balling” the y-asymptote.

Section 11.2 The Method of Least Squares 539

CASE STUDY 11.2.6

The scene is familiar; hundreds of birds are perched wing-to-wing along a stretch of power lines next to a busy highway (Are they hoping to see a five car pile-up?) when they suddenly fly away all at the same time. How do they do that? The short answer is they don’t. Using high-speed photography, a team of researchers (86) documented the way birds take flight. Their pictures revealed that flocks get airborne in a very precise way, but the pattern plays out much too quickly for the naked eye ever to see.

The targets of their investigation were flocks of redshanks. These are mid- sized, migratory shorebirds that like to winter in the salt marshes of Scotland. A major predator of red shanks are sparrow hawks, and thirty-eight of their attacks were photographed, every 4/100-ths of a second, after the first redshank took flight. Table 11.2.8 shows the average proportions of the flock that were airborne as a function of time.

Table 11.2.8

Time (seconds) Proportion

0.04 0.08 0.08 0.14 0.12 0.21 0.16 0.30 0.20 0.38 0.24 0.61 0.28 0.70 0.32 0.78 0.36 0.86 0.40 0.90 0.44 0.94 0.48 0.95 0.52 0.96 0.56 0.97 0.60 0.98

The scatterplot for these fifteen data points has a definite S-shaped appear- ance (see Figure 11.2.11), which makes Equation 11.2.5 a good candidate for modeling the xy-relationship. The limit to which the population is converging is the full proportion, that is, 1. Quantify the population/time relationship by fitting a logistic equation to these data. Let L = 1.

The form of the linearized version of Equation 11.2.5 requires that we find the following sums:

51∑ i=1

xi = 4.80, 15∑

i=1 ln (

1 − yi yi

) = −15.91,

15∑ i=1

x2i = 1.984, 15∑

i=1 xi · ln (

1 − yi yi

) = −10.2096

Substituting ln (

1−yi yi

) for yi into the formulas for a and b in Theorem 11.2.1 gives

b = 15(−10.2096) − (4.80)(−15.91) 15(1.984) − (4.80)2 = −11.425

and a = −15.910 − (−11.425)(4.80) 15

= 2.595

so the best-fitting logistic curve has equation 1 1+e2.595−11.425x .

(Continued on next page)

540 Chapter 11 Regression

(Case Study 11.2.6 continued)

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0 0 0.1 0.2 0.3

Time (seconds) of flight, x P

ro po

rt io

n of

fl oc

k ai

rb or

ne , y

0.4 0.5 0.6

Figure 11.2.11

About the Data For many curve-fitting problems—maybe most—the particular differential equation that defines dy/dx is not known in advance. In its absence, the regression model chosen to describe the data is simply the one that fits the (xi, yi)’s the best. This is not one of those situations. Without seeing any data, it would have been reasonable to hypothesize that a graph showing “% of flock airborne” versus “time after first warning” would have the S-shape pictured in Figure 11.2.12.

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0 0 0.1 0.2 0.3

Time (seconds) of flight, x

P ro

po rt

io n

of fl

oc k

ai rb

or ne

, y

0.4 0.5 0.6

y = 1 + e2.595–11.425x

1

Figure 11.2.12

Why? Because the key factors in the differential equation that gives rise to the logistic curve—namely, y(L − y)—describe a growth pattern entirely consis- tent with the way flocks of birds might be expected to take flight. When the first bird that spots the approach of a predator begins to take off, only a few of the nearby birds would immediately become aware of the threat, so the values of dy/dx would be small for values of x close to 0. As additional birds take flight, though, more birds on the ground would respond to the imminent danger and dy/dx would increase sharply.

Section 11.2 The Method of Least Squares 541

As soon as the number of birds remaining on the ground is smaller than the number of birds in the air, dy/dx would begin to decrease, and the values would get very small when virtually the entire flock was airborne. The changes that we would expect to see in dy/dx, then, are precisely what we do see in Figure 11.2.12.

Other Curvilinear Models While the exponential, logarithmic, and logistic equations are three of the most common curvilinear models, there are several others that deserve mention as well. Table 11.2.9 lists a total of six nonlinear equations, including the three already described. Along with each is the particular transformation that reduces the equation to a linear form. Proofs for parts (d), (e), and (f) will be left as exercises.

Table 11.2.9

a. If y = aebx, then ln y is linear with x. b. If y = axb, then log y is linear with log x. c. If y = L/(1 + ea+bx), then ln

( L − y

y

) is linear with x.

d. If y = 1 a + bx , then

1 y

is linear with x.

e. If y = x a + bx , then

1 y

is linear with 1 x

.

f. If y = 1 − e−xb/a, then ln ln (

1 1 − y )

is linear with ln x.

Questions

11.2.20. Radioactive gold (195Au-aurothiomalate) has an affinity for inflamed tissues and is sometimes used as a tracer to diagnose arthritis. The data in the following table (67) come from an experiment investigating the length of time and the concentrations that 195Au-aurothiomalate is retained in a person’s blood. Listed are the serum gold concentrations found in ten blood samples taken from pa- tients given an initial dose of 50 mg. Follow-up readings were made at various times, ranging from one to seven days after injection. In each case, the retention is ex- pressed as a percentage of the patient’s day-zero serum gold concentration.

Days after Injection, x Serum Gold %

Concentration, y

1 94.5 1 86.4 2 71.0 2 80.5 2 81.4 3 67.4 5 49.3 6 46.8 6 42.3 7 36.6

(a) Fit an exponential curve to these data. (b) Estimate the half-life of 195Au-aurothiomalate; that is, how long does it take for half the gold to disappear from a person’s blood?

If x denotes days after injection and y denotes serum gold

% concentration, then 10∑

i=1 xi = 35,

10∑ i=1

x2i = 169, 10∑

i=1 ln yi =

41.35720, and 10∑

i=1 xi ln yi = 137.97415.

11.2.21. The growth of federal expenditures is one of the characteristic features of the U.S. economy. The rapidity of the increases from 2000 to 2015, as shown in the table below, suggests an exponential model.

Gross Federal Debt Year Years after 2000, x (in $ trillions), y

2000 0 5.629 2001 1 5.770 2002 2 6.198 2003 3 6.760 2004 4 7.355 2005 5 7.905 2006 6 8.451 2007 7 8.951 2008 8 9.986 2009 9 11.876 2010 10 13.529 2011 11 14.764 2012 12 16.051 2013 13 16.719 2014 14 17.794 2015 15 18.120

Source: https://www.whitehouse.gov/omb/budget/Historicals

(a) Find the best-fitting exponential curve, using the method of least squares together with an appropriate

542 Chapter 11 Regression

linearizing transformation. Use the sums: 15∑

i=0 xi = 120,

15∑ i=0

ln yi = 37.04571, and 15∑

i=0 xi · ln yi = 307.6275

(b) Calculate the residuals for the years 2009 through 2015. What does this say about the exponential model?

11.2.22. Used cars are often sold wholesale at auctions, and from these sales, retail sales prices are recommended. The following table gives the recommended prices in 2009 for a four-door manual transmission Toyota Corolla based on the age of the car.

Age (in years), x Suggested Retail Price, y

1 $14,680 2 12,150 3 11,215 4 10,180 5 9,230 6 8,455 7 7,730 8 6,825 9 6,135

10 5,620

Data from: www.bb.com.

(a) Fit these data with a model of the form y = aebx. Graph the (xi, yi)’s and superimpose the least squares ex- ponential curve.

(b) What would you predict the retail price of an eleven- year-old Toyota Corolla to be?

(c) The price of a new Corolla in 2009 was $16,200. Is that figure consistent with the widely held belief that a new car depreciates substantially the moment it is purchased? Explain.

11.2.23. The Super Bowl showed steady and significant growth in popularity from its beginning in 1967. This growth was reflected in ticket prices. The table gives the ticket prices in four-year intervals from 1967 to 2011.

Years after 1967, x Ticket Cost ($), y

0 10 4 15 8 20

12 30 16 40 20 75 24 150 28 200 32 325 36 500 40 600 44 900

Data from: http://www.jsonline.com/sports/rank–file-7p40vnb-138455269.html

Use the fact that 12∑

i=1 ln yi = 54.92066 and

12∑ i=1

xi · ln yi = 1453.58352 to fit the data with an exponential model.

11.2.24. Suppose a set of n (xi, yi)’s are measured on a phenomenon whose theoretical xy-relationship is of the form y = aebx. (a) Show that

dy dx

= by implies that y = aebx. (b) On what kind of graph paper would the (xi, yi)’s show a linear relationship?

11.2.25. In 1959, the Ise Bay typhoon devastated parts of Japan. For seven metropolitan areas in the storm’s path, the following table gives the number of homes damaged as a function of peak wind gust (126). Show that a function of the form y = axb provides a good model for the data.

Peak Wind Gust Numbers of Damaged City (hundred mph), x Homes (in thousands), y

A 0.98 25.000 B 0.74 0.950 C 1.12 200.000 D 1.34 150.000 E 0.87 0.940 F 0.65 0.090 G 1.39 260.000

Use the following sums: 7∑

i=1 log xi = −0.067772

7∑ i=1

log yi = 7.1951

7∑ i=1

(log xi)2 = 0.0948679 7∑

i=1 (log xi)(log yi) = 0.92314

11.2.26. Among mammals, the relationship between the age at which an animal develops locomotion and the age at which it first begins to play has been widely studied. The table below lists “onset” times for locomotion and for play in eleven different species (46). Fit the data to the y = axb model.

Locomotion Play Begins, Species Begins, x (days) y (days)

Homo sapiens 360 90 Gorilla gorilla 165 105 Felis catus 21 21 Canis familiaris 23 26 Rattus norvegicus 11 14 Turdus merula 18 28 Macaca mulatta 18 21 Pan troglodytes 150 105 Saimiri sciurens 45 68 Cercocebus alb. 45 75 Tamiasciureus hud. 18 46

11.2.27. Over the years, many efforts have been made to demonstrate that the human brain is appreciably different

Section 11.3 The Linear Model 543

in structure from the brains of lower-order primates. In point of fact, such differences in gross anatomy are discon- certingly difficult to discern. The following are the average areas of the striate cortex (x) and the prestriate cortex (y) found for humans and for three species of chimpanzees (137).

Area

Primate Striate Cortex,

x (mm2) Prestriate Cortex,

y (mm2)

Homo 2613 7838 Pongo 1876 2864 Cercopithecus 933 1334 Galago 78.9 40.8

Plot the data and superimpose the least squares curve, y = axb. 11.2.28. Years of experience buying and selling commer- cial real estate have convinced many investors that the value of land zoned for business (y) is inversely related to its distance (x) from the center of town—that is, y = a + b · 1

x . If that suspicion is correct, what should be the

appraised value of a piece of property located 14 mile from the town square, based on the sales listed below?

Distance from Land Center of City (in Value Parcel thousand feet), x (in thousands), y

H1 1.00 $20.5 B6 0.50 42.7 Q4 0.25 80.4 L4 2.00 10.5 T7 4.00 6.1 D9 6.00 6.0 E4 10.00 3.5

11.2.29. Verify the claims made in parts (d), (e), and (f) of Table 11.2.9—that is, prove that the transformations cited will linearize the original models.

11.2.30. Biological organisms, such as yeast, often exhibit exponential growth. However, in some cases, that rapid

rate of growth cannot be sustained. Such factors as lack of nutrition to support a large population or the buildup of toxins limit the rate of growth. In such cases the curve begins concave up, inflects at some point, and becomes concave down and asymptotic to a limit. A now-classical experiment by Carlson (23) measured the amount of biomass of brewer’s yeast (Saccharomyces Cerevisiae) at one-hour intervals. The table shows the results.

Hour Yeast Count Hour Yeast Count

0 9.6 9 441.00 1 18.3 10 513.3 2 29.0 11 559.7 3 47.2 12 594.8 4 71.1 13 629.4 5 119.1 14 640.8 6 174.6 15 651.1 7 257.3 16 655.9 8 350.7 17 659.6

Quantify the population/time relationship by fitting a lo- gistic equation to these data. Let L = 700. 11.2.31. The following table shows a portion of the re- sults from a clinical trial investigating the effectiveness of a monoamine oxidase inhibitor as a treatment for depres- sion (219). The relationship between y, the percentage of subjects showing improvement, and x, the patient’s age, appears to be S-shaped. Graph the data and superimpose

a graph of the least squares curve y = L 1 + ea+bx . Take L

to be 60.

Age Group Age Mid-Point, x % Improved, y ln (

60−y y

) [28, 32) 30 11 1.49393 [32, 36) 34 14 1.18958 [36, 40) 38 19 0.76913 [40, 44) 42 32 −0.13353 [44, 48) 46 42 −0.84730 [48, 52) 50 48 −1.38629 [52, 56) 54 50 −1.60944 [56, 60) 58 52 −1.87180

11.3 The Linear Model Section 11.2 views the problem of “curve fitting” from a purely geometrical perspec- tive. The observed (xi, yi)’s are assumed to be nothing more than points in the xy- plane, devoid of any statistical properties. It is more realistic, though, to think of each y as the value recorded for a random variable Y , meaning that a distribution of possible y-values is associated with every value of x.

Consider, for example, the connecting rod weights analyzed in Case Study 11.2.1. The first rod listed in Table 11.2.1 had an initial weight of x = 2.745 oz. and, after the tooling process was completed, a finished weight of y = 2.080 oz. It does not follow from that one observation, of course, that an initial weight of 2.745 oz. necessarily

544 Chapter 11 Regression

leads to a finished weight of 2.080 oz. Common sense tells us that the tooling process will not always have exactly the same effect, even on rods having the same initial weight. Associated with each x, then, there will be a range of possible y-values. The symbol fY |x(y) is used to denote the pdfs of these “conditional” distributions.

Definition 11.3.1 Let fY |x(y) denote the pdf of the random variable Y for a given value x, and let E(Y | x) denote the expected value associated with fY |x(y). The function

y = E(Y | x) is called the regression curve of Y on x.

Example 11.3.1

Suppose that corresponding to each value of x in the interval 0 ≤ x ≤ 1 is a distribu- tion of y-values having the pdf

fY |x(y) = x + y x + 12

, 0 ≤ y ≤ 1; 0 ≤ x ≤ 1

Find and graph the regression curve of Y on x. Notice, first of all, that for any x between 0 and 1, fY |x(y) does qualify as a pdf:

1. fY |x(y) ≥ 0, for 0 ≤ y ≤ 1 and any 0 ≤ x ≤ 1

2. ∫ 1

0 fY |x(y) dy =

∫ 1 0

x + y x + 1/2dy =

∫ 1 0

x x + 1/2dy+

∫ 1 0

y x + 1/2dy =

x + 1/2 x + 1/2 = 1

Moreover,

E(Y | x) = ∫ 1

0 y · fY |x(y) dy =

∫ 1 0

y · x + y x + 12

dy

= [

xy2

2 ( x + 12 ) + y3

3 ( x + 12 ) ]∣∣∣∣∣

1

0

= 3x + 2 6x + 3 , 0 ≤ x ≤ 1

Figure 11.3.1 shows the regression curve, y = E(Y |x) = 3x + 2 6x + 3 , together

with three of the conditional distributions— fY |0(y) = 2y, fY | 12 (y) = y + 1 2 , and

0

1

1

2y + 2 3f (y) = 2yY | 0 f (y) = y +Y |

2 3

E(Y | 0) = 3x + 26x + 3y = E(Y | x) = Regression curve:

f (y) =Y | 1

E(Y | 1) =

1 2

1 2

1 2

E(Y | ) =12 7 12

5 9

1 2

x

y

Figure 11.3.1

Section 11.3 The Linear Model 545

fy|1(y) = 2y + 23 . The fY |x(y)’s, of course, should be visualized as coming out of the plane of the paper.

A SPECIAL CASE

Definition 11.3.1 introduces the notion of a regression curve in the most general of contexts. In practice, there is one special case of the function y = E(Y |x) that is particularly important. Known as the simple linear model, it makes four assumptions:

1. fY |x(y) is a normal pdf for all x. 2. The standard deviation, σ, associated with fY |x(y) is the same for all x. 3. The means of all the conditional Y distributions are collinear—that is,

y = E(Y |x) = β0 + β1x

4. All of the conditional distributions represent independent random variables. (See Figure 11.3.2.)

xi xj xk

f (y)Y | xi

E(Y | x )i

E(Y | x )j

E(Y | x )k

x

f (y)Y | xj

f (y)Y | xk

y = E (Y | x) = β0 + β1 x

yFigure 11.3.2

ESTIMATING THE LINEAR MODEL PARAMETERS

Implicit in the simple linear model are three parameters—β0, β1, and σ2. Typically, all three will be unknown and need to be estimated. Since the model assumes a prob- ability structure for the Y -variable, estimates can be obtained using the method of maximum likelihood, as opposed to the method of least squares that we saw in Sec- tion 11.2. (Maximum likelihood estimates are preferable to least squares estimates because the former have probability distributions that can be used to set up hypoth- esis tests and confidence intervals.)

Comment It would be entirely consistent with the notation used previously to de- note the sample in Theorem 11.3.1 as (x1, y1), (x2, y2), . . . , and (xn, yn). To emphasize the important distinction, though, between the (lack of) assumptions on the yi’s made in Section 11.2 and the conditional pdfs fY |x(y) introduced in Definition 11.3.1, we will use random variable notation to write linear model data as (x1,Y1), (x2,Y2), . . . , and (xn,Yn).

546 Chapter 11 Regression

Theorem 11.3.1

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points satisfying the simple linear model, E(Y |x) = β0 + β1x. The maximum likelihood estimators for β0, β1, and σ2 are given by

β̂1 = n

n∑ i=1

xiYi − (

n∑ i=1

xi

)( n∑

i=1 Yi

)

n (

n∑ i=1

x2i

) − (

n∑ i=1

xi

)2 β̂0 = Ȳ − β̂1x̄

and

σ̂2 = 1 n

n∑ i=1

(Yi − Ŷi)2

where Ŷi = β̂0 + β̂1xi, i = 1, . . . , n. Proof Since each Yi is assumed to be normally distributed with mean equal to β0 + β1xi and variance equal to σ2, the sample’s likelihood function, L, is the product

L = n∏

i=1 fYi|xi (yi) =

n∏ i=1

1√ 2πσ

e− 1 2

( yi−β0−β1xi

σ

)2 = (2πσ2)−n/2e−

1 2

n∑ i=1

( yi−β0−β1xi

σ

)2

The maximum of L for this case occurs when the partial derivatives with re- spect to β0, β1, and σ2 all vanish. It will be easier, computationally, to differentiate −2 ln L, and the latter will be minimized for the same parameter values that max- imize L. Here,

ln L = −n 2

ln(2πσ2) − 1 2

n∑ i=1

( yi − β0 − β1xi

σ

)2 and

−2 ln L = n ln 2π + n ln σ2 + 1 σ2

n∑ i=1

(yi − β0 − β1xi)2

Setting the three partial derivatives equal to 0 gives

∂(−2 ln L) ∂β0

= 2 σ2

n∑ i=1

(yi − β0 − β1xi)(−1) = 0

∂(−2 ln L) ∂β1

= 2 σ2

n∑ i=1

(yi − β0 − β1xi)(−xi) = 0

∂(−2 ln L) ∂σ2

= n σ2

− 1 (σ2)2

n∑ i=1

(yi − β0 − β1xi)2 = 0

The first two equations depend only on β0 and β1, and the resulting solutions for β̂0 and β̂1 have the same forms that are given in the statement of the theorem. Substi- tuting the solutions from the first two equations into the third gives the expression for σ̂2.

Comment Note the similarity in the formulas for the maximum likelihood estima- tors and the least squares estimates for β̂0 and β̂1. The least squares estimates, of course, are numbers, while the maximum likelihood estimators are random variables.

Up to this point, random variables have been denoted with uppercase letters and their values with lowercase letters. In this section, boldface β̂0 and β̂1 will represent

Section 11.3 The Linear Model 547

the maximum likelihood random variables, and plain-text β̂0 and β̂1 will refer to spe- cific values taken on by those random variables.

PROPERTIES OF LINEAR MODEL ESTIMATORS

By virtue of the assumptions that define the simple linear model, we know that the estimators β̂0, β̂1, and σ̂

2 are random variables. Before those estimators can be used to set up inference procedures, though, we need to establish their basic statistical properties—specifically, their means, variances, and pdfs.

Theorem 11.3.2

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points satisfying the simple lin- ear model, E(Y |x) = β0 + β1x. Let β̂0, β̂1, and σ̂2 be the maximum likelihood estimators for β0, β1, and σ2, respectively. Then

a. β̂0 and β̂1 are both normally distributed.

b. β̂0 and β̂1 are both unbiased: E(β̂0) = β0 and E(β̂1) = β1. c. Var(β̂1) = σ

2

n∑ i=1

(xi−x̄)2

d. Var(β̂0) = σ2

n∑ i=1

x2i

n n∑

i=1 (xi−x̄)2

= σ2 ⎡ ⎣ 1

n + x̄ 2

n∑ i=1

(xi−x̄)2

⎤ ⎦

Proof We will prove the statements for β̂1; the results for β̂0 follow similarly. The equation for the estimator β̂1 given in Theorem 11.3.1 is the simplest form

that solves the likelihood equations (and the least squares equations as well). It is also convenient for computation. However, two other expressions for β̂1 are useful for theoretical results.

To begin, take the version of β̂1 from Theorem 11.3.1:

β̂1 = n

n∑ i=1

xiYi − (

n∑ i=1

xi

)( n∑

i=1 Yi

)

n n∑

i=1 x2i − (

n∑ i=1

xi

)2 Dividing numerator and denominator by n gives

β̂1 =

n∑ i=1

xiYi − 1n (

n∑ i=1

xi

)( n∑

i=1 Yi

) n∑

i=1 x2i − 1n

( n∑

i=1 xi

)2

=

n∑ i=1

xiYi − x̄ (

n∑ i=1

Yi

) n∑

i=1 x2i − nx̄2

=

n∑ i=1

(xi − x̄)Yi n∑

i=1 x2i − nx̄2

(11.3.1)

(Continued on next page)

548 Chapter 11 Regression

(Theorem 11.3.2 continued)

Equation 11.3.1 expresses β̂1 as a linear combination of independent normal vari- ables, so by the second corollary to Theorem 4.3.3, it is itself normal, proving part (a).

To see that β̂1 is unbiased, note that

E(β̂1) =

n∑ i=1

(xi − x̄)E(Yi) n∑

i=1 x2i − nx̄2

=

n∑ i=1

(xi − x̄)(β0 + β1xi) n∑

i=1 x2i − nx̄2

= β0

n∑ i=1

(xi − x̄) + β1 n∑

i=1 (xi − x̄)xi

n∑ i=1

x2i − nx̄2

= 0 + β1

n∑ i=1

(xi − x̄)xi n∑

i=1 x2i − nx̄2

= β1

( n∑

i=1 x2i − nx̄2

) n∑

i=1 x2i − nx̄2

= β1

To find Var(β̂1), rewrite the denominator of Equation 11.3.1 in the form n∑

i=1 x2i − nx̄2 =

n∑ i=1

(x2i − 2xix̄ + x̄2) = n∑

i=1 (xi − x̄)2

which makes

β1 =

n∑ i=1

(xi − x̄)Yi n∑

i=1 (xi − x̄)2

(11.3.2)

Using Equation 11.3.2, Theorem 3.6.2, and the second corollary to Theorem 3.9.5 gives

Var(β̂1) = Var

⎡ ⎢⎢⎣ 1n∑

i=1 (xi − x̄)2

n∑ i=1

(xi − x̄)Yi

⎤ ⎥⎥⎦

= 1[ n∑

i=1 (xi − x̄)2

]2 n∑

i=1 (xi − x̄)2σ2

= σ 2

n∑ i=1

(xi − x̄)2

Theorem 11.3.3

Let (x1,Y1), (x2,Y2), . . . , (xn,Yn) satisfy the assumptions of the simple linear model. Then

a. β̂1, Ȳ , and σ̂ 2 are mutually independent.

b. nσ̂2

σ2 has a chi square distribution with n − 2 degrees of freedom.

Proof See Appendix 11.A.1.

Section 11.3 The Linear Model 549

Corollary 11.3.1

Let σ̂2 be the maximum likelihood estimator for σ2 in a simple linear model. Then n

n − 2 · σ̂ 2 is an unbiased estimator for σ2.

Proof Recall that the expected value of a χ2k distribution is k (see Theorems 4.6.3 and 7.3.1). Therefore,

E (

n n − 2 · σ̂

2 )

= σ 2

n − 2E (

nσ̂2

σ2

)

= σ 2

n − 2 · (n − 2) [by part (b) of Theorem 11.3.3]

= σ2

Corollary 11.3.2

The random variables Ŷ and σ̂2 are independent.

ESTIMATING σ2

We know that the (biased) maximum likelihood estimator for σ2 in a simple linear model is

σ̂ 2 = 1

n

n∑ i=1

(Yi − β̂0 − β̂1xi)2

The unbiased estimator for σ2 based on σ̂2 is denoted S2, where

S2 = n n − 2 σ̂

2 = 1 n − 2

n∑ i=1

(Yi − β̂0 − β̂1xi)2

Statistical software packages—including Minitab—typically print out s, rather than σ̂, in summarizing the calculations associated with linear model data. To accommo- date that convention, we will use s2 rather than σ̂2 in writing the formulas for the test statistics and confidence intervals that arise in connection with the simple linear model.

Comment Calculating n∑

i=1 (yi − β̂0 − β̂1xi)2 =

n∑ i=1

(yi − ŷi)2 can be cumbersome. Three (algebraically equivalent) computing formulas are available that may be easier to use, depending on the data:

n∑ i=1

(yi − ŷi)2 = n∑

i=1 (yi − ȳ)2 − β̂21

n∑ i=1

(xi − x̄)2 (11.3.3)

n∑ i=1

(yi − ŷi)2 = n∑

i=1 y2i −

1 n

n∑ i=1

yi −

[ n∑

i=1 xiyi − 1n

( n∑

i=1 xi

)( n∑

i=1 yi

)]2 n∑

i=1 x2i − 1n

n∑ i=1

xi

(11.3.4)

n∑ i=1

(yi − ŷi)2 = n∑

i=1 y2i − β̂0

n∑ i=1

yi − β̂1 n∑

i=1 xiyi (11.3.5)

550 Chapter 11 Regression

DRAWING INFERENCES ABOUT β1 Hypothesis tests and confidence intervals for β1 can be carried out by defining a t statistic based on the properties that appear in Theorems 11.3.2 and 11.3.3.

Theorem 11.3.4

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points that satisfy the assumptions

of the simple linear model, and let S2 = 1n−2 n∑

i=1 (Yi − β̂0 − β̂1xi)2. Then

Tn−2 = β̂1 − β1

S

/√ n∑

i=1 (xi − x̄)2

has a Student t distribution with n − 2 degrees of freedom. Proof We know from Theorem 11.3.2 that

Z = β̂1 − β1

σ

/√ n∑

i=1 (xi − x̄)2

has a standard normal pdf. Furthermore, nσ̂ 2

σ2 = (n−2)S2

σ2 has a χ2 pdf with n − 2

degrees of freedom, and, by Theorem 11.3.3, Z and (n−2)S 2

σ2 are independent. From

Definition 7.3.3, then, it follows that

Z

/√ (n − 2)S2

σ2

/ (n − 2) = β̂1 − β1

S

/√ n∑

i=1 (xi − x̄)2

has a Student t distribution with n − 2 degrees of freedom.

Theorem 11.3.5

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points that satisfy the assumptions of the simple linear model. Let

t = β̂1 − β ′ 1

s

/√ n∑

i=1 (xi − x̄)2

a. To test H0: β1 = β′1 versus H1: β1 > β′1 at the α level of significance, reject H0 if t ≥ tα,n−2.

b. To test H0: β1 = β′1 versus H1: β1 < β′1 at the α level of significance, reject H0 if t ≤ −tα,n−2.

c. To test H0: β1 = β′1 versus H1: β1 �= β′1 at the α level of significance, reject H0 if t is either (1) ≤ −tα/2,n−2 or (2) ≥ tα/2,n−2.

Proof The decision rule given here is, in fact, a GLRT. A formal proof proceeds along the lines followed in Appendix 7.A.4. We will omit the details.

Comment A particularly common application of Theorem 11.3.5 is to test H0: β1 = 0. If the null hypothesis that the slope is zero is rejected, it can be con- cluded (at the α level of significance) that E(Y) changes with x. Conversely, if H0: β1 = 0 is not rejected, the data have not ruled out the possibility that variation in Y is unaffected by x.

Section 11.3 The Linear Model 551

CASE STUDY 11.3.1

By late 1971, all cigarette packs had to be labeled with the words, “Warning: The Surgeon General Has Determined That Smoking Is Dangerous To Your Health.” The case against smoking rested heavily on statistical, rather than laboratory, evidence. Extensive surveys of smokers and nonsmokers had re- vealed the former to have much higher risks of dying from a variety of causes, including heart disease.

Typical of that research are the data in Table 11.3.1, showing the an- nual cigarette consumption, x, and the corresponding mortality rate, Y, due to coronary heart disease (CHD) for twenty-one countries (124). Do these data support the suspicion that smoking contributes to CHD mortality? Test H0: β1 = 0 versus H1: β1 > 0 at the α = 0.05 level of significance.

Table 11.3.1

Cigarette CHD Mortality Consumption per per 100,000

Country Adult per Year, x (ages 35–64), y

United States 3900 256.9 Canada 3350 211.6 Australia 3220 238.1 New Zealand 3220 211.8 United Kingdom 2790 194.1 Switzerland 2780 124.5 Ireland 2770 187.3 Iceland 2290 110.5 Finland 2160 233.1 West Germany 1890 150.3 Netherlands 1810 124.7 Greece 1800 41.2 Austria 1770 182.1 Belgium 1700 118.1 Mexico 1680 31.9 Italy 1510 114.3 Denmark 1500 144.9 France 1410 59.7 Sweden 1270 126.9 Spain 1200 43.9 Norway 1090 136.3

From Table 11.3.1,

21∑ i=1

xi = 45,110 21∑

i=1 yi = 3,042.2

21∑ i=1

x2i = 109,957,100 21∑

i=1 y2i = 529,321.58

21∑ i=1

xiyi = 7,319,602

(Continued on next page)

552 Chapter 11 Regression

(Case Study 11.3.1 continued)

and it follows that

β̂1 = n

n∑ i=1

xiyi − (

n∑ i=1

xi

)( n∑

i=1 yi

)

n (

n∑ i=1

x2i

) − (

n∑ i=1

xi

)2

= 21(7,319,602) − (45,110)(3,042.2) 21(109,957,100) − (45,110)2 = 0.0601

and

β̂0 =

n∑ i=1

yi − β̂1 n∑

i=1 xi

n

= 3,042.2 − 0.0601(45,110) 21

= 15.771 The two other quantities needed for the test statistic are

n∑ i=1

(xi − x̄)2 = n∑

i=1 x2i − (

1 n

)( n∑ i=1

xi

)2

= 109,957,100 − (

1 21

) (45,100)2 = 13,056,523.81

so

√ n∑

i=1 (xi − x̄)2 =

√ 13,056,523.81 = 3,613.38.

From Equation 11.3.5,

s2 = 1 21 − 2

( 21∑

i=1 y2i − β̂0

21∑ i=1

yi − β̂1 21∑

i=1 xiyi

)

= 1 19

[529,321.58 − (15.766)(3,042.2) − (0.0601)(7,319,602)] = 2,181.588

and s = √2,181.588 = 46.707 To test

H0: β1 = 0 versus

H0: β1 > 0

at the α = 0.05 level of significance, we should reject the null hypothesis if t ≥ t.05,19 = 1.7291. But

t = β̂1 − β ′ 1

s

/√ n∑

i=1 (xi − x̄)2

= 0.0601 − 0 46.707/3,613.38

= 4.65 so our conclusion is clear-cut—reject H0. It would appear that the level of CHD mortality in a country is affected by its citizens’ smoking habits. More specifically, as the number of people who smoke increases, so will the number who die of coronary heart disease.

Section 11.3 The Linear Model 553

Theorem 11.3.6

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points that satisfy the assumptions

of the simple linear model, and let s2 = 1n−2 n∑

i=1 (yi − β̂0 − β̂1xi)2. Then

⎡ ⎢⎢⎢⎢⎣β̂1 − tα/2,n−2 ·

s√ n∑

i=1 (xi − x̄)2

, β̂1 + tα/2,n−2 · s√ n∑

i=1 (xi − x̄)2

⎤ ⎥⎥⎥⎥⎦

is a 100(1 − α)% confidence interval for β1.

Proof Let Tn−2 denote a Student t random variable with n−2 degrees of freedom, in which case

P(−tα/2,n−2 ≤ Tn−2 ≤ tα/2,n−2) = 1 − α Substitute the expression for Tn−2 given in Theorem 11.3.4 and isolate β1 in the cen- ter of the inequalities. The resulting endpoints will be the expressions appearing in the statement of the theorem.

CASE STUDY 11.3.2

Not surprisingly, the older a car is, the less its value as a used car. But, in some cases the price of a car can show a predictable increase by year. This can occur even though a model of a given year may be “improved” over the previous year. Table 11.3.2 gives the suggested retail price in 2016 of each year’s model of a four-door Toyota Camry sedan. Graphed, the xy-relationship is described very well by the line y = 8188.67 + 748.41x, where 8188.67 and 748.41 are the values of β̂0 and β̂1 calculated from the formulas of Theorem 11.3.1 (see Figure 11.3.3). To simplify the calculations, x is the number of years after 2005, as in the second column of Table 11.3.2.

Table 11.3.2

Year after Suggested

Year 2005 Retail Price ($)

2005 0 7,935 2006 1 8,495 2007 2 10,160 2008 3 10,817 2009 4 11,078 2010 5 11,967 2011 6 12,658 2012 7 13,844 2013 8 13,982 2014 9 14,629

Data from: kbb.com

(Continued on next page)

554 Chapter 11 Regression

(Case Study 11.3.2 continued)

16,000

14,000

12,000

10,000

8,000

6,000

4,000

2,000

2004 2006 2008 Year, x

2010 2012 2014 0

P ri

ce (

$) o

f u se

d To

yo ta

C am

ry , y

y = 8188.67 + 748.41x

Figure 11.3.3

The slope of the line, β̂1, represents the amount of increase year-by-year in the cost of an older model. Often a range of values is better than a single estimate, so a good way to provide this is using a confidence interval for the true value β1.

Here,

√√√√ 9∑ i=0

(xi − x̄)2 = √

82.5 = 9.083

and from Equation 11.3.5, s2 = 110−2 (

9∑ i=0

y2i − β̂0 9∑

i=0 yi − β̂1

9∑ i=0

xiyi

) 1 8

[1,382,678, 777 − (8188.67)(115,565) − (748.41)(581,786)] = 117,727.98 so s = √117,727.98 = 343.11.

Using t.025,8 = 2.3060, the expression given in Theorem 11.3.6 reduces to( 748.41 − 2.3060 343.119.083 , 748.41 + 2.3060 343.119.083

) = ($661.30, $835.52) About the Data The suggested retail value of a used car may not be the actual sales price, which depends in part on the consumer’s value of such a car. The predictive value of the regression equation in Case Study 11.3.2 depends on a continuing buyers’ sense of value. Perhaps for a variety of reasons, the value of a one-year-old car does not fit the model. The regression equation, even using the upper value in the confidence interval for β̂1, 835.52, gives a predicted value of ŷ = 8188.67 + 835.52(10) = 16, 543.87. This value is well below the suggested retail value for the 2015 model of $20,879.

DRAWING INFERENCES ABOUT β0 In practice, the value of β0 is not likely to be as important as the value of β1. Slopes often quantify particularly important aspects of xy-relationships, which was true, for example, in Case Study 11.3.2. Nevertheless, hypothesis tests and confidence inter- vals for β0 can be easily derived from the results given in Theorems 11.3.2 and 11.3.3.

Section 11.3 The Linear Model 555

The GLRT procedure for assessing the credibility of H0 : β0 = β′0 is based on a Student t random variable with n − 2 degrees of freedom:

Tn−2 =

( β̂0 − β′0

)√ n

√ n∑

i=i (xi − x̄)2

S

√ n∑

i=1 x2i

= β̂0 − β ′ 0√

V̂ar(β̂0) (11.3.6)

“Inverting” Equation 11.3.6 (recall the proof of Theorem 11.3.6) yields⎡ ⎢⎢⎢⎢⎣β̂0 − tα/2,n−2 ·

s

√ n∑

i=1 x2i

√ n

√ n∑

i=1 (xi − x̄)2

, β̂0 + tα/2,n−2 · s

√ n∑

i=1 x2i

√ n

√ n∑

i=1 (xi − x̄)2

⎤ ⎥⎥⎥⎥⎦

as the formula for a 100(1 − α)% confidence interval for β0.

DRAWING INFERENCES ABOUT σ2

Since (n − 2)S2/σ2 has a χ2 pdf with n − 2 df (if the n observations satisfy the stipu- lations implicit in the simple linear model), it follows that

P [ χ2α/2,n−2 ≤

(n − 2)S2 σ2

≤ χ21−α/2,n−2 ]

= 1 − α

Equivalently,

P

[ (n − 2)S2 χ21−a/2,n−2

≤ σ2 ≤ (n − 2)S 2

χ2α/2,n−2

] = 1 − α

in which case [ (n − 2)s2 χ21−α/2,n−2

, (n − 2)s2 χ2α/2,n−2

]

becomes the 100(1 − α)% confidence interval for σ2 (recall Theorem 7.5.1). Testing H0 : σ2 = σ20 is done by calculating the ratio

χ2 = (n − 2)s 2

σ20

which has a χ2 distribution with n − 2 df when the null hypothesis is true. Except for the degrees of freedom (n − 2 rather than n − 1), the appropriate decision rules for one-sided and two-sided H1’s are similar to those given in Theorem 7.5.2.

Questions

11.3.1. Insect flight ability can be measured in a labora- tory by attaching the insect to a nearly frictionless rotat- ing arm with a thin wire. The “tethered” insect then flies in circles until exhausted. The nonstop distance flown can easily be calculated from the number of revolutions made by the arm. The following are measurements of this sort made on Culex tarsalis mosquitos of four different ages. The response variable is the average distance flown until exhaustion for forty females of the species (159).

Distance Flown, y Age, x (weeks) (thousand meters)

1 12.6 2 11.6 3 6.8 4 9.2

556 Chapter 11 Regression

Fit a straight line to these data and test that the slope is zero. Use a two-sided alternative and the 0.05 level of significance.

11.3.2. The best straight line through the Massachusetts funding/graduation rate data described in Question 11.2.7 has the equation y = 81.088+0.412x, where s = 11.78848. (a) Construct a 95% confidence interval for β1. (b) What does your answer to part (a) imply about the outcome of testing H0: β1 = 0 versus H1: β1 �= 0 at the α = 0.05 level of significance? (c) Graph the data and superimpose the regression line. How would you summarize these data, and their implica- tions, to a meeting of the state School Board?

11.3.3. Based on the data in Question 11.2.1, the relation- ship between y, the ambient temperature, and x, the fre- quency of a cricket’s chirping, is given by y = 25.2+3.29x, where s = 3.83. At the α = 0.01 level of significance, can the hypothesis that chirping frequency is not related to temperature be rejected?

11.3.4. Suppose an experimenter intends to do a regres- sion analysis by taking a total of 2n data points, where the xi’s are restricted to the interval [0, 5]. If the xy- relationship is assumed to be linear and if the objective is to estimate the slope with the greatest possible precision, what values should be assigned to the xi’s?

11.3.5. Suppose a total of n = 9 measurements are to be taken on a simple linear model, where the xi’s will be set equal to 1, 2, . . . , and 9. If the variance associated with the xy-relationship is known to be 45.0, what is the probabil- ity that the estimated slope will be within 1.5 units of the true slope?

11.3.6. Prove the useful computing formula (Equa- tion 11.3.5) that

n∑ i=1

(yi − β̂0 − β̂1xi)2 = n∑

i=1 y2i − β̂0

n∑ i=1

yi − β̂1 n∑

i=1 xiyi

11.3.7. The sodium nitrate (NaNO3) solubility data in Question 11.2.3 is described nicely by the regression line y = 67.508 + 0.871x, where s = 0.959. Construct a 90% confidence interval for the y-intercept, β0.

11.3.8. Set up and carry out an appropriate hypothesis test for the Hanford radioactive contamination data given in Question 11.2.9. Let α = 0.05. Justify your choice of H0 and H1. What do you conclude?

11.3.9. Test H0: β1 = 0 versus H1: β1 �= 0 for the plumage index/behavioral index data given in Question 11.2.11. Let α = 0.05. Use the fact that y = 0.61 + 0.84x is the best straight line describing the xy-relationship.

11.3.10. Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points satisfying the assumptions of the simple linear model. Prove that

E(Ȳ) = β0 + β1x̄ 11.3.11. Derive a formula for a 95% confidence interval for β0 if n (xi,Yi)’s are taken on a simple linear model where σ is known.

11.3.12. Which, if any, of the assumptions of the simple linear model appear to be violated in the following scat- terplot? Which, if any, appear to be satisfied? Which, if any, cannot be assessed by looking at the scatterplot?

x

y

^ ^y = β0 + β1 x

11.3.13. State the decision rule and the conclusion if H0: σ2 = 12.6 is to be tested against H1: σ2 �= 12.6 where n = 24, s2 = 18.2, and α = 0.05. 11.3.14. Construct a 90% confidence interval for σ2 in the cigarette-consumption/CHD mortality data given in Case Study 11.3.1.

11.3.15. Recall Kepler’s Third Law data given in Ques- tion 8.2.1. The estimated regression line describing the xy- relationship has the equation y = 1.795 + 0.181x, where s = 1.8. Construct a 90% confidence interval for σ2.

DRAWING INFERENCES ABOUT E(Y | x)

In Case Study 11.3.1, the random variable Y represents the CHD mortality resulting from cigarette consumption, x. A public health official might want to have some idea of the range of mortality likely to be encountered in a country where x is, say, 4200.

Intuition tells us that a reasonable point estimator for E(Y | x) is the height of the regression line at x, that is, Ŷ = β̂0+β̂1x. By Theorem 11.3.2, the latter is unbiased:

E(Ŷ) = E(β̂0 + β̂1x) = E(β̂0) + xE(β̂1) = β0 + β1x

Section 11.3 The Linear Model 557

Of course, to use Ŷ in any inference procedure requires that we know its variance. But

Var(Ŷ) = Var(β̂0 + β̂1x) = Var(Ȳ − β̂1x̄ + β̂1x) = Var[Ȳ + β̂1(x − x̄)] = Var(Ȳ) + (x − x̄)2Var(β̂1) (why?)

= 1 n

σ2 + (x − x̄) 2

n∑ i=1

(xi − x̄)2 σ2

= σ2

⎡ ⎢⎢⎣1n + (x − x̄)

2

n∑ i=1

(xi − x̄)2

⎤ ⎥⎥⎦

An application of Definition 7.3.3, then, allows us to construct a Student t random variable based on Ŷ . Specifically,

Tn−2 = Ŷ − (β0 + β1x) σ

√ 1 n + (x−x̄)

2

n∑ i=1

(xi−x̄)2

/√ (n − 2)S2 σ2(n − 2) =

Ŷ − (β0 + β1x) S √

1 n + (x−x̄)

2

n∑ i=1

(xi−x̄)2

has a Student t distribution with n−2 degrees of freedom. Isolating β0 +β1x = E(Y | x) in the center of the inequalities P(−tα/2,n−2 ≤ Tn−2 ≤ tα/2,n−2) = 1 − α produces a 100(1 − α)% confidence interval for E(Y | x).

Theorem 11.3.7

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of points that satisfy the assumptions of the simple linear model. A 100(1 − α)% confidence interval for E(Y | x) = β0 + β1x is given by (ŷ − w, ŷ + w), where

w = tα/2,n−2 · s √√√√√1n + (x − x̄)

2

n∑ i=1

(xi − x̄)2

and ŷ = β̂0 + β̂1x.

Example 11.3.2

Look again at Case Study 11.3.1. Suppose a country’s public health officials estimate cigarette consumption to be 4200 per adult per year. If that were the case, what CHD mortality would they expect? Answer the question by constructing a 95% confidence interval for E(Y |4200).

Here, n = 21, t.025,19 = 2.0930, 21∑

i=1 (xi − x̄)2 = 13,056,523.81, s = 46.707, β̂0 =

15.7661, β̂1 = 0.0601, and x̄ = 2148.095. From Theorem 11.3.7, then, ŷ = 15.7661 + 0.0601(4200) = 268.1861

w = 2.0930(46.707) √

1 21

+ (4200 − 2148.095) 2

13,056,523.81 = 59.4714

558 Chapter 11 Regression

and the 95% confidence interval for E(Y|4200) is

(268.1861 − 59.4714, 268.1861 + 59.4714)

which rounded to two decimal places is

(208.71, 327.66)

Comment Notice from the formula in Theorem 11.3.7 that the width of a confidence interval for E(Y | x) increases as the value of x becomes more extreme. That is, we are better able to predict the location of the regression line for an x-value close to x̄ than we are for x-values that are either very small or very large.

Figure 11.3.4 shows the dependence of w on x for the data from Case Study 11.3.1. The lower and upper limits for the 95% confidence interval for E(Y | x) have been calculated for all x. Pictured is the dotted curve (or 95% confidence band) connecting those endpoints. The width of the band is smallest when x = 2148.1 (= x̄).

1000

C H

D m

or ta

lit y

Cigarette consumption

0

50

100

150

200

250

300

350

1500 2000 2500 3000 3500 4000 4500

Figure 11.3.4

DRAWING INFERENCES ABOUT FUTURE OBSERVATIONS

A variation on Theorem 11.3.7 is the determination of a range of numbers that would have a high probability of including the value Y of a single future observation to be recorded at some given level of x. In Case Study 11.3.1, public health officials might want to predict the actual (not the average) CHD mortality that would occur if cigarette consumption is x.

Let (x1,Y1), (x2,Y2), . . . , (xn,Yn) be a set of n points that satisfy the assump- tions of the simple linear model, and let (x,Y) be a hypothetical future observation, where Y is independent of the n Yi’s. A prediction interval is a range of numbers that contains Y with a specified probability.

Consider the difference Ŷ − Y. Clearly, E(Ŷ − Y) = E(Ŷ) − E(Y) = (β0 + β1x) − (β0 + β1x) = 0

Section 11.3 The Linear Model 559

and

Var(Ŷ − Y) = Var(Ŷ) + Var(Y)

= σ2

⎡ ⎢⎢⎣1n + (x − x̄)

2

n∑ i=1

(xi − x̄)2

⎤ ⎥⎥⎦+ σ2

= σ2

⎡ ⎢⎢⎣1 + 1n + (x − x̄)

2

n∑ i=1

(xi − x̄)2

⎤ ⎥⎥⎦

Following exactly the same steps that were taken in the derivation of Theorem 11.3.7, a Student t random variable with n − 2 degrees of freedom can be constructed from Ŷ−Y (using Definition 7.3.3). Inverting the equation P(−tα/2,n−2 ≤ Tn−2 ≤ tα/2,n−2) = 1 − α will then yield the prediction interval (ŷ − w, ŷ + w) given in Theorem 11.3.8.

Theorem 11.3.8

Let (x1,Y1), (x2,Y2), . . . , and (xn,Yn) be a set of n points that satisfy the assumptions of the simple linear model. A 100(1−α)% prediction interval for Y at the fixed value x is given by (ŷ − w, ŷ + w), where

w = tα/2,n−2 · s √√√√√1 + 1n + (x − x̄)

2

n∑ i=1

(xi − x̄)2

and ŷ = β̂0 + β̂1x.

Example 11.3.3

Based on the data in Case Study 11.3.1, we calculated in Example 11.3.2 that a 95% confidence interval for E(Y |4200) is (208.71, 327.66). How does that compare to the corresponding 95% prediction interval for Y?

When x = 4200, ŷ = 268.1861 for both intervals. From Theorem 11.3.8, the width of the 95% prediction interval for Y is:

w = 2.0930(46.707) √

1 + 1 21

+ (4200 − 2148.095) 2

13,056,523.81 = 114.4725

The 95% prediction interval, then, is

(268.1861 − 114.4725, 268.1861 + 114.4725)

which rounded to two decimal places is

(153.76, 382.61)

which makes it 92% wider than the 95% confidence interval for E(Y |4200).

560 Chapter 11 Regression

TESTING THE EQUALITY OF TWO SLOPES

We saw in Chapter 9 that the comparison of two treatments or two conditions often leads to a hypothesis test that the mean of one is equal to the mean of the other. Similarly, the comparison of two linear xy-relationships often requires that we test H0: β1 = β∗1, where β1 and β∗1 are the true slopes associated with the two regressions.

If the data points taken on the two regressions are all independent, a two-sample t test can be set up based on the properties in Theorems 11.3.2 and 11.3.3. Theo- rem 11.3.9 identifies the appropriate test statistic and summarizes the GLRT decision rule. Details of the proof will be omitted.

Theorem 11.3.9

Let (x1,Y1), (x2,Y2), . . . , (xn,Yn) and (x∗1,Y ∗ 1 ), (x

∗ 2,Y

∗ 2 ), . . . , (x

∗ m,Y

∗ m) be two inde-

pendent sets of points, each satisfying the assumptions of the simple linear model, that is, E(Y | x) = β0 + β1x and E(Y ∗ | x∗) = β∗0 + β∗1x∗.

a. Let

T = β̂1 − β̂ ∗ 1 − (β1 − β∗1)

S √

1 n∑

i=1 (xi−x̄)2

+ 1m∑ i=1

(x∗i −x̄∗)2

where

S =

√√√√√ n∑i=1 [Yi − (β̂0 + β̂1xi)]2 + m∑

i=1 [Y ∗i − (β̂∗0 + β̂∗1x∗i )]2

n + m − 4 Then T has a Student t distribution with n + m − 4 degrees of freedom.

b. To test H0 : β1 = β∗1 versus H1 : β1 �= β∗1 at the α level of significance, reject H0 if t is either (1) ≤ −tα/2,n+m−4 or (2) ≥ tα/2,n+m−4, where

t = β̂1 − β̂ ∗ 1

s √

1 n∑

i=1 (xi − x̄)2

+ 1m∑ i=1

(x∗i − x̄∗)2

(One-sided tests are defined in the usual way by replacing ±tα/2,n+m−4 with either tα,n+m−4 or −tα,n+m−4.)

Example 11.3.4

Genetic variability is thought to be a key factor in the survival of a species, the idea being that “diverse” populations should have a better chance of coping with changing environments. Table 11.3.3 summarizes the results of a study designed to test that hypothesis experimentally [data slightly modified from (4)]. Two populations of fruit

Table 11.3.3

Date Day no., x(= x∗) Strain A popn, y Strain B popn, y∗ Feb 2 0 100 100 May 13 100 250 203 Aug 21 200 304 214 Nov 29 300 403 295 Mar 8 400 446 330 Jun 16 500 482 324

Section 11.3 The Linear Model 561

flies (Drosophila serrata)—one that was cross-bred (Strain A) and the other, in-bred (Strain B)—were put into sealed containers where food and space were kept to a minimum. Recorded every hundred days were the numbers of Drosophila alive in each population.

Figure 11.3.5 shows a graph of the two sets of population figures. For both strains, growth was approximately linear over the period covered. Strain A, though, with an estimated slope of 0.74, increased at a faster rate than did Strain B, where the estimated slope was 0.45. The question is, do we have enough evidence here to reject the null hypothesis that the two true slopes are equal? Is the difference between 0.74 and 0.45, in other words, statistically significant?

Day number, x and x*

0

100

200

300

400

500

100 300 400 500200

C en

su s

co un

t, y

an d

y* y = 145.3 + 0.742x

y* = 131.3 + 0.452x*

Strain A

Strain B

Figure 11.3.5

Let α = 0.05 and let (xi, yi), i = 1, 2, . . . , 6, and (x∗i , y∗i ), i = 1, 2, . . . , 6, denote the times and population sizes for Strain A and Strain B, respectively. Our objective is to test H0 : β1 = β∗1 versus H1 : β1 > β∗1. Rejecting H0, of course, would support the contention that genetic variability benefits a species’ chances of survival.

From Table 11.3.3, x̄ = x̄∗ = 250 and 6∑

i=1 (xi − x̄)2 =

6∑ i=1

(x∗i − x̄∗)2 = 175,000

Also,

6∑ i=1

[yi − (145.3 + 0.742xi)]2 = 5512.14

and

6∑ i=1

[y∗i − (131.3 + 0.452x∗i )]2 = 3960.14

so

s = √

5512.14 + 3960.14 6 + 6 − 4 = 34.41

562 Chapter 11 Regression

Since H1 is one-sided to the right, we should reject H0 if t ≥ t.05,8 = 1.8595. But

t = 0.742 − 0.452

34.41

√ 1

175,000 + 1

175,000

= 2.50 These data, then, do support the theory that genetically mixed populations have a better chance of survival in hostile environments.

Questions

11.3.16. Regression techniques can be very useful in situ- ations where one variable—say, y—is difficult to measure but x is not. Once such an xy-relationship has been “cali- brated,” based on a set of (xi, yi)’s, future values of Y can be easily estimated using β̂0 + β̂1x. Determining the vol- ume of an irregularly shaped object, for example, is of- ten difficult, but weighing that object is likely to be easy. The following table shows the weights (in kilograms) and the volumes (in cubic decimeters) of eighteen children be- tween the ages of five and eight (15). The estimated re- gression line has the equation y = −0.104+0.988x, where s = 0.202. (a) Construct a 95% confidence interval for E(Y |14.0). (b) Construct a 95% prediction interval for the volume of

a child weighing 14.0 kilograms.

Weight, x Volume, y Weight, x Volume, y

17.1 16.7 15.8 15.2 10.5 10.4 15.1 14.8 13.8 13.5 12.1 11.9 15.7 15.7 18.4 18.3 11.9 11.6 17.1 16.7 10.4 10.2 16.7 16.6 15.0 14.5 16.5 15.9 16.0 15.8 15.1 15.1 17.8 17.6 15.1 14.5

11.3.17. Construct a 95% confidence interval for E(Y | 2.750) using the connecting rod data given in Case Study 11.2.1.

11.3.18. For the CHD mortality data of Case Study 11.3.1, construct a 99% confidence interval for the expected death rate in a country where the cigarette consumption is 2500 per adult per year. Is a public health official more likely to be interested in a 99% confidence interval for E(Y | 2500) or a 99% prediction interval for Y when x = 2500?

11.3.19. The fuel economy (in miles per gallon) of an automobile can depend on a number of factors, but the table below suggests that the weight of vehicle is a very good predictor.

Model Weight, x (lbs) Fuel usage, y, (mpg)

Toyota Yaris Liftback (manual) 2370 34 Toyota Yaris Sedan 2430 33 Scion xB (manual) 2450 32 Honda Fit Sport (manual) 2495 34 Honda Fit 2535 32 Chevrolet Malibu (4-cyl.) 3135 24 Honda Accord (4-cyl.) 3195 24 Nissan Altima 2.5 S 3215 25 Toyota Camry LE (4-cyl.) 3280 24 BMW 325i 3460 24 Volkswagen Passat 2.0T 3465 24 Lexus IS250 3510 24

Find the 95% confidence interval for E(Y |2890), where 2890 is the weight of the Honda Civic Hybrid. Does the interval include 37, the miles per gallon of the Civic?

11.3.20. In the radioactive exposure example in Ques- tion 11.2.9, find the 95% confidence interval for E(Y |9.00) and the prediction interval for the value 9.00.

11.3.21. Attorneys representing a group of male buyers employed by Flirty Fashions are filing a reverse discrimi- nation suit against the female-owned company. Central to their case are the following data, showing the relationship between years of service and annual salary for the firm’s fourteen buyers, six of whom are men. The plaintiffs claim that the difference in slopes (0.606 for men versus 1.07 for women) is prima facie evidence that the company’s salary policies discriminate against men. As the lawyer for Flirty Fashions, how would you respond? Use the follow- ing sums:

6∑ i=1

(yi − 21.3 − 0.606xi)2 = 5.983

and

8∑ i=1

(y∗ i − 23.2 − 1.07x∗

i )2 = 13.804

Also, 6∑

i=1 (xi − x̄)2 = 31.33 and

8∑ i=1

(x∗i − x̄∗)2 = 46.

Section 11.4 Covariance and Correlation 563

24

20

0

28

$32

2 84 6

Sa la

ry (

in th

ou sa

nd s)

Men Women

y* = 23.2 + 1.07x*

y = 21.3 + 0.606x

Years of service

11.3.22. Polls taken during a city’s last two administra- tions (one Democratic, one Republican) suggested that public support of the two mayors fell off linearly with years in office. Can it be concluded from the following data that the rates at which the two administrations lost favor were significantly different? Let α = 0.05. (Note: y = 69.3077 − 3.4615x with an estimated standard devia- tion of 0.9058 and y∗ = 59.9407 − 2.7373x∗ with an esti- mated standard deviation of 1.2368.)

Democratic Mayor Republican Mayor Years after Percent in Years after Percent in

Taking Office, x Support, y Taking Office, x∗ Support, y∗

2 63 1 58 3 58 2 55 5 52 4 47 7 46 6 43 8 41 7 41

8 39

11.3.23. Prove that the variance of Ŷ can also be written

Var(Ŷ) = σ2

n∑ i=1

(xi − x)2

n n∑

i=1 (xi − x̄)2

11.3.24. Show that n∑

i=1 (Yi − Ȳ)2 =

n∑ i=1

(Yi − Ŷi)2 + n∑

i=1 (Ŷi − Ȳ)2

for any set of points (xi,Yi), i = 1, 2, . . . , n.

11.4 Covariance and Correlation Our discussion of xy-relationships in Chapter 11 began with the simplest possible setup from a statistical standpoint—the case where the (xi, yi)’s are just numbers and have no probabilistic structure whatsoever. Then we examined the more complicated (and more “inference-friendly”) scenario where xi is a constant but Yi is a random variable. Introduced in this section is the next level of complexity—problems where both Xi and Yi are assumed to be random variables. (Measurements of the form (xi, yi) or (xi,Yi) are typically referred to as regression data; observations satisfying the assumptions made in this section—that is, measurements of the form (Xi,Yi)— are more commonly referred to as correlation data.)

MEASURING THE DEPENDENCE BETWEEN TWO RANDOM VARIABLES

Given a pair of random variables, it makes sense to inquire how one varies with re- spect to the other. If X increases, for example, does Y also tend to increase? And if so, how strong is the dependence between the two?

The first step in addressing such questions was taken in Section 3.9 with the def- inition of covariance. In that section, its role was primarily as a tool for finding the variance of a sum of random variables. Here, it will serve as the basis for measuring the relationship between X and Y .

THE CORRELATION COEFFICIENT

The covariance of X and Y necessarily reflects the units of both random vari- ables, which can make it difficult to interpret. In applied settings, it helps to have a dimensionless measure of dependency so that one xy-relationship can be compared to another. Dividing Cov(X,Y) by σX σY accomplishes not only that objective but also scales the quotient to be a number between −1 and +1.

564 Chapter 11 Regression

Definition 11.4.1 Let X and Y be any two random variables. The correlation coefficient of X and Y, denoted ρ(X,Y), is given by

ρ(X,Y) = Cov(X,Y) σxσY

= Cov(X ∗,Y ∗) where X ∗ = (X − μX )/σX and Y ∗ = (Y − μY )/σY .

Theorem 11.4.1

For any two random variables X and Y,

a. |ρ(X,Y)| ≤ 1. b. |ρ(X,Y)| = 1 if and only if Y = aX + b for some constants a and b (except

possibly on a set of probability zero).

Proof Following the notation of Definition 11.4.1, let X ∗ and Y ∗ denote the stan- dardized transformations of X and Y . Then

0 ≤ Var(X ∗ ± Y ∗) = Var(X ∗) ± 2 Cov(X ∗,Y ∗) + Var(Y ∗) = 1 ± 2ρ(X,Y) + 1 = 2 [1 ± ρ(X,Y)]

But 1 ± ρ(X,Y) ≥ 0 implies that |ρ(X,Y)| ≤ 1, and part (a) of the theorem is proved.

Next, suppose that ρ(X,Y) = 1. Then Var(X ∗ − Y ∗) = 0; however, a random variable with zero variance is constant, except possibly on a set of probability zero. From the constancy of X ∗ − Y ∗, it readily follows that Y is a linear function of X . The case for ρ(X,Y) = −1 is similar.

The converse of part (b) is left as an exercise.

Questions

11.4.1. Let X and Y have the joint pdf

fX,Y (x, y) = { x+2y

22 , for (x, y) = (1, 1), (1, 3), (2, 1), (2, 3) 0, elsewhere

Find Cov(X,Y) and ρ(X,Y).

11.4.2. Suppose that X and Y have the joint pdf

fX,Y (x, y) = x + y, 0 < x < 1, 0 < y < 1 Find ρ(X,Y).

11.4.3. If the random variables X and Y have the joint pdf

fX,Y (x, y) = {

8xy, 0 ≤ y ≤ x ≤ 1 0, otherwise

show that Cov(X,Y) = 8450 . Calculate ρ(X,Y). 11.4.4. Suppose that X and Y are discrete random vari- ables with the joint pdf

(x, y) fX,Y (x, y)

(1, 2) 12 (1, 3) 14 (2, 1) 18 (2, 4) 18

Find the correlation coefficient between X and Y . 11.4.5. Prove that ρ(a + bX, c + dY) = ρ(X,Y) for con- stants a, b, c, and d where b and d are positive. Note that this result allows for a change of scale to one convenient for computation. 11.4.6. Let the random variable X take on the values 1, 2, . . . , n, each with probability 1/n. Define Y to be X 2. Find ρ(X,Y) and lim

n→∞ρ(X,Y).

11.4.7. (a) For random variables X and Y , show that Cov(X + Y, X − Y) = Var(X ) − Var(Y)

(b) Suppose that Cov(X,Y) = 0. Prove that ρ(X + Y, X − Y) = Var(X ) − Var(Y)

Var(X ) + Var(Y)

Section 11.4 Covariance and Correlation 565

ESTIMATING ρ(X, Y): THE SAMPLE CORRELATION COEFFICIENT

We conclude this section with an estimation problem. Suppose the correlation coef- ficient between X and Y is unknown, but we have some relevant information about its value in the form of n measurements (X1,Y1), (X2,Y2), . . . , and (Xn,Yn). How can we use those data to estimate ρ(X,Y)?

Since the correlation coefficient can be written in terms of various theoretical moments,

ρ(X,Y) = E(XY) − E(X )E(Y)√ Var(X )

√ Var(Y)

it would seem reasonable to estimate each component of ρ(X,Y) with its corre- sponding sample moment. That is, let X̄ and Ȳ approximate E(X ) and E(Y), replace E(XY) with

1 n

n∑ i=1

XiYi

and substitute 1 n

n∑ i=1

(Xi − X̄ )2 and 1n n∑

i=1 (Yi − Ȳ)2

for Var(X ) and Var(Y), respectively. We define the sample correlation coefficient, then, to be the ratio

R = 1 n

n∑ i=1

XiYi − X̄ Ȳ√ 1 n

n∑ i=1

(Xi − X̄ )2 √

1 n

n∑ i=1

(Yi − Ȳ)2 (11.4.1)

or, equivalently,

R = n

n∑ i=1

XiYi− (

n∑ i=1

Xi

)( n∑

i=1 Yi

) √

n n∑

i=1 X 2i − (

n∑ i=1

Xi

)2√ n

n∑ i=1

Y 2i − (

n∑ i=1

Yi

)2 (11.4.2)

(Sometimes R is referred to as the Pearson product-moment correlation coefficient, in honor of the eminent British statistician Karl Pearson.)

Questions

11.4.8. Derive Equation 11.4.2 from Equation 11.4.1.

11.4.9. Let (x1, y1), (x2, y2), . . . , (xn, yn) be a set of measurements whose sample correlation coefficient is r. Show that

r = β̂1 ·

√ n

n∑ i=1

x2i − (

n∑ i=1

xi

)2 √

n n∑

i=1 y2i − (

n∑ i=1

yi

)2 where β̂1 is the maximum likelihood estimate for the slope.

INTERPRETING R

The properties cited for ρ(X,Y) in Theorem 11.4.1 are not sufficient to provide a useful interpretation of R. What does it mean, for example, to say that the sample correlation coefficient is 0.73, or 0.55, or −0.24? One way to answer such a question focuses on the square of R, rather than on R itself.

566 Chapter 11 Regression

We know from Equation 11.3.3 that n∑

i=1 (yi − β̂0 − β̂1xi)2 =

n∑ i=1

(yi − ȳ)2 − β̂21 n∑

i=1 (xi − x̄)2

Using the relationship between β̂1 and r in Question 11.4.9—together with the fact that

n∑ i=1

(xi − x̄)2 = n∑

i=1 x2i − (

n∑ i=1

xi

)2/ n

we can write

n∑ i=1

(yi − β̂0 − β̂1xi)2 = n∑

i=1 (yi − ȳ)2 − r2 ·

n∑ i=1

(yi − ȳ)2 n∑

i=1 (xi − x̄)2

· n∑

i=1 (xi − x̄)2

which reduces to

r2 =

n∑ i=1

(yi − ȳ)2 − n∑

i=1 (yi − β̂0 − β̂1xi)2

n∑ i=1

(yi − ȳ)2 (11.4.3)

Equation 11.4.3 has a nice, simple interpretation. Notice that

1. n∑

i=1 (yi − ȳ)2 represents the total variability in the dependent variable, that is, the

extent to which the yi’s are not all the same.

2. n∑

i=1 (yi − β̂0 − β̂1xi)2 represents the variation in the yi’s not explained (or ac-

counted for) by the linear regression with x.

3. n∑

i=1 (yi − ȳ)2 −

n∑ i=1

(yi − β̂0 − β̂1xi)2 represents the variation in the yi’s that is ex- plained by the linear regression with x.

Therefore, r2 is the proportion of the total variation in the yi’s that can be attributed to the linear relationship with x. So, if r = 0.60, we can say that 36% of the variation in Y is explained by the linear regression with X (and that 64% is associated with other factors).

Comment The quantity r2 is sometimes called the coefficient of determination.

CASE STUDY 11.4.1

The Scholastic Aptitude Test (SAT) is widely used by colleges and universities to help choose their incoming classes. It was never designed to measure the qual- ity of education provided by secondary schools, but critics and supporters alike often force it into that role. The problem is that average SAT scores associated with schools or districts or states reflect a variety of factors, some of which have little or nothing to do with the quality of instruction that students are receiving. One of these factors, as Section 3.13 pointed out is the states’ participation rate, the percentage of eligible students who take the SAT.

Section 11.4 Covariance and Correlation 567

10%

1900

1800

1700

1600

1500

1400

1300 0% 20% 30% 40%

Participation Rate

A ve

ra ge

S A

T s

co re

50% 60% 70% 80% 90%

Figure 11.4.1

Table 11.4.1 shows one testing period’s average SAT scores (y), by state, as a function of participation rate (x). Figure 11.4.1 suggests a strong dependency between the two measurements—as a state’s participation rate goes down, its average SAT score goes up. In North Dakota, for example, only 2% of the stu- dents eligible to take the test actually did; in Maryland, the participation rate was a dramatically larger 78%. The average SAT score in Maryland was 1468; in North Dakota the average score of 1816 was 24% higher.

A good way to quantify the overall relationship between test scores and par- ticipation rates is to calculate the data’s sample correlation coefficient, r. From Table 11.4.1, we can calculate the sums necessary to evaluate Equation 11.4.2

51∑ i=1

xi = 2,099 51∑

i=1 yi = 81,108

51∑ i=1

x2i = 147,507 51∑

i=1 y2i = 129,989,648

51∑ i=1

xiyi = 3,112,824

Substituting the sums into the formula for r, then, shows that the sample corre- lation coefficient is −0.912:

r = n

n∑ i=1

xiyi − (

n∑ i=1

xi

)( n∑

i=1 yi

) √

n (

n∑ i=1

x2i

) − (

n∑ i=1

xi

)2√ n (

n∑ i=1

y2i

) − (

n∑ i=1

yi

)2

= 51(3, 112, 824) − (2099)(81, 108)√ 51(147, 507) − 20992

√ 51(129, 909, 648) − 81, 1082

(Continued on next page)

568 Chapter 11 Regression

(Case Study 11.4.1 continued)

Table 11.4.1

Participation Average Participation Average State Rate SAT Score State Rate SAT Score

Alabama 7% 1617 Montana 18% 1637 Alaska 54% 1485 Nebraska 4% 1745 Arizona 36% 1547 Nevada 54% 1458 Arkansas 4% 1698 New Hampshire 70% 1566 California 60% 1504 New Jersey 79% 1526 Colorado 14% 1735 New Mexico 12% 1617 Connecticut 88% 1525 New York 76% 1468 Delaware 100% 1359 North Carolina 64% 1483 Dist. Columbia 100% 1309 North Dakota 2% 1816 Florida 72% 1448 Ohio 15% 1652 Georgia 77% 1445 Oklahoma 5% 1697 Hawaii 63% 1460 Oregon 48% 1544 Idaho 100% 1364 Pennsylvania 71% 1481 Illinois 5% 1802 Rhode Island 73% 1480 Indiana 71% 1474 South Carolina 65% 1443 Iowa 3% 1794 South Dakota 3% 1792 Kansas 5% 1753 Tennessee 8% 1714 Kentucky 5% 1746 Texas 62% 1432 Louisiana 5% 1667 Utah 5% 1690 Maine 96% 1387 Vermont 63% 1554 Maryland 78% 1468 Virginia 73% 1530 Massachusetts 84% 1556 Washington 63% 1519 Michigan 4% 1784 West Virginia 15% 1522 Minnesota 6% 1786 Wisconsin 4% 1782 Mississippi 3% 1714 Wyoming 3% 1762 Missouri 4% 1771

Based on data from: http://blog.prepscholar.com/average-sat-scores-by-state-most-recent

Since r2 = (0.912)2 = 0.832, we can say that 83.2% of the variability in SAT scores from state to state can be attributed to the linear relationship between test scores and participation rates.

About the Data The magnitude of r2 for these data should be a clear warning that comparing average SATs at face value from state to state or school system to school system is largely meaningless. It would make more sense to examine the residuals associated with y = β̂0 + β̂1x. States with particularly large positive values for y − ŷ may be doing something that other states might be well advised to copy.

Questions

11.4.10. In Case Study 11.3.1, how much of the variability in CHD mortality is explained by cigarette consumption?

11.4.11. Some baseball fans believe that the number of home runs a team hits is markedly affected by the alti- tude of the club’s home park. The rationale is that the air is thinner at the higher altitudes, and balls would

be expected to travel farther. The following table shows the altitudes (X ) of American League ballparks and the number of home runs (Y) that each team hit during a recent season (183). Calculate the sample correlation coefficient, r, using the sums below. What would you conclude?

Section 11.4 Covariance and Correlation 569

12∑ i=1

xi = 4936 12∑

i=1 yi = 1175

12∑ i=1

x2i = 3,071,116 12∑

i=1 y2i = 123,349

12∑ i=1

xiyi = 480,565

Club Altitude, x Number of Home Runs, y

Cleveland 660 138 Milwaukee 635 81 Detroit 585 135 New York 55 90 Boston 21 120 Baltimore 20 84 Minnesota 815 106 Kansas City 750 57 Chicago 595 109 Texas 435 74 California 340 61 Oakland 25 120

11.4.12. Many people believe that a salary bonus is a re- ward for good performance. The corporate world may have a different understanding. A random sample of thirty chief executive officers of large capitalization public companies recorded the cash bonus paid, x (in $100,000), and the performance of the company, y, as measured by percentage change in company revenues. The following sums resulted.

30∑ i=1

xi = 1,300.69 30∑

i=1 yi = 323

30∑ i=1

x2i = 86,754.6939 30∑

i=1 y2i = 11, 881

30∑ i=1

xiyi = 7,807.36

Find the sample coefficient of correlation. What does this study say about the relationship between bonuses and performance?

11.4.13. The extent to which stress is a contributing fac- tor to the severity of chronic illnesses was the focus of the study summarized in the following table (221). Seven- teen conditions were compared on a Seriousness of Illness Rating Scale (SIRS). Patients with each of these condi- tions were asked to fill out a Schedule of Recent Experi- ence (SRE) questionnaire. Higher scores on the SRE re- flect presumably greater levels of stress. How much of the variation in the SIRS values can be attributed to the linear regression with SRE?

Admitting Diagnosis Average SRE, x SIRS, y

Dandruff 26 21 Varicose veins 130 173 Psoriasis 317 174 Eczema 231 204 Anemia 325 312 Hyperthyroidism 816 393 Gallstones 563 454 Arthritis 312 468 Peptic ulcer 603 500 High blood pressure 405 520 Diabetes 599 621 Emphysema 357 636 Alcoholism 688 688 Cirrhosis 443 733 Schizophrenia 609 776 Heart failure 772 824 Cancer 777 1020

Use the following sums:

17∑ i=1

xi = 7,973 17∑

i=1 yi = 8,517

17∑ i=1

x2i = 4,611,291 17∑

i=1 y2i = 5,421,917

17∑ i=1

xiyi = 4,759,470

11.4.14. Burglary and larceny both involve the illegal tak- ing of something of value. The difference, simply put, is that burglary involves unlawful entry to a structure, while larceny does not. While the two crimes might seem simi- lar, the correlation between the two is quite low. A data set to be used for such an analysis is the annual rates of burglary, x, and larceny, y, from 1975 to 2010. Both variables give the number of crimes per 100,000 U.S. citizens. Calculate the xy correlation. Use the following sums:

36∑ i=1

xi = 994.7700, 36∑

i=1 x2i = 28462.1047,

36∑ i=1

yi = 254.6900, 36∑

i=1 y2i = 1816.1417,

36∑ i=1

xiyi = 7051.2633

11.4.15. A common saying in golf is “You drive for show, but you putt for dough.” To see if there is any truth in this assertion, data for ninety-six top money-winning golfers were examined. For each, their money earnings in 2014 (y, in $ millions), their average yards per drive (v), and their average number of putts (x) were tallied. (a) Show that the correlation coefficient between the putting average and earnings reveal a slightly stronger

570 Chapter 11 Regression

relationship than that for driving and earnings. Use the following sums:

96∑ i=1

vi = 27,989, 96∑

i=1 v2i = 8,167,723,

96∑ i=1

yi = 230.87, 96∑

i=1 y2i = 734.32,

96∑ i=1

viyi = 67658.00,

and also 96∑

i=1 xi = 169.31,

96∑ i=1

x2i = 298.64, 96∑

i=1 xiyi = 406.37

(b) For each correlation r, compute r2 to show that nei- ther the v nor the x variable alone is a good predictor of earnings.

11.5 The Bivariate Normal Distribution The singular importance of the normal distribution in univariate inference proce- dures should, by now, be abundantly clear. In dealing with problems that involve two random variables—for example, the calculation of ρ(X,Y)—it should come as no surprise that the most frequently encountered joint pdf, fX,Y (x, y), is a bivariate version of the normal curve. Our objectives in this section are twofold: (1) to deduce the form of the bivariate normal from basic principles and (2) to identify the partic- ular properties of that pdf that pertain to the problem of assessing the nature of the dependence between X and Y .

GENERALIZING THE UNIVARIATE NORMAL PDF

At this point, we know many things about the univariate normal pdf,

fY (y) = 1√ 2πσ

e− 1 2 ( y−μσ )

2

, −∞ < y < ∞

Sections upon sections have been devoted to estimating and testing its parameters, studying its transformations, and learning about its role as an approximation to the distribution of sums and averages. What has not been discussed is the generalization of fY (y) itself, to a bivariate, trivariate, or multivariate pdf.

Given the mathematical complexities inherent in the univariate normal pdf, it should come as no surprise that its extension to higher dimensions is not a simple matter. In the bivariate case, for example, which is the only generalization we will consider, fX,Y (x, y) has five different parameters and its functional form is decidely unpleasant.

We will begin by “constructing” a bivariate normal pdf, fX,Y (x, y), using proper- ties suggested by what we already know holds true for the univariate normal, fY (y). As a first condition to impose, it seems reasonable to require that the marginal pdfs associated with fX,Y (x, y) be univariate normal densities. It will be sufficient to con- sider the case where the two marginals are standard normals.

If X and Y are independent standard normal random variables,

fX,Y (x, y) = 12πe − 12 (x2 + y2), −∞ < x < ∞−∞ < y < ∞ (11.5.1)

Notice that the simplest extension of fX,Y (x, y) in Equation 11.5.1 is to replace − 12 (x2 + y2) with − 12 c(x2 + uxy + y2), or, equivalently, with − 12 c(x2 − 2vxy + y2), where c and v are constants. The desired joint pdf, then, would have the general form

fX,Y (x, y) = Ke− 12 c(x2−2vxy+y2) (11.5.2) where K is the constant that makes the double integral of fX,Y (x, y) from −∞ to ∞ equal to 1.

Section 11.5 The Bivariate Normal Distribution 571

Now, what must be true of K, c, and v if the marginal pdfs based on fX,Y (x, y) are to be standard normals? Note, first, that completing the square in the exponent makes

x2 − 2vxy + y2 = x2 − v2x2 + (y2 − 2vxy + v2x2) = (1 − v2)x2 + (y − vx)2

so

fX,Y (x, y) = Ke− 12 c(1−v2)x2 e− 12 c(y−vx)2

The exponents, though, must be negative, which implies that 1 − v2 > 0, or, equiva- lently, |v| < 1.

To find K, we start by calculating∫ ∞ −∞

∫ ∞ −∞

e−(1/2)c(1−v 2)x2 · e−(1/2)c(y−vx)2 dy dx

= ∫ ∞

−∞ e−(1/2)c(1−v

2)x2 [∫ ∞

−∞ e−(1/2)c(y−vx)

2 dy ]

dx

= ∫ ∞

−∞ e−(1/2)c(1−v

2)x2

(√ 2π√ c

) dx

= √

2π√ c

√ 2π√

c √

1 − v2

= 2π c √

1 − v2 It follows that

K = c √

1 − v2 2π

The constant c can be any positive value, but a convenient choice proves to be c = 1/(1 − v2). Substituting K and c, then, into Equation 11.5.2 gives

fX,Y (x, y) = 1 2π

√ 1 − v2 e

−(1/2)[1/(1−v2)](x2−2vxy+y2)

= 1 2π

√ 1 − v2 e

−x2 · e−(1/2)[1/(1−v2)](y−vx)2 (11.5.3)

Recall that our choice of the form of fX,Y (x, y) was predicated on a wish for the marginal pdfs to be normal. A simple integration shows that to be the case:

fX (x) = ∫ ∞

−∞ fX,Y (x, y) dy

= 1 2π

√ 1 − v2 e

−(1/2)x2 ∫ ∞

−∞ e−(1/2)[1/(1−v

2)](y−vx)2 dy

= 1 2π

√ 1 − v2 e

−(1/2)x2 · √

2π √

1 − v2

= 1√ 2π

e−(1/2)x 2

Since fX,Y (x, y) is symmetric in x and y, fY (y) is also the standard normal. The constant v is actually the correlation coefficient between X and Y . Since

E(X ) = E(Y) = 0 and σX = σY = 1,

572 Chapter 11 Regression

ρ(X,Y) = E(XY) = ∫ ∞

−∞

∫ ∞ −∞

xy fX,Y (x, y) dx dy

= 1√ 2π

∫ ∞ −∞

xe−(1/2)x 2 [

1√ 2π

√ 1 − v2

∫ ∞ −∞

ye−(1/2)[1/(1−v 2)](y−vx)2 dy

] dx

= 1√ 2π

∫ ∞ −∞

xe−(1/2)x 2 · vx dx (why?)

= v 1√ 2π

∫ ∞ −∞

x2e−(1/2)x 2 dx = v Var(X ) = v

Finally, we can replace x with (x − μX )/σX and y with (y − μY )/σY . Doing so requires that the original pdf be multiplied by the derivative of both the X -

transformation and the Y -transformation, that is, by 1

σX σY [see (109)].

Definition 11.5.1 Let X and Y be random variables with joint pdf

fX,Y (x, y) = 1 2πσX σY

√ 1 − ρ2

· exp { −1

2

( 1

1 − ρ2 )[

(x − μX )2 σ2X

− 2ρx − μX σX

· y − μY σY

+ (y − μY ) 2

σ2Y

]} for all x and y. Then X and Y are said to have the bivariate normal distribution (with parameters μX , σ2X , μY , σ

2 Y , and ρ).

Comment For bivariate normal densities, ρ(X,Y) = 0 implies that X and Y are independent, a result not true in general.

PROPERTIES OF THE BIVARIATE NORMAL DISTRIBUTION

Francis Galton, the renowned British biologist and scientist, perhaps more than any other person was responsible for launching regression analysis as a worthwhile field of statistical inquiry. Galton was a redoubtable data analyst whose keen insight en- abled him to intuit much of the basic mathematical structure that we now associate with correlation and regression.

One of his more famous endeavors (63) was an examination of the relationship between parents’ heights (X ) and their adult children’s heights (Y). Those partic- ular variables have a bivariate normal distribution, the mathematical properties of which Galton knew nothing. Just by looking at cross-tabulations of X and Y , though, Galton postulated that (1) the marginal distributions of X and Y are both nor- mal, (2) E(Y | x) is a linear function of x, and (3) Var(Y | x) is constant with x. As Theorem 11.5.1 shows, all of his empirically based deductions proved to be true.

Theorem 11.5.1

Suppose that X andY are random variables having the bivariate normal distribution given in Definition 11.5.1. Then

a. fX (x) is a normal pdf with mean μX and variance σ2X ; fY (y) is a normal pdf with mean μY and variance σ2Y .

b. ρ is the correlation coefficient between X and Y.

c. E(Y | x) = μY + ρσY σX

(x − μX ). d. Var(Y | x) = (1 − ρ2)σ2Y .

Section 11.5 The Bivariate Normal Distribution 573

Proof We have already established (a) and (b). Properties (c) and (d) will be examined for the special case μX = μY = 0 and σx = σy = 1. The extension to arbitrary μX , μY , σX , and σY is straightforward.

First, note that

fY |x(y) = fX,Y (x, y)fX (x)

= 1

2π √

1−ρ2 e−(1/2)x

2 e−(1/2)[1/(1−ρ

2)](y−ρx)2

1√ 2π

e−(1/2)x2

= 1√ 2π √

1 − ρ2 e−(1/2)[1/(1−ρ

2)](y−ρx)2 (11.5.4)

By inspection, we see that Equation 11.5.4 is the pdf of a normal random vari- able with mean ρx and variance 1 − ρ2. Therefore, E(Y | x) = ρx and Var(Y | x) = 1 − ρ2. Replacing y with (y − μY )/σY and x with (x − μX )/σX gives the desired results.

Comment The term regression line derives from a consequence of part (c) of Theorem 11.5.1. Suppose we make the simplifying assumption that μX = μY = μ and σX = σY . Then part (c) reduces to

E(Y | x) − μ = ρ(X,Y)(x − μ) But recall that |ρ(X,Y)| ≤ 1 and, in this case, 0 < ρ(X,Y) < 1. Here, the positive sign of ρ(X,Y) tells us that, on the average, tall parents have tall children. How- ever, ρ(X,Y) < 1 means (again, on the average) that the children’s heights are closer to the mean than are the parents’. Galton called this phenomenon “regression to mediocrity.”

Questions

11.5.1. Suppose that X and Y have a bivariate normal pdf with μX = 3, μY = 6, σ2X = 4, σ2Y = 10, and ρ = 12 . Find P(5 < Y < 6 12 ) and P(5 < Y < 6

1 2 | x = 2).

11.5.2. Suppose that X and Y have a bivariate normal dis- tribution with Var(X ) = Var(Y). (a) Show that X and Y − ρX are independent. (b) Show that X + Y and X − Y are independent. [Hint:

See Question 11.4.7(a).]

11.5.3. Suppose that X and Y have a bivariate normal dis- tribution.

(a) Prove that X + Y has a normal distribution when X and Y are standard normal random variables.

(b) Find E(cX + dY) and Var(cX + dY) in terms of μX , μY , σX , σY , and ρ(X,Y), where X and Y are arbitrary normal random variables.

11.5.4. Suppose that the random variables X and Y have a bivariate normal pdf with μX = 56, μY = 11, σ2X = 1.2, σ2Y = 2.6, and ρ = 0.6. Compute P(10 <Y < 10.5 | x = 55). Suppose that n = 4 values were to be observed with x fixed at 55. Find P(10.5 < Ȳ < 11 | x = 55). 11.5.5. If the joint pdf of the random variables X and Y is

fX,Y (x, y) = ke−(2/3)[(1/4)x2−(1/2)xy+y2]

find E(X ), E(Y), Var(X ), Var(Y), ρ(X,Y), and k.

11.5.6. Give conditions on a > 0, b > 0, and u so that

fX,Y (x, y) = ke−(ax2−2uxy+by2)

is the bivariate normal density of random variables X and Y each having expected value 0. Also, find Var(X ), Var(Y), and ρ(X,Y).

ESTIMATING PARAMETERS IN THE BIVARIATE NORMAL PDF

The five parameters in fX,Y (x, y) can be estimated in the usual way with the method of maximum likelihood. Given a random sample of size n from fX,Y (x, y)—(x1, y1),

574 Chapter 11 Regression

(x2, y2), . . . , (xn, yn)—we define L = n∏

i=1 fX,Y (xi, yi) and take the derivatives of ln L

with respect to each of the parameters. Solved simultaneously, the resulting five equa- tions (each derivative set equal to 0) yield the maximum likelihood estimators given in Theorem 11.5.2. Details of the derivation will be left as an exercise.

Theorem 11.5.2

Given that fX,Y (x, y) is a bivariate normal pdf, the maximum likelihood estima- tors for μX , μY , σ2X , σ

2 Y , and ρ, assuming that all five are unknown, are X̄ , Ȳ ,(

1 n

) n∑

i=1 (Xi − X̄ )2,

( 1 n

) n∑

i=1 (Yi − Ȳ)2, and R, respectively.

TESTING H0: ρ = 0 If X and Y have a bivariate normal distribution, testing whether the two variables are independent is equivalent to testing whether their correlation coefficient, ρ, equals 0 (recall the Comment following Definition 11.5.1). Two different procedures are widely used for testing H0: ρ = 0. One is an exact test based on the Tn−2 random variable given in Theorem 11.5.3; the other is an approximate test based on the stan- dard normal distribution.

Theorem 11.5.3

Let (X1,Y1), (X2,Y2), . . . , (Xn,Yn) be a random sample of size n drawn from a bi- variate normal distribution, and let R be the sample correlation coefficient. Under the null hypothesis that ρ = 0, the statistic

Tn−2 = √

n − 2 R√ 1 − R2

has a Student t distribution with n − 2 degrees of freedom. Proof See (54).

Example 11.5.1

Table 11.5.1 gives the mean temperature for twenty successive days in April and the average daily butterfat content in the milk of ten cows (148). Can we conclude that temperature and butterfat content have a nonzero correlation?

Let ρ denote the true correlation coefficient between X and Y . The hypotheses to be tested are

H0: ρ = 0 versus

H1: ρ �= 0

Let α = 0.05. Given that n = 20, the statistic

t = √

n − 2 · r√ 1 − r2

follows a Student t distribution with 18 df (if H0: ρ = 0 is true). That being the case, the null hypothesis will be rejected if t is either (1) ≤ −2.1009 (= −t0.025,18) or (2) ≥ +2.1009(= t0.025,18).

Section 11.5 The Bivariate Normal Distribution 575

Table 11.5.1

Date Temperature, x Percent Butterfat, y

April 3 64 4.65 4 65 4.58 5 65 4.67 6 64 4.60 7 61 4.83 8 55 4.55 9 39 5.14

10 41 4.71 11 46 4.69 12 59 4.65 13 56 4.36 14 56 4.82 15 62 4.65 16 37 4.66 17 37 4.95 18 45 4.60 19 57 4.68 20 58 4.65 21 60 4.60 22 55 4.46

For the data in Table 11.5.1, 20∑

i=1 xi = 1,082

20∑ i=1

yi = 93.5 20∑

i=1 x2i = 60,304

20∑ i=1

y2i = 437.6406 20∑

i=1 xiyi = 5,044.5

so

r = 20(5,044.5) − (1,082)(93.5)√ 20(60,304) − (1,082)2

√ 20(437.6406) − (93.5)2

= −0.453 Therefore,

t = √

n − 2 · r√ 1 − r2 =

√ 18(−0.453)√

1 − (−0.453)2 = −2.156

and our conclusion is reject H0. It would appear that temperature and butterfat con- tent are not independent.

Comment An alternate approach to testing H0: ρ = 0 was given by Fisher (51). He showed that the statistic

1 2

ln 1 + R 1 − R

is asymptotically normal with mean 12 ln[(1 + ρ)/(1 − ρ)] and variance approximately 1/(n − 3). Fisher’s formulation makes it relatively easy to determine the power of a correlation test—a computation that would be much more difficult if the inference had to be based on

√ n − 2 R/√1 − R2.

576 Chapter 11 Regression

Questions

11.5.7. What would be the conclusion for the test of Example 11.5.1 if α = 0.01? 11.5.8. In a study of heart disease (79), the weight (in pounds) and the blood cholesterol (in mg/dl) of four- teen men without a history of coronary incidents were recorded. At the α = 0.05 level, can we conclude from these data that the two variables are independent?

Subject Weight, x Cholesterol, y

1 168 135 2 175 403 3 173 294 4 158 312 5 154 311 6 214 222 7 176 302 8 262 269 9 181 311

10 143 286 11 140 403 12 187 244 13 163 353 14 164 252

The data in the table give the following sums: 14∑

i=1 xi = 2,458

14∑ i=1

yi = 4,097 14∑

i=1 x2i = 444,118

14∑ i=1

y2i = 1,262,559 14∑

i=1 xiyi = 710,499

11.5.9. Recall the baseball data in Question 11.4.11. Test whether home run frequency and home park altitude are independent. Let α = 0.05.

11.5.10. Test H0: ρ = 0 versus H1: ρ �= 0 for the SRE/SIRS data described in Question 11.4.13. Let 0.01 be the level of significance.

11.5.11. The National Collegiate Athletic Association has had a long-standing concern about the graduation rate of athletes. Under the urging of the Association, some prominent athletic programs increased the funds for tu- toring athletes. The table below gives the amount spent (in millions of dollars) and the resulting percentage of ath- letes graduating in 2007. Does the money matter? Test H0 : ρ = 0 versus H1 : ρ �= 0 at the 0.10 level of significance.

Money Spent on Graduation University Athletes’ Tutoring, x Rate 2007, y

Minnesota 1.61 72 Kansas 1.61 70 Florida 1.67 87 LSU 1.74 69 Georgia 1.77 70 Tennessee 1.83 78 Kentucky 1.86 73 Ohio St. 1.89 78 Texas 1.90 72 Oklahoma 2.45 69

Based on data from: Pensacola News Journal (Florida), December 21, 2008.

11.6 Taking a Second Look at Statistics (How Not to Interpret the Sample Correlation Coefficient)

Of all the “numbers” that statisticians and experimenters routinely compute, the cor- relation coefficient is one of the most frequently misinterpreted. Two errors in partic- ular are common. First, there is a tendency to assume, either implicitly or explicitly, that a high sample correlation coefficient implies causality. It does not. Even if the linear relationship between x and y is perfect—that is, even if r = −1 or r = +1— we cannot conclude that X causes Y (or that Y causes X ). The sample correlation coefficient is simply a measure of the strength of a linear relationship. Why the xy- relationship exists in the first place is a different question altogether.

George Bernard Shaw (an unlikely contributor to a mathematics text!) described elegantly the fallacy of using statistical relationships to infer underlying causality. Commenting on the “correlations” that exist between lifestyle and health, he wrote in The Doctor’s Dilemma (174):

It is easy to prove that the wearing of tall hats and the carrying of umbrellas en- larges the chest, prolongs life, and confers comparative immunity from disease; for the statistics show that the classes which use these articles are bigger, healthier, and live longer than the class which never dreams of possessing such things. It does not

Appendix 11.A.1 A Proof of Theorem 11.3.3 577

take much perspicacity to see that what really makes this difference is not the tall hat and the umbrella, but the wealth and nourishment of which they are evidence, and that a gold watch or membership of a club in Pall Mall might be proved in the same way to have the like sovereign virtues. A university degree, a daily bath, the owning of thirty pairs of trousers, a knowledge of Wagner’s music, a pew in church, anything, in short, that implies more means and better nurture than the mass of laborers enjoy, can be statistically palmed off as a magic-spell conferring all sorts of privileges.

Examples of “spurious” correlations similar to those cited by Shaw are dis- turbingly commonplace. Between 1875 and 1920, for example, the correlation be- tween the annual birthrate in Great Britain and the annual production of pig iron in the United States was an almost “perfect” −0.98. High correlations have also been found between salaries of Presbyterian ministers in Massachusetts and the price of rum in Havana and between the academic achievement of U.S. schoolchildren and the number of miles they live from the Canadian border. All too often, what looks like a cause is not a cause at all, but simply the effect of one or more factors that were not even measured. Researchers need to be very careful not to read more into the value of r than the number legitimately implies.

The second error frequently made when interpreting sample correlation coefficients is to forget that r measures the strength of a linear relationship. It says nothing about the strength of a curvilinear relationship. Computing r for the points shown in Figure 11.6.1, for example, is totally inappropriate. The (xi, yi) values in that scatterplot are clearly related but not in a linear way. Quoting the value of r would be misleading.

y

x

Figure 11.6.1

It is unfortunately true, though, that some xy-relationships having values of r close to either +1 or −1 are not as linear as their value of r might suggest. Recall the Social Security expenditures described in Case Study 11.2.2. The value of r for the 9 data points graphed in Figure 11.2.3 is 0.98, but the residual plot in Figure 11.2.4 makes it abundantly clear that the relationship is, in fact, curvilinear (as data for subsequent years confirmed).

The lesson to be learned from Figure 11.6.1 and Case Study 11.2.2 is clear— always graph the data! No correlation should ever, ever be calculated (much less interpreted) without first plotting the (xi, yi)’s to gain assurance that the relationship is linear. Digital cameras and photoshopping may have diminished the value of pho- tographs as evidence in courts of law, but for statisticians, a picture is still worth a thousand words.

Appendix 11.A.1 A Proof of Theorem 11.3.3

The strategy for the proof is to express nσ̂2 in terms of the squares of normal random variables and then apply Fisher’s Lemma (see Appendix 7.A.2). The random vari-

ables to be used are β̂1 − β1, Wi = Yi − β0 − β1xi, i = 1, . . . , n, and W̄ = 1 n

n∑ i=1

Wi = Ȳ − β0 − β1x̄. Note that

Wi − W̄ = (Yi − Ȳ) − β1(xi − x̄)

578 Chapter 11 Regression

or, equivalently,

Yi − Ȳ = (Wi − W̄) + β1(xi − x̄)

Next, we express β̂1−β1 as a linear combination of the Wi’s. The argument begins by using Equation 11.3.1 to express β̂1:

β̂1 − β1 =

n∑ i=1

(xi − x̄)(Yi − Ȳ) n∑

i=1 (xi − x̄)2

− β1

=

n∑ i=1

(xi − x̄)(Yi − Ȳ) − β1 n∑

i=1 (xi − x̄)2

n∑ i=1

(xi − x̄)2

=

n∑ i=1

(xi − x̄)[(Wi − W̄) + β1(xi − x̄)] − β1 n∑

i=1 (xi − x̄)2

n∑ i=1

(xi − x̄)2

=

n∑ i=1

(xi − x̄)(Wi − W̄) n∑

i=1 (xi − x̄)2

(11.A.1.1)

Recall from Equation 11.3.3 that

nσ̂2 = n∑

i=1 (Yi − Ȳ)2 − β̂21

n∑ i=1

(xi − x̄)2 (11.A.1.2)

We need to express Equation 11.A.1.2 in terms of the Wi’s—that is,

nσ̂2 = n∑

i=1 [(Wi − W̄) + β1(xi − x̄)]2 − β̂21

n∑ i=1

(xi − x̄)2

= n∑

i=1 (Wi − W̄)2 + 2β1

n∑ i=1

(xi − x̄)(Wi − W̄) + β21 n∑

i=1 (xi − x̄)2

− β̂21 n∑

i=1 (xi − x̄)2 (11.A.1.3)

From Equation 11.A.1.1, we can write

n∑ i=1

(xi − x̄)(Wi − W̄) = (β̂1 − β1) n∑

i=1 (xi − x̄)2

Substituting the right-hand side of the preceding expression for n∑

i=1 (xi − x̄)(Wi − W̄)

in Equation 11.A.1.3 gives

Appendix 11.A.1 A Proof of Theorem 11.3.3 579

nσ̂2 = n∑

i=1 (Wi − W̄)2 + 2β1(β̂1 − β1)

n∑ i=1

(xi − x̄)2

+ β21 n∑

i=1 (xi − x̄)2 − β̂21

n∑ i=1

(xi − x̄)2

= n∑

i=1 (Wi − W̄)2 +

n∑ i=1

(xi − x̄)2 [ 2β1(β̂1 − β1) + β21 − β̂

2 1

] =

n∑ i=1

(Wi − W̄)2 − n∑

i=1 (xi − x̄)2

[ β̂

2 1 − 2β̂1β1 + β21

] =

n∑ i=1

(Wi − W̄)2 − n∑

i=1 (xi − x̄)2(β̂1 − β1)2

= n∑

i=1 W 2i − nW̄ 2 −

n∑ i=1

(xi − x̄)2(β̂1 − β1)2

Now, choose an orthogonal matrix, M, whose first two rows are x1 − x̄√

n∑ i=1

(xi − x̄)2 · · · xn − x̄√

n∑ i=1

(xi − x̄)2

and 1√ n

· · · 1√ n

Define the random variables Z1, . . . , Zn through the transformation⎛ ⎜⎝

Z1 ...

Zn

⎞ ⎟⎠ = M

⎛ ⎜⎝

W1 ...

Wn

⎞ ⎟⎠

By Fisher’s Lemma, the Zi’s are independent, normal random variables with mean zero and variance σ2, and

n∑ i=1

Z2i = n∑

i=1 W 2i

Also, by Equation 11.A.1.1 and the choice of the first row of M,

Z21 = n∑

i=1 (xi − x̄)2(β̂1 − β1)2

and, by the selection of the second row of M,

Z22 = nW 2

Thus,

nσ̂2 = n∑

i=1 W 2i − Z21 − Z22 =

n∑ i=3

Z2i

From this follows the independence of nσ̂2, β̂1, and Ȳ . Finally, notice that

nσ̂2

σ̂2 =

n∑ i=3

( Zi σ

)2 The fact that the sum has a chi square distribution with n − 2 degrees of freedom proves the last part of the theorem.

Chapte r

12The Analysis of Variance CHAPTER OUTLINE

12.1 Introduction 12.2 The F Test 12.3 Multiple

Comparisons: Tukey’s Method

12.4 Testing Subhypotheses with Contrasts

12.5 Data Transformations

12.6 Taking a Second Look at Statistics (Putting the Subject of Statistics Together—The Contributions of Ronald A. Fisher)

Appendix 12.A.1 A Proof of Theorem 12.2.2

Appendix 12.A.2 The Distribution of SSTR/(k−1)SSE/(n−k) When H1 Is True

“No aphorism is more frequently repeated in connection with field trials, than that we must ask Nature few questions or, ideally, one question, at a time. The writer is convinced that this view is wholly mistaken. Nature, he suggests, will best respond to a logical and carefully thought-out questionnaire; indeed, if we ask her a single question, she will often refuse to answer until some other topic has been discussed.”

—Ronald A. Fisher

12.1 INTRODUCTION In this chapter we take up an important extension of the two-sample location prob- lem introduced in Chapter 9. The completely randomized one-factor design is a con- ceptually similar k-sample location problem, but one that requires a substantially different sort of analysis than its prototype. Here, the appropriate test statistic turns out to be a ratio of variance estimates, the sampling behavior of which is described by an F distribution rather than a Student t. The name attached to this procedure, in deference to the form of its test statistic, is the analysis of variance (or ANOVA for short). A very flexible method, the analysis of variance is applied to many other experimental designs as well, particularly important ones being the randomized block design in Chapter 13 and the factorial design in Chapter 15.

Comment Credit for much of the early development of the analysis of variance goes to Sir Ronald A. Fisher. Shortly after the end of World War I, Fisher resigned a public school teaching position that he was none too happy with and accepted a post at the Rothamsted Agricultural Experiment Station, a facility heavily involved in agricultural research. There he found himself entangled in problems where differ- ences in the response variable (crop yields, for example) were constantly in danger of being obscured by the high level of uncontrollable heterogeneity in the experimen- tal environment (different soil qualities, drainage gradients, and so on). Quickly see- ing that traditional techniques were hopelessly inadequate under these conditions, Fisher set out to look for alternatives and in just a few years succeeded in fashioning an entirely new statistical methodology, a panoply of data-collecting principles and mathematical tools that is today known as experimental design. The centerpiece of Fisher’s creation—what makes it all work—is the analysis of variance.

Suppose an experimenter wishes to compare the average effects elicited by k dif- ferent levels of some given factor, where k is greater than or equal to 2. The factor, for example, might be “stop-smoking” therapies and the levels, three specific methods. Or the factor might be crowdedness as it relates to aggression in captive monkeys, with the levels being five different monkey-per-square-foot densities in five separate

580

Section 12.1 Introduction 581

enclosures. Still another example might be an engineering study comparing the effectiveness of four kinds of catalytic converters in reducing the concentrations of harmful emissions in automobile exhaust. Whatever the circumstances, data from a completely randomized one-factor design will consist of k independent random sam-

ples of sizes n1, n2, . . . , and nk, the total sample size being denoted n

( =

k∑ j=1

nj

) . We

will let Yi j represent the ith observation recorded for the jth level. Table 12.1.1 shows some additional terminology. (Note: To simplify notation in the next two chapters, data will always be written as random variables—that is, as Yi j rather than yi j.)

Table 12.1.1

Treatment Level

1 2 . . . k

Y11 Y12 Y1k Y21 Y22 Y2k ...

... . . . ...

Yn11 Yn22 Ynkk Sample sizes: n1 n2 . . . nk Sample totals: T.1 T.2 T.k Sample means: Y .1 Y .2 Y .k True means: μ1 μ2 μk

The dot notation of Table 12.1.1 is standard in analysis of variance problems. The presence of a dot in lieu of a subscript indicates that particular subscript has been summed over. Thus the response total for the jth sample is written

T· j = n j∑

i=1 Yi j (= Y1 j + Y2 j + · · · + Yn j j)

and the corresponding sample mean becomes Y . j, where

Y . j = 1nj

n j∑ i=1

Yi j = T. jn j By the same convention, T.. and Y .. will denote the overall total and overall mean, respectively:

T.. = k∑

j=1

n j∑ i=1

Yi j = k∑

j=1 T. j

Y .. = 1n k∑

j=1

n j∑ i=1

Yi j = 1n k∑

j=1 njY . j = 1n

k∑ j=1

T. j

Appearing at the bottom of Table 12.1.1 are a set of true means, μ1,μ2, . . . ,μk. Each μ j is an unknown location parameter reflecting the true average response char- acteristic of level j. Often our objective will be to test the equality of the μ j’s—that is,

H0: μ1 = μ2 = . . . = μk versus

H1: Not all the μj’s are equal

582 Chapter 12 The Analysis of Variance

In the next several sections we will propose a variance-ratio statistic for testing H0, investigate its sampling behavior under both H0 and H1, and introduce a set of computing formulas to simplify its evaluation. We will also explore the possibility of testing subhypotheses about the μj’s—for example, H0: μi = μj (irrespective of the other μj’s) or H0: μ3 = (μ4 + μ5)/2.

12.2 The F Test To derive a procedure for testing H0: μ1 = μ2 = . . . = μk, we could once again invoke the generalized likelihood ratio criterion, compute λ = L(ωe)/L(Ωe), and begin the search for a monotonic function of λ having a known distribution. But since we have already seen several examples of formal GLRT calculations in Chapters 7 and 9, the benefits of doing another would be marginal. Deducing the test statistic on intuitive grounds will be more instructive.

The data structure for a completely randomized one-factor design was outlined in Section 12.1. To that basic setup we now add a distribution assumption: The Yi j’s will be presumed to be independent and normally distributed with mean μj, j = 1, 2, . . . , k, and variance σ2 (constant for all j)—that is,

fYi j (y) = 1√ 2πσ

e− 1 2

( y−μj σ

)2 , −∞ < y < ∞

In analysis of variance problems—as was true in regression problems— distribution assumptions are usually expressed in terms of model equations. In the latter, the response variable is represented as the sum of one or more fixed com- ponents and one or more random components. Here, one possible model equation would be

Yi j = μj + εi j where εi j denotes the “noise” associated with Yi j—that is, the amount by which Yi j differs from its expected value. Of course, from the distribution assumption on Yi j, it follows that εi j is also normal with variance σ2, but with mean zero.

We will denote the overall average effect associated with the n observations in

the sample by the symbol μ, where μ = 1 n

k∑ j=1

njμj. If H0 is true, of course, μ is the

value that each of the μj’s equals.

SUMS OF SQUARES

To find an appropriate test statistic, we begin by estimating each of the μj’s. For each j, Y1 j,Y2 j, . . . ,Yn j j is a random sample from a normal distribution. By Example 5.2.4,

the maximum likelihood estimator of μj is Y . j. Then 1 n

k∑ j=1

njY . j = Y .. is the obvious choice to estimate μ. It follows that

SSTR = k∑

j=1

n j∑ i=1

( Y . j − Y ..

)2 = k∑ j=1

nj ( Y . j − Y ..

)2 which is called the treatment sum of squares, estimates the variation among the μj’s. (If all the μj’s were equal, the Y . j’s would be similar (to Y ..) and SSTR would be small.)

Section 12.2 The F Test 583

Analyzing the behavior of SSTR requires an expression relating the Y . j’s and Y .. to the parameter μ. But

SSTR = k∑

j=1 nj ( Y . j − Y ..

)2 = k∑ j=1

nj [(

Y . j − μ ) − (Y .. − μ)]2

= k∑

j=1 nj [(

Y . j − μ )2 + (Y .. − μ)2 − 2(Y . j − μ)(Y .. − μ)]

= k∑

j=1 nj ( Y . j − μ

)2 + k∑ j=1

nj ( Y .. − μ

)2 − 2(Y .. − μ) k∑ j=1

nj ( Y . j − μ

)

= k∑

j=1 nj ( Y . j − μ

)2 + n(Y .. − μ)2 − 2(Y .. − μ)n(Y .. − μ)

= k∑

j=1 nj ( Y . j − μ

)2 − n(Y .. − μ)2 (12.2.1) Now, with Equation 12.2.1 as background, Theorem 12.2.1 states the connection we are looking for—that the expected value of SSTR increases as the differences among the μj’s increase.

Theorem 12.2.1

Let SSTR be the treatment sum of squares defined for k independent random samples of sizes n1, n2, . . . , and nk. Then

E(SSTR) = (k − 1)σ2 + k∑

j=1 nj(μ j − μ)2

Proof From Equation 12.2.1,

E(SSTR) = k∑

j=1 njE

[( Y . j − μ

)2] − nE[(Y .. − μ)2]

Since μ is the mean of Y .., then E [(

Y .. − μ )2] = σ2/n. Also,

E [(

Y . j − μ )2] = Var (Y . j − μ) + [E(Y . j − μ)]2

by Theorem 3.6.1. But Theorem 3.6.2 implies that

Var ( Y . j − μ

) = Var (Y . j) = σ2/nj So, E

[( Y . j − μ

)2] = σ2/nj + (μj − μ)2. Substituting these equalities into the expression for E(SSTR) yields

E(SSTR) = k∑

j=1 njσ2/nj +

k∑ j=1

nj(μj − μ)2 − n(σ2/n)

or

E(SSTR) = (k − 1)σ2 + k∑

j=1 nj(μj − μ)2

584 Chapter 12 The Analysis of Variance

TESTING H0: μ1 = μ2 = . . . = μk WHEN σ2 IS KNOWN Theorem 12.2.1 suggests that SSTR can be the basis for a test of the null hypothesis that the treatment level means are all equal. When the μj’s are the same, E(SSTR) = (k − 1)σ2. If the true means are not all equal, E(SSTR) will be larger than (k − 1)σ2. It follows that we should reject H0 if SSTR is “significantly large.” Of course, to determine the exact location of the rejection region for a given α, we need to know the pdf of SSTR, or some function of SSTR, when H0 is true.

Theorem 12.2.2

When H0: μ1 = μ2 = . . . = μk is true, SSTR/σ2 has a chi square distribution with k − 1 degrees of freedom. Proof The theorem can be proved directly at this point by an application of Fisher’s Lemma, similar to the approaches taken in Appendices 7.A.2 and 11.A.1. Rather than repeat those arguments, we will give a moment-generating function derivation in Appendix 12.A.1.

If α, then, is the level of significance, and if σ2 is known, we should reject H0: μ1 = μ2 = . . . = μk in favor of H1: Not all the μj’s are equal if SSTR/σ2 ≥ χ21−α,k−1. In practice, though, comparing a set of μj’s is seldom that easy because σ2 is rarely known. Almost invariably, σ2 needs to be estimated; doing so changes both the nature and the distribution of the test statistic.

TESTING H0: μ1 = μ2 = . . . = μk WHEN σ2 IS UNKNOWN Each of the k samples can provide an independent, unbiased estimate for σ2 (recall Example 5.4.4). Using the notation of Table 12.1.1, the jth sample variance is written

S2j = 1

nj − 1 n j∑

i=1

( Yi j − Y . j

)2 Multiplying each S2j by nj −1 and summing over j gives the numerator of the obvious “pooled” estimator for σ2 (recall the way S2p was defined in the two-sample t test). We call this quantity the error sum of squares, or SSE:

SSE = k∑

j=1 (nj − 1)S2j =

k∑ j=1

n j∑ i=1

( Yi j − Y . j

)2 Theorem

12.2.3 Whether or not H0: μ1 = μ2 = . . . = μk is true,

a. SSE/σ2 has a chi square distribution with n − k degrees of freedom. b. SSE and SSTR are independent.

Proof By Theorem 7.3.2, (nj − 1)S2j/σ2 has a chi square distribution with nj − 1 degrees of freedom. By the addition property, then, of the chi square distribu-

tion, SSE/σ2 is a chi square random variable with k∑

j=1 (nj − 1) = n − k degrees of

freedom. Also, each S2j is independent of Y .i for i �= j because the samples are indepen-

dent, and each S2j is independent of Y . j by Theorem 7.3.2. It follows that SSE and SSTR are independent.

Section 12.2 The F Test 585

If we ignore the treatments and consider the data as one sample, then the vari-

ation about the parameter μ can be estimated by the double sum k∑

j=1

n j∑ i=1

(Yi j − Y ..)2. This quantity is known as the total sum of squares and denoted SSTOT.

Theorem 12.2.4

If n observations are divided into k samples of sizes n1, n2, . . . , and nk,

SSTOT = SSTR + SSE

Proof

SSTOT = k∑

j=1

n j∑ i=1

( Yi j − Y ..

)2 = k∑ j=1

n j∑ i=1

[( Y . j − Y ..

) + (Yi j − Y . j)]2 (12.2.2) Expanding the right-hand side of Equation 12.2.2 gives

k∑ j=1

n j∑ i=1

( Y . j − Y ..

)2 + k∑ j=1

n j∑ i=1

( Yi j − Y . j

)2 since the cross-product term vanishes:

k∑ j=1

n j∑ i=1

( Y . j − Y ..

)( Yi j − Y . j

) = k∑ j=1

( Y . j − Y ..

) n j∑ i=1

( Yi j − Y . j

)

= k∑

j=1

( Y . j − Y ..

) (0) = 0

Therefore, k∑

j=1

n j∑ i=1

( Yi j − Y ..

)2 = k∑ j=1

n j∑ i=1

( Y . j − Y ..

)2 + k∑ j=1

n j∑ i=1

( Yi j − Y . j

)2 That is, SSTOT = SSTR + SSE.

Theorem 12.2.5

Suppose that each observation in a set of k independent random samples is normally distributed with the same variance, σ2. Let μ1,μ2, . . . , and μk be the true means associated with the k samples. Then

a. If H0: μ1 = μ2 = . . . = μk is true,

F = SSTR/(k − 1) SSE/(n − k)

has an F distribution with k − 1 and n − k degrees of freedom. b. At the α level of significance, H0: μ1 = μ2 = . . . = μk should be rejected if

F ≥ F1−α,k−1,n−k.

Proof By Theorem 12.2.3, SSTR and SSE are independent. We also know that SSTR/σ2 and SSE/σ2 are chi square random variables with k − 1 and n − k dt, respectively. Part (a), then follows from the definition of the F distribution.

(Continued on next page)

586 Chapter 12 The Analysis of Variance

(Theorem 12.2.5 continued)

To justify the location of the critical region cited in part (b), we need to examine the behavior of the proposed test statistic when H1 is true. From Theorem 12.2.1, we know the expected value of the numerator of F :

E[SSTR/(k − 1)] = σ2 + 1 k − 1

k∑ j=1

(μj − μ)2 (12.2.3)

Moreover, from Theorem 12.2.3 it follows that the expected value of the denominator of the test statistic, that is, E[SSE/(n − k)], is σ2 regardless of which hypothesis is true.

Now, if H0 is true, the expected values of both the numerator and the denomi- nator of F will be σ2, so the ratio is likely to be close to 1. If H1 is true, though, the expected value of SSTR/(k − 1) will be greater than the expected value of SSE/(n − k), implying that the observed F ratio will tend to be larger than 1. The critical region, therefore, should be in the right-hand tail of the Fk−1,n−k distribu-

tion. That is, we should reject H0: μ1 = μ2 = . . . = μk if F = SSTR/(k − 1)SSE/(n − k) ≥ F1−α,k−1,n−k.

ANOVA TABLES

Computations for carrying out analyses of variance are typically presented in the form of ANOVA tables. Highly structured, these tables are especially helpful in identifying the various test statistics that arise in connection with complicated experimental designs. Figure 12.2.1 shows the format of the ANOVA table for testing H0: μ1 = μ2 = . . . = μk.

Source df SS MS F P

Treatment k − 1 SSTR MSTR MSTRMSE P(Fk− 1,n− k $ observed F) Error n − k SSE MSE Total n − 1 SSTOT

Figure 12.2.1

The rows in any ANOVA table correspond to the sources of variation singled out in an observation’s model equation. More specifically, the last row always refers to the data’s total variation (as measured by SSTOT); the preceding rows correspond to the variations whose sum yields the total variation. For this particular experimental design, the three rows are reflecting the fact that

SSTR + SSE = SSTOT Next to each “source” is the number of degrees of freedom (df) associated with

its sum of squares. Note that the df for total is the sum of the degrees of freedom for treatments and error (n − 1 = k − 1 + n − k).

The SS column lists the sum of squares associated with each source of variation— here, either SSTR, SSE, or SSTOT. The MS, or mean square, column is derived by dividing each sum of squares by its degrees of freedom. The mean square for treat- ments, then, is given by

MSTR = SSTR k − 1

Section 12.2 The F Test 587

and the mean square for error becomes

MSE = SSE n − k

No entry is listed as being the mean square for total. The entry in the top row of the F column is the value of the test statistic:

F = MSTR MSE

= SSTR/(k − 1) SSE/(n − k)

The final entry, also in the top row, is the P-value associated with the observed F . If P < α, of course, we can reject H0: μ1 = μ2 = . . . = μk at the α level of significance.

CASE STUDY 12.2.1

Revisited here are the data that first appeared in Case Study 8.1.1 investigating a possible relationship between cigarette smoking and heart rates. Four factor levels ranging from Nonsmokers to Heavy Smokers were each represented by six subjects. Shown along the bottom row of Table 12.2.1 are the average heart rates calculated for each group’s subjects three minutes after they had engaged in a session of sustained physical exercise.

Table 12.2.1

Nonsmokers Light Smokers Moderate Smokers Heavy Smokers

69 55 66 91 52 60 81 72 71 78 70 81 58 58 77 67 59 62 57 95 65 66 79 84

T. j 374 379 430 490 Y . j 62.3 63.2 71.7 81.7

Are the differences among the Ȳ. j’s statistically significant? That is, if μ1,μ2,μ3, and μ4 denote the true average heart rates characteristic of the four levels of smokers, can we reject H0 : μ1 = μ2 = μ3 = μ4?

Let α = 0.05. For these data, k = 4 and n = 24, so H0: μ1 = μ2 = μ3 = μ4 should be rejected if

F = SSTR/(4 − 1) SSE/(24 − 4) ≥ F1−0.05,4−1,24−4 = F.95,3,20 = 3.10

See Figure 12.2.2.

Reject H

Area = 0.05

0

3.10

f (y) F3, 20

0 y

P ro

ba bi

lit y

de ns

it y

Figure 12.2.2

(Continued on next page)

588 Chapter 12 The Analysis of Variance

(Case Study 12.2.1 continued)

The overall sample mean, Y .., is given by

Y .. = 1n k∑

j=1 T. j = 374 + 379 + 430 + 49024

= 69.7 Therefore,

SSTR = 4∑

j=1 nj ( Y . j − Y ..

)2 = 6[(62.3 − 69.7)2 + · · · + (81.7 − 69.7)2] = 1464.125

Similarly,

SSE = 4∑

j=1

6∑ i=1

( Yi j − Y . j

)2 = [(69 − 62.3)2 + · · ·+ (65 − 62.3)2] + · · ·+ [(91 − 81.7)2 + · · · + (84 − 81.7)2]

= 1594.833 The observed test statistic, then, equals 6.12:

F = 1464.125/(4 − 1) 1594.833/(24 − 4) = 6.12

Since 6.12 > F.95,3,20 = 3.10, H0: μ1 = μ2 = μ3 = μ4 should be rejected. These data support the contention that smoking influences a person’s heart rate.

Figure 12.2.3 shows the analysis of these data summarized in the ANOVA table format. Notice that the small P-value (= 0.004) is consistent with the con- clusion that H0 should be rejected.

Source df SS MS F P

Treatment 3 1464.125 488.04 6.12 0.004 Error 20 1594.833 79.74 Total 23 3058.958

Figure 12.2.3

COMPUTING FORMULAS

There are easier ways to compute an F statistic than by using the “defining” formulas for SSTR and SSE. Let C = T 2.. /n. Then

SSTOT = k∑

j=1

n j∑ i=1

Y 2i j − C (12.2.4)

SSTR = k∑

j=1

T 2. j n j

− C (12.2.5)

and, from Theorem 12.2.4,

SSE = SSTOT − SSTR (The proofs of Equations 12.2.4 and 12.2.5 are left as exercises.)

Section 12.2 The F Test 589

Example 12.2.1

For the data in Table 12.2.1,

C = T 2.. /n = (374 + 379 + 430 + 490)2/24 = 116,622.04 and

4∑ j=1

6∑ i=1

Y 2i j = (69)2 + (52)2 + · · · + (84)2 = 119,681

in which case

SSTOT = 4∑

j=1

6∑ i=1

Y 2i j − C = 119,681 − 116,622.04 = 3058.96

Also,

SSTR = 4∑

i=1

T 2. j n j

− C = (374)2/6 + (379)2/6 + (430)2/6 + (490)2/6 − 116,622.04

= 1464.13 so

SSE = SSTOT − SSTR = 3058.96 − 1464.13 = 1594.83 Notice that these sums of squares have the same numerical values that were found earlier in Case Study 12.2.1 using the original formulas for SSTOT, SSTR, and SSE.

Questions

12.2.1. The following are the gas mileages recorded dur- ing a series of road tests with four new models of Japanese luxury sedans. Test the null hypothesis that all four mod- els, on the average, give the same mileage. Let α = 0.05. Will the conclusion change if α = 0.10?

Model

A B C D

22 28 29 23 26 24 32 24

29 28

12.2.2. Mount Etna erupted in 1669, 1780, and 1865 (recall Case Study 8.2.3). When molten lava hardens, it retains the direction of the Earth’s magnetic field. Three blocks of lava were examined from each of these eruptions and the declination of the magnetic field in the block was mea- sured (181). The results are given in the following table. Do these data suggest that the direction of the Earth’s magnetic field shifted over the time period spanned by the eruptions? Let α = 0.05.

1669 1780 1865

57.8 57.9 52.7 60.2 55.2 53.0 60.3 54.8 49.4

12.2.3. An indicator of the value of a stock relative to its earnings is its price-earnings ratio: the average of a given year’s high and low selling prices divided by its annual earnings. The following table provides the price-earnings ratios for a sample of thirty stocks, ten each from the fi- nancial, industrial, and utility sectors of the New York Stock Exchange. Test at the 0.01 level that the true mean price-earnings ratios for the three market sectors are the same. Use the computing formulas on p. 588 to find SSTR and SSE. Use the ANOVA table format to summarize the computations; omit the P-value column.

Financial Industrial Utility

7.1 26.2 14.0 9.9 12.4 15.5 8.8 15.2 11.9 8.8 28.6 10.9

20.6 10.3 14.3 7.9 9.7 11.0

18.8 12.5 9.7 17.7 16.7 10.8 15.2 19.7 16.0 6.6 24.8 11.3

12.2.4. Each of five varieties of corn are planted in three plots in a large field. The respective yields, in bushels per acre, are in the following table.

590 Chapter 12 The Analysis of Variance

Variety 1 Variety 2 Variety 3 Variety 4 Variety 5

46.2 49.2 60.3 48.9 52.5 51.9 58.6 58.7 51.4 54.0 48.7 57.4 60.4 44.6 49.3

Test whether the differences among the average yields are statistically significant. Show the ANOVA table. Let 0.05 be the level of significance.

12.2.5. Three pottery shards from four widely scattered and now-extinct Native American tribes have been col- lected by a museum. Archaeologists were asked to esti- mate the age of the shards. Based on the results shown in the following table, is it conceivable that the four tribes were contemporaries of one another? Let α = 0.01.

Estimated Ages of Shards (years)

Lakeside Deep Gorge Willow Ridge Azalea Hill

1200 850 1800 950 800 900 1450 1200 950 1100 1150 1150

12.2.6. Recall the teachers’ expectation data described in Question 8.2.7. Let μj denote the true average IQ change

associated with group j, j = I, II, or III. Test H0: μI = μII = μIII versus H1: not all μ j’s are equal. Let α = 0.05. 12.2.7. Fill in the entries missing from the following ANOVA table.

Source df SS MS F

Treatment 4 6.40 Error 10.60 Total 377.36

12.2.8. Do the following data appear to violate the as- sumptions underlying the analysis of variance? Explain.

Treatment

A B C D

16 4 26 8 17 12 22 9 16 2 23 11 17 26 24 8

12.2.9. Prove Equations 12.2.4 and 12.2.5.

12.2.10. Use Fisher’s Lemma to prove Theorem 12.2.2.

COMPARING THE TWO-SAMPLE t TEST WITH THE ANALYSIS OF VARIANCE

The analysis of variance was introduced in Section 12.1 as a k-sample extension of the two-sample test. The two procedures overlap, though, when k is equal to 2. An obvious question arises: Which procedure is better for testing H0: μX = μY ? The answer, as Example 12.2.2 shows, is “neither.” The two test procedures are entirely equivalent: If one rejects H0, so will the other.

Example 12.2.2

Suppose that X1, X2, . . . , Xn and Y1,Y2, . . . ,Ym are two sets of independent, nor- mally distributed random variables with the same variance, σ2. Let μX and μY denote their respective means. Show that the two-sample t test and the analysis of variance are equivalent for testing H0: μX = μY .

If H0 were tested using the analysis of variance, the observed F ratio would be

F = SSTR/(k − 1) SSE/(n + m − k) =

SSTR SSE/(n + m − 2) (12.2.6)

and it would have 1 and n + m − 2 degrees of freedom. The null hypothesis would be rejected if F ≥ F1−α,1,n+m−2.

To compare the ANOVA decision rule with a two-sample t test requires that SSTR and SSE be expressed in the “X and Y” notation of t ratios. First, note that

SSTR = n1 ( Y .1 − Y ..

)2 + n2(Y .2 − Y ..)2 = n(X − Y ..)2 + m(Y − Y ..)2

Section 12.2 The F Test 591

In this case, Y .. = 1n + m ( nX + mY), so

SSTR = n [

X − 1 n + m

( nX + mY)]2 + m [Y − 1

n + m ( nX + mY)]2

= n [

m ( X − Y)

n + m

]2 + m

[ n ( X − Y) n + m

]2

= [

nm2

(n + m)2 + mn2

(n + m)2 ] (

X − Y)2 = nm

n + m ( X − Y)2

Also,

SSE = (n1 − 1)S21 + (n2 − 1)S22 = (n − 1)S2X + (m − 1)S2Y = (n + m − 2)S2P

Substituting these expressions for SSTR and SSE into the F statistic of Equation 12.2.6 yields

F = nm

n + m ( X − Y)2

(n + m − 2)S2P (n + m − 2)

= nm

n + m ( X − Y)2

S2P =

( X − Y)2

S2P

( 1 n

+ 1 m

) (12.2.7)

Notice that the right-hand expression in Equation 12.2.7 is the square of the two- sample t statistic described in Theorem 9.2.2. Moreover,

α = P(T ≤ −tα/2,n+m−2 or T ≥ tα/2,n+m−2) = P ( T 2 ≥ t2α/2,n+m−2

) = P(F1,n+m−2 ≥ t2α/2,n+m−2)

But the unique value c such that P(F1,n+m−2 ≥ c) = α is c = F1−α,1,n+m−2, so F1−α,1,n+m−2 = t2α/2,n+m−2. Thus,

α = P(T ≤ −tα/2,n+m−2 or T ≥ tα/2,n+m−2) = P(F ≥ F1−α,1,n+m−2)

It follows that if one test statistic rejects H0 at the α level of significance, so will the other.

Questions

12.2.11. Verify the conclusion of Example 12.2.2 by doing a t test and an analysis of variance on the data of Ques- tion 9.2.8. Show that the observed F ratio is the square of the observed t ratio and that the F critical value is the square of the t critical value.

12.2.12. Do an analysis of variance on the Mark Twain– Quintus Curtius Snodgrass data of Case Study 9.2.1.

Verify that the observed F ratio is the square of the observed t ratio.

12.2.13. Do an analysis of variance and a pooled two- sample t test on the motorcycle data given in Ques- tion 8.2.2. How are the observed F ratio and observed t ratio related? How are the two critical values related? Assume that α = 0.05.

592 Chapter 12 The Analysis of Variance

12.3 Multiple Comparisons: Tukey’s Method The suspicion that smoking affects heart rates was borne out by the analysis done in Case Study 12.2.1. In retrospect, the fact that H0: μ1 = μ2 = μ3 = μ4 was rejected is not surprising, given the sizeable range in the Y . j’s (from 62.3 for nonsmokers to 81.7 for heavy smokers). But not all the treatment groups were far apart: The heart rates for nonsmokers and light smokers were fairly close—62.3 versus 63.2. That raises an obvious question: Is there some way to follow up an initial test of H0: μ1 = μ2 = . . . = μk by looking at subhypotheses—that is, can we test hypotheses that involve fewer than the full set of population means (for example, H0: μ1 = μ2)?

The answer is “yes,” but the solution is not as simple as it might appear at first glance. In particular, it would be inappropriate to do a series of standard two-sample t tests on different pairs of means—for example, applying Theorem 9.2.1 to μ1 versus μ2, then to μ2 versus μ3, and so on. If each of those tests was done at a certain level of significance α, the probability that at least one Type I error would be committed would be much larger than α. That being the case, the “nominal” value for α misrepresents the collective precision of the inferences.

Suppose, for example, we did ten independent tests of the form H0: μi = μj versus H1: μi �= μj, each at level α = 0.05, on a large set of population means. Even though the probability of making a Type I error on any given test is only 0.05, the chances of incorrectly rejecting a true H0 with at least one of the ten t tests increases dramatically to 0.40:

P(at least one Type I error) = 1 − P(no Type I errors) = 1 − (0.95)10

= 0.40

Addressing that concern, mathematical statisticians have paid a good deal of attention to the so-called multiple comparison problem. Many different procedures, operating under various sets of assumptions, have been developed. All have the objective of keeping the probability of committing at least one Type I error small, even when the number of tests performed is large (or even infinite). In this section, we develop one of the earliest of these techniques, a still widely used method due to John Tukey.

A BACKGROUND RESULT: THE STUDENTIZED RANGE DISTRIBUTION

The simplest multiple comparison problem is to test the equality of all pairs of indi- vidual means—that is, to test with one procedure H0: μi = μj versus H1: μi �= μj for all i �= j. In Tukey’s method, these tests are performed using confidence intervals for μi − μj. The derivation depends on knowing the probabilistic behavior of the ratio R/S, where R is the range of a set of normally distributed random variables, and S is an estimator for their true standard deviation.

Definition 12.3.1 Let W1,W2, . . . , and Wk be a set of k independent, normally distributed random variables with mean μ and variance σ2, and let R denote their range:

R = max i

Wi − min i

Wi

Section 12.3 Multiple Comparisons: Tukey’s Method 593

Suppose S2 is an unbiased estimator for σ2 independent of the Wi’s and based on ν df. The Studentized range, Qk,ν, is the ratio

Qk,ν = RS (For the applications in Chapter 12, ν will equal k(r − 1) = rk − k).

Table A.5 in the Appendix gives values of Qα,k,v , the 100(1 − α)th percentile of Qk,v , for α = 0.05 and 0.01, and for various values of k and v. For example, if k = 4 and v = 8, Q.05,4,8 = 4.53, meaning that P

( R S

≥ 4.53 )

= 0.05, where R is the range of four normally distributed random variables, whose true standard deviation, σ, is being estimated by a sample standard deviation, S, having 8 degrees of freedom (see Figure 12.3.1). (Note: For the applications of the Studentized range in this chapter, S2 will always be the MSE and v will be n − k.)

Area = 0.05

f (y) Q4, 8

0

P ro

ba bi

lit y

de ns

it y

4.53 y

Figure 12.3.1

Theorem 12.3.1

Let Y . j, j = 1, 2, . . . , k be the k sample means in a completely randomized one- factor design. Let n j = r be the common sample size, and let μj be the true means, j = 1, 2, . . . , k. The probability is 1 − α that all

( k 2

) differences μi − μj will

simultaneously satisfy the inequalities

Y .i − Y . j − D √

MSE < μi − μj < Y .i − Y . j + D √

MSE

where D = Qα,k,rk−k/ √

r. If, for a given i and j, zero is not contained in the preceding inequality, H0: μi = μj can be rejected in favor of H1: μi �= μj , at the α level of significance.

Proof Let Wt = Y .t − μt . Then Wt is normally distributed with mean zero and variance σ2/r. Let max Wt and min Wt denote the maximum and minimum values, respectively, for Wt , where t ranges from 1 to k.

Take MSE/r to be the estimator for σ2/r. From the definition of the Studen-

tized range, maxWt − minWt√

MSE r

has a Qk,rk−k pdf, which implies that

P

⎛ ⎝maxWt − minWt√

MSE r

< Qα,k,rk−k

⎞ ⎠ = 1 − α

or, equivalently,

P (

max Wt − min Wt < D √

MSE ) = 1 − α (12.3.1)

where D = Qα,k,rk−k/ √

r.

(Continued on next page)

594 Chapter 12 The Analysis of Variance

(Theorem 12.3.1 continued)

Now, if Equation 12.3.1 is true, it must also be true that

P (|Wi − Wj| < D√MSE for all i and j) = 1 − α (12.3.2)

Rewriting Equation 12.3.2 gives

P (−D√MSE < Wi − Wj < D√MSE for all i and j) = 1 − α (12.3.3)

Recall that Wt = Y .t −μt . Substituting the latter for Wi and Wj into Equation 12.3.3 yields the statement of the theorem:

P ( Y .i −Y . j − D

√ MSE < μi − μj < Y .i −Y . j + D

√ MSE for all i and j

) = 1 − α

CASE STUDY 12.3.1

A certain fraction of antibiotics injected into the bloodstream are “bound” to serum proteins. This phenomenon bears directly on the effectiveness of the medication, because the binding decreases the systemic uptake of the drug. Table 12.3.1 lists the binding percentages in bovine serum measured for five widely prescribed antibiotics (228). Which antibiotics have similar binding prop- erties, and which are different?

Table 12.3.1

Penicillin G

Tetra- cycline

Strepto- mycin

Erythro- mycin

Chloram- phenicol

29.6 27.3 5.8 21.6 29.2 24.3 32.6 6.2 17.4 32.8 28.5 30.8 11.0 18.3 25.0 32.0 34.8 8.3 19.0 24.2

T. j 114.4 125.5 31.3 76.3 111.2 Y . j 28.6 31.4 7.8 19.1 27.8

To answer that question requires that we make all (

5 2

) = 10 pairwise com-

parisons of μi versus μj. First, MSE must be computed. From the entries in Table 12.3.1,

SSE = 5∑

j=1

4∑ i=1

( Yi j − Y . j

)2 = 135.83 so MSE = 135.83/(20 − 5) = 9.06. Let α = 0.05. Since rk − k = 20 − 5 = 15, the appropriate cutoff from the Studentized range distribution is Q.05,5,15 = 4.37. Therefore, D = 4.37/√4 = 2.185 and D√MSE = 6.58.

For each different pairwise subhypothesis test, H0: μi = μj versus H1: μi �= μj, Table 12.3.2 lists the value of Y .i−Y . j, together with the correspond- ing 95% Tukey confidence interval for μi − μj calculated from Theorem 12.3.1. As the last column indicates, seven of the subhypotheses are rejected (those whose Tukey intervals do not contain zero) and three are not rejected.

Section 12.3 Multiple Comparisons: Tukey’s Method 595

Table 12.3.2

Pairwise Difference Y .i − Y . j Tukey Interval Conclusion μ1 − μ2 −2.8 (−9.38, 3.78) NS μ1 − μ3 20.8 (14.22, 27.38) Reject μ1 − μ4 9.5 (2.92, 16.08) Reject μ1 − μ5 0.8 (−5.78, 7.38) NS μ2 − μ3 23.6 (17.02, 30.18) Reject μ2 − μ4 12.3 (5.72, 18.88) Reject μ2 − μ5 3.6 (−2.98, 10.18) NS μ3 − μ4 −11.3 (−17.88, −4.72) Reject μ3 − μ5 −20.0 (−26.58, −13.42) Reject μ4 − μ5 −8.7 (−15.28, −2.12) Reject

An effective graphical format for displaying the results of Tukey hypothesis tests is to plot the Y . j’s along a horizontal axis and draw parallel lines beneath pairs for which H0 : μi = μ j is not rejected. Figure 12.3.2 shows such a graph based on the binding percentage information given in Table 12.3.2.

0

(3)Y. j (4) (5)(1) (2) Binding %

10 20 30 40

Figure 12.3.2

Questions

12.3.1. Use Tukey’s method to make all the pairwise com- parisons for the heart rate data of Case Study 12.2.1 at the 0.05 level of significance.

12.3.2. Construct 95% Tukey intervals for the three pair- wise differences, μi − μ j, for the data of Question 12.2.3. 12.3.3. Intravenous infusion fluids produced by three different pharmaceutical companies (Cutter, Abbott, and McGaw) were tested for their concentrations of particu- late contaminants. Six samples were inspected from each company. The figures listed in the table are, for each sam- ple, the number of particles per liter greater than five microns in diameter (194).

Number of Contaminant Particles

Cutter Abbott McGaw

255 105 577 264 288 515 342 98 214 331 275 413 234 221 401 217 240 260

Do the analysis of variance to test H0: μC = μA = μM and then test each of the three pairwise subhypotheses by constructing 95% Tukey intervals.

12.3.4. Construct 95% Tukey intervals for all ten pairwise differences, μi − μ j, for the data of Question 12.2.4. Sum- marize the results by plotting the five sample averages on a horizontal axis and drawing straight lines under varieties whose average yields are not significantly different.

12.3.5. Construct 95% Tukey confidence intervals for the three pairwise differences associated with the murder cul- pability scores described in Question 8.2.15. Which differ- ences are statistically significant?

12.3.6. If 95% Tukey confidence intervals tell us to reject H0: μ1 = μ2 and H0: μ1 = μ3, will we necessarily reject H0: μ2 = μ3? 12.3.7. The width of a Tukey confidence interval is

2 √

MSEQα,k,n−k

/√ n k

If k increases, but n k

and MSE stay the same, will the

Tukey intervals get shorter or longer? Justify your answer intuitively.

596 Chapter 12 The Analysis of Variance

12.4 Testing Subhypotheses with Contrasts There are two general ways to test a subhypothesis, the choice depending, strangely enough, on when H0 can be fully specified. If a researcher wishes to do an experiment first, and then let the results suggest a suitable subhypothesis, the appropriate anal- ysis is any of the various multiple comparison techniques—for example, the Tukey method of Section 12.3.

If, on the other hand, physical considerations, economic factors, past experience, or any other factors suggest a particular subhypothesis before any data are taken, H0 can best be tested using a contrast. The advantage of the latter is that tests based on contrasts have greater power than the analogous tests based on a multiple compari- son procedure would have.

Definition 12.4.1 Let μ1,μ2, . . . ,μk denote the true means of k factor levels being sampled. A lin- ear combination, C, of the μj’s is said to be a contrast if the sum of its coefficients

is 0. That is, C is a contrast if C = k∑

j=1 c jμj, where the c j’s are constants such that

k∑ j=1

c j = 0.

Contrasts have a direct connection with hypothesis tests. Suppose a set of data consists of five treatment levels, and we wish to test the subhypothesis H0: μ1 = μ2. The latter could also be written H0: μ1 − μ2 = 0, which is actually a statement about a contrast—specifically, the contrast C, where

C = μ1 − μ2 = (1)μ1 + (−1)μ2 + (0)μ3 + (0)μ4 + (0)μ5 Or, suppose in Case Study 12.3.1, there was a good pharmacological reason for com- paring the average level of serum binding for the first two antibiotics to the average level for the last three. Written as a subhypothesis, the statement of no difference would be

H0: μ1 + μ2

2 = μ3 + μ4 + μ5

3 As a contrast, it becomes

C = 1 2 μ1 + 12μ2 −

1 3 μ3 − 13μ4 −

1 3 μ5

In both these cases, the numerical value of the contrast will be 0 if H0 is true. This suggests that the choice between H0 and H1 can be accomplished by first estimating C and then determining, via a significance test, whether that estimate is too far from 0.

We begin by considering some of the mathematical properties of contrasts and their estimates. Since Y . j is always an unbiased estimator for μj, it seems reasonable to estimate C, a linear combination of population means, with Ĉ, a linear combina- tion of sample means:

Ĉ = k∑

j=1 c jY . j

(The coefficients appearing in Ĉ, of course, are the same as those that defined C.) It follows that

E(Ĉ) = k∑

j=1 c jE

( Y . j

) = C

Section 12.4 Testing Subhypotheses with Contrasts 597

and

Var(Ĉ) = k∑

j=1 c2jVar

( Y . j

) = σ2 k∑ j=1

c2j n j

Comment Replacing the unknown error variance, σ2, by its estimate from the ANOVA table—MSE—gives a formula for the estimated variance of the estimated contrast:

S2 Ĉ

= MSE k∑

j=1

c2j n j

The sampling behavior of Ĉ is easily derived. By Theorem 4.3.3, the normality of the Yi j’s ensures that Ĉ is also normal, and by the usual Z transformation, the ratio

Ĉ − E(Ĉ)√ Var(Ĉ)

= Ĉ − C√ Var(Ĉ)

is a standard normal. Therefore, ⎡ ⎣ Ĉ − C√

Var(Ĉ)

⎤ ⎦2

is a chi square random variable with 1 degree of freedom. Of course, if H0: μ1 = μ2 = . . . = μk is true, C is 0, and the ratio reduces to

Ĉ 2

σ2 k∑

j=1

c2j n j

One additional property of contrasts is worth noting because of its connection to the treatment sum of squares in the analysis of variance. Two contrasts

C1 = k∑

j=1 c1 jμj and C2 =

k∑ j=1

c2 jμj

are said to be orthogonal if

k∑ j=1

c1 jc2 j n j

= 0

Similarly, a set of q contrasts, {Ci}qi=1, are said to be mutually orthogonal if k∑

j=1

cs jct j n j

= 0 for all s �= t

(The same definitions apply to estimated contrasts.) Definition 12.4.2 and Theorems 12.4.1 and 12.4.2, both stated here without proof,

summarize the relationship between contrasts and the analysis of variance. In short, the treatment sum of squares can be partitioned into k − 1 “contrast” sums of squares, provided the contrasts are mutually orthogonal.

598 Chapter 12 The Analysis of Variance

Definition 12.4.2

Let Ci = k∑

j=1 ci jμj be any contrast. The sum of squares associated with Ci is

given by

SSCi = Ĉ

2 i

k∑ j=1

c2i j n j

where Ĉi = k∑

j=1 ci jY . j.

Theorem 12.4.1

Let

{ Ci =

k∑ j=1

ci jμj

}k−1 i=1

be a set of k − 1 mutually orthogonal contrasts. Let {

Ĉi = k∑

j=1 ci jY . j

}k−1 i=1

be their estimators. Then

SSTR = k∑

j=1

n j∑ i=1

( Y . j − Y ..

)2 = SSC1 + SSC2 + · · · + SSCk−1

Theorem 12.4.2

Let C be a contrast having the same coefficients as the subhypothesis H0: c1μ1 + c2μ2 +· · ·+ckμk = 0, where

k∑ j=1

c j = 0. Let n = k∑

j=1 nj be the total sample size. Then

a. F = SSC/1 SSE/(n − k) has an F distribution with 1 and n − k degrees of freedom.

b. H0: c1μ1 + c2μ2 +· · ·+ ckμk = 0 should be rejected at the α level of significance if F ≥ F1−α,1,n−k.

Comment Theorem 12.4.1 is not meant to imply that only mutually orthogonal con- trasts can, or should, be tested. It is simply a statement of a partitioning relationship that exists between SSTR and the sum of squares for mutually orthogonal Ci’s. In any given experiment, the contrasts that should be singled out are those the experimenter has some prior reason to test.

CASE STUDY 12.4.1

As a rule, infants are not able to walk by themselves until they are almost fourteen months old. One study, however, investigated the possibility of reduc- ing that time through the use of special “walking” exercises (225). A total of twenty-three infants were included in the experiment—all were one-week-old white males. They were randomly divided into four groups, and for seven weeks each group followed a different training program. Group A received special walking and placing exercises for twelve minutes each day. Group B also had daily twelve-minute exercise periods but was not given the special walking and

Section 12.4 Testing Subhypotheses with Contrasts 599

placing exercises. Groups C and D received no special instruction. The progress of groups A, B, and C was checked every week; the progress of group D was checked only once, at the end of the study.

After seven weeks the formal training ended and the parents were told they could continue with whatever procedure they desired. Table 12.4.1 lists the ages (in months) at which each of the twenty-three children first walked alone. Table 12.4.2 shows the analysis of variance computations. Based on 3 and 19 de- grees of freedom, the α = 0.05 critical value is 3.13, so H0: μA = μB = μC = μD is not rejected.

Table 12.4.1 Age When Infants First Walked Alone (Months)

Group A Group B Group C Group D

9.00 11.00 11.50 13.25 9.50 10.00 12.00 11.50 9.75 10.00 9.00 12.00

10.00 11.75 11.50 13.50 13.00 10.50 13.25 11.50 9.50 15.00 13.00

T. j 60.75 68.25 70.25 61.75 Y . j 10.12 11.38 11.71 12.35

Table 12.4.2 ANOVA Computations

Source df SS MS F

Exercises 3 14.77 4.92 2.14 Error 19 43.70 2.30 Total 22 58.47

At this point the analysis could end with the overall H0 not being rejected. We will continue with the subhypothesis procedures, however, to illustrate the application of Theorem 12.4.2.

Recall that groups A and B spent equal amounts of time exercising but fol- lowed different regimens. Consequently, a test of H0: μA = μB versus H1: μA �= μB would be an obvious way to assess the effectiveness of the special walking and placing exercises. The associated contrast would be C1 = μA−μB. Similarly, a test of H0: μC = μD (using C2 = μC − μD) would provide an evaluation of the psychological effect of periodic progress checks.

From Definition 12.4.2 and the data in Table 12.4.1,

SSC1 =

[ 1 (

60.75 6

) − 1

( 68.25

6

)]2 12

6 + (−1)

2

6

= 4.68

and

SSC2 =

[ 1 (

70.25 6

) − 1

( 61.75

5

)]2 12

6 + (−1)

2

5

= 1.12

(Continued on next page)

600 Chapter 12 The Analysis of Variance

(Case Study 12.4.1 continued)

Dividing these sums of squares by the mean square for error (= 2.30) gives F ratios of 4.68/2.30 = 2.03 and 1.12/2.30 = 0.49, neither of which is significant at the α = 0.05 level (F.95,1,19 = 4.38) (see Table 12.4.3).

Table 12.4.3 Subhypothesis Computations

Subhypothesis Contrast SS F

H0: μA = μB C1 = μA − μB 4.68 2.03 H0: μC = μD C2 = μC − μD 1.12 0.49

RECONSTRUCTING AN ANALYSIS OF VARIANCE

Because of space and cost considerations, technical journals that publish research results based on the analysis of variance will typically not display the individual Yi j’s. Shown instead are the sample means (Y . j), sample standard deviations (Sj), and sample sizes (nj). From that summary information, though, the complete analysis of variance (and ANOVA table) can always be reconstructed.

Case Study 12.4.2 begins with that frequently-encountered format and shows the steps required to compensate for the unknown Yi j’s. And it focuses on a topic that is certainly of interest to anyone who has ever been a waiter or waitress.

CASE STUDY 12.4.2

Since a sizeable proportion of the money restaurant-servers earn comes from tips they receive, behaviors and strategies that foster a diner’s good will and generosity are worth investigating. Does it help, for example, to add a short, hand-written note to the bottom of the bill, and, if so, what sort of message is most effective? The data summarized in Table 12.4.4 were collected to shed some light on those two questions (169).

Table 12.4.4

Message at Bottom of Bill

j:

(1) “United We Stand” +

U.S. Flag

(2) “God Bless America” +

U.S. Flag

(3) “Have a Nice Day” +

Smiley Face

(4)

No Message

Y . j : 19.90 17.85 15.93 15.52 S j : (4.86) (3.98) (2.86) (3.04) n j : 25 25 25 25

The first number in each column is the average tip received (expressed as a percentage of the total bill) for the 25 dinner parties whose bill contained the message appearing as the column heading. The numbers in parentheses are the sample standard deviations for each of the four factor levels.

Section 12.4 Testing Subhypotheses with Contrasts 601

a. Construct the ANOVA table for the data summarized in Table 12.4.4. Using the α = .05 level of significance, test the null hypothesis that the four true average tip percentages are the same, regardless of whatever message appears at the bottom of the bill.

b. Construct a complete set of 95% Tukey confidence intervals to test the six possible pairwise message comparisons.

c. In every set of k-sample data, there may be something about the factor lev- els that raises a question relevant to the experimenter’s objectives—before any data are collected—that would not be addressed by testing the overall hypothesis H0 : μ1 = μ2 = . . . = μk. The way to answer such a ques- tion is to formulate an appropriate subhypothesis and, after the data have been collected, test whether its associated estimated contrast is significantly different than 0. For the factor levels shown in Table 12.4.4, there is such a question. What is that question, and why is it relevant to the experimenter’s objectives? State the relevant subhypothesis and its associated contrast C, and test H0 : C = 0 at the α = .05 level.

(a) If the Yi j’s are not displayed, there is no way to calculate the total sum of squares (SSTO) directly. However, the treatment sum of squares (SSTR) can be found the usual way, and the error sum of squares (SSE) can be calculated by pooling the squares of the sample standard deviations.

We start by finding C. Since T. j = njY . j, T.1 = 25(19.90) = 497.50, T.2 = 25(17.85) = 446.25, T.3 = 25(15.93) = 398.25, and T.4 = 25(15.52) = 388.00. Therefore,

C = (497.50 + 446.25 + 398.25 + 388.60) 2

25 + 25 + 25 + 25 = 29,929

and

SSTR = 4∑

j=1

T 2. j n j

− C = (497.50)2/25 + · · · + (388.60)2/25 − 29,929

= 302.67 (with 3 df)

Furthermore, since S2j = 1n j−1 n j∑

i=1 (Yi j − Y . j)2, it follows that

(nj − 1)S2j = n j∑

i=1 (Yi j − Y . j)2

in which case

SSE = k∑

j=1

n j∑ i=1

(Yi j − Y . j)2 = k∑

j=1 (nj − 1)S2j

= (25 − 1)(4.86)2 + · · · + (25 − 1)(3.01)2

= 1365.15 (with 4(24) = 96 df) Finally, by Theorem 12.2.4,

SSTO = SSTR + SSE = 302.69 + 1365.15 = 1667.84

(Continued on next page)

602 Chapter 12 The Analysis of Variance

(Case Study 12.4.2 continued)

so every entry in the data’s ANOVA table can be filled in:

Source df SS MS F

Messages 3 302.69 100.90 7.10 Error 96 1365.15 14.22 Total 99 1667.84

At the α = .05 level, H0 : μ1 = μ2 = μ3 = μ4 is clearly rejected. The observed F has 3 and 96 df, and from the entries in Appendix A.4,

obs. F = 7.10 > F.95,3,60 = 2.76 > F.95,3,96 (b) For each 95% Tukey confidence interval constructed for these data, the amount added to and subtracted from Y .i − Y . j is D

√ MSE, where

D = Q.05,4,96/ √

25

By interpolation in Appendix A.4, Q.05,4,96 = 3.71, so D = 3.71/5 = 0.74. Also, from the ANOVA table in part (a),

√ MSE = √14.22 = 3.77, which makes

D √

MSE = (0.74)(3.77) = 2.79. To test H0 : μ1 = μ2, for example, we construct the Tukey confidence inter-

val for μ1 − μ2. By Theorem 12.3.1, that interval would be (Y .1 − Y .2 − D

√ MSE,Y .1 − Y .2 + D

√ MSE)

or

(19.90 − 17.85 − 2.79, 19.90 − 17.856 + 2.79) = (−0.74, 4.84) Since the latter contains 0, we fail to reject H0 : μ1 = μ2 at the α = .05 level— that is, the difference between 19.90 and 17.85 is not statistically significant.

The table below shows the 95% Tukey confidence intervals for all ( 42 ) = 6 possible pairwise comparisons. Two of the Y .i −Y . j’s are statistically significant; four are not.

Pairwise Difference Y .i − Y . j Tukey Interval Conclusion μ1 − μ2 2.05 (−0.74 , 4.84) NS μ1 − μ3 3.97 (1.18 , 6.76) Reject μ1 − μ4 4.38 (1.59 , 7.17) Reject μ2 − μ3 1.92 (−0.87 , 4.71) NS μ2 − μ4 2.33 (−0.46 , 5.12) NS μ3 − μ4 0.41 (−2.38 , 3.20) NS

(c) The fundamental objective of this study was to identify server-strategies that might engender diners to be more generous in leaving tips. Three of the four factor levels are defined by the type of handwritten note appearing at the bot- tom of the bill—one was patriotic, another religious, and a third was basically a nongeneric “Have a nice day.” The fourth factor level was defined by bills that contained no message whatsoever.

The results of testing H0 : μ1 = μ2 = μ3 = μ4 would be revealing if cus- tomers were reacting to the actual content of what was written (or not written) at the bottom of the bills. But what if the diner’s generosity was not linked to any specific content but simply to the fact that the waiter took the time and made the effort to write something? Testing that latter theory would best be accomplished with a subhypothesis that compared the average response to the first three factor

Section 12.4 Testing Subhypotheses with Contrasts 603

levels—that is, “some message”—to the response of the fourth factor level’s “no message.” The appropriate subhypothesis, then, would be

H0 : μ1

3 + μ2

3 + μ3

3 = μ4

and the associated contrast would be

C = 1 3 μ1 + 13μ2 +

1 3 μ3 − μ4

Since Y . j estimates μ j, the estimated contrast Ĉ reduces to

Ĉ = (1/3)(19.90) + (1/3)(17.85) + (1/3)(15.93) − (1)(15.52) = 2.37 The question to be answered is whether the difference between Ĉ and 0 is statistically significant.

By Definition 12.4.2, the sum of squares associated with C is given by

SSC = (2.37) 2

(1/3)2

25 + (1/3) 2

25 + (1/3) 2

25 + (−1) 2

25

= 105.38

and by Theorem 12.4.2 the observed F for testing H0 : C = 0 versus H1 : C �= 0 is the ratio

SSC/1 SSE/(n − k) =

105.38/1 1365.15/96

= 7.41 with 1 and 96 df

But F.95, 1, 96 =̇ 3.95, so H0 : C = 0 is rejected. Based, then, on the overall analysis of variance, the Tukey intervals, and the

contrast, what strategy should waiters adopt to maximize their tips? The one clear take-away is that writing nothing at the bottom of the bill is a bad idea. The contrast result is consistent—although not overwhelmingly so—with the hypothesis that diners are not paying attention to the message’s content, but the Tukey confidence intervals and the overall ANOVA draw the opposite conclu- sion. In particular, writing a patriotic message seems to be an optimal strategy. That said, it should be noted that these data were collected shortly after the 9/11 attack on the World Trade Center when patriotic fervor was at a fever’s pitch. In a quieter time and gentler place, who knows what message would have elicited the most favorable response? Something generic and upbeat like “Have a nice day” with a smiley face might have resonated the best.

Questions

12.4.1. The cathode warm-up time (in seconds) was de- termined for three different types of X-ray tubes using fif- teen observations of each type. The results are listed in the following table.

Warm-Up Times (sec)

Tube Type A B C

19 27 20 24 16 14 23 31 20 25 26 18 26 25 32 29 15 19 18 22 27 31 18 21 20 23 40 24 19 17 20 27 24 25 17 19 18 29 22 32 19 18 35 18 18

Do an analysis of variance on these data and test the hypothesis that the three tube types require the same aver- age warm-up time. Include a pair of orthogonal contrasts in your ANOVA table. Define one of the contrasts so it tests H0: μA = μC. What does the other contrast test? Check to see that the sums of squares associated with your two contrasts verify the statement of Theorem 12.4.1.

12.4.2. Test the hypothesis that the average of the true yields for the first three varieties of corn described in Question 12.2.4 is the same as the average for the last two. Let α = 0.05. 12.4.3. In Case Study 12.2.1 test the hypothesis that the average of the heart rates for light and moderate smok- ers is the same as that for heavy smokers. Let the level of significance be 0.05.

604 Chapter 12 The Analysis of Variance

12.4.4. Large companies have the option of limiting their growth, but does doing so lead to higher profitability? The table below gives the profitability for a sample of twenty-one top-ranked companies, where profitability is expressed in terms of annual profit as a percentage of total company assets. The firms are divided into three groups by size of assets—$50 billion or less, between $51 and $100 billion, and over $100 billion. Test the hypothesis that small- and medium-size companies are as profitable as large companies. Let α = 0.10.

Size of Assets (billions of $)

$50 or Less Between $51 and $100 Greater than $100

7.2 11.3 14.8 6.5 5.6 11.3 5.7 5.3 9.2 4.4 5.3 4.8 3.4 10.4 3.9 3.4 6.2 10.2 7.8 5.3 7.3

(Note: SSE = 147.17429)

12.4.5. Verify that C3 = 1112μA + 1112μB − μC − 56μD is or- thogonal to the C1 and C2 of Case Study 12.4.1. Find SSC3 and illustrate the statement of Theorem 12.4.1.

12.4.6. For many years sodium nitrite has been used as a curing agent for bacon, and until recently it was thought to be perfectly harmless. But now it appears that during frying, sodium nitrite induces the formation of nitrosopyrrolidine (NPy), a substance suspected of be- ing a carcinogen. In one study focusing on this prob- lem, measurements were made of the amount of NPy (in ppb) recovered after the frying of three slices of four commercially available brands of bacon (172). Do the analysis of variance for the data in the table and partition the treatment sum of squares into a complete set of three mutually orthogonal contrasts. Let the first contrast test H0: μA = μB and the second, H0: (μA + μB)/2 = (μC + μD)/2. Do all tests at the 0.05 level of significance.

NPy Recovered from Bacon (ppb)

Brand

A B C D

20 75 15 25 40 25 30 30 18 21 21 31

12.5 Data Transformations The three assumptions required by the analysis of variance have already been men- tioned: the Yi j’s must be independent, normally distributed, and have the same vari- ance for all j. In practice, these three are not equally difficult to satisfy, nor do their violations have the same consequences for the F test.

Independence is certainly a critical property for the Yi j’s to have, but random- izing the order in which observations are taken (relative to the different treatment levels) tends to eliminate systematic bias—and achieve independence—quite effec- tively. Normality is a much more difficult property to induce or even to verify (recall Section 10.4). Fortunately, violations of that particular assumption, unless extreme, do not seriously compromise the probabilistic integrity of the analysis of variance (like the t test, the F test is robust against departures from normality).

If the final assumption is violated, though, and the Yi j’s do not all have the same variance, the effect on certain inference procedures—for example, the construction of confidence intervals for individual means—can be more unsettling. However, it is possible in some situations to “stabilize” the level-to-level variances by a suitable data transformation.

Suppose that Yi j has pdf fY (yi j; μj), i = 1, 2, . . . , nj; j = 1, 2, . . . , k, and a known function g exists for which Var(Yi j) = g(μj). We wish to find a transformation, A, that, when applied to the Yi j’s, will generate a new set of variables having a constant variance—that is, A(Yi j) = Wi j, where Var(Wi j) = c21, a constant.

By Taylor’s theorem,

Wi j .= A(μj) + (Yi j − μj)A′(μj)

Section 12.5 Data Transformations 605

Of course, E(Wi j) .= A(μj), since E(Yi j − μj) = 0. Also, Var(Wi j)

.= E[Wi j − E(Wi j)]2

= E[(Yi j − μj)A′(μj)]2

= [A′(μj)]2Var(Yi j) = [A′(μj)]2g(μj) Solving for A′(μj) gives

A′(μj) = √

Var(Wi j)√ g(μi)

= c1√ g(μj)

For Yi j in the neighborhood of μj, it follows that

A(Yi j) = c1 ∫

1√ g(yi j)

dyi j + c2 (12.5.1)

Example 12.5.1

Suppose the Yi j’s are Poisson random variables with mean μ j, j = 1, 2, . . . , k, so

fY (yi j; μj) = e−μj μyi jj

yi j!

In this case, the variance is equal to the mean (recall Theorem 4.2.2):

Var(Yi j) = E(Yi j) = μj = g(μj) By Equation 12.5.1, then,

A(Yi j) = c1 ∫

1√ yi j

dyi j + c2 = 2c1√yi j + c2

or, letting c1 = 12 and c2 = 0 to make the transformation as simple as possible,

A(Yi j) = √

Yi j (12.5.2)

Equation 12.5.2 implies that if the data are known in advance to be Poisson, each of the observations should be replaced by its square root before we proceed with the analysis of variance.

Example 12.5.2

Suppose each Yi j is a binomial random variable with pdf

fY (yi j; n, pj) = (

n yi j

) p

yi j j (1 − pj)n−yi j

Here, E(Yi j) = npj = μj, which implies that

Var(Yi j) = npj(1 − pj) = μj (

1 − μ j n

) = g(μj)

It follows that the variance-stabilizing transformation for this type of data involves the inverse sine:

A(Yi j) = c1 ∫

1√ yi j(1 − yi j/n)

dyi j + c2

= c12 √

n arcsin (

Yi j n

)1/2 + c2

or, what is equivalent,

A(Yi j) = arcsin (

Yi j n

)1/2

606 Chapter 12 The Analysis of Variance

Questions

12.5.1. A commercial film processor is experimenting with two kinds of fully automatic color developers. Six sheets of exposed film are put through each developer. The number of flaws on each negative visible with the naked eye is then counted.

Number of Visible Flaws

Developer A Developer B

1 8 4 6 5 4 6 9 3 11 7 10

Assume the number of flaws on a given negative is a Pois- son random variable. Make an appropriate data transfor- mation and do the indicated analysis of variance.

12.5.2. An experimenter wants to do an analysis of vari- ance on a set of data involving five treatment groups, each with three replicates. She has computed Y . j and Sj for each group and gotten the results listed in the following table.

Treatment Group

1 2 3 4 5

Y . j 9.0 4.0 16.0 9.0 1.0 S j 3.0 2.0 4.0 3.0 1.0

What should the experimenter do before computing the various sums of squares necessary to carry out the F test? Be as quantitative as possible.

12.5.3. Three air-to-surface missile launchers are tested for their accuracy. The same gun crew fires four rounds with each launcher, each round consisting of twenty mis- siles. A “hit” is scored if the missile lands within ten yards of the target. The following table gives the number of hits registered in each round.

Number of Hits per Round

Launcher A Launcher B Launcher C

13 15 9 11 16 11 10 18 10 14 17 8

Compare the accuracy of these three launchers by using the analysis of variance after making a suitable data trans- formation. Let α = 0.05.

12.6 Taking a Second Look at Statistics (Putting the Subject of Statistics Together—The Contributions of Ronald A. Fisher)

“The time has come,” the Walrus said “To talk of many things:

Of shoes—and ships—and sealing wax Of cabbages—and kings.

And why the sea is boiling hot And whether pigs have wings.”

Lewis Carroll

Statistics, as we know it today, is very much a product of the twentieth century. To be sure, its roots are centuries old. The Frenchmen Blaise Pascal and Pierre Fermat did their protean work on probability in 1654. At about that same time, John Graunt was studying Bills of Mortality in England and demonstrating a remarkable flair for teasing out patterns and trends. Still, as the twentieth century dawned, there was no real subject of statistics. There were bits and pieces of probability theory, and there were more than a few extremely capable observers of random phenomena— Francis Galton and Adolphe Quetelet being among the most prominent—but there was nothing resembling any general principles or formal methodology.

Section 12.6 Taking a Second Look at Statistics 607

Perhaps the most serious “gap” at the turn of the century was the almost total lack of information about sampling distributions. No one knew, for example,

the pdfs that described quantities such as Y − μ0 S/

√ n

, (n − 1)S2

σ2 ,

X − Y Sp √

1 n + 1m

, or S2Y S2X

.

These, of course, turned up as test statistics in Chapters 6, 7, and 9. Not knowing their pdfs meant that no inferences other than point estimates could be made about the parameters of normal distributions. Moreover, there was very little known about point estimates and, more generally, about the mathematical properties that should be associated with the estimation process.

Two individuals who figured very prominently in the early efforts to put statis- tics on a solid mathematical footing were Karl Pearson and W.S. Gossett (who pub- lished under the pseudonym “Student”). In 1900, Pearson deduced the distribution of the goodness-of-fit statistic, which appeared in Chapter 10. And Gossett, in 1908,

came up with the pdf for

( Y − μ0 S/

√ n

) —that is, the t distribution. It was a third person,

though, Ronald A. Fisher, who stood tallest among his peers. He not only did much of the early work in deriving sampling distributions and exploring the mathemati- cal properties of estimation, he also created the critically important area of applied statistics known as experimental design.

Born in 1890 in a suburb of London, Fisher was mathematically precocious and particularly adept at visualizing complicated problems in his head, a talent that some believe he developed to compensate for his congenitally poor eyesight. He graduated with distinction from Cambridge in 1912, where his specialties were physics and optics. During his time there, he also developed what would become a lifelong interest in genetics. He was particularly intrigued with the possibility of finding a mathematical justification for Darwin’s theory of evolution. (Almost two decades later, he published a book on the subject, The Genetical Theory of Natural Selection.)

In 1915, he derived the distribution of the sample correlation coefficient in a paper that is often thought to mark the beginning of the modern theory of sam- pling distributions. After teaching high school physics for several years (a job that did not seem to suit him especially well), he accepted a position as a statistician at the Rothamsted Agricultural Station. There he absolutely flourished as he immersed himself in the pursuit of both applied and mathematical statistics. Among his ac- complishments was a seminal paper published in 1921, “Mathematical Foundations of Theoretical Statistics,” which provided the framework for generations of future research.

The work at Rothamsted brought him face-to-face with the very difficult prob- lem of drawing inferences from field trials where biases of various sorts (different soil qualities, uneven drainage gradients, etc.) were the rule rather than the exception. The strategies he devised for dealing with heterogeneous environments eventually coalesced into what is now referred to as experimental design. Guided by his twin principles of replication and randomization, he revolutionized the protocol for set- ting up and conducting experiments. The mathematical techniques that supported his ideas on experimental design became known, of course, as the analysis of vari- ance. In 1925, Fisher published Statistical Methods for Research Workers, a classic text whose many subsequent editions helped countless scientists become more so- phisticated in the ways of analyzing data. A decade later he wrote The Design of Experiments, a second highly acclaimed guide for researchers.

Fisher was knighted in 1952, ten years before he died in Adelaide, Australia, at the age of seventy-two (53).

608 Chapter 12 The Analysis of Variance

Appendix 12.A.1 A Proof of Theorem 12.2.2 To prove that SSTR/σ2 has a chi square distribution with k−1 degrees of freedom, it suffices to show that the moment-generating function of SSTR/σ2 is

( 1

1 − 2t )(k−1)/2

.

Note, first, that under the null hypothesis that μ1 = μ2 = . . . = μk,

k∑ j=1

n j∑ i=1

(Yi j − Y ..)2 = SSTOT = (n − 1)S2

where S2 is the sample variance of a set of n observations from a normal distribution. Therefore, by Theorem 7.3.2,

MSSTOT/σ2 (t) = (

1 1 − 2t

)(n−1)/2

Also, from Theorem 12.2.3, SSE/σ2 = k∑

j=1

(nj − 1)S2j σ2

is a chi square random

variable with n − k degrees of freedom, so

MSSE/σ2 (t) = (

1 1 − 2t

)(n−k)/2

Since SSTOT/σ2 is the sum of two independent random variables, SSTR/σ2 and SSE/σ2, it follows that

MSSTOT/σ2 (t) = MSSTR/σ2 (t) · MSSE/σ2 (t)

or

( 1

1 − 2t )(n−1)/2

= MSSTR/σ2 (t) · (

1 1 − 2t

)(n−k)/2

which implies that

MSSTR/σ2 (t) = (

1 1 − 2t

)(k−1)/2

Appendix 12.A.2 The Distribution of SSTR/(k−1)SSE/(n − k) When H1 Is True

Theorem 12.2.5 gives the distribution of the test statistic

F = SSTR/(k − 1) SSE/(n − k)

when the null hypothesis is true. To calculate either the power of the analysis of variance or the probability of committing a Type II error, though, requires that we know the pdf of the observed F when H1 is true.

Appendix 12.A.2 The Distribution of SSTR/(k−1)SSE/(n−k) When H1 Is True 609

Definition 12.A.2.1 Let Vj have a normal pdf with mean μj and variance 1, for j = 1, . . . , r, and suppose that the Vj’s are independent. Then

V = r∑

j=1 V 2j

is said to have the noncentral χ2 distribution with r degrees of freedom and noncentrality parameter γ, where

γ = r∑

j=1 μ2j

Theorem 12.A.2.1

The moment-generating function for a noncentral χ2 random variable, V, with r degrees of freedom and noncentrality parameter γ is given by

MV (t) = (1 − 2t)− r2 e γt

1−2t , t < 1 2

Proof We begin by finding the moment-generating function for the special case where r = 1.

Let V be a normal random variable with mean μ and variance 1, and let V = Z + μ, where Z is a standard normal random variable. By definition, the moment- generating function for V 2 can be written

MV2 (t) = E (

etV 2 )

= E [ et(Z+μ)

2 ]

= 1√ 2π

∫ ∞ −∞

et(z+μ) 2 e−

1 2 z

2 dz = 1√

∫ ∞ −∞

et(z+μ) 2− 12 z2 dz

To evaluate the integral, we first complete the square in the exponent:

tz2 + 2tzμ + tμ2 − 1 2

z2

= −1 2

[(1 − 2t)z2 − 4tμz] + tμ2

= −1 2

· z2 − 4tμ

(1 − 2t)z 1/(1 − 2t) + tμ

2

= −1 2

· z2 − 4tμ

(1 − 2t)z + 4t2μ2

(1 − 2t)2 1/(1 − 2t) + tμ

2 + 2t2μ2

(1 − 2t)2 1/(1 − 2t)

= −1 2

·

⎡ ⎢⎢⎣

z − 2tμ (1 − 2t)

1/ √

1 − 2t

⎤ ⎥⎥⎦

2

+ tμ2 + 2t 2μ2

(1 − 2t)

(Continued on next page)

610 Chapter 12 The Analysis of Variance

(Theorem 12.A.2.1 continued)

Therefore,

MV2 (t) = eμ 2t+ 2μ2t2(1−2t) 1√

∫ ∞ −∞

e − 12 ·

[ z− 2tμ(1−2t) 1/

√ 1−2t

]2 dz

= (1 − 2t)− 12 eμ2 t1−2t The general result, where r �= 1, follows from an application of Theorem

3.12.3(b). Let V = r∑

j=1 V 2j , where the Vj’s are independent. Then

M r∑ j=1

V2j (t) = (1 − 2t)− r2 e

r∑ j=1

μ2j t

1−2t = (1 − 2t)− r2 ·e r t1−2t

Definition 12.A.2.2 Let V1 be a noncentral χ2 random variable with r1 degrees of freedom and non- centrality parameter γ. Suppose V2 is a (central) χ2 random variable with r2 degrees of freedom and independent of V1. The ratio

V1/r1 V2/r2

is said to have a noncentral F distribution with r1 and r2 degrees of freedom and noncentrality parameter γ.

Theorem 12.A.2.2

The ratio

SSTR/(k − 1) SSE/(n − k)

has a noncentral F distribution with k − 1 and n − k degrees of freedom and non- centrality parameter γ = 1

σ2

k∑ j=1

nj(μ j − μ)2.

Proof From Equation 12.2.1,

SSTR = k∑

j=1 nj ( Y . j − μ

)2 − n(Y .. − μ)2 so

SSTR σ2

= k∑

j=1

( Y . j − μ σ/

√ nj

)2 − (

Y .. − μ σ/

√ n

)2 (12.A.2.1)

Let Wj = Y · j − μ σ/

√ nj

, j = 1, . . . , k. Since E(Y . j) = μj, E(Wj) = √nj(μj − μ)/σ.

Also, Var(Wj) = Var(Y . j − μ) σ2/nj

= σ 2/nj

σ2/nj = 1. Thus, because Y . j is normal, each

Wj is normal with mean √

nj(μj − μ)/σ and variance 1. The second component of SSTR/σ2,

Y .. − μ σ/

√ n

, is a standard normal random variable.

Appendix 12.A.2 The Distribution of SSTR/(k−1)SSE/(n−k) When H1 Is True 611

Now, recalling the transformation technique used in Appendix 7.A.2, choose an orthogonal matrix A with first row (

√ n1/n,

√ n2/n, . . . ,

√ nk/n). Define the vector→

V of random variables by → V = A(W1,W2, . . . ,Wk)T . First note that

V1 = k∑

j=1

√ nj√ n

Wj = k∑

j=1

√ nj√ n

( Y · j − μ

) σ/

√ nj

= 1 σ √

n

k∑ j=1

nj ( Y · j − μ

) = 1 σ √

n

⎡ ⎣ k∑

j=1 njY · j −

⎛ ⎝ k∑

j=1 nj

⎞ ⎠μ

⎤ ⎦

= 1 σ √

n

( nY ·· − nμ

) = Y ·· − μ σ/

√ n

which gives V 21 = (

Y ·· − μ σ/

√ n

)2 .

Because of the orthogonality of the matrix,

k∑ j=1

V 2j = k∑

j=1 W 2j or

k∑ j=2

V 2j = k∑

j=1 W 2j − V 21

But k∑

j=1 W 2j − V 21 = SSTR/σ2 by Equation 12.A.2.1. Moreover, each Vj is a normal

random variable for which Vj = k∑

i=1 a jiWi, where the a ji’s are the entries in the jth

row of A. Therefore,

Var(Vj) = k∑

i=1 Var(a jiWi) =

k∑ i=1

a2jiVar(Wi) = k∑

i=1 a2ji

since each Wj has variance 1. But the orthogonality of matrix A implies that k∑

i=1 a2ji = 1 for each j. So each Vj is normal with variance 1, and

k∑ j=2

V 2j has a non-

central χ2 distribution with k − 1 degrees of freedom. From Question 12.A.2.4, the noncentrality parameter of

k∑ j=2

V 2j is

E

⎛ ⎝ k∑

j=2 V 2j

⎞ ⎠ − (k − 1) = E

⎛ ⎝ k∑

j=1 W 2j

⎞ ⎠ − E(V 21) − (k − 1)

= k∑

j=1 [Var(Wj) + [E(Wj)]2] − [Var(V1) + E(V1)2] − (k − 1)

= k∑

j=1

[ 1 + [√nj(μj − μ)/σ]2

] − (1 + 0) − (k − 1)

= 1 σ2

k∑ j=1

nj(μj − μ)2

(Continued on next page)

612 Chapter 12 The Analysis of Variance

(Theorem 12.A.2.2 continued)

Therefore, since SSE/σ2 has a χ2 distribution with n − k degrees of freedom, it follows immediately from Definition 12.A.2.2 that, when H1 is true,

F = SSTR k − 1 SSE

n − k has a noncentral F distribution with k − 1 and n − k degrees of freedom and non- centrality parameter γ = 1

σ2

k∑ j=1

nj(μj − μ)2.

Comment As H1 gets farther from H0, as measured by γ, the noncentral F will shift more and more to the right of the central F . Accordingly, the power of the F test will increase. That is,

P(F ≥ F1−α,k−1,n−k) → 1 as γ → ∞ The pdf for the noncentral F is not very tractable, but its integral has been evaluated by numerical approximation. This has allowed the power function for the F test to be tabulated [see, for instance, (115)].

Questions

12.A.2.1. Suppose an experimenter has taken three inde- pendent measurements on each of five treatment levels and intends to use the analysis of variance to test

H0: μ1 = μ2 = μ3 = μ4 = μ5 (= 0) versus

H1: not all the μ j’s are equal

Two of the possible alternatives in H1 are

H∗1: μ1 = −1, μ2 = 2, μ3 = 0, μ4 = 1, μ5 = −2 and

H∗∗1 : μ1 = −3, μ2 = 2, μ3 = 1, μ4 = 0, μ5 = 0 Against which alternative will the F test have the greater power? Explain.

12.A.2.2. In the scenario of the previous question, is H1: μ1 = 2, μ2 = 1, μ3 = 1, μ4 = −3, μ5 = 0 an “ad- missible” alternative hypothesis?

12.A.2.3. If the random variable V has a noncentral χ2distribution with r degrees of freedom and noncentral- ity parameter γ, use its moment-generating function to find E(V).

12.A.2.4. If the random variable V has a noncentral χ2

distribution with r degrees of freedom and noncentrality parameter γ, show that γ = E(V) − r. 12.A.2.5. Suppose V1,V2, . . . ,Vn are independent non- central χ2 random variables having r1, r2, . . . , rn degrees of freedom, respectively, and with noncentrality param- eters γ1, γ2, . . . , γn. Find the distribution of V = V1 + V2 + · · · + Vn.

Chapte r

13Randomized BlockDesigns CHAPTER OUTLINE

13.1 Introduction 13.2 The F Test

for a Randomized Block Design

13.3 The Paired t Test 13.4 Taking a Second

Look at Statistics (Choosing between a Two-Sample t Test and a Paired t Test)

“. . . when I first came to study statistical methods, nothing was further from my thoughts, or from those of my contemporaries, than that the art of experimental design would ever come to be, as it now surely is, an integral part of the subject.”

—Ronald A. Fisher, 1947

13.1 INTRODUCTION In any experiment, reducing the magnitude of the experimental error is a highly desirable objective: The smaller σ2 is, the better will be our chances of rejecting a false null hypothesis. Basically, there are two ways to reduce experimental error. The nonstatistical approach is simply to refine the experimental technique—use better equipment, minimize subject error, and so on. The statistical method, which can often produce results much more dramatic, is to collect the data in “blocks,” in what is referred to as a randomized block design.

Historically, it was Fisher who first advanced the notion of blocking. He saw it initially as a statistical defense against the obfuscating effects of soil heterogene- ity in agricultural experiments. Suppose, for example, a researcher wishes to com- pare the yields of four different varieties of corn. Figure 13.1.1(a) shows the simplest experimental layout: Variety A is planted in the leftmost portion of the field, variety B is planted next to A, and so on. Even to a city slicker, though, the statistical haz- ards in using this design should be obvious. Suppose, for example, there was a soil gradient in the field, with the best soil being in the westernmost part (where variety A was planted). Then if variety A achieved the highest yield, we would not know whether to attribute its success to its inherent quality or to its location (or to some combination of both).

A more sensible approach is pictured in Figure 13.1.1(b). There the field is divided into a number of smaller “blocks,” each block being still further parceled into four “plots.” All four varieties are planted in each block, one to a plot, with the plot assignments being chosen at random. Notice that the geographical contiguity of the four plots within a given block ensures that the environmental conditions from plot to plot will be relatively uniform and will not lead to any biasing of the observed yields. What the analysis of variance will then do is “pool” from block to block the within-block information concerning the treatment differences while bypassing the between-block differences—that is, the heterogeneity in the experimental environ- ment. As a result, the treatment comparisons can be made with greater precision. Analytically, where the total sum of squares was partitioned into two components in a completely randomized one-factor design, it will be split into three separate sums

613

614 Chapter 13 Randomized Block Designs

A B C D

DB

CA

AC

DB

BC

AD

(a) (b)

Figure 13.1.1 Two different experimental designs.

in a randomized block design: one for treatments, another for blocks, and a third for experimental error.

It did not take long for scientists to realize that the benefits of blocking could be extended well beyond the confines of agricultural experimentation. In medical re- search, blocks are often made up of subjects of the same age, sex, and overall physical condition. A common practice in animal studies is to form blocks out of littermates. Industrial experiments often require that “time” be a blocking criterion: Measure- ments taken by personnel on the day shift might be considered one block and those taken by the night shift a second block. In some sense the ultimate form of blocking, although one not always physically possible, is to apply the entire set of treatment levels to each subject, thus making each subject its own block.

Section 13.2 begins with a development of the analysis of variance for the ran- domized block design, where k treatment levels are administered within each of b blocks. The observations within a given block, of course, are dependent. As was the case in Chapter 12, the hypotheses to be tested are H0: μ1 = μ2 = . . . = μk versus H1: not all the μ j’s are equal, where μ j is the unknown true mean associated with treatment level j.

We saw in the previous chapter that when k = 2, and the samples are indepen- dent, the F test is equivalent to a two-sample t test. A similar duality exists here. When k = 2 treatment levels are compared within b blocks, H0: μ1 = μ2 can be tested using either the analysis of variance or a paired t test. The latter is described in Section 13.3.

13.2 The F Test for a Randomized Block Design Superficially, the structure of randomized block data looks much like the format we encountered in Chapter 12—associated with each of k treatment levels is a sam- ple of measurements. Here, though, each column has exactly the same number of observations—that is, nj = b for all j, so the data set is necessarily a b × k matrix (see Table 13.2.1).

On the other hand, from a statistical standpoint randomized block data are fun- damentally different from k-sample data (recall the discussion in Section 8.2). In Chapter 12, the k samples were independent. Here, the observations within a given row (which corresponds to a block) are dependent, since each reflects to some extent the conditions inherent in that block. That distinction causes the analysis of variance to proceed differently.

Our objective is to test H0: μ1 = μ2 = . . . = μk, the same as it was in Chapter 12. But here the mathematical model associated with Yi j has an additional term, representing the effect of the ith block. If each “block effect,” βi, is assumed to be additive, we can write

Yi j = μ j + βi + εi j

Section 13.2 The F Test for a Randomized Block Design 615

Table 13.2.1

Treatment Level Block Block True Block 1 2 k Totals Means Effects

1 Y11 Y12 . . . Y1k T1. Y 1. β1 2 Y21 Y22 Y2k T2. Y 2. β2Blocks ...

... ...

... ...

... b Yb1 Yb2 Ybk Tb. Y b. βb

Sample totals T.1 T.2 T.k T.. Sample means Y .1 Y .2 . . . Y .k Y .. True means μ1 μ2 μk

where εi j is normally distributed with mean zero and variance σ2, for i = 1, 2, . . . , b and j = 1, 2, . . . , k. As before, we will let μ denote the overall average treatment effect associated with the bk observations—that is, μ = 1

k

k∑ j=1

μ j.

The basic approach followed in Chapter 12 can still be taken here, but SSE needs to be recalculated, because the “error” in a set of randomized block measurements will reflect both the block effect and the random error. To separate the two requires that we first estimate the set of block effects, β1, β2, . . ., and βb.

Let Y i. = 1k k∑

j=1 Yi j denote the sample average of the k observations in the ith

block. Suppose the data contained no random error—that is, εi j = 0 for all i and j. Then

Y i. = 1k k∑

j=1 (μ j + βi) =

⎛ ⎝ 1

k

k∑ j=1

μ j

⎞ ⎠ + 1

k kβi = μ + βi

If Y .. is substituted for μ, the estimate for βi becomes Y i. − Y ... Now, adding and subtracting Y i. −Y .. in the expression for SSE from Chapter 12

gives

b∑ i=1

k∑ j=1

( Yi j − Y . j

)2 = b∑ i=1

k∑ j=1

[( Yi j − Y . j

) + (Y i. − Y ..) − (Y i. − Y ..)]2

= b∑

i=1

k∑ j=1

[( Y i. − Y ..

) + (Yi j − Y . j − Y i. + Y ..)]2

= b∑

i=1

k∑ j=1

( Y i. − Y ..

)2 + b∑ i=1

k∑ j=1

( Yi j − Y . j − Y i. + Y ..

)2

+ 2 b∑

i=1

k∑ j=1

( Y i. − Y ..

)( Yi j − Y . j − Y i. + Y ..

)

Notice that the cross-product term can be written

2 b∑

i=1

( Y i. − Y ..

) k∑ j=1

( Yi j − Y . j − Y i. + Y ..

)

616 Chapter 13 Randomized Block Designs

But k∑

j=1

( Yi j − Y . j − Y i. + Y ..

) = kY i. − kY i. − k∑ j=1

( Y . j − Y ..

) = 0 so

b∑ i=1

k∑ j=1

( Yi j − Y . j

)2 = b∑ i=1

k∑ j=1

( Y i. − Y ..

)2 + b∑ i=1

k∑ j=1

( Yi j − Y . j − Y i. + Y ..

)2 (13.2.1) Equation 13.2.1 is a key result. It shows that the “old” sum of squares for error

from Chapter 12— b∑

i=1

k∑ j=1

(Yi j − Y . j)2—can be partitioned into the sum of two other

sums of squares. The first, b∑

i=1

k∑ j=1

(Y i. − Y ..)2, is called the block sum of squares and denoted SSB. The second is the “new” sum of squares measuring random error. That is, for randomized block data,

SSE = b∑

i=1

k∑ j=1

( Yi j − Y . j − Y i. + Y ..

)2 The other sums of squares from Chapter 12 remain the same in the context of

the randomized block design. Specifically,

SSTOT = total sum of squares = b∑

i=1

k∑ j=1

( Yi j − Y ..

)2 and

SSTR = treatment sum of squares = b∑

i=1

k∑ j=1

( Y . j − Y ..

)2

Theorem 13.2.1

Suppose that k treatment levels are measured over a set of b blocks. Then

a. SSTOT = SSTR + SSB + SSE. b. SSTR, SSB, and SSE are independent random variables.

Proof The independence of the three terms that combine to give SSTOT can be established using the same approach that was taken in Chapter 12. The details will be omitted.

Theorem 13.2.2

Suppose that k treatment levels, with means μ1,μ2, . . . ,μk, are measured over a set of b blocks, where the block effects are β1, β2, . . . , βb. Then

a. When H0: μ1 = μ2 = . . . = μk is true, SSTR/σ2 has a chi square distribution with k − 1 degrees of freedom.

b. When H0: β1 = β2 = . . . = βb is true, SSB/σ2 has a chi square distribution with b − 1 degrees of freedom.

c. Regardless of whether the μ j ’s and/or the βi’s are equal, SSE/σ2 has a chi square distribution with (b − 1)(k − 1) degrees of freedom.

Proof The proofs are similar to those for Theorems 12.2.2 and 12.2.3.

Section 13.2 The F Test for a Randomized Block Design 617

Theorem 13.2.3

Suppose that k treatment levels with means μ1,μ2, . . . ,μk are measured over a set of b blocks. Then

a. If H0: μ1 = μ2 = . . . = μk is true,

F = SSTR/(k − 1) SSE/(b − 1)(k − 1)

has an F distribution with k − 1 and (b − 1)(k − 1) degrees of freedom. b. At the α level of significance, H0: μ1 = μ2 = . . . = μk should be rejected if

F ≥ F1−α,k−1,(b−1)(k−1).

Theorem 13.2.4

Suppose that k treatment levels are measured over a set of b blocks, where the block effects are β1, β2, . . . , and βb. Then

a. If H0: β1 = β2 = . . . = βb is true,

F = SSB/(b − 1) SSE/(b − 1)(k − 1)

has an F distribution with b − 1 and (b − 1)(k − 1) degrees of freedom. b. At the α level of significance, H0: β1 = β2 = . . . = βb should be rejected if

F ≥ F1−α,b−1,(b−1)(k−1).

Table 13.2.2 shows the ANOVA table entries for a randomized block analysis. Notice that two F ratios are calculated, one for the treatment effect and one for the block effect.

Table 13.2.2

Source df SS MS F P

Treatments k − 1 SSTR SSTR/(k − 1) SSTR/(k − 1) SSE/(b − 1)(k − 1) P[Fk−1,(b−1)(k−1) ≥ obs. F ]

Blocks b − 1 SSB SSB/(b − 1) SSB/(b − 1) SSE/(b − 1)(k − 1) P[Fb−1,(b−1)(k−1) ≥ obs. F ]

Error (b − 1)(k − 1) SSE SSE/(b − 1)(k − 1) Total n − 1 SSTOT

COMPUTING FORMULAS

Let C = T 2.. /bk. Then

SSTR = k∑

j=1

T 2. j b

− C (13.2.2)

SSB = b∑

i=1

T 2i. k

− C (13.2.3)

SSTOT = b∑

i=1

k∑ j=1

Y 2i j − C (13.2.4)

618 Chapter 13 Randomized Block Designs

and, by Theorem 13.2.1,

SSE = SSTOT − SSTR − SSB Equations 13.2.2, 13.2.3, and 13.2.4 are considerably easier to evaluate than their counterparts on p. 616. The proofs will be left as exercises.

CASE STUDY 13.2.1

Recall Example 8.2.1 showing the concentration of sulfite ions (SO2−3 ) involved in wine fermentation as determined for four different wines measured with two different procedures—a new Diffuse Reflectance Fourier-Transform Infrared Spectroscopy (DRS-FTIR) technique and the Standard Method based on an aeration-oxidation process. Table 13.2.3 shows the results.

Table 13.2.3

Measured Concentrations of SO2−3 (μg/ml)

DRS-FTIR Standard Method

White wine 1 112.9 115.1 White wine 2 123.1 125.6 Red wine 1 135.2 132.4 Red wine 2 140.2 143.7

The DRS-FTIR technique is more efficient and easier to use. The critical question that remains to be answered, though, is whether it yields SO2−3 concen- trations consistent with those obtained by the Standard Method.

Let μDRS and μSTAN denote the true average SO2−3 concentrations that these two procedures would find for these four wines. The objective is to test

H0 : μDRS = μSTAN

versus

H1 : μDRS �= μSTAN Let α = 0.05.

Table 13.2.4 shows the four block totals, two treatment totals, and overall total.

Table 13.2.4

Treatments

DRS STAN Totals (Bi.)

White 1 112.9 115.1 228.0 White 2 123.1 125.6 248.7

Wines Red 1 135.2 132.4 267.6 Red 2 140.2 143.7 283.9 Totals (T. j) 511.4 516.8 1028.2

Section 13.2 The F Test for a Randomized Block Design 619

Using the computing formulas on pp. 617–618:

C = (1028.2)2/8 = 132,149.405 SSB = (228.0)2/2 + (248.7)2/2 + (267.6)2/2 + (283.9)2/2 − C

= 872.925 SST = (511.4)2/4 + (516.8)2/4 − C

= 3.645 and

SSTOT = (112.9)2 + (123.1)2 + · · · + (143.7)2 − C = 888.515

The format outlined in Table 13.2.2 gives the ANOVA table shown in Figure 13.2.1.

Source df SS MS F

Treatments 1 3.645 3.645 0.92 Blocks 3 872.925 290.975 Error 3 11.945 3.982 Total 7 888.515

Figure 13.2.1

Since the obs. F is less than 1, the conclusion is “fail to reject H0”—despite their simplicity, the measurements made by the DRS-FTIR procedure are consistent with those made by the Standard procedure.

Comment Since the null hypothesis always represents some sort of status quo, experimenters are typically hoping to reject H0. This study is unusual in the sense that the reverse is true—a “fail to reject” decision lends the desired credibility to DRS-FTIR analyses.

REINTERPRETING THE MEANING OF ERROR

Beginning in Chapters 6 and 7 when the first Z tests and t tests were described, the estimated “error” associated with a measurement yi in a random sample of n obser- vations was always defined as the difference yi − y. And the error in the entire sample was measured by the sample variance, s2, whose numerator was the sum

n∑ i=1

(yi − y)2. That definition of error continued all the way through Chapter 12. In the analysis

of variance for the k-sample problem, the sum of squares for error, SSE, was given

by the double sum k∑

j=1

n j∑ i=1

(Yi j − Y . j)2, which is simply a pooled version of how error was defined in Chapters 6 and 7.

What we are seeing in Chapter 13, though, is different. The ANOVA table in Figure 13.2.1 shows an entry for the sum of squares for error being 3.982. But there are no repeated measurements in the data—each of the eight observations listed in Table 13.2.4 is representing a different population. So what is “error” describing in the context of a randomized block design?

620 Chapter 13 Randomized Block Designs

The answer is that “error” is a more general concept than what has been the case up to this point. Specifically, it can also refer to a measurement’s deviation from a mathematical model and not simply its deviation from y. That is precisely what is happening here.

Recall that the mathematical model for randomized block designs appears in two different forms—either

1. Yi j = μ j + βi + εi j or

2. Yi j = μ + βi + τ j + εi j The two are equivalent and yield identical sums of squares.

According to Model 2, the expected value for a measurement Yi j would be

E(Yi j) = μ + βi + τ j since E(εi j) = 0 for all i and j. It follows that the estimated “error” associated with Yi j—that is, the extent to which it fails to equal its expected value—is given by the difference

Error = Yi j − (μ̂ + β̂i + τ̂ j) = Yi j − (Y .. + Y i. − Y .. + Y . j − Y ..)

For example, the error associated with y11 is −0.425:

Error = Y11 − (Y .. + Y 1. − Y .. + Y .1 − Y ..) = 112.9 − (128.525 + 114.0 − 128.525 + 127.85 − 128.525) = 112.9 − 113.325 = −0.425

Table 13.2.5 displays three entries for each of the eight Wine/Treatment combi- nations. The top entry in each cell is Yi j; the second entry (in parentheses) is E(Yi j); and the third entry [in brackets] is the error associated with Yi j.

Table 13.2.5

DRS STAN

112.9 115.1 B1 (113.325) (114.675)

[−0.425] [+0.425] 123.1 125.6

B2 (123.675) (125.025) [−0.575] [+0.575]

135.2 132.4 B3 (133.125) (134.475)

[+2.075] [−2.075] 140.2 143.7

B4 (141.275) (142.625) [−1.075] [+1.075]

Section 13.2 The F Test for a Randomized Block Design 621

Notice that the sum of the squared errors in the eight cells is 11.945, which is the entry for SSE in the ANOVA table in Figure 13.2.1:

(−0.425)2 + (0.425)2 + (−0.575)2 + (0.575)2 + (2.075)2 + (−2.075)2 + (−1.075)2 + (1.075)2 = 11.945

Also, notice that only three of the bracketed entries in Table 13.2.5 are indepen- dent. The other five are predetermined because of the constraints on the MLE’s

for the βi’s and τ j’s—namely, 4∑

i=1 β̂i = 0 and

2∑ j=1

τ̂ j = 0. Quantifying the indepen- dence/dependence relationship is the “3” that appears in the Degrees of Freedom column in the ANOVA table.

CASE STUDY 13.2.2

Acrophobia is a fear of heights. It can be treated in a number of different ways. Using contact desensitization, a therapist demonstrates some task that would be difficult for someone with acrophobia to do, such as looking over a ledge or standing on a ladder. Then he guides the subject through the very same maneuver, always keeping in physical contact. Another method of treatment is demonstration participation. Here the therapist tries to talk the subject through the task; no physical contact is made. A third technique, live modeling, requires the subject simply to watch the task being done—he does not attempt it himself.

These three techniques were compared in a study involving fifteen volun- teers, all of whom had a history of severe acrophobia (153). It was realized at the outset, though, that the affliction was much more incapacitating in some sub- jects than in others, and that this heterogeneity might compromise the therapy comparison. Accordingly, the experiment began with each subject being given the Height Avoidance Test (HAT), a series of forty-four tasks related to ladder climbing. A subject received a “point” for each task successfully completed. On the basis of their final scores, the fifteen volunteers were divided into five blocks (A, B, C, D, and E), each of size 3. The subjects in Block A had the lowest scores (that is, the most severe acrophobia), those in Block B the second lowest scores, and so on.

Each of the three therapies was then assigned at random to one of the three subjects in each block. When the counseling sessions were over, the subjects retook the HAT. Table 13.2.6 lists the changes in their scores (score after therapy – score before therapy). Test the hypothesis that the therapies are equally effective. Let α = 0.01.

Table 13.2.6 HAT Score Changes

Therapy

Contact Demonstration Live Block Desensitization Participation Modeling Ti.

A 8 2 −2 8 B 11 1 0 12 C 9 12 6 27 D 16 11 2 29 E 24 19 11 54 T. j 68 45 17 130

(Continued on next page)

622 Chapter 13 Randomized Block Designs

(Case Study 13.2.2 continued)

Since C = (130)2/15 = 1126.7 and 5∑

i=1

3∑ j=1

Y 2i j = 1894, it follows that

SSTOT = 1894 − 1126.7 = 767.3

SSB = (8) 2

3 + · · · + (54)

2

3 − 1126.7 = 438.0

SSTR = (68) 2

5 + (45)

2

5 + (17)

2

5 − 1126.7 = 260.9

giving an error sum of squares of:

SSE = 767.3 − 438.0 − 260.9 = 68.4 The analysis of variance is summarized in Table 13.2.7. Since the calculated value of the F statistic, 15.260, exceeds F.99,2,8 = 8.65, H0: μ1 = μ2 = μ3 can be rejected at the 0.01 level. In fact, the P-value of 0.0019 indicates that H0 can be rejected for α as small as 0.0019.

Table 13.2.7

Source df SS MS F P

Therapies 2 260.93 130.47 15.260 0.0019 Blocks 4 438.00 109.50 12.807 0.0015 Error 8 68.40 8.55 Total 14 767.33

The small P-value for “Blocks” (= 0.0015) implies that H0: β1 = β2 = . . . = β5 would also be rejected. Of course, that should come as no surprise: The blocks were intentionally set up to be as different as possible. Indeed, if

F = SSB/(b − 1) SSE/(b − 1)(k − 1) had not been large, we would have questioned the va-

lidity of using HAT scores to measure the severity of acrophobia.

Comment Using a randomized block design instead of a one-way design is a trade-off. The blocks result in SSE being reduced (recall Equation 13.2.1), and that increases the probability of rejecting H0 when H0 is false, provided every- thing else associated with the test is kept the same. But everything else is not kept the same: The degrees of freedom associated with “error” in the random- ized block analysis [= (b − 1)(k − 1)] are fewer than the degrees of freedom associated with “error” in the one-way analysis [= k(b − 1)]. That difference is an advantage of the one-way analysis because the power of any hypothesis test diminishes as the number of degrees of freedom associated with its test statistic decreases.

Ultimately, which design is preferable in a given situation depends on the magnitude of SSB. If SSB were “large,” the advantage of a much smaller SSE would more than compensate for the reduction in the degrees of freedom for “error,” and the randomized block design would be a better choice than the one-way design. On the other hand, if the block effects were essentially all the same (in which case SSB would be small), then SSE for the randomized block design would not be much smaller than the SSE for the one-way design. In that case, the degrees of freedom for “error” becomes the key issue, and the one-way design would be considered preferable.

Section 13.2 The F Test for a Randomized Block Design 623

Of course, once a set of data has been collected under the guidelines of one experimental design, there is no way to “reanalyze” those same observations as though they came from some other design. That said, what is gleaned from one analysis of variance—for example, the magnitude of MSB/MSE—can be very helpful in deciding how any follow-up studies should be done.

Suppose, for example, someone suggested comparing these three acrophobia therapies using a k-sample design. The fifteen subjects would be randomly split into three samples of size 5. Each of the three therapies would then be assigned to one of those three samples. Would that be a good idea? Absolutely not. The subject-to-subject variability in acrophobia severities is clearly enormous based on the F ratio for Blocks shown in Table 13.2.7. Assigning the fifteen subjects at random to the three therapies would decrease SSTR and greatly increase SSE, perhaps to the extent that the variability within the therapies would “wash out” the differences between the therapies.

TUKEY COMPARISONS FOR RANDOMIZED BLOCK DATA

The Tukey pairwise comparison technique of Section 12.3 can also be applied to a randomized block design. The definition of D is slightly different, since the associated studentized range is no longer Qk,rk−k but rather Qk,(b−1)(k−1), a change reflecting the number of degrees of freedom available for MSE in estimating σ2.

Theorem 13.2.5

Let Y . j, j = 1, 2, . . . , k, be the sample means in a b × k randomized block design. Let μ j be the true treatment means, j = 1, 2, . . . , k. The probability is 1 − α that all(k

2

) pairwise subhypotheses H0: μs = μt will simultaneously satisfy the inequalities

Y .s − Y .t − D √

MSE < μs − μt < Y .s − Y .t + D √

MSE

where D = Qα,k,(b−1)(k−1)/ √

b. If, for a given s and t, zero is not contained in the preceding inequality, H0: μs = μt can be rejected in favor of H1: μs �= μt at the α level of significance.

Example 13.2.1

Recall the comparison of the three acrophobia therapies in Case Study 13.2.2. The F test in Table 13.2.7 showed that H0: μ1 = μ2 = μ3 can be rejected at the α = 0.05 (or even 0.005) level of significance. Should all three therapies, though, be considered different, or is one of them simply different from the other two?

That question can be answered by constructing the set of 95% Tukey confidence intervals for the three pairwise comparisons. Here,

D = Q.05,3,8√ 5

= 4.04 2.24

= 1.81

and the radius of the Tukey intervals is

D √

MSE = 1.81 √

8.55 = 5.3 Table 13.2.8 summarizes the calculations called for in Theorem 13.2.5.

Table 13.2.8

Pairwise Difference Y .s − Y .t Tukey Interval Conclusion μ1 − μ2 4.6 (−0.7, 9.9) Not significant μ1 − μ3 10.2 (4.9, 15.5) Reject μ2 − μ3 5.6 (0.3, 10.9) Reject

624 Chapter 13 Randomized Block Designs

Now we have a much better picture of the relative values of these three therapies. Based on the Tukey intervals, the difference in the means for contact desensitization (μ1) and demonstration participation (μ2) is not statistically signifi- cant. However, the increases in both the contact desensitization mean (μ1) and the demonstration participation mean (μ2) relative to the live modeling mean (μ3) are statistically significant.

CONTRASTS FOR RANDOMIZED BLOCK DATA

The techniques learned in Section 12.4 for testing contrasts can be readily adapted to randomized block designs. If C is the contrast associated with the null hypothesis, the appropriate test statistic is

F = SSC/1 SSE/(b − 1)(k − 1)

where F has 1 and (b − 1)(k − 1) degrees of freedom and SSE is the error sum of squares defined for randomized block data.

CASE STUDY 13.2.3

Even a man who is pure in heart and says his prayers at night may become a wolf when the wolfbane blooms and the autumn moon is bright.

Ever since Lon Chaney, Jr. starred in The Wolf Man, a popular (and many times imitated) movie released in 1941, the long-standing belief that the full Moon has some sort of deleterious effect on human behavior gained a renewed prominence that has never completely subsided. Urban legends and anecdotal accounts have proliferated, and so have carefully done scientific investigations.

Case Study 1.2.2 described one of the latter—a study designed to com- pare admission rates to the Emergency Room of a Virginia mental health clinic before, during, and after a full Moon. The plan was to track those admission rates for twelve consecutive months, and test H0 : μ1 = μ2 = μ3 with a random- ized block design, where μ1, μ2, and μ3 denote the true admission rates before, during, and after the full Moon, respectively. The twelve months would be the blocks.

But just as we saw in Case Study 12.4.2, the factor levels in any analysis of variance can sometimes suggest an obvious Plan B. Here, why not compare the admission rate during a full Moon to the average admission rate for the entire rest of the month? That is, why not test the subhypothesis H0 : μ2 = μ1+μ32 ? The answer is, we should do both. As the saying goes, nothing ventured, nothing gained.

Table 13.2.9 shows the data that were eventually collected. The randomized block analysis of variance would be done first. Using the computing formulas on pp. 617–618,

C = (6.4 + 7.1 + · · · + 14.5)2/36 = 5100.34 SSTOT = (6.4)2 + (7.1)2 + · · · + (14.5)2 − 5100.34 = 621.75

SSTR = (131.00)2/12 + (160.00)2/12 + (137.50)2/12 − 5100.34 = 38.59

Section 13.2 The F Test for a Randomized Block Design 625

Table 13.2.9

Admission Rates (patients/day)

(1) (2) (3) Before Full During Full After Full

Month Moon Moon Moon Y i·

Aug. 6.4 5.0 5.8 5.73 Sept. 7.1 13.0 9.2 9.77 Oct. 6.5 14.0 7.9 9.47 Nov. 8.6 12.0 7.7 9.43 Dec. 8.1 6.0 11.0 8.37 Jan. 10.4 9.0 12.9 10.77 Feb. 11.5 13.0 13.5 12.67 Mar. 13.8 16.0 13.1 14.30 Apr. 15.4 25.0 15.8 18.73 May 15.7 13.0 13.3 14.00 June 11.7 14.0 12.8 12.83 July 15.8 20.0 14.5 16.77 Y · j 10.92 13.33 11.46

and

SSB = (17.2)2/3 + (29.3)2/3 + · · · + (50.3)2/3 − 5100.34 = 451.08 Table 13.2.10 summarizes the ANOVA calculations. For 2 and 22 degrees of

freedom, the 0.05 critical value for the lunar cycle effect is 3.44, which is greater than the observed F (= 3.22). Therefore, we would fail to reject H0 : μ1 = μ2 = μ3, and the conclusion would be that a lunar effect has not been demonstrated.

Table 13.2.10

Source df SS MS F

Lunar cycles 2 38.59 19.30 3.22 Months 11 451.08 41.01 Error 22 132.08 6.00 Total 35 621.75

The second approach to analyzing these data, testing the subhypothesis,

H0 : μ2 = μ1 + μ32 is done using the contrast C, where

C = −(1/2)μ1 + (1)μ2 − (1/2)μ3 Replacing the μ j’s with the Y . j’s shown in Table 13.2.8 gives the estimated con- trast, Ĉ, where

Ĉ = −(1/2)10.92 + (1)13.33 − (1/2)11.46 = 2.14 The subhypothesis, then, is rejected if and only if the value of Ĉ(= 2.14) is significantly different than 0.

(Continued on next page)

626 Chapter 13 Randomized Block Designs

(Case Study 13.2.3 continued)

From Definition 12.4.2, the sum of squares associated with C is the quotient

SSC = (2.14) 2

(−1/2)2 12 + (1)

2

12 + (−1/2) 2

12

= 36.67

and the statistic for testing H0 : C = 0 is the F ratio

obs. F = SSC/1 MSE

= 36.67/1 132.08/22

= 6.11 with 1 and 22 df

Suppose α = 0.05. Then, F.95,1,22 = 4.30. Therefore, contrary to our acceptance of H0 : μ1 = μ2 = μ3, we would reject H0 : μ2 = μ1+μ32 and conclude that the Transylvania effect does exist.

Comment It is always more than a little disconcerting when two analyses done on the same set of data yield contradictory results. Is the randomized block ANOVA more or less appropriate here than the subhypothesis/contrast tech- nique? No. So why are their conclusions different? Two reasons. First and fore- most, each is using the data in a slightly different way and asking a slightly dif- ferent question. Second, the contrast analysis might be making a Type I error, and the ANOVA might be making a Type II error.

In a way, the ambivalence of these data is somewhat typical of much of the research looking for linkages between the full Moon and human behavior. The consensus in the scientific community seems to be that the lunar effect does not exist, yet the occasional study suggests the opposite. That said, it seems clear that none of us needs to worry anytime soon that the full Moon will transform us into werewolves like it did to Lon Chaney, Jr. in The Wolf Man.

Questions

13.2.1. In recent years a number of research projects in extrasensory perception have examined the possibility that hypnosis may be helpful in bringing out ESP in per- sons who did not think they had any. The obvious way to test such a hypothesis is with a self-paired design: the ESP ability of a subject when he is awake is compared to his ability when hypnotized. In one study of this sort, fif- teen college students were each asked to guess the iden- tity of two hundred Zener cards (see Case Study 4.3.1). The same “sender”—that is, the person concentrating on the card—was used for each trial. For one hundred of the trials both the student and the sender were awake; for the other one hundred both were hypnotized. If chance were the only factor involved, the expected number of correct identifications in each set of one hundred trials would be twenty. The observed average numbers of correct guesses for subjects awake and subjects hypnotized were 18.9 and 21.7, respectively (24). Use the analysis of variance to de- termine whether that difference is statistically significant at the 0.05 level.

Number of Correct Responses (out of 100) in ESP Experiment

Sender and Student Sender and Student Student in Waking State in Hypnotic State

1 18 25 2 19 20 3 16 26 4 21 26 5 16 20 6 20 23 7 20 14 8 14 18 9 11 18

10 22 20 11 19 22 12 29 27 13 16 19 14 27 27 15 15 21 Y . j 18.9 21.7

Section 13.2 The F Test for a Randomized Block Design 627

13.2.2. The following table shows the audience shares of the three major networks’ evening news broadcasts in four major cities as reported by Arbitron. Test at the α = 0.10 level of significance the null hypothesis that viewing levels for news are the same for ABC, CBS, and NBC.

City ABC CBS NBC

A 19.7 16.1 18.2 B 18.6 15.8 17.9 C 19.1 14.6 15.3 D 17.9 17.1 18.0

13.2.3. A paint manufacturer is experimenting with an additive that might make the paint less chalky. To ensure that the additive does not affect the tint, a quality-control engineer takes a sample from each of seven batches of Osage Orange. Each sample is split in half, and the addi- tive is put into one of the two. Both samples are examined with a spectroscope, with the output read in standardized lumen units. If the tint were exactly correct, the reading would be 1.00. Test that the mean spectroscope readings are the same for the two versions of Osage Orange. Let α = 0.05.

Batch Without Additive With Additive

1 1.10 1.06 2 1.05 1.02 3 1.08 1.17 4 0.98 1.21 5 1.01 1.01 6 0.96 1.23 7 1.02 1.19

13.2.4. The number of new building permits can be a good indicator of the strength of a region’s economic growth. The following table gives percentage increases over a four-year period for three geographical areas. Analyze the data. Let α = 0.05. What are your conclusions?

Year Eastern North Central Southwest

2000 1.1 0.1 0.9 2001 1.3 0.8 1.0 2002 2.9 1.1 1.4 2003 3.5 1.3 1.5

13.2.5. Analyze the Transylvania effect data in Case Study 13.2.3 by calculating 95% Tukey confidence inter- vals for the pairwise differences among the admission rates for the three different phases of the moon. How do your conclusions agree with (or differ from) those already discussed on p. 626? Let Q.05,3,22 = 3.56. 13.2.6. The table below gives a stock fund’s quarterly returns for the years 2003 to 2007. Are the results affected

by the quarter of the year? Is the variability in the return from year to year statistically significant? State your con- clusions using the α = 0.05 level of significance.

Quarter

Year First Second Third Fourth

2003 −5.29 8.62 5.23 6.44 2004 4.96 1.06 −0.25 6.32 2005 0.11 0.58 5.46 3.01 2006 5.30 0.82 4.81 6.54 2007 1.71 5.41 −1.92 −4.78

13.2.7. Find the 95% Tukey intervals for the data of Ques- tion 13.2.2, and use them to test the three pairwise com- parisons of ABC, CBS, and NBC.

13.2.8. A comparison was made of the efficiency of four different unit-dose injection systems. A group of phar- macists and nurses were the “blocks.” For each system, they were to remove the unit from its outer package, assemble it, and simulate an injection. In addition to the standard system of using a disposable syringe and nee- dle to draw the medication from a vial, the other systems tested were Vari-Ject (CIBA Pharmaceutical), Unimatic (Squibb), and Tubex (Wyeth). Listed in the following table are the average times (in seconds) needed to implement each of the systems (158).

Average Times (sec) for Implementing Injection Systems

Subject Standard Vari-Ject Unimatic Tubex Ti.

1 35.6 17.3 24.4 25.0 102.3 2 31.3 16.4 22.4 26.0 96.1 3 36.2 18.1 22.8 25.3 102.4 4 31.1 17.8 21.0 24.0 93.9 5 39.4 18.8 23.3 24.2 105.7 6 34.7 17.0 21.8 26.2 99.7 7 34.1 14.5 23.0 24.0 95.6 8 36.5 17.9 24.1 20.9 99.4 9 32.2 14.6 23.5 23.5 93.8

10 40.7 16.4 31.3 36.9 125.3 T. j 351.8 168.8 237.6 256.0 1014.2

(a) Test the equality of the means at the 0.05 level. (b) Use Tukey’s method to test all six pairwise differences of the four μ j’s. Let α = 0.05. (Note: SSTOT = 2056.10, SSTR = 1709.60, and SSB = 193.53; Q.05,4,27 = 4.34.) 13.2.9. Heart rates were monitored (11) for six tree shrews (Tupaia glis) during three different stages of sleep: LSWS (light slow-wave sleep), DSWS (deep slow-wave sleep), and REM (rapid-eye-movement sleep).

628 Chapter 13 Randomized Block Designs

Heart Rates (beats/5 seconds)

Tree Shrew LSWS DSWS REM

1 14.1 11.7 15.7 2 26.0 21.1 21.5 3 20.9 19.7 18.3 4 19.0 18.2 17.0 5 26.1 23.2 22.5 6 20.5 20.7 18.9

(a) Do the analysis of variance to test the equality of the heart rates during these three phases of sleep. Let α = 0.05. (b) Because of the marked physiological difference be- tween REM sleep and LSWS and DSWS sleep, it was de- cided before the data were collected to test the REM rate against the average of the other two. Test the appropriate subhypothesis with a contrast. Use the 0.05 level of signif- icance. Also, find a second contrast orthogonal to the first and verify that the sum of the sum of squares for the two contrasts equals SSTR.

13.2.10. For a set of randomized block data comparing k treatments within b blocks, find

(a) E(SSB)

(b) E(SSE)

13.2.11. Prove the computing formulas given in Equa- tions 13.2.2, 13.2.3, and 13.2.4.

13.2.12. Differentiate the function

L = b∑

i=1

k∑ j=1

(yi j − βi − μ j)2

with respect to all bk parameters and calculate the least squares estimates for the βi’s and μ j’s.

13.2.13. True or false:

(a) b∑

i=1 Y i. =

k∑ j=1

Y . j

(b) Either MSTR or MSB or both are greater than or equal to MSE.

13.3 The Paired t Test The randomized block design is typically used when three or more treatment levels are to be compared within a set of b blocks. If an experiment involves b blocks but only two treatment levels, the ANOVA described in Table 13.2.2 can still be used, but a computationally simpler (and equivalent) approach is to do a paired t test. The latter has the additional advantage in that it shows more clearly how the use of blocks can facilitate the comparison of treatments.

By definition, a “pair” represents a more or less constant set of conditions under which one measurement can be made on Treatment X and one measurement on Treatment Y . Paired data, then, consist of measurements taken on Treatment X and Treatment Y within each of b pairs. In effect, the paired t test pools the treatment response differences within each pair from pair to pair.

Recall page 432. The two observations recorded for the ith pair can be written Xi = μX + Pi + εi

and Yi = μY + Pi + ε′i

where

1. μX and μY are the true means associated with Treatment X and Treatment Y , respectively

and

2. Pi is the effect—that is, the numerical contribution to the measurement— resulting from the conditions defining Pair i (Pi may be positive, negative, or zero).

For the purposes of this section, it will also be assumed that εi and ε′i are independent, normally distributed random variables, each having mean zero, but with variances σ2X and σ2Y , respectively.

Section 13.3 The Paired t Test 629

Notice that Pi “disappears” when the two measurements within a pair are subtracted:

Di = μX + Pi + εi − (μY + Pi + ε′i) = μX − μY + εi − ε′i (13.3.1)

Moreover, it follows that

3. E(Di) = μD = μX − μY 4. Var(Di) = σ2D = σ2X + σ2Y

and

5. Di is normally distributed.

Equation 13.3.1 is the key to understanding how the paired-data design works. Suppose an experimenter recognizes that taking a measurement on Treatment X (under the conditions present in, say, Pair i) will result in a possibly sizeable Pi being included in the observation. Since the actual magnitude of Pi is unknown, its presence complicates the interpretation of what the observed measurement is telling us about the effect of Treatment X . What the experimenter should do in that situation is take a measurement on Treatment Y under the same conditions that prevailed for the mea- surement on Treatment X . That measurement, then, will also include the component Pi, but if the two observations are subtracted, Equation 13.3.1 shows that the resulting difference (1) will be free of Pi and (2) will be an estimate for μD = μX −μY . In effect, the paired-data design allows for the comparison of Treatment X and Treatment Y to be made unencumbered by whatever differences might exist in the experimental environment. (A more specific example of this important idea will be described at length in Section 13.4.)

Since μD = μX − μY , testing H0: μD = 0 is equivalent to testing H0: μX = μY . The procedure for doing the former is known as a paired t test. The statistic for testing H0: μD = 0 is a special case of Theorem 7.3.5. If Di = Xi − Yi, i = 1, 2, . . . , b, is a set of within-pair treatment differences, where D and SD denote the sample mean and sample standard deviation of the Di’s, respectively, then

D − μD SD/

√ b

will have a Student t distribution with b − 1 degrees of freedom.

Theorem 13.3.1

Let d1, d2, . . . , db be a random sample of within-pair treatment differences from a normal distribution whose mean is μD. Let d and sD denote the sample mean and sample standard deviation of the di’s, and define t = d/(sD/

√ b).

a. To test H0: μD = 0 versus H1: μD < 0 at the α level of significance, reject H0 if t ≤ −tα,b−1.

b. To test H0: μD = 0 versus H1: μD > 0 at the α level of significance, reject H0 if t ≥ tα,b−1.

c. To test H0: μD = 0 versus H1: μD �= 0 at the α level of significance, reject H0 if t is either (1) ≤ −tα/2,b−1 or (2) ≥ tα/2,b−1.

630 Chapter 13 Randomized Block Designs

CASE STUDY 13.3.1

Prior to the 1968 appearance of Kenneth Cooper’s book entitled Aerobics, the word did not appear in Webster’s Dictionary. Now the term is commonly un- derstood to refer to sustained exercises intended to strengthen the heart and lungs. The actual benefits of such physical activities, as well as their possible detrimental effects, have spawned a great deal of research in human physiology as it relates to exercise.

One such study (79) concerned changes in the blood, specifically in hemoglobin levels before and after a prolonged brisk walk. Hemoglobin helps red blood cells transport oxygen to tissues and then remove carbon dioxide. Given the stress that exercise places on the need for that particular exchange, it is not unreasonable to suspect that aerobics might alter the blood’s hemoglobin levels.

Ten athletes had their hemoglobin levels measured (in g/dl) prior to em- barking on a six-kilometer walk. After they finished, their levels were measured again (see Table 13.3.1). Set up and test an appropriate H0 and H1.

If μX and μY denote the true average hemoglobin levels before and after walking, respectively, and if μD = μX −μY , then the hypotheses to be tested are

H0: μD = 0 versus

H1: μD �= 0 Let 0.05 be the level of significance.

From Table 13.3.1,

10∑ i=1

di = 4.7 and 10∑

i=1 d2i = 8.17

Table 13.3.1

Subject Before Walk, xi After Walk, yi di = xi − yi A 14.6 13.8 0.8 B 17.3 15.4 1.9 C 10.9 11.3 −0.4 D 12.8 11.6 1.2 E 16.6 16.4 0.2 F 12.2 12.6 −0.4 G 11.2 11.8 −0.6 H 15.4 15.0 0.4 I 14.8 14.4 0.4 J 16.2 15.0 1.2

Therefore,

d = 1 10

(4.7) = 0.47 and

s2D = 10(8.17) − (4.7)2

10(9) = 0.662

Section 13.3 The Paired t Test 631

Since n = 10, the critical values for the test statistic will be the 2.5th and 97.5th percentiles of the Student t distribution with 9 degrees of freedom: ±t.025,9 = ±2.2622. The appropriate decision rule from Theorem 13.3.1, then, is

Reject H0: μD = 0 if d sD/

√ 10

is either

⎧⎨ ⎩

≤ −2.2622 or ≥ 2.2622

In this case the t ratio is 0.47√

0.662/ √

10 = 1.827

and our conclusion is to fail to reject H0: The difference between d(= 0.47) and the H0 value for μD(= 0) is not statistically significant.

CASE STUDY 13.3.2

There are many factors that predispose bees to sting (other than sheer orneri- ness and because it’s fun. . . ). Moving quickly or wearing fragrances or brightly colored clothes with floral patterns (you don’t want to look like a flower bed. . . ) are all behaviors that can encourage bees to become aggressive. Another contributor—one particularly important to apiarists—is whether you have just been stung. Bees release pheromones when they attack, and those pheromones can induce nearby bees to pile on.

Investigating that latter concern, a study was done (58) to see whether the influence of previous stings on future stings can be simulated. Eight cotton balls wrapped in muslin were dangled up and down in front of the opening to a hive. Four of the balls had just been exposed to a swarm of angry bees and were filled with stings; the other four were “fresh.” After a specified length of time, the number of new stings in each set of four cotton balls was counted. That entire procedure was then repeated on eight different occasions. Table 13.3.2 shows the results.

Table 13.3.2 Number of Times Stung

Cotton Balls with Trial Stings Already Present Fresh Cotton Balls di

1 27 33 −6 2 9 9 0 3 33 21 12 4 33 15 18 5 4 6 −2 6 21 16 5 7 20 19 1 8 33 15 18 9 70 10 60

d = 11.8

The nine trials here serve as blocks. The “disposition” of the hive and the bees’ willingness to sting could be quite different from trial to trial because of a variety of environmental conditions. But those “block differences” would be irrelevant because their influence will be subtracted out in di = xi − yi.

(Continued on next page)

632 Chapter 13 Randomized Block Designs

(Case Study 13.3.2 continued)

Let μX and μY denote the true average number of new stings that would be found in the cotton balls already stung and the fresh cotton balls, respectively. Define μD = μX − μY . We know from Table 13.3.2 that the sample average difference in the number of new stings, d, is 11.8. Based on that figure, what are the plausible values for the unknown μD?

Theorem 13.3.1 showed that hypothesis tests for μD in paired data are the same as hypothesis tests for μ in one-sample data. The same duality holds for confidence intervals. A 100(1 − α)% confidence interval for μD is the range of values (

d − tα/2, b−1 · SD√ b , d + tα/2,b−1 · SD√

b

) Recall Theorem 7.4.10.

Here, 9∑

i=1 di = 106 and

9∑ i=1

d2i = 4458

so sD = √

9(4458) − (106)2 9(8) = 20.0. Let α = 0.05. Then tα/2,b−1 = t.025,8 = 2.3060 and

a 95% confidence interval for μD is given by( 11.8 − 2.3060 · 20.0√

9 , 11.8 + 2.3060 · 20.0√

9

) or

(−3.6, 27.2) Note: Recall the equivalency between confidence intervals and hypothesis test- ing. Since 0 is contained in the 95% confidence interval for μD, the conclusion resulting from testing H0 : μD = 0 versus H1 : μD �= 0 at the α = .05 level of significance would be “fail to reject H0.”

THE EQUIVALENCE OF THE PAIRED t TEST AND THE RANDOMIZED BLOCK ANOVA WHEN k = 2 Example 12.2.2 showed that the analysis of variance done on a set of k-sample data when k = 2 is equivalent to a (pooled) two-sample t test of H0 : μX = μY against a two-sided alternative. Although the numerical values of the observed t and observed F will be different, as will be the locations of the two critical regions, the final infer- ence will necessarily be the same. A similar equivalence holds for the paired t test and the randomized block ANOVA (when k = 2).

Recall Case Study 13.3.1. Analyzed with a paired t test, H0 : μD = 0 should be rejected in favor of H1 : μD �= 0 at the α = 0.05 level of significance if

t ≤ −tα/2,b−1 = −t0.025,9 = −2.2622 or if t ≥ tα/2,b−1 = 2.2622 But t = d

sD/ √

10 = 1.827, so the conclusion is “fail to reject H0.”

If those same twenty observations were analyzed as a randomized block design having k = 2 treatment levels and b = 10 blocks, the resulting ANOVA table would have the entries shown in Table 13.3.3. For α = 0.05, the critical value for testing the null hypothesis that athletes’ hemoglobin levels are unaffected by their activity regimes would be

F0.95,1,9 = 5.12

Section 13.3 The Paired t Test 633

Table 13.3.3

Source df SS MS Obs.F

Activity level 1 1.1045 1.1045 3.34 Blocks 9 73.2405 8.13783 24.57 Error 9 2.9805 0.33117 Total 19 77.3255

Notice that (1) the observed F is the square of the observed t

3.34 = (1.827)2

and (2) the F critical value is the square of the t critical value

5.12 = (2.6222)2

It follows, then, that the paired t test will reject the null hypothesis that μD = 0 if and only if the randomized block ANOVA rejects the null hypothesis that the two treatment means (μX and μY ) are equal.

Questions

13.3.1. Case Study 7.5.2 compared the volatility of Global Rock Funds’ return on investments to that of the bench- mark Lipper fund. But can it be said that the returns them- selves beat the benchmark? The table below gives the annual returns of the Global Rock Fund for the years 1989 to 2007 and the corresponding Lipper averages. Test the hypothesis that μD > 0 for these data at the 0.05 level of significance.

Investment Return % Investment Return %

Global Lipper Global Lipper Year Rock, x Avg., y Year Rock, x Avg., y

1989 15.32 14.76 1999 27.43 34.44 1990 1.62 −1.91 2000 8.57 1.13 1991 28.43 20.67 2001 1.88 −3.24 1992 11.91 6.18 2002 −7.96 −8.11 1993 20.71 22.97 2003 35.98 32.57 1994 −2.15 −2.44 2004 14.27 15.37 1995 23.29 20.26 2005 10.33 11.25 1996 15.96 14.79 2006 15.94 12.70 1997 11.12 14.27 2007 16.71 9.65 1998 0.37 6.25

Note that 19∑

i=1 di = 28.17

19∑ i=1

d2i = 370.8197

13.3.2. Recall the depth perception data described in Question 8.2.6. Use a paired t test with α = 0.05 to com- pare the numbers of trials needed to learn depth percep- tion for Mothered and Unmothered lambs.

13.3.3. Recall the prothrombin time data described in Case Study 8.2.4. Set up and carry out the appropriate hypothesis test at both the α = .05 and α = .01 levels. 13.3.4. Use a paired t test to analyze the hypnosis/ESP data given in Question 13.2.1. Let α = 0.05. 13.3.5. Perform the hypothesis test indicated in Question 13.2.3 at the 0.05 level using a paired t test. Compare the square of the observed t with the observed F . Do the same for the critical values associated with the two procedures. What would you conclude?

13.3.6. Let D1, D2, . . . , Db be the within-block differ- ences as defined in this section. Assume that the Di’s are normal with mean μD and variance σ2D, for i = 1, 2, . . . , b. Derive a formula for a 100(1−α)% confidence interval for μD. Apply this formula to the data of Case Study 13.3.1 and construct a 95% confidence interval for the true average hemoglobin difference (“before walk” − “after walk”).

13.3.7. Construct a 95% confidence interval for μD in the prothrombin time data described in Question 13.3.3. See Question 13.3.6.

13.3.8. Show that the paired t test is equivalent to the F test in a randomized block design when the number of treatment levels is two. (Hint: Consider the distribution

of T 2 = bD2/S2D.) 13.3.9. Scientists can measure tracheobronchial clearance by having a subject inhale a radioactive aerosol and then later metering the radiation level in the lungs. In one

634 Chapter 13 Randomized Block Designs

experiment (22) seven pairs of monozygotic twins inhaled aerosols of radioactive Teflon particles. One mem- ber of each twin pair lived in a rural area; the other was a city dweller. The objective of the study was to see whether the data would support the popular contention that rural environments are more conducive to respiratory health than are urban environments. The table adjacent gives the percentages of radioactivity retained in the lungs of each subject 1 hr after the initial inhalation. Set up and carry out the appropriate hypothesis test. Let α = .05.

Radioactive Retention (%)

Twin Pair Rural, x Urban, y

1 10.1 28.1 2 51.8 36.2 3 33.5 40.7 4 32.8 38.8 5 69.0 71.0 6 38.9 47.0 7 54.6 57.0

13.4 Taking a Second Look at Statistics (Choosing between a Two-Sample t Test and a Paired t Test)

Suppose that the means μX and μY associated with two treatments X and Y are to be compared. Theoretically, two “design” options are available:

1. test H0: μX = μY with independent samples (using Theorem 9.2.2 or Theorem 9.2.3) or

2. test H0: μD = 0 with dependent samples (using Theorem 13.3.1). Does it make a difference which design is used? Yes. Which one is better? That depends on the nature of the subjects, and how likely they are to respond to the treatments—neither design is always superior to the other.

The two hypothetical examples described in this section illustrate the pros and cons of each approach. In the first case, the paired-data model is clearly preferable; in the second case, μX and μY should be compared using a two-sample format.

Example 13.4.1

Comparing two weight loss plans Suppose that Treatment X and Treatment Y are two diet regimens. A comparison of the two is to be done by looking at the weight losses recorded by subjects who have been using one of the two diets for a period of three months. Ten people have volunteered to be subjects. Table 13.4.1 gives the gender, age, height, and initial weight for each of the ten.

Table 13.4.1

Subject Gender Age Height Weight (in pounds)

HM M 65 5′8′′ 204 HW F 41 5′4′′ 165 JC M 23 6′0′′ 260 AF F 63 5′3′′ 207 DR F 59 5′2′′ 192 WT M 22 6′2′′ 253 SW F 19 5′1′′ 178 LT F 38 5′5′′ 170 TB M 62 5′7′′ 212 KS F 23 5′3′′ 195

Option A: Compare Diet X and Diet Y Using Independent Samples If the two-sample design is to be used, the first step would be to divide the ten subjects at random into two groups of size 5. Table 13.4.2 shows one such set of independent samples.

Section 13.4 Taking a Second Look at Statistics 635

Table 13.4.2

Diet X Diet Y

HW (F, middle-aged, slightly overweight) JC (M, young, very overweight) AF (F, elderly, very overweight) WT (M, young, very overweight) SW (F, young, very overweight) HM (M, elderly, quite overweight) TB (M, elderly, quite overweight) KS (F, young, very overweight) DR (F, elderly, very overweight) LT (F, middle-aged, slightly overweight)

Notice that each of the two samples contains individuals who are likely to respond very differently to whichever diet they are on simply because of the huge disparities in their physical profiles. Included among the subjects representing Diet X , for example, are HW and TB; HW is a slightly overweight, middle-aged female, while TB is a quite overweight, elderly male. More than likely, their weight losses after three months will be considerably different.

If some of the subjects in Diet X lose relatively few pounds (which will proba- bly be the case for HW) while others record sizeable reductions (which is likely to happen for AF, SW, and DR, all of whom are initially very overweight), the effect will be to inflate the numerical value of s2X . Similarly, the value of s

2 Y will be inflated

by the inherent differences among the subjects in Diet Y . Now, recall the formula for the two-sample t statistic,

t = x − y sp

√ 1/n + 1/m

If s2X and s 2 Y are large, sp will also be large. But if sp (in the denominator of the t ratio)

is very large, the t statistic itself may be fairly small even if x − y is substantially different from zero—that is, the considerable variation within the samples has the potential to “obscure” the variation between the samples (as measured by x − y). In effect, H0: μX = μY might not be rejected (when it should be) only because the variation from subject to subject is so large.

Option B: Compare Diet X and Diet Y Using Dependent Samples The same differ- ences from subject to subject that undermine the two-sample t test provide some obvious criteria for setting up a paired t test. Table 13.4.3 shows a grouping into five pairs of the ten subjects profiled in Table 13.4.2, where the two members of each pair are as similar as possible with respect to the amount of weight they are likely to lose: for example, Pair 2 (JC, WT) is comprised of two very overweight, young males. In the terminology of Equation 13.3.1, the P2 that measures the subject effect of persons fitting that description will be present in the weight losses reported by both JC and WT. When their responses are subtracted, d2 = x2 − y2 will, in effect, be free of the subject effect and will be a more precise estimate of the intrinsic difference between the two diets. It follows that differences between the pairs—no matter how

Table 13.4.3

Pair Characteristics

(HW, LT) Female, middle-aged, slightly overweight (JC, WT) Male, young, very overweight (SW, KS) Female, young, very overweight (HM, TB) Male, elderly, quite overweight (AF, DR) Female, elderly, very overweight

636 Chapter 13 Randomized Block Designs

sizeable those differences may be—are irrelevant because the comparisons of Diet X and Diet Y (that is, the di’s) are made within the pairs, and then pooled from pair to pair.

The potential benefit here of using a paired-data design should be readily apparent. Recall that the paired t statistic has the form

t = d sD/

√ b

= x − y sD/

√ b

(13.4.1)

For the reasons just cited, sD/ √

5 is likely to be much smaller than the two-sample

sp √

1 5 + 15 , thus reducing the likelihood that the paired t test’s denominator will “wash

out” its numerator.

Example 13.4.2

Comparing two eye surgery techniques Suppose the ten subjects profiled in Table 13.4.2 are all nearsighted and have volunteered to participate in a clinical trial com- paring two laser surgery techniques. The basic plan is to use Surgery X on five of the subjects, and Surgery Y on the other five. A month later, each participant will be asked to rate (on a scale of 0 to 100) his or her satisfaction with the operation.

Option A: Compare Surgery X and Surgery Y Using Independent Samples Unlike the situation encountered in the diet study, none of the information recorded on the volunteers (gender, age, height, weight) has any bearing on the measurements to be recorded here: a very overweight, young male is no more or no less likely to be satisfied with corrective eye surgery than is a slightly overweight, middle-aged female. That being the case, there is no way to group the ten subjects into five pairs in such a way that the two members of a pair are uniquely similar in terms of how they are likely to respond to the satisfaction question.

To compare Surgery X and Surgery Y , then, using the two-sample format, we would simply divide the ten subjects—at random—into two groups of size 5, and choose between H0: μX = μY and H1: μX �= μY on the basis of the two-sample t statistic, which would have 8 (= n + m − 2 = 5 + 5 − 2) degrees of freedom. Option B: Compare Surgery X and Surgery Y Using Dependent Samples Given the absence of any objective criteria for linking one subject with another in any meaning- ful way, the pairs would have to be formed at random. Doing that would have some serious negative consequences that would definitely argue against using the paired- data format. Suppose, for example, HW was paired with LT, as was the case in the diet study. Since the information in Table 13.4.2 has nothing to do with a person’s reaction to eye surgery, subtracting LT’s response from HW’s response would not eliminate the “subject” effect as it did in the diet study, because the “personal” contribution of LT to the observed x could be entirely different than the “personal” contribu- tion of HW to the observed y. In general, the within-pair differences—di = xi − yi, i = 1, 2, . . . , 5—would still reflect the subject effects, so the value of sD would not be reduced (relative to sp) as it was in the diet study.

Is a lack of reduction in the magnitude of sD a serious problem? Yes, because the paired-data format intentionally sacrifices degrees of freedom for the express purpose of reducing sD. If the latter does not occur, those degrees of freedom are wasted. Here, given a total of ten subjects, a two-sample t test would have 8 degrees of freedom (= n+m−2 = 5+5−2); a paired t test would have 4 degrees of freedom (= b − 1 = 5 − 1). When a t test has fewer degrees of freedom, the critical values for a given level of significance move farther away from zero, which means that the test with the smaller number of degrees of freedom will have a greater probability of committing a Type II error.

Section 13.4 Taking a Second Look at Statistics 637

Table 13.4.4

α tα/2,4 tα/2,8

0.10 2.1318 1.8595 0.05 2.7764 2.3060 0.01 4.6041 3.3554

Table 13.4.4 shows a comparison of the two-sided critical values for t ratios with 4 degrees of freedom and with 8 degrees of freedom for α equal to either 0.10, 0.05, or 0.01. Clearly, the same value of x − y that would reject H0: μX = μY with a t test having 8 df may not be large enough to reject H0: μD = 0 with a t test having 4 df.

Chapte r

14Nonparametric Statistics CHAPTER OUTLINE

14.1 Introduction 14.2 The Sign Test 14.3 Wilcoxon Tests 14.4 The Kruskal-Wallis

Test 14.5 The Friedman Test 14.6 Testing for

Randomness 14.7 Taking a Second

Look at Statistics (Comparing Parametric and Nonparametric Procedures)

0

k = –0.63 k = –14 pn

1.0 Power

0.8

0.6

0.4

0.2

0 1 2 3 4

0

k = –0.63 k = –14 pn

1.0 Power

0.8

0.6

0.4

0.2

0 1 2 3 4

0

k = –0.63 k = 24 pn

1.0 Power

0.8

0.6

0.4

0.2

0 1 2 3 4

Critical to the justification of replacing a parametric test with a nonparametric test is a comparison of the power functions for the two procedures. The figures above illustrate the types of information that researchers have compiled–shown are the power functions of the one-sample t test (solid line) and the sign test (dashed lines) for three different sets of hypotheses, various degrees of nonnormality, a sample size of 10, and a level of significance of 0.05. (The parameter ρn measures the shift from H0 to H1; κ3 and κ4 measure the extent of nonnormality in the sampled population.)

14.1 INTRODUCTION Behind every confidence interval and hypothesis test we have studied thus far have been very specific assumptions about the nature of the pdf that the data presum- ably represent. For instance, the usual Z test for proportions—H0:pX = pY versus H1:pX �= pY —is predicated on the assumption that the two samples consist of inde- pendent and identically distributed Bernoulli random variables. The most common assumption in data analysis, of course, is that each set of observations is a random

638

Section 14.2 The Sign Test 639

sample from a normal distribution. This was the condition specified in every t test and F test that we have done.

The need to make such assumptions raises an obvious question: What changes when these assumptions are not satisfied? Certainly the statistic being calculated stays the same, as do the critical values that define the rejection region. What does change, of course, is the sampling distribution of the test statistic. As a result, the actual probability of committing, say, a Type I error will not necessarily equal the nominal probability of committing a Type I error. That is, if W is the test statistic with pdf fW (w | H0) when H0 is true, and C is the critical region,

“true” α = ∫

C fW (w | H0) dw

is not necessarily equal to the “nominal” α, because fW (w | H0) is different (because of the violated assumptions) from the presumed sampling distribution of the test statistic. Moreover, there is usually no way to know the “true” functional form of fW (w | H0) when the underlying assumptions about the data have not been met.

Statisticians have sought to overcome the problem implicit in not knowing the true fW (w | H0) in two very different ways. One approach is the idea of robustness, a concept that was introduced in Section 7.4. The Monte Carlo simulations illustrated in Figure 7.4.6, for example, show that even though a set of Yi’s deviates from normality, the distribution of the t ratio,

t = Y − μ0 S/

√ n

is likely to be sufficiently close to fTn−1 (t) that the true α, for all practical purposes, is about the same as the nominal α. The one-sample t test, in other words, is often not seriously compromised when normality fails to hold.

A second way of dealing with the additional uncertainty introduced by violated assumptions is to use test statistics whose pdfs remain the same regardless of how the population sampled may change. Inference procedures having this sort of latitude are said to be nonparametric or, more appropriately, distribution free.

The number of nonparametric procedures proposed since the early 1940s has been enormous and continues to grow. It is not the intention of Chapter 14 to survey this multiplicity of techniques in any comprehensive fashion. Instead, the objective here is to introduce some of the basic methodology of nonparametric statistics in the context of problems whose “parametric” solutions have already been discussed. Included in that list will be nonparametric treatments of the paired-data problem, the one-sample location problem, and both of the analysis of variance models covered in Chapters 12 and 13.

14.2 The Sign Test Probably the simplest—and most general—of all nonparametric procedures is the sign test. Among its many applications, testing the null hypothesis that the median of a distribution is equal to some specific value is perhaps its most important.

By definition, the median, μ̃, of a continuous pdf fY (y) is the value for which P(Y ≤ μ̃) = P(Y ≥ μ̃) = 12 . Suppose a random sample of size n is taken from fY (y). If the null hypothesis H0: μ̃ = μ̃0 is true, the number of observations, X , exceeding μ̃0 is a binomial random variable with p = P(Yi ≥ μ̃0) = 12 . Moreover, E(X ) = n/2, Var(X ) = n · 12 · 12 = n/4, and X−n/2√n/4 would have approximately a standard normal distribution (by virtue of the DeMoivre-Laplace theorem), provided n is sufficiently large. Intuitively, values of X too much larger or too much smaller than n/2 would be evidence that μ̃ �= μ̃0.

640 Chapter 14 Nonparametric Statistics

Theorem 14.2.1

Let y1, y2, . . . , yn be a random sample of size n from any continuous distribution having median μ̃, where n ≥ 10. Let k denote the number of yi’s greater than μ̃0, and let z = k−n/2√

n/4 .

a. To test H0: μ̃ = μ̃0 versus H1: μ̃ > μ̃0 at the α level of significance, reject H0 if z ≥ zα.

b. To test H0: μ̃ = μ̃0 versus H1: μ̃ < μ̃0 at the α level of significance, reject H0 if z ≤ −zα.

c. To test H0: μ̃ = μ̃0 versus H1: μ̃ �= μ̃0 at the α level of significance, reject H0 if z is either (1) ≤ −zα/2 or (2) ≥ zα/2.

Comment Sign tests are designed to draw inferences about medians. If the underly- ing pdf being sampled, though, is symmetric, the median is the same as the mean, so concluding that μ̃ �= μ̃0 is equivalent to concluding that μ �= μ̃0.

CASE STUDY 14.2.1

Synovial fluid is the clear, viscid secretion that lubricates joints and tendons. Researchers have found that certain ailments can be diagnosed on the basis of a person’s synovial fluid hydrogen-ion concentration (pH). In healthy adults, the median pH for synovial fluid is 7.39. Listed in Table 14.2.1 are the pH values measured from fluids drawn from the knees of forty-three patients with arthritis (192). Does it follow from these data that synovial fluid pH can be useful in diagnosing arthritis?

Table 14.2.1

Subject Synovial Fluid pH Subject Synovial Fluid pH

HW 7.02 BG 7.34 AD 7.35 GL 7.22 TK 7.32 BP 7.32 EP 7.33 NK 7.40∗ AF 7.15 LL 6.99 LW 7.26 KC 7.10 LT 7.25 FA 7.30 DR 7.35 ML 7.21 VU 7.38 CK 7.33 SP 7.20 LW 7.28 MM 7.31 ES 7.35 DF 7.24 DD 7.24 LM 7.34 SL 7.36 AW 7.32 RM 7.09 BB 7.34 AL 7.32 TL 7.14 BV 6.95 PM 7.20 WR 7.35 JG 7.41∗ HT 7.36 DH 7.77∗ ND 6.60 ER 7.12 SJ 7.29 DP 7.45∗ BA 7.31 FF 7.28

∗Exceeds 7.39.

Section 14.2 The Sign Test 641

Let μ̃ denote the median synovial fluid pH for adults suffering from arthritis. Testing

H0: μ̃ = 7.39 versus

H1: μ̃ �= 7.39 then becomes a way of quantifying the potential usefulness of synovial fluid pH as a way of diagnosing arthritis.

By inspection, a total of k = 4 of the n = 43 yi’s exceed μ̃0 = 7.39. Let α = 0.01. The test statistic is

z = 4 − 43/2√ 43/4

= −5.34

which lies well past the left-tail critical value (= −zα/2 = −z0.005 = −2.58). It follows that H0: μ̃ = 7.39 should be rejected, a conclusion suggesting that arthritis be added to the list of ailments that can be detected by the pH of a person’s synovial fluid.

A SMALL-SAMPLE SIGN TEST

If n < 10, the decision rules given in Theorem 14.2.1 for testing H0: μ̃ = μ̃0 are inappropriate because the normal approximation is not entirely adequate. Instead, decision rules need to be determined using the exact binomial distribution.

CASE STUDY 14.2.2

Instant coffee can be formulated several different ways—freeze-drying and spray-drying being two of the most common. From a health standpoint, the most important difference from method to method is the amount of caffeine that is left as a residue. It has been shown that the median amount of caffeine left by the freeze-drying method is 3.55 grams per 100 grams of dry matter. Listed in Table 14.2.2 are the caffeine residues recorded for eight brands of coffee produced by the spray-dried method (193).

Table 14.2.2

Brand Caffeine Residue (gms/100 gms dry weight)

A 4.8 B 4.0 C 3.8 D 4.3 E 3.9 F 4.6 G 3.1 H 3.7

If μ̃ denotes the median caffeine residue characteristic of the spray-dried method, we compare the two methods by testing

H0: μ̃ = 3.55 versus

H1: μ̃ �= 3.55 (Continued on next page)

642 Chapter 14 Nonparametric Statistics

(Case Study 14.2.2 continued)

By inspection, k = 7 of the n = 8 spray-dried brands left caffeine residues in excess of μ̃0 = 3.55. Given the discrete nature of the binomial distribution, sim- ple decision rules yielding specific α values are not likely to exist, so small-sample tests of this sort are best couched in terms of P-values. Figure 14.2.1 shows the binomial pdf when n = 8 and p = 12 . Since H1 here is two-sided, the P-value associated with k = 7 is the probability that the corresponding binomial ran- dom variable would be greater than or equal to 7 plus the probability that it would be less than or equal to 1. That is,

P-value = P(X ≥ 7) + P(X ≤ 1) = P(X = 7) + P(X = 8) + P(X = 0) + P(X = 1) = 0.031250 + 0.003906 + 0.003906 + 0.031250 = 0.070

The null hypothesis, then, can be rejected for any α ≥ 0.07.

Probability Density Function

Binomial with n = 8 and p = 0.5

Critical region

x P(X = x) 0 0.003906 1 0.031250 2 0.109375 3 0.218750 4 0.273438 5 0.218750 6 0.109375 7 0.031250 8 0.003906

Figure 14.2.1

USING THE SIGN TEST FOR PAIRED DATA

Suppose a set of paired data—(x1, y1), (x2, y2), . . . , (xb, yb)—has been collected, and the within-pair differences—di = xi − yi i = 1, 2, . . . , b—have been calculated (recall Theorem 13.3.1). The sign test becomes a viable alternative to the paired t test if there is reason to believe that the di’s do not represent a random sample from a normal distribution. Let

p = P(Xi > Yi), i = 1, 2, . . . , b The null hypothesis that the xi’s and yi’s are representing distributions with the same median is equivalent to the null hypothesis H0: p = 12 .

In the analysis of paired data, the generality of the sign test becomes especially apparent. The distribution of Xi need not be the same as the distribution of Yi, nor do the distributions of Xi and Xj or Yi and Yj need to be the same. Furthermore, none of the distributions has to be symmetric, and they could all have different vari- ances. The only underlying assumption is that X and Y have continuous pdfs. The null hypothesis, of course, adds the restriction that the median of the distributions within each pair be equal.

Section 14.2 The Sign Test 643

Let U denote the number of (xi, yi) pairs for which di = xi − yi > 0. The statistic appropriate for testing H0: p = 12 is either an approximate Z ratio, U−b/2√b/4 , or the value of U itself, which has a binomial distribution with parameters b and 12 (when the null hypothesis is true). As before, the normal approximation is adequate if b ≥ 10.

CASE STUDY 14.2.3

One reason frequently cited for the mental deterioration often seen in the very elderly is the reduction in cerebral blood flow that accompanies the aging pro- cess. Addressing that concern, a study was done (5) in a nursing home to see whether cyclandelate, a drug that widens blood vessels, might be able to stimu- late cerebral circulation and retard the onset of dementia.

The drug was given to eleven subjects on a daily basis. To measure its phys- iological effect, radioactive tracers were used to determine each subject’s mean circulation time (MCT) at the start of the experiment and four months later, when the regimen was discontinued. (The MCT is the length of time (in sec) it takes blood to travel from the carotid artery to the jugular vein.) Table 14.2.3 summarizes the results.

If cyclandelate has no effect on cerebral circulation, p = P(Xi > Yi) = 12 . Moreover, it seems reasonable here to discount the possibility that the drug might be harmful, which means that a one-sided alternative is warranted. To be tested, then, is

H0: p = 12 versus

H1: p > 12 where H1 is one-sided to the right because increased cerebral circulation would result in the MCT being reduced, which would produce more patients for whom xi was larger than yi.

Table 14.2.3

Subject Before, xi After, yi xi > yi?

J.B. 15 13 yes M.B. 12 8 yes A.B. 12 12.5 no M.B. 14 12 yes J.L. 13 12 yes S.M. 13 12.5 yes

⎫⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎭

u = 9 M.M. 13 12.5 yes S.McA. 12 14 no A.McL. 12.5 12 yes F.S. 12 11 yes P.W. 12.5 10 yes

As Table 14.2.3 indicates, the number of subjects showing improvement in their MCTs was u = 9 (as opposed to the H0 expected value of 5.5). Let α = 0.05. Since b = 11, the normal approximation is adequate, and H0 should be rejected if

u − b/2√ b/4

≥ zα = z0.05 = 1.64 (Continued on next page)

644 Chapter 14 Nonparametric Statistics

(Case Study 14.2.3 continued)

But

u − b/2√ b/4

= 9 − 11 2√

11 4

= 2.11

so the evidence here is fairly convincing that cyclandelate does speed up cerebral blood flow.

Questions

14.2.1. Recall the data in Question 8.2.9 giving the sizes of ten gorilla groups studied in the Congo. Is it believ- able that the true median size, μ̃, of all such groups is 9? Answer the question by finding the P-value associated with the null hypothesis H0: μ̃ = 9. Assume that H1 is two-sided. (Note: Tabulated below is the binomial pdf for the case where n = 10 and p = 12 .)

Probability Density Function

Binomial with n = 10 and p = 0.5 x P( X = x ) 0 0.000977 1 0.009766 2 0.043945 3 0.117188 4 0.205078 5 0.246094 6 0.205078 7 0.117188 8 0.043945 9 0.009766

10 0.000977

14.2.2. Test H0: μ̃ = 0.12 versus H1: μ̃ < 0.12 for the release chirp data given in Question 8.2.12. Compare the P-value associated with the large-sample test described in Theorem 14.2.1 with the exact P-value based on the bino- mial distribution.

14.2.3. Below are n = 50 computer-generated observa- tions that are presumably a random sample from the ex- ponential pdf, fY (y) = e−y, y ≥ 0. Use Theorem 14.2.1 to test whether the difference between the sample median for these yi’s (= 0.604) and the true median of fY (y) is statistically significant. Let α = 0.05.

0.27187 0.46495 0.19368 0.80433 1.25450 0.62962 1.88300 1.31951 2.53918 1.21187 0.95834 0.49017 0.87230 0.88571 1.41717 1.75994 0.60280 2.19654 0.00594 4.11127 0.24130 0.16473 0.08178 1.01424 0.60511 0.87973 0.06127 0.24758 0.54407 0.05267 0.75210 0.13538 0.42956 0.02261 1.20378 1.09271 1.88705 0.17500 0.50194 0.52122 0.02915 0.27348 0.08916 0.72997 0.37185 0.06500 1.47721 4.02733 0.64003 0.05603

14.2.4. Let Y1,Y2, . . . ,Y22 be a random sample of nor- mally distributed random variables with an unknown mean μ and a known variance of 6.0. We wish to test

H0: μ = 10 versus

H1: μ > 10

Construct a large-sample sign test having a Type I error probability of 0.05. What will the power of the test be if μ = 11? 14.2.5. Suppose that n = 7 paired observations, (Xi,Yi), are recorded, i = 1, 2, . . . , 7. Let p = P(Yi > Xi). Write out the entire probability distribution for Y+, the num- ber of positive differences among the set of Yi − Xi’s, i = 1, 2, . . . , 7, assuming that p = 12 . What α levels are possible for testing H0: p = 12 versus H1: p > 12 ? 14.2.6. Analyze the Shoshoni rectangle data (Case Study 7.4.2) with a sign test. Let α = 0.05. 14.2.7. Recall the FEV1/VC data described in Ques- tion 5.3.2. Test H0: μ̃ = 0.80 versus H1: μ̃ < 0.80 using a sign test. Compare this conclusion with that of a t test of H0: μ = 0.80 versus H1: μ < 0.80. Let α = 0.10. Assume that σ is unknown.

14.2.8. Do a sign test on the ESP data in Question 13.2.1. Define H1 to be one-sided, and let α = 0.05. 14.2.9. In a marketing research test, twenty-eight adult males were asked to shave one side of their face with one brand of razor blade and the other side with a second brand. They were to use the blades for seven days and then decide which was giving the smoother shave. Suppose that nineteen of the subjects preferred blade A. Use a sign test to determine whether it can be claimed, at the 0.05 level, that the difference in preferences is statistically significant.

14.2.10. Suppose that a random sample of size 36, Y1,Y2, . . . ,Y36, is drawn from a uniform pdf defined over the interval (0, θ), where θ is unknown. Set up a large- sample sign test for deciding whether or not the 25th per- centile of the Y -distribution is equal to 6. Let α = 0.05. With what probability will your procedure commit a Type II error if 7 is the true 25th percentile?

14.2.11. Use a small-sample sign test to analyze the aer- obics data given in Case Study 13.3.1. Use the binominal distribution displayed in Question 14.2.1. Let α = 0.05. Does your conclusion agree with the inference drawn from the paired t test?

Section 14.3 Wilcoxon Tests 645

14.3 Wilcoxon Tests Although the sign test is a bona fide nonparametric procedure, its extreme simplicity makes it somewhat atypical. The Wilcoxon signed rank test introduced in this section is more representative of nonparametric procedures as a whole. Like the sign test, it can be adapted to several different data structures. It can be used, for instance, as a one-sample test for location, where it becomes an alternative to the t test. It can also be applied to paired data, and with only minor modifications it can become a two-sample test for location and a two-sample test for dispersion (provided the two populations have equal locations).

TESTING H0: μ = μ0 Let y1, y2, . . . , yn be a set of independent observations drawn from the pdfs fY1 (y), fY2 (y), . . . , fYn (y), respectively, all of which are continuous and symmetric (but not necessarily the same). Let μ denote the (common) mean of the fYi (y)’s. We wish to test

H0: μ = μ0 versus

H1: μ �= μ0 where μ0 is some prespecified value for μ.

For an application of this sort, the signed rank test is based on the magnitudes, and directions, of the deviations of the yi’s from μ0. Let |y1 − μ0|, |y2 − μ0|, . . . , |yn − μ0| be the set of absolute deviations of the yi’s from μ0. These can be ordered from smallest to largest, and we can define ri to be the rank of |yi − μ0|, where the smallest absolute deviation is assigned a rank of 1, the second smallest a rank of 2, and so on, up to n. If two or more observations are tied, each is assigned the average of the ranks they would have otherwise received.

Associated with each ri will be a sign indicator, zi, where

zi = {

0 if yi − μ0 < 0 1 if yi − μ0 > 0

The Wilcoxon signed rank statistic, w, is defined to be the linear combination

w = n∑

i=1 rizi

That is, w is the sum of the ranks associated with the positive deviations (from μ0). If H0 is true, the sum of the ranks of the positive deviations should be roughly the same as the sum of the ranks of the negative deviations.

To illustrate this terminology, consider the case where n = 3 and y1 = 6.0, y2 = 4.9, and y3 = 11.2. Suppose the objective is to test

H0: μ = 10.0 versus

H1: μ �= 10.0 Note that |y1 − μ0| = 4.0, |y2 − μ0| = 5.1, and |y3 − μ0| = 1.2. Since 1.2 < 4.0 < 5.1, it follows that r1 = 2, r2 = 3, and r3 = 1. Also, z1 = 0, z2 = 0, and z3 = 1. Combining the ri’s and the zi’s we have that

w = n∑

i=1 rizi

= (0)(2) + (0)(3) + (1)(1) = 1

646 Chapter 14 Nonparametric Statistics

Comment Notice that w is based on the ranks of the deviations from μ0 and not on the deviations themselves. For this example, the value of w would remain unchanged if y2 were 4.9, 3.6, or −10, 000. In each case, r2 would be 3 and z2 would be 0. If the test statistic did depend on the magnitude of the deviations, it would have been necessary to specify a particular distribution for fY (y), and the resulting procedure would no longer be nonparametric.

Theorem 14.3.1

Let y1, y2, . . . , yn be a set of independent observations drawn, respectively, from the continuous and symmetric (but not necessarily identical) pdfs fYi (y), i = 1, 2, . . . , n. Suppose that each of the fYi (y)’s has the same mean μ. If H0: μ = μ0 is true, the pdf of the data’s signed rank statistic, pW (w), is given by

pW (w) = P(W = w) = (

1 2n

) · c(w)

where c(w) is the coefficient of ewt in the expansion of n∏

i=1

( 1 + eit)

Proof The statement and proof of Theorem 14.3.1 are typical of many nonpara- metric results. Closed-form expressions for sampling distributions are seldom pos- sible: The combinatorial nature of nonparametric test statistics lends itself more readily to a generating function format.

To begin, note that if H0 is true, the distribution of the signed rank statistic is

equivalent to the distribution of U = n∑

i=1 Ui, where

Ui = {

0 with probability 12 i with probability 12

Therefore, W and U have the same moment-generating function. Since the data are presumed to be a random sample, the Ui’s are independent random variables, and from Theorem 3.12.3,

MU (t) = MW (t)

= n∏

i=1 MUi (t)

= n∏

i=1 E

( eUit

)

= n∏

i=1

( 1 2

eot + 1 2

eit )

= (

1 2n

) n∏ i=1

( 1 + eit) (14.3.1)

Now, consider the structure of pW (w), the pdf for the signed rank statistic. In the formation of w, r1 can be prefixed by either a plus sign or zero; similarly for r2, r3, . . . , and rn. It follows that since each ri can take on two different values, the total number of ways to “construct” signed rank sums is 2n. Under H0, of course, all of those scenarios are equally likely, so the pdf for the signed rank statistic must necessarily have the form

pW (w) = P(W = w) = c(w)2n (14.3.2)

Section 14.3 Wilcoxon Tests 647

where c(w) is the number of ways to assign pluses and zeros to the first n integers

so that n∑

i=1 rizi has the value w.

The conclusion of Theorem 14.3.1 follows immediately by comparing the form of pW (w) to Equation 14.3.1 and to the general expression for a moment- generating function. By definition,

MW (t) = E ( eWt

) = n(n+1)/2∑ w=1

ewt pW (w)

but from Equations 14.3.1 and 14.3.2 we can write

n(n+1)/2∑ w=1

ewt pW (w) = (

1 2n

) n∏ i=1

( 1 + eit) = n(n+1)/2∑

w=1 ewt · c(w)

2n

It follows that c(w) must be the coefficient of ewt in the expansion of n∏

i=1 (1 + eit),

and the theorem is proved.

CALCULATING PW(w)

A numerical example will help clarify the statement of Theorem 14.3.1. Suppose n = 4. By Equation 14.3.1, the moment-generating function for the signed rank statistic is the product

MW (t) = (

1 + et 2

)( 1 + e2t

2

) ( 1 + e3t

2

) ( 1 + e4t

2

)

= (

1 16

) { 1 + et + e2t + 2e3t + 2e4t + 2e5t + 2e6t + 2e7t + e8t + e9t + e10t}

Thus, the probability that W equals, say, 2 is 116 (since the coefficient of e 2t is 1); the

probability thatW equals 7 is 216 ; and so on. The first two columns of Table 14.3.1 show the complete probability distribution of W , as given by the expansion of MW (t). The last column enumerates the particular assignments of pluses and zeros that generate each possible value w.

TABLES OF THE CDF, FW(w)

Cumulative tail area probabilities,

P (W ≤ w∗1) = w∗1∑

w = 0 pW (w) and P (W ≥ w∗2) =

n(n+1)/2∑ w = w∗2

pW (w)

are listed in Table A.6 of the Appendix for sample sizes ranging from n = 4 to n = 12. (Note: The smallest possible value for w is 0, and the largest possible value is the sum of the first n integers, n(n + 1)/2.) Based on these probabilities, decision rules for testing H0: μ = μ0 can be easily constructed. For example, suppose n = 7 and we wish to test

H0: μ = μ0 versus

H1: μ �= μ0

648 Chapter 14 Nonparametric Statistics

Table 14.3.1 Probability Distribution of W

ri

w pW (w) = P(W = w) 1 2 3 4

0 1 16

0 0 0 0

1 1 16

+ 0 0 0

2 1 16

0 + 0 0

3 2 16

{+ + 0 0 0 0 + 0

}

4 2 16

{+ 0 + 0 0 0 0 +

}

5 2 16

{+ 0 0 + 0 + + 0

}

6 2 16

{+ + + 0 0 + 0 +

}

7 2 16

{+ + 0 + 0 0 + +

}

8 1 16

+ 0 + +

9 1 16

0 + + +

10 1 16

+ + + +

1

at the α = 0.05 level of significance. The critical region would be the set of w values less than or equal to 2 or greater than or equal to 26—that is, C = {w: w ≤ 2 or w ≥ 26}. That particular choice of C follows by inspection of Table A.6, because∑

w∈C pW (w) = 0.023 + 0.023 .= 0.05

CASE STUDY 14.3.1

Swell sharks (Cephaloscyllium ventriosum) are small, reef-dwelling sharks that inhabit the California coastal waters south of Monterey Bay. There is a second population of these fish living nearby in the vicinity of Catalina Island, but it has been hypothesized that the two populations never mix. In between Santa Catalina and the mainland is a deep basin, which, according to the “separation” hypothesis, is an inpenetrable barrier for these particular fish (71).

One way to test this theory would be to compare the morphology of sharks caught in the two regions. If there were no mixing, we would expect a certain number of differences to have evolved. Table 14.3.2 lists the total length (TL), the height of the first dorsal fin (HDI), and the ratio TL/HDI for ten male swell sharks caught near Santa Catalina.

Section 14.3 Wilcoxon Tests 649

Table 14.3.2 Measurements Made on Ten Sharks Caught Near Santa Catalina

Total Length (mm) Height of First Dorsal Fin (mm) TL/HDI

906 68 13.32 875 67 13.06 771 55 14.02 700 59 11.86 869 64 13.58 895 65 13.77 662 49 13.51 750 52 14.42 794 55 14.44 787 51 15.43

It has been estimated on the basis of past data that the true average TL/HDI ratio for male swell sharks caught off the coast is 14.60. Is that figure consistent with the data of Table 14.3.2? In more formal terms, if μ denotes the true mean TL/HDI ratio for the Santa Catalina population, can we reject H0: μ = 14.60, and thereby lend support to the separation theory?

Table 14.3.3 gives the values of TL/HDI (= yi), yi−14.60, |yi − 14.60|, ri, zi, and rizi for the ten Santa Catalina sharks. Recall that when two or more numbers being ranked are equal, each is assigned the average of the ranks they would otherwise have received; here, |y6 − 14.60| and |y10 − 14.60| are both competing for ranks for 4 and 5, so each is assigned a rank of 4.5 [= (4 + 5)/2].

Table 14.3.3 Computations for Wilcoxon Signed Rank Test

TL/HDI (= yi) yi − 14.60 |yi − 14.60| ri zi rizi 13.32 −1.28 1.28 8 0 0 13.06 −1.54 1.54 9 0 0 14.02 −0.58 0.58 3 0 0 11.86 −2.74 2.74 10 0 0 13.58 −1.02 1.02 6 0 0 13.77 −0.83 0.83 4.5 0 0 13.51 −1.09 1.09 7 0 0 14.42 −0.18 0.18 2 0 0 14.44 −0.16 0.16 1 0 0 15.43 +0.83 0.83 4.5 1 4.5

Summing the last column of Table 14.3.3, we see that w = 4.5. According to Table A.6 in the Appendix, the α = 0.05 decision rule for testing

H0: μ = 14.60 versus

H1: μ �= 14.60 requires that H0 be rejected if w is either less than or equal to 8 or greater than or equal to 47. (Why is the alternative hypothesis two-sided here?) (Note: The exact level of significance associated with C = {w: w ≤ 8 or w ≥ 47} is 0.024+0.024 = 0.048.) Thus we should reject H0, since the observed w was less than 8. These particular data, then, would support the separation hypothesis.

(Continued on next page)

650 Chapter 14 Nonparametric Statistics

(Case Study 14.3.1 continued)

About the Data If data came equipped with alarm bells, the measurements in Table 14.3.3 would be ringing up a storm. The cause for concern is the fact that the yi’s being analyzed are the quotients of random variables (TL/HDI). A quotient can be difficult to interpret. If its value is unusually large, for example, does that imply that the numerator is unusually large or that the denominator is unusually small, or both? And what does an “average” value for a quotient imply?

Also troublesome is the fact that distributions of quotients sometimes vio- late critical assumptions that we typically take for granted. Here, for example, both TL and HDI might conceivably be normally distributed. If they were in- dependent standard normal random variables (the simplest possible case), their quotient Q = TL/HDI would have a Cauchy distribution with pdf

fQ(q) = 1 π(1 + q2) ,−∞ < q < ∞

Although harmless looking, fQ(q) has some highly undesirable properties: nei- ther its mean nor its variance is finite. Moreover, it does not obey the Central Limit Theorem—the average of a random sample from a Cauchy distribution,

Q = 1 n

(Q1 + Q2 + · · · + Qn) has the same distribution as any single observation, Qi [see (100)]. Making mat- ters worse, the data in Table 14.3.3 do not even represent the simplest case of a quotient of normal random variables—here the means and variances of both TL and HDI are unknown, and the two random variables may not be independent.

For all these reasons, using a nonparametric procedure on these data is clearly indicated, and the Wilcoxon signed rank test is a good choice (because the assumptions of continuity and symmetry are likely to be satisfied). The broader lesson, though, for experimenters to learn from this example is to think twice— maybe three times—before taking data in the form of quotients.

Questions

14.3.1. The average energy expenditures for eight elderly women were estimated on the basis of information received from a battery-powered heart rate monitor that each subject wore. Two overall averages were calculated

Average Daily Energy Expenditures (kcal)

Subject Summer, xi Winter, yi

1 1458 1424 2 1353 1501 3 2209 1495 4 1804 1739 5 1912 2031 6 1366 934 7 1598 1401 8 1406 1339

for each woman, one for the summer months and one for the winter months (164), as shown in the following table. Let μD denote the location difference between the sum- mer and winter energy expenditure populations. Compute yi − xi, i = 1, 2, . . . , 8, and use the Wilcoxon signed rank procedure to test

H0: μD = 0 versus

H1: μD �= 0 Let α = 0.15. 14.3.2. Use the expansion of

n∏ i=1

( 1 + eit)

to find the pdf of W when n = 5. What α levels are avail- able for testing H0: μ̃ = μ̃0 versus H1: μ̃ > μ̃0?

Section 14.3 Wilcoxon Tests 651

A LARGE-SAMPLE WILCOXON SIGNED RANK TEST

The usefulness of Table A.6 in the Appendix for testing H0: μ = μ0 is limited to sample sizes less than or equal to 12. For larger n, an approximate signed rank test can be constructed, using E(W) and Var(W) to define an approximate Z ratio.

Theorem 14.3.2

When H0: μ = μ0 is true, the mean and variance of the Wilcoxon signed rank statis- tic, W, are given by

E(W) = n(n + 1) 4

and

Var(W) = n(n + 1)(2n + 1) 24

Also, for n > 12, the distribution of

W − [n(n + 1)]/4√ [n (n + 1)(2n + 1)]/24

can be adequately approximated by the standard normal pdf, fZ(z).

Proof We will derive E(W) and Var(W); for a proof of the asymptotic normality,

see (88). Recall that W has the same distribution as U = n∑

i=1 Ui, where

Ui = {

0 with probability 12 i with probability 12

Therefore,

E(W) = E (

n∑ i=1

Ui

) =

n∑ i=1

E(Ui)

= n∑

i=1

( 0 · 1

2 + i · 1

2

) =

n∑ i=1

i 2

= n(n + 1) 4

Similarly,

Var(W) = Var(U) = n∑

i=1 Var(Ui)

since the Ui’s are independent. But

Var(Ui) = E ( U 2i

) − [E(Ui)]2 = i

2

2 −

( i 2

)2 = i

2

4

making

Var(W) = n∑

i=1

i2

4 =

( 1 4

) [ n(n + 1)(2n + 1)

6

]

= n(n + 1)(2n + 1) 24

652 Chapter 14 Nonparametric Statistics

Theorem 14.3.3

Let w be the signed rank statistic based on n independent observations, each drawn from a continuous and symmetric pdf, where n > 12. Let

z = w − [n(n + 1)]/4√ [n(n + 1)(2n + 1)]/24

a. To test H0: μ = μ0 versus H1: μ > μ0 at the α level of significance, reject H0 if z ≥ zα.

b. To test H0: μ = μ0 versus H1: μ < μ0 at the α level of significance, reject H0 if z ≤ −zα.

c. To test H0: μ = μ0 versus H1: μ �= μ0 at the α level of significance, reject H0 if z is either (1) ≤ −zα/2 or (2) ≥ zα/2.

CASE STUDY 14.3.2

Cyclazocine, along with methadone, are two of the drugs widely used in the treat- ment of heroin addiction. Some years ago, a study was done (151) to evaluate the effectiveness of the former in reducing a person’s psychological dependence on heroin. The subjects were fourteen males, all chronic addicts. Each was asked a battery of questions that compared his feelings when he was using heroin to his feelings when he was “clean.” The resultant Q-scores ranged from a possible minimum of 11 to a possible maximum of 55, as shown in Table 14.3.4. (From the way the questions were worded, higher scores represented less psychological dependence.)

The shape of the histogram for these data suggests that a normality assump- tion may not be warranted—the weaker assumption of symmetry is more believ- able. That said, a case can be made for using a signed rank test on these data, rather than a one-sample t test.

Table 14.3.4 Q-Scores of Heroin Addicts after Cyclazocine Therapy

51 43 53 45 43 27 36 21 55 26 55 22 39 43

20

4 4 4

2

30 40 50 60 Q-Score

The mean score for addicts not given cyclazocine is known from past expe- rience to be 28. Can we conclude on the basis of the data in Table 14.3.4 that cyclazocine is an effective treatment?

Since high Q-scores represent less dependence on heroin (and assuming cyclazocine would not tend to worsen an addict’s condition), the alternative hypothesis should be one-sided to the right. That is, we want to test

H0: μ = 28 versus

H1: μ > 28

Let α be 0.05.

Section 14.3 Wilcoxon Tests 653

Table 14.3.5 details the computations showing that the signed rank statistic, w—that is, the sum of the rizi column—equals 95.0. Since n = 14, E(W) = [14(14 + 1)]/4 = 52.5 and Var(W) = [14(14 + 1)(28 + 1)]/24 = 253.75, so the approximate Z ratio is

z = 95.0 − 52.5√ 253.75

= 2.67

Table 14.3.5 Computations to Find w

Q-Score, yi (yi − 28) |yi − 28| ri zi rizi 51 +23 23 11 1 11 53 +25 25 12 1 12 43 +15 15 8 1 8 36 +8 8 5 1 5 55 +27 27 13.5 1 13.5 55 +27 27 13.5 1 13.5 39 +11 11 6 1 6 43 +15 15 8 1 8 45 +17 17 10 1 10 27 −1 1 1 0 0 21 −7 7 4 0 0 26 −2 2 2 0 0 22 −6 6 3 0 0 43 +15 15 8 1 8

95.0

The latter considerably exceeds the one-sided 0.05 critical value identified in part (a) of Theorem 14.3.3 (= z0.05 = 1.64), so the appropriate conclusion is to reject H0. It would appear that cyclazocine therapy is helpful in reducing heroin dependence.

TESTING H0 : μD = 0 (PAIRED DATA) A Wilcoxon signed rank test can also be used on paired data to test H0: μD = 0, where μD = μX −μY (recall Section 13.3). Suppose that responses to two treatment levels (X and Y) are recorded within each of n pairs. Let di = xi −yi be the response difference recorded for Treatment X and Treatment Y within the ith pair, and let ri be the rank of |xi − yi| in the set |x1 − y1|, |x2 − y2|, . . . , |xn − yn|. Define

zi = {

1 if xi − yi > 0 0 if xi − yi < 0

and let w = n∑

i=1 rizi.

If n < 12, critical values for testing H0: μD = 0 are gotten from Table A.6 in the Appendix in exactly the same way that decision rules were determined for using the signed rank test on H0: μ = μ0. If n > 12, an approximate Z test for H0: μD = 0 can be carried out using the formulas given in Theorem 14.3.2.

654 Chapter 14 Nonparametric Statistics

CASE STUDY 14.3.3

Until recently, all evaluations of college courses and instructors have been done in class using questionnaires that were filled out in pencil. But as administrators well know, tabulating those results and typing the students’ written comments (to preserve anonymity) take up a considerable amount of secretarial time. To expedite that process, some schools have considered doing evaluations online. Not all faculty support such a change, though, because of their suspicion that online evaluations might result in lower ratings (which, in turn, would affect their chances for reappointment, tenure, or promotion).

To investigate the merits of that concern, one university (111) did a pilot study where a small number of instructors had their courses evaluated online. Those same teachers had taught the same course the previous year and had been evaluated the usual way in class. Table 14.3.6 shows a portion of the results. The numbers listed are the responses on a 1- to 5-point scale (“5” being the best) to the question “Overall Rating of the Instructor.” Here, xi and yi denote the ith instructor’s ratings “in-class” and “online,” respectively.

To test H0: μD = 0 versus H1: μD �= 0, where μD = μX −μY , at the α = 0.05 level of significance requires that H0 be rejected if the approximate Z ratio in Theorem 14.3.2 is either (1) ≤ −1.96 or (2) ≥ +1.96. But

z = w − [n(n + 1)/4]√ [n(n + 1)(2n + 1)]/24 =

70 − [15(16)/4]√ [15(16)(31)]/24

= 0.57

so the appropriate conclusion is to “fail to reject H0.” The results in Table 14.3.6 are entirely consistent, in other words, with the hypothesis that the mode of evaluation—in-class or online—has no bearing on an instructor’s rating.

Table 14.3.6

Obs. # Instr. In-Class, xi Online, yi |xi − yi| ri zi rizi 1 EF 4.67 4.36 0.31 7 1 7 2 LC 3.50 3.64 0.14 3 0 0 3 AM 3.50 4.00 0.50 11 0 0 4 CH 3.88 3.26 0.62 12 1 12 5 DW 3.94 4.06 0.12 2 0 0 6 CA 4.88 4.58 0.30 6 1 6 7 MP 4.00 3.52 0.48 10 1 10 8 CP 4.40 3.66 0.74 13 1 13 9 RR 4.41 4.43 0.02 1 0 0

10 TB 4.11 4.28 0.17 4 0 0 11 GS 3.45 4.25 0.80 15 0 0 12 HT 4.29 4.00 0.29 5 1 5 13 DW 4.25 5.00 0.75 14 0 0 14 FE 4.18 3.85 0.33 8 1 8 15 WD 4.65 4.18 0.47 9 1 9

w = 70

About the Data Theoretically, the fact that all of the in-class evaluations were done first poses some problems for the interpretation of the ratings in Table 14.3.6. If instructors tend to receive higher (or lower) ratings on successive attempts to teach the same course, then the differences xi − yi would be biased by a time effect. However, when instructors have already taught a course several

Section 14.3 Wilcoxon Tests 655

times (which was true for the faculty included in Table 14.3.6), experience has shown that trends in future attempts are not what tend to happen—instead, ratings go up and down, seemingly at random.

TESTING H0 : μX = μY (THE WILCOXON RANK SUM TEST) Another redefinition of the statistic w = ∑

i rizi allows ranks to be used as a way of

testing the two-sample hypothesis, H0: μX = μY , where μX and μY are the means of two continuous distributions, fX (x) and fY (y). It will be assumed that fX (x) and fY (y) have the same shape and the same standard deviation, but they may differ with respect to location—that is, Y = X − c, for some constant c. When those restrictions are met, the Wilcoxon rank sum test can appropriately be used as a nonparametric alternative to the pooled two-sample t test.

Let x1, x2, . . . , xn and yn+1, yn+2, . . . , yn+m be two independent random samples of sizes n and m from fX (x) and fY (y), respectively. Define ri to be the rank of the ith observation in the combined sample (so ri ranges from 1 for the smallest observation to n + m for the largest observation).

Let

zi = {

1 if the ith observation came from fX (x) 0 if the ith observation came from fY (y)

and define

w′ = n+m∑ i=1

rizi

Here, w′ denotes the sum of the ranks in the combined sample of the n observations coming from fX (x). Clearly, w′ is capable of distinguishing between H0 and H1. If, for example, fX (x) has shifted to the right of fY (y), the sum of the ranks of the x observations would tend to be larger than if fX (x) and fY (y) had the same location.

For small values of n and m, critical values for w′ have been tabulated [see, for example, (89)]. When n and m both exceed 10, a normal approximation can be used.

Theorem 14.3.4

Let x1, x2, . . . , xn and yn+1, yn+2, . . . , yn+m be two independent random samples from fX (x) and fY (y), respectively, where the two pdfs are the same except for a possible shift in location. Let ri denote the rank of the ith observation in the com- bined sample (where the smallest observation is assigned a rank of 1 and the largest observation a rank of n + m). Let

w′ = n+m∑ i=1

rizi

where zi is 1 if the ith observation comes from fX (x) and 0, otherwise. Then

E(W ′) = n(n + m + 1) 2

Var(W ′) = nm(n + m + 1) 12

and W ′ − n(n + m + 1)/2√

nm(n + m + 1)/12 has approximately a standard normal pdf if n > 10 and m > 10.

Proof See (109).

656 Chapter 14 Nonparametric Statistics

CASE STUDY 14.3.4

In Major League Baseball, American League teams have the option of using a “designated hitter” to bat for a particular position player, typically the pitcher. In the National League, no such substitutions are allowed, and every player must bat for himself (or be removed from the game). As a result, batting and base- running strategies employed by National League managers are much different than those used by their American League counterparts. What is not so obvious is whether those differences in how games are played have any demonstrable effect on how long it takes games to be played.

Table 14.3.7. shows the average home-game completion time (in minutes) reported by the twenty-six Major League teams for the 1992 season. The American League average was 173.5 minutes; the National League aver- age, 165.8 minutes. Is the difference between those two averages statistically significant?

Table 14.3.7

Obs. # Team Time (min) ri zi rizi

1 Baltimore 177 21 1 21 2 Boston 177 21 1 21 3 California 165 7.5 1 7.5 4 Chicago (AL) 172 14.5 1 14.5 5 Cleveland 172 14.5 1 14.5 6 Detroit 179 24.5 1 24.5 7 Kansas City 163 5 1 5 8 Milwaukee 175 18 1 18 9 Minnesota 166 9.5 1 9.5

10 New York (AL) 182 26 1 26 11 Oakland 177 21 1 21 12 Seattle 168 12.5 1 12.5 13 Texas 179 24.5 1 24.5 14 Toronto 177 21 1 21 15 Atlanta 166 9.5 0 0 16 Chicago (NL) 154 1 0 0 17 Cincinnati 159 2 0 0 18 Houston 168 12.5 0 0 19 Los Angeles 174 16.5 0 0 20 Montreal 174 16.5 0 0 21 New York (NL) 177 21 0 0 22 Philadelphia 167 11 0 0 23 Pittsburgh 165 7.5 0 0 24 San Diego 161 3.5 0 0 25 San Francisco 164 6 0 0 26 St. Louis 161 3.5 0 0

w′ = 240.5

The entry at the bottom of the last column is the sum of the ranks of the

American League times—that is, w′ = 26∑

i=1 rizi = 240.5. Since the American

League and National League had n = 14 and m = 12 teams, respectively, in 1992, the formulas in Theorem 14.3.3 give

E(W ′) = 14(14 + 12 + 1) 2

= 189

Section 14.3 Wilcoxon Tests 657

and

Var(W ′) = 14 · 12(14 + 12 + 1) 12

= 378

The approximate Z statistic, then, is:

z = w ′ − E(W ′)√ Var(W ′)

= 240.5 − 189√ 378

= 2.65

At the α = 0.05 level, the critical values for testing H0: μX = μY versus H1: μX �= μY would be ±1.96. The conclusion, then, is to reject H0—the difference between 173.5 and 165.8 is statistically significant.

(Note: When two or more observations are tied, they are each assigned the average of the ranks they would have received had they been slightly different. There were five observations that equaled 177, and they were competing for the ranks 19, 20, 21, 22, and 23. Each, then, received the corresponding average value of 21.)

Questions

14.3.3. Two manufacturing processes are available for annealing a certain kind of copper tubing, the primary difference being in the temperature required. The criti- cal response variable is the resulting tensile strength. To compare the methods, fifteen pieces of tubing were bro- ken into pairs. One piece from each pair was randomly selected to be annealed at a moderate temperature, the other piece at a high temperature. The resulting tensile strengths (in tons/sq in.) are listed in the following table. Analyze these data with a Wilcoxon signed rank test. Use a two-sided alternative. Let α = 0.05.

Tensile Strengths (tons/sq in.)

Moderate High Pair Temperature Temperature

1 16.5 16.9 2 17.6 17.2 3 16.9 17.0 4 15.8 16.1 5 18.4 18.2 6 17.5 17.7 7 17.6 17.9 8 16.1 16.0 9 16.8 17.3

10 15.8 16.1 11 16.8 16.5 12 17.3 17.6 13 18.1 18.4 14 17.9 17.2 15 16.4 16.5

14.3.4. To measure the effect on coordination associated with mild intoxication, thirteen subjects were each given 15.7 mL of ethyl alcohol per square meter of body sur- face area and asked to write a certain phrase as many times as they could in the space of one minute (127). The number of correctly written letters was then counted and scaled, with a scale value of 0 representing the score a sub- ject not under the influence of alcohol would be expected to achieve. Negative scores indicate decreased writing speeds; positive scores, increased writing speeds. Use the signed rank test to determine whether the level of alcohol provided in this study had any effect on writing speed. Let α = 0.05. Omit Subject 8 from your calculations.

Subject Score Subject Score

1 −6 8 0 2 10 9 −7 3 9 10 5 4 −8 11 −9 5 −6 12 −10 6 −2 13 −2 7 20

14.3.5. Test H0: μ̃ = 0.80 versus H1: μ̃ < 0.80 for the FEV1/VC ratio data of Question 5.3.2 using a Wilcoxon signed rank test. Let α = 0.10. Compare this test to the sign test of Question 14.2.7.

14.3.6. Do a Wilcoxon signed rank test on the hemoglobin data summarized in Case Study 13.3.1. Let α be 0.05. Compare your conclusion with the outcome of the sign test done in Question 14.2.11.

658 Chapter 14 Nonparametric Statistics

14.3.7. Suppose that the population being sampled is symmetric and we wish to test H0: μ̃ = μ̃0. Both the sign test and the signed rank test would be valid. Which procedure, if either, would you expect to have greater power? Why?

14.3.8. Use a signed rank test to analyze the depth per- ception data given in Question 8.2.6. Let α = 0.05.

14.3.9. Recall Question 9.2.6. Compare the ages at death for authors noted for alcohol abuse with the ages at death for authors not noted for alcohol abuse using a Wilcoxon rank sum test. Let α = 0.05. 14.3.10. Use a large-sample Wilcoxon rank sum test to analyze the alpha wave data summarized in Table 9.3.1. Let α = 0.05.

14.4 The Kruskal-Wallis Test The next two sections of this chapter discuss the nonparametric counterparts for the two analysis of variance models introduced in Chapters 12 and 13. Neither of these procedures, the Kruskal-Wallis test and the Friedman test, will be derived. We will simply state the procedures and illustrate them with examples.

First, we consider the k-sample problem. Suppose that k(≥ 2) independent ran- dom samples of sizes n1, n2, . . . , nk are drawn, representing k continuous populations having the same shape but possibly different locations: fY1 (y − c1) = fY2 (y − c2) = . . . = fYk (y − ck), for constants c1, c2, . . . , ck. The objective is to test whether the locations of the fYj (y)’s, j = 1, 2, . . . , k, might all be the same, that is,

H0: μ1 = μ2 = . . . = μk versus

H1: not all the μ j’s are equal

The Kruskal-Wallis procedure for testing H0 is really quite simple, involving con- siderably fewer computations than the analysis of variance. The first step is to rank

the entire set of n = k∑

j=1 nj observations from smallest to largest. Then the rank sum,

R. j, is calculated for each sample. Table 14.4.1 shows the notation that will be used: It follows the same conventions as the dot notation of Chapter 12. The only difference is the addition of Ri j, the symbol for the rank corresponding to Yi j.

Table 14.4.1 Notation for Kruskal-Wallis Procedure

Treatment Level

1 2 · · · k Y11(R11) Y12(R12) Y1k(R1k) Y21(R21)

... ... · · · ...

Yn11(Rn11) Yn22(Rn22) Ynkk(Rnkk) Totals R.1 R.2 R.k

The Kruskal-Wallis statistic, B, is defined as

B = 12 n(n + 1)

k∑ j=1

R2. j n j

− 3(n + 1)

Notice how B resembles the computing formula for SSTR in the analysis of variance.

Here k∑

j=1

( R2. j/nj

) , and thus B, get larger and larger as the differences between the

population locations increase. [Recall that a similar explanation was given for SSTR

and k∑

j=1

( T 2. j/nj

) .]

Section 14.4 The Kruskal-Wallis Test 659

Theorem 14.4.1

Suppose n1, n2, . . . , nk independent observations are taken from the pdfs fY1 (y), fY2 (y), . . . , fYk (y), respectively, where the fYi (y)’s are all continuous and have the same shape. Let μi be the mean of fYi (y), i = 1, 2, . . . , k, and let R.1, R.2, . . . , R.k denote the rank sums associated with each of the k samples. If H0: μ1 = μ2 = . . . = μk is true,

B = 12 n(n + 1)

k∑ j=1

R2. j n j

− 3(n + 1)

has approximately a χ2k−1 distribution and H0 should be rejected at the α level of significance if b > χ21−α,k−1.

CASE STUDY 14.4.1

On December 1, 1969, a lottery was held in Selective Service headquarters in Washington, D.C., to determine the draft status of all nineteen-year-old males. It was the first time such a procedure had been used since World War II. Priori- ties were established according to a person’s birthday. Each of the three hundred sixty-six possible birth dates was written on a slip of paper and put into a small capsule. The capsules were then put into a large bowl, mixed, and drawn out one by one. By agreement, persons whose birthday corresponded to the first capsule drawn would have the highest draft priority; those whose birthday cor- responded to the second capsule drawn, the second highest priority, and so on. Table 14.4.2 shows the order in which the three hundred sixty-six birthdates were drawn (170). The first date was September 14 (= 001); the last, June 8 (= 366).

We can think of the observed sequence of draft priorities as ranks from 1 to 366. If the lottery was random, the distributions of those ranks for each of the months should have been approximately equal. If the lottery was not random, we would expect to see certain months having a preponderance of high ranks and other months a preponderance of low ranks.

Look at the rank totals at the bottom of Table 14.4.2. The differences from month to month are surprisingly large, ranging from a high of 7000 for March to a low of 3768 for December. Even more unexpected is the pattern in the vari- ation (see Figure 14.4.1). Are the rank totals listed in Table 14.4.2 and the rank averages pictured in Figure 14.4.1 consistent with the hypothesis that the lottery was random?

Substituting the R· j’s into the formula for B gives

b = 12 366(367)

[ (6236)2

31 + · · · + (3768)

2

31

] − 3(367)

= 25.95 By Theorem 14.4.1, B has approximately a chi square distribution with 11 degrees of freedom (when H0: μJan = μFeb = . . . = μDec is true).

Let α = 0.01. Then H0 should be rejected if b ≥ χ2.99,11 = 24.725. But b does exceed that cutoff, implying that the lottery was not random.

An even more resounding rejection of the randomness hypothesis can be gotten by dividing the twelve months into two half-years—the first, January

(Continued on next page)

660 Chapter 14 Nonparametric Statistics

(Case Study 14.4.1 continued)

through June; the second, July through December. Then the hypotheses to be tested are

H0: μ1 = μ2 versus

H1: μ1 �= μ2

Table 14.4.2 1969 Draft Lottery, Highest Priority (001) to Lowest Priority (366)

Date Jan. Feb. Mar. Apr. May June July Aug. Sept. Oct. Nov. Dec.

1 305 086 108 032 330 249 093 111 225 359 019 129 2 159 144 029 271 298 228 350 045 161 125 034 328 3 251 297 267 083 040 301 115 261 049 244 348 157 4 215 210 275 081 276 020 279 145 232 202 266 165 5 101 214 293 269 364 028 188 054 082 024 310 056 6 224 347 139 253 155 110 327 114 006 087 076 010 7 306 091 122 147 035 085 050 168 008 234 051 012 8 199 181 213 312 321 366 013 048 184 283 097 105 9 194 338 317 219 197 335 277 106 263 342 080 043

10 325 216 323 218 065 206 284 021 071 220 282 041 11 329 150 136 014 037 134 248 324 158 237 046 039 12 221 068 300 346 133 272 015 142 242 072 066 314 13 318 152 259 124 295 069 042 307 175 138 126 163 14 238 004 354 231 178 356 331 198 001 294 127 026 15 017 089 169 273 130 180 322 102 113 171 131 320 16 121 212 166 148 055 274 120 044 207 254 107 096 17 235 189 033 260 112 073 098 154 255 288 143 304 18 140 292 332 090 278 341 190 141 246 005 146 128 19 058 025 200 336 075 104 227 311 177 241 203 240 20 280 302 239 345 183 360 187 344 063 192 185 135 21 186 363 334 062 250 060 027 291 204 243 156 070 22 337 290 265 316 326 247 153 339 160 117 009 053 23 118 057 256 252 319 109 172 116 119 201 182 162 24 059 236 258 002 031 358 023 036 195 196 230 095 25 052 179 343 351 361 137 067 286 149 176 132 084 26 092 365 170 340 357 022 303 245 018 007 309 173 27 355 205 268 074 296 064 289 352 233 264 047 078 28 077 299 223 262 308 222 088 167 257 094 281 123 29 349 285 362 191 226 353 270 061 151 229 099 016 30 164 217 208 103 209 287 333 315 038 174 003 31 211 030 313 193 011 079 100

Totals: 6236 5886 7000 6110 6447 5872 5628 5377 4719 5656 4462 3768

240

200

160

183.5

120

0 J F M

A ve

ra ge

s el

ec ti

on n

um be

r

A M J J A S O N D

Average selection number = (1 + 2 + … + 366)/366 =

[ ]/366 = 183.5366(367)2

Figure 14.4.1

Section 14.4 The Kruskal-Wallis Test 661

Table 14.4.3, derived from Table 14.4.2, gives the new rank sums R.1 and R.2, associated with the two half-years. Substituting those values into the Kruskal- Wallis statistic shows that the new b (with 1 degree of freedom) is 16.85:

b = 12 366(367)

[ (37,551)2

182 + (29,610)

2

184

] − 3(367)

= 16.85

Table 14.4.3 Summary of 1969 Draft Lottery by Six- Month Periods

Jan.–June (1) July–Dec. (2)

R· j 37,551 29,610 n j 182 184

The significance of 16.85 can be gauged by recalling the moments of a chi square random variable. If B has a chi square pdf with 1 degree of freedom, then E(B) = 1 and Var(B) = 2 (see Question 7.3.2). It follows, then, that the observed b is more than 11 standard deviations away from its mean:

16.85 − 1√ 2

= 11.2

Analyzed this way, there can be little doubt that the lottery was not random!

About the Data Needless to say, the way the 1969 draft lottery turned out was a huge embarrassment for the Selective Service Administration and a public relations nightmare. Many individuals, both inside and outside the government, argued that a “do over” was the only fair resolution. Unfortunately, any course of action would have inevitably angered a sizeable number of people, so the decision was made to stay with the original lottery, flawed though it was.

A believable explanation for why the selections were so nonrandom is that (1) the birthday capsules were put into the urn by month (January capsules first, February capsules second, March capsules next, and so on) and (2) the capsules were not adequately mixed before the drawings began, leaving birthdays late in the year disproportionately near the top of the urn. If (1) and (2) happened, the trend in Figure 14.4.1 would be the consequence.

What is particularly vexing about the draft lottery debacle and all the furor that it created is that setting up a “fair” lottery is so very easy. First, the birth- day capsules should have been numbered from 1 to 366. Then a computer or a random number table should have been used to generate a random permuta- tion of those numbers. That permutation would define the order in which the capsules would be put into the urn. If those two simple steps had been followed, the likelihood of a fiasco similar to that shown in Figure 14.4.1 would have been essentially zero.

Questions

14.4.1. Use a Kruskal-Wallis test to analyze the teacher expectation data described in Question 8.2.7. Let α = 0.05. What assumptions are being made?

14.4.2. Recall the fiddler crab data given in Question 9.5.3. Use the Kruskal-Wallis test to compare the times spent waving to females by the two groups of males. Let α = 0.10.

662 Chapter 14 Nonparametric Statistics

14.4.3. Use the Kruskal-Wallis method to test at the 0.05 level that methylmercury metabolism is different for males and females in Question 9.2.8.

14.4.4. Redo the analysis of the Quintus Curtius Snod- grass/Mark Twain data in Case Study 9.2.1, this time using a nonparametric procedure.

14.4.5. Use the Kruskal-Wallis technique to test the hy- pothesis of Case Study 12.2.1 concerning the effect of smoking on heart rate.

14.4.6. A sample of ten 40-W light bulbs was taken from each of three manufacturing plants. The bulbs were burned until failure. The number of hours that each re- mained lit is listed in the following table.

Plant 1 Plant 2 Plant 3

905 1109 571 1018 1155 1346 905 835 292 886 1152 825 958 1036 676

1056 926 541 904 1029 818 856 1040 90

1070 959 2246 1006 996 104

(a) Test the hypothesis that the median lives of bulbs pro- duced at the three plants are all the same. Use the 0.05 level of significance. (b) Are the mean lives of bulbs produced at the three plants all the same? Use the analysis of variance with α = 0.05. (c) Change the observation “2246” in the third column to “1500” and redo part (a). How does this change affect the hypothesis test?

(d) Change the observation “2246” in the third column to “1500” and redo part (b). How does this change affect the hypothesis test?

14.4.7. The production of a certain organic chemical requires the addition of ammonium chloride. The man- ufacturer can conveniently obtain the ammonium chlo- ride in any one of three forms—powdered, moderately ground, and coarse. To see what effect, if any, the quality of the NH4Cl has, the manufacturer decides to run the re- action seven times with each form of ammonium chloride. The resulting yields (in pounds) are listed in the following table. Compare the yields with a Kruskal-Wallis test. Let α = 0.05.

Organic Chemical Yields (lb)

Moderately Powdered NH4Cl Ground NH4Cl Coarse NH4Cl

146 150 141 152 144 138 149 148 142 161 155 146 158 154 139 149 150 145 154 148 137

14.4.8. Show that the Kruskal-Wallis statistic, B, as de- fined in Theorem 14.4.1 can also be written

B = k∑

j=1

( n − nj

n

) Z2j

where

Zj = R. j n j

− n + 1 2√

(n + 1)(n − nj) 12nj

14.5 The Friedman Test The nonparametric analog of the analysis of variance for a randomized block design is Friedman’s test, a procedure based on within-block ranks. Its form is similar to that of the Kruskal-Wallis statistic, and, like its predecessor, it has approximately a χ2

distribution when H0 is true.

Theorem 14.5.1

Suppose k(≥ 2) treatments are ranked independently within b blocks. Let r. j , j = 1, 2, . . . , k, be the rank sum of the jth treatment. The null hypothesis that the population medians of the k treatments are all equal is rejected at the α level of significance (approximately) if

g = 12 bk(k + 1)

k∑ j=1

r2. j − 3b(k + 1) ≥ χ21−α,k−1

Section 14.5 The Friedman Test 663

CASE STUDY 14.5.1

Baseball rules allow a batter considerable leeway in how he is permitted to run from home plate to second base. Two of the possibilities are the narrow-angle and the wide-angle paths diagrammed in Figure 14.5.1. As a means of comparing the two, time trials were held involving twenty-two players (218). Each player ran both paths. Recorded for each runner was the time it took to go from a point 35 feet from home plate to a point 15 feet from second base. Based on those times, ranks (1 and 2) were assigned to each path for each player (see Table 14.5.1).

Narrow-angle Wide-angle

Figure 14.5.1

Table 14.5.1 Times (sec) Required to Round First Base

Player Narrow-Angle Rank Wide-Angle Rank

1 5.50 1 5.55 2 2 5.70 1 5.75 2 3 5.60 2 5.50 1 4 5.50 2 5.40 1 5 5.85 2 5.70 1 6 5.55 1 5.60 2 7 5.40 2 5.35 1 8 5.50 2 5.35 1 9 5.15 2 5.00 1

10 5.80 2 5.70 1 11 5.20 2 5.10 1 12 5.55 2 5.45 1 13 5.35 1 5.45 2 14 5.00 2 4.95 1 15 5.50 2 5.40 1 16 5.55 2 5.50 1 17 5.55 2 5.35 1 18 5.50 1 5.55 2 19 5.45 2 5.25 1 20 5.60 2 5.40 1 21 5.65 2 5.55 1 22 6.30 2 6.25 1

39 27

(Continued on next page)

664 Chapter 14 Nonparametric Statistics

(Case Study 14.5.1 continued)

If μ̃1 and μ̃2 denote the true median rounding times associated with the narrow-angle and wide-angle paths, respectively, the hypotheses to be tested are

H0: μ̃1 = μ̃2 versus

H1: μ̃1 �= μ̃2 Let α = 0.05. By Theorem 14.5.1, the Friedman statistic (under H0) will have approximately a χ21 distribution, and the decision rule will be

Reject H0 if g ≥ 3.84 But

g = 12 22(2)(3)

[(39)2 + (27)2] − 3(22)(3) = 6.54

implying that the two paths are not equivalent. The wide-angle path appears to enable runners to reach second base quicker.

Questions

14.5.1. The following data come from a field trial set up to assess the effects of different amounts of potash on the breaking strength of cotton fibers (28). The experiment was done in three blocks. The five treatment levels—36, 54, 72, 108, and 144 lbs of potash per acre—were assigned randomly within each block. The variable recorded was the Pressley strength index. Compare the effects of the different levels of potash applications using Friedman’s test. Let α = 0.05.

Pressley Strength Index for Cotton Fibers

Treatment (pounds of potash/acre)

36 54 72 108 144

1 7.62 8.14 7.76 7.17 7.46 Blocks 2 8.00 8.15 7.73 7.57 7.68

3 7.93 7.87 7.74 7.80 7.21

14.5.2. Use Friedman’s test to analyze the Transylvania effect data given in Case Study 13.2.3.

14.5.3. Until its recent indictment as a possible carcino- gen, cyclamate was a widely used sweetener in soft drinks. The following data show a comparison of three labora- tory methods for determining the percentage of sodium cyclamate in commercially produced orange drink.

All three procedures were applied to each of twelve samples (165).

Percent Sodium Cyclamate (w/w)

Method

Sample Picryl Chloride Davies AOAC

1 0.598 0.628 0.632 2 0.614 0.628 0.630 3 0.600 0.600 0.622 4 0.580 0.612 0.584 5 0.596 0.600 0.650 6 0.592 0.628 0.606 7 0.616 0.628 0.644 8 0.614 0.644 0.644 9 0.604 0.644 0.624

10 0.608 0.612 0.619 11 0.602 0.628 0.632 12 0.614 0.644 0.616

Use Friedman’s test to determine whether the differences from method to method are statistically significant. Let α = 0.05. 14.5.4. Use Friedman’s test to compare the effects of habi- tat density on cockroach aggression for the data given in Question 8.2.4. Let α = 0.05. Would the conclusion be any different if the densities were compared using the analysis of variance?

Section 14.6 Testing for Randomness 665

14.5.5. Compare the acrophobia therapies described in Case Study 13.2.2 using the Friedman test. Let α = 0.01. Does your conclusion agree with the inference reached using the analysis of variance?

14.5.6. Suppose that k treatments are to be applied within each of b blocks. Let r.. denote the average of the bk ranks

and let r. j = (1/b)r. j. Show that the Friedman statistic given in Theorem 14.5.1 can also be written

g = 12b k(k + 1)

k∑ j=1

( r. j − r..

)2 What analysis of variance expression does this resemble?

14.6 Testing for Randomness All hypothesis tests, parametric as well as nonparametric, make the implicit assump- tion that the observations comprising a given sample are random, meaning that the value of yi does not predispose the value of y j. Should that not be the case, identi- fying the source of the nonrandomness—and doing whatever it takes to eliminate it from future observations—necessarily becomes the experimenter’s first objective.

Examples of nonrandomness are not uncommon in industrial settings, where suc- cessive measurements made on a particular piece of equipment may show a trend, for example, if the machine is slowly slipping out of calibration. The other extreme— where measurements show a nonrandom alternating pattern (high value, low value, high value, low value, . . .)—can occur if successive measurements are made by two different operators, whose standards or abilities are markedly different, or, perhaps, by one operator using two different machines.

A variety of tests based on runs of one sort or another can be used to examine the randomness of a sequence of measurements. One of the most useful is a test based on the total number of “runs up and down.”

Suppose that y1, y2, . . . , yn denotes a set of n time-ordered measurements. Let sgn(yi −yi−1) denote the algebraic sign of the difference yi −yi−1. (It will be assumed that the yi’s represent a continuous random variable, so the probability of yi and yi−1 being equal is zero.) The n observations, then, produce an ordered arrangement of n − 1 pluses and/or minuses representing the signs of the differences between consecutive measurements (see Figure 14.6.1).

Data: y1 y2 y3 . . . yn-1 yn

sgn(y2 y1)- sgn(y3 y2)- sgn(yn )- yn-1

Figure 14.6.1

For example, the n = 5 observations 14.2 10.6 11.2 12.1 9.3

generate the “sgn” sequence

− + + − which corresponds to an initial run down (that is, going from 14.2 to 10.6), followed by two runs up, and ending with a final run down.

Let W denote the total number of runs up and down, as reflected by the se- quence sgn(y2 − y1), sgn(y3 − y2), . . . , sgn(yn − yn−1). For the example just cited, W = 3. In general, if W is too large or too small, it can be concluded that the yi’s are not random. The appropriate decision rule derives from an approximate Z ratio.

666 Chapter 14 Nonparametric Statistics

Theorem 14.6.1

Let W denote the number of runs up and down in a sequence of n observations, where n > 2. If the sequence is random, then

a. E(W) = 2n−13 b. Var(W) = 16n−2990

and

c. W−E(W)√ Var(W)

.= Z, when n ≥ 20.

Proof See (133) and (216).

CASE STUDY 14.6.1

The first widespread labor dispute in the United States occurred in 1877. Rail- roads were the target, and workers were idled from Pittsburgh to San Francisco. That initial confrontation may have been a long time coming, but organizers were quick to recognize what a powerful weapon a work stoppage could be— 36,757 more strikes were called between 1881 and 1905!

For that twenty-five-year period, Table 14.6.1 shows the annual numbers of strikes that were called and the percentages that were deemed successful (34). By definition, a strike was considered “successful” if most or all of the workers’ demands were met.

Table 14.6.1

Year Number of Strikes % Successful, yi sgn(yi − yi−1) 1881 451 61 − 1882 454 53 + 1883 478 58 − 1884 443 51 + 1885 645 52 − 1886 1432 34 + 1887 1436 45 + 1888 906 52 − 1889 1075 46 + 1890 1833 52 − 1891 1717 37 + 1892 1298 39 + 1893 1305 50 −

⎫⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎬ ⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎭

w = 18 1894 1349 38 + 1895 1215 55 + 1896 1026 59 − 1897 1078 57 + 1898 1056 64 + 1899 1797 73 − 1900 1779 46 + 1901 2924 48 − 1902 3161 47 − 1903 3494 40 − 1904 2307 35 + 1905 2077 40

Section 14.6 Testing for Randomness 667

An obvious question suggested by the nature of these data is whether the workers’ successes from year to year were random. One plausible hypothesis would be that the percentages of successful strikes should show a trend and tend to increase, as unions acquired more and more power. On the other hand, it could be argued that years of high success rates might tend to alternate with years of low success rates, indicating a kind of labor and management standoff. Still another hypothesis, of course, would be that the percentages show no pat- terns whatsoever and qualify as a random sequence.

The last column shows the calculation of sgn(yi − yi−1) for i = 2, 3, . . . , 25. By inspection, the number of runs up and down in that sequence of pluses and minuses is eighteen. To test

H0: The yi’s are random with respect to the number of runs up and down

versus

H1: The yi’s are not random with respect to the number of runs up and down

at the α = 0.05 level of significance, we should reject the null hypothesis if w−E(W)√

Var(W) is either (1) ≤ −zα/2 = −1.96 or (2) ≥ zα/2 = 1.96. Given that n = 25,

E(W) = 2(25) − 1 3

= 16.3 and

Var(W) = 16(25) − 29 90

= 4.12 so the observed test statistic is +0.84:

z = 18 − 16.3√ 4.12

= 0.84

Our conclusion, then, is to fail to reject H0—it is believable, in other words, that the observed sequence of runs up and down could, in fact, have come from a sample of twenty-five random observations.

About the Data Another hypothesis suggested by these data is that the percent- age of successful strikes might vary inversely with the number of strikes: As the latter increased, the number of “frivolous” disputes might also have increased, which could understandably lead to a lower percentage of successful resolutions. In point of fact, that explanation does appear to have some merit. A linear fit of the twenty-five observations yields the equation

% successful = 56.17 − 0.0047 · number of strikes and the null hypothesis H0: β1 = 0 is rejected at the α = 0.05 level of significance.

Questions

14.6.1. The data in the table examine the relationship between stock market changes (1) during the first few days in January and (2) over the course of the entire year. Included are the years from 1950 through 1986.

(a) Use Theorem 14.6.1 to test the randomness of the January changes (relative to the number of runs up and down). Let α = 0.05. (b) Use Theorem 14.6.1 to test the randomness of the annual changes. Let α = 0.05.

668 Chapter 14 Nonparametric Statistics

% Change for First 5 Days in % Change

Year Jan., x for Year, y

1950 2.0 21.8 1951 2.3 16.5 1952 0.6 11.8 1953 −0.9 −6.6 1954 0.5 45.0 1955 −1.8 26.4 1956 −2.1 2.6 1957 −0.9 −14.3 1958 2.5 38.1 1959 0.3 8.5 1960 −0.7 −3.0 1961 1.2 23.1 1962 −3.4 −11.8 1963 2.6 18.9 1964 1.3 13.0 1965 0.7 9.1 1966 0.8 −13.1 1967 3.1 20.1 1968 0.2 7.7 1969 −2.9 −11.4 1970 0.7 0.1 1971 0.0 10.8 1972 1.4 15.6 1973 1.5 −17.4 1974 −1.5 −29.7 1975 2.2 31.5 1976 4.9 19.1 1977 −2.3 −11.5 1978 −4.6 1.1 1979 2.8 12.3 1980 0.9 25.8 1981 −2.0 −9.7 1982 −2.4 14.8 1983 3.2 17.3 1984 2.4 1.4 1985 −1.9 26.3 1986 −1.6 14.6

14.6.2. Listed below for two consecutive fiscal years are the monthly numbers of passenger boardings at a Florida airport. Use Theorem 14.6.1 to test whether these

Passenger Passenger Month Boardings Month Boardings

July 41,388 July 44,148 Aug. 44,880 Aug. 42,038 Sept. 33,556 Sept. 35,157 Oct. 34,805 Oct. 39,568 Nov. 33,025 Nov. 34,185 Dec. 34,873 Dec. 37,604 Jan. 31,330 Jan. 28,231 Feb. 30,954 Feb. 29,109 March 32,402 March 38,080 April 38,020 April 34,184 May 42,828 May 39,842 June 41,204 June 46,727

twenty-four observations can be considered a random sequence, relative to the number of runs up and down. Let α = 0.05. 14.6.3. On the next page is a partial statistical summary of the first twenty-four Super Bowls (36). Of particular in- terest to advertisers is the network share that each game garnered. Can those shares be considered a random se- quence, relative to the number of runs up and down? Test the appropriate hypothesis at the α = 0.05 level of significance.

Network Game, Winner, MVP Is Share Year Loser Score QB (network)

I Green Bay (NFL) 35 1 79 1967 Kansas City (AFL) 10 (CBS/NBC

combined) II Green Bay (NFL) 33 1 68 1968 Oakland (AFL) 14 (CBS) III NY Jets (AFL) 16 1 71 1969 Baltimore (NFL) 7 (NBC) IV Kansas City (AFL) 23 1 69 1970 Minnesota (NFL) 7 (CBS) V Baltimore (AFC) 16 0 75 1971 Dallas (NFC) 13 (NBC) VI Dallas (NFC) 24 1 74 1972 Miami (AFC) 3 (CBS) VII Miami (AFC) 14 0 72 1973 Washington (NFC) 7 (NBC) VIII Miami (AFC) 24 0 73 1974 Minnesota (NFC) 7 (CBS) IX Pittsburgh (AFC) 16 0 72 1975 Minnesota (NFC) 6 (NBC) X Pittsburgh (AFC) 21 0 78 1976 Dallas (NFC) 17 (CBS) XI Oakland (AFC) 32 0 73 1977 Minnesota (NFC) 14 (NBC) XII Dallas (NFC) 27 0 67 1978 Denver (AFC) 10 (CBS) XIII Pittsburgh (AFC) 35 1 74 1979 Dallas (NFC) 31 (NBC) XIV Pittsburgh (AFC) 31 1 67 1980 Los Angeles (AFC) 19 (CBS) XV Oakland (AFC) 27 1 63 1981 Philadelphia (NFC) 10 (NBC) XVI San Francisco (NFC) 26 1 73 1982 Cincinnati (AFC) 21 (CBS) XVII Washington (NFC) 27 0 69 1983 Miami (AFC) 17 (NBC) XVIII LA Raiders (AFC) 38 0 71 1984 Washington (NFC) 9 (CBS) XIX San Francisco (NFC) 38 1 63 1985 Miami (AFC) 16 (ABC) XX Chicago (NFC) 46 0 70 1986 New England (AFC) 10 (NBC) XXI NY Giants (NFC) 39 1 66 1987 Denver (AFC) 20 (CBS) XXII Washington (NFC) 42 1 62 1988 Denver (AFC) 10 (ABC) XXIII San Francisco (NFC) 20 0 68

Section 14.7 Taking a Second Look at Statistics 669

Network Game, Winner, MVP Is Share Year Loser Score QB (network)

1989 Cincinnati (AFC) 16 (NBC) XXIV San Francisco (NFC) 55 1 63 1990 Denver (AFC) 10 (CBS)

14.6.4. Below are the lengths (in mm) of furniture dowels recorded as part of an ongoing quality-control program. Listed are the measurements made on thirty samples (each of size 4) taken in order from the assembly line. Is the variation in the sample averages random with respect to the number of runs up and down? Do an appropriate hypothesis test at the α = 0.05 level of significance.

Sample y1 y2 y3 y4 y

1 46.1 44.4 45.3 44.2 45.0 2 46.0 45.4 42.5 44.4 44.6 3 44.3 44.0 45.4 43.9 44.4 4 44.9 43.7 45.2 44.8 44.7 5 43.0 45.3 45.9 43.8 44.5

6 46.0 43.2 44.4 43.7 44.3 7 46.0 44.6 45.4 46.4 45.6 8 46.1 45.5 45.0 45.5 45.5 9 42.8 45.1 44.9 44.3 44.3

10 45.0 46.7 43.0 44.8 44.9

11 45.5 44.5 45.1 47.1 45.6 12 45.8 44.6 44.8 45.1 45.1 13 45.1 45.4 46.0 45.4 45.5 14 44.6 43.8 44.2 43.9 44.1 15 44.8 45.5 45.2 46.2 45.4

16 45.8 44.1 43.3 45.8 44.8 17 44.1 44.8 46.1 45.5 45.1 18 44.5 43.6 45.1 46.9 45.0 19 45.2 43.1 46.3 46.4 45.3 20 45.9 46.8 46.8 45.8 46.3

21 44.0 44.7 46.2 45.4 45.1 22 43.4 44.6 45.4 44.4 44.5 23 43.1 44.6 44.5 45.8 44.5 24 46.6 43.3 45.1 44.2 44.8 25 46.2 44.9 45.3 46.0 45.6

26 42.5 43.4 44.3 42.7 43.2 27 43.4 43.3 43.4 43.5 43.4 28 42.3 42.4 46.6 42.3 43.4 29 41.9 42.9 42.0 42.9 42.4 30 43.2 43.5 42.2 44.7 43.4

14.6.5. Listed below are forty ordered computer- generated observations that presumably represent a nor- mal distribution with μ= 5 and σ = 2. Can the sample be considered random with respect to the number of runs up and down?

Obs. # yi Obs. # yi Obs. # yi Obs. # yi

1 7.0680 11 7.6979 21 5.9828 31 5.2625 2 4.0540 12 4.4338 22 1.4614 32 5.9047 3 6.6165 13 5.6538 23 9.2655 33 4.6342 4 1.2166 14 8.0791 24 4.9281 34 5.3089 5 4.6158 15 4.7458 25 10.5561 35 5.4942 6 7.7540 16 3.5044 26 6.1738 36 6.6914 7 7.7300 17 1.3071 27 5.4895 37 1.4380 8 6.5109 18 5.7893 28 3.6629 38 8.2604 9 3.8933 19 4.5241 29 3.7223 39 5.0209

10 2.7533 20 5.3291 30 3.5211 40 0.5544

14.6.6. Sunnydale Farms markets an all-purpose fertilizer that is supposed to contain, by weight, 15% potash (K2O). Samples were taken daily in October from three bags chosen at random as they came off the filling machine. Tabulated on the right are the K2O percentages recorded. Calculate the range (= ymax − ymin) for each sample. Use Theorem 14.6.1 to test whether the variation in the ranges can be considered random with respect to the number of runs up and down.

Date y1 y2 y3 Date y1 y2 y3

10/1 16.1 14.4 15.3 10/15 16.3 13.3 15.3 10/2 16.0 16.4 13.5 10/16 17.4 13.8 14.3 10/3 14.3 14.0 15.4 10/17 13.5 11.0 15.4 10/4 14.8 13.1 15.2 10/18 15.6 9.2 18.9 10/5 12.0 15.4 16.4 10/19 16.3 17.6 20.5

10/8 16.4 12.3 14.2 10/22 14.3 15.6 17.0 10/9 16.9 14.2 15.8 10/23 15.4 15.3 15.4

10/10 17.2 16.0 14.9 10/24 14.3 14.4 18.6 10/11 10.6 15.3 14.9 10/25 13.9 14.9 14.0 10/12 15.0 19.2 10.0 10/26 15.2 15.5 14.2

14.7 Taking a Second Look at Statistics (Comparing Parametric and Nonparametric Procedures)

Virtually every parametric hypothesis test an experimenter might consider doing has one or more nonparametric analogs. Using two independent samples to compare the locations of two distributions, for example, can be done with a two-sample t test

670 Chapter 14 Nonparametric Statistics

or with a Wilcoxon signed rank test. Likewise, comparing k treatment levels using dependent samples can be accomplished with the (parametric) analysis of variance or with the (nonparametric) Friedman’s test. Having alternative ways to analyze the same set of data inevitably raises the same sorts of questions that surfaced in Section 13.4—which procedure should be used in a given situation, and why?

The answers to those questions are rooted in the origins of the data—that is, in the pdfs generating the samples—and what those origins imply about (1) the relative power of the parametric and nonparametric procedures and (2) the robustness of the two procedures. As we have seen, parametric procedures make assumptions about the origin of the data that are much more specific than the assumptions made by non- parametric procedures. The (pooled) two-sample t test, for example, assumes that the two sets of independent observations come from normal distributions with the same standard deviation. The Wilcoxon signed rank test, on the other hand, makes the much weaker assumption that the observations come from symmetric distributions (which, of course, include normal distributions as a special case). Moreover, each observation does not have to come from the same symmetric distribution.

In general, if the assumptions made by a parametric test are satisfied, then that procedure will be superior to any of its nonparametric analogs in the sense that its power curve will be steeper. (Recall Figure 6.4.5—if the normality assumption is met, the parametric procedure will have a power curve similar to that for Method B; the nonparametric procedure would have a power curve similar to Method A’s.)

If one or more of the parametric procedure’s assumptions are not satisfied, the distribution of its test statistic will not be exactly what it would have been had the assumptions all been met (recall Figure 7.4.5). If the differences between the “theo- retical” test statistic distribution and the “actual” test statistic distribution are consid- erable, the integrity of the parametric procedure is obviously compromised. Whether those two distributions will be considerably different depends on the robustness of the parametric procedure with respect to whichever assumptions are being violated.

Concluding this section is a set of Monte Carlo simulations that compare the one- way analysis of variance to a Kruskal-Wallis test. In each instance, the data consist of nj = 5 observations taken on each of k = 4 treatment levels. Included are simulations that focus on (1) the power of the two procedures when the normality assumption is met and (2) the robustness of the two tests when neither the normality nor the symmetry assumptions are satisfied. Each simulation is based on one hundred repli- cations, and the twenty observations generated for each replication were analyzed twice, once using the analysis of variance and again using the Kruskal-Wallis test.

Figure 14.7.1 shows the distribution of the one hundred observed F ratios when all the H0 assumptions made by the analysis of variance are satisfied—that is, five observations were taken on each of four treatment levels, where all twenty observa- tions were normally distributed with the same mean and the same standard devia- tion. Given that nj = 5, k = 4, and n = 20, there would be 3 df for Treatments and 16 df for Error (recall Figure 12.2.1). Superimposed over the histogram is the pdf for an F3,16 random variable. Clearly, the agreement between the F curve and the histogram is excellent.

Figure 14.7.2 is the analogous “H0” distribution for the Kruskal-Wallis test. The one hundred data sets analyzed were the same that gave rise to Figure 14.7.1. Super- imposed is the χ23 pdf. As predicted by Theorem 14.4.1, the distribution of observed b values is approximated very nicely by the chi square curve with 3 (= k − 1) df.

One of the advantages of nonparametric procedures is that violations of their assumptions tend to have relatively mild repercussions on the distributions of their test statistics. Figure 14.7.3 is a case in point. Shown there is a histogram of Kruskal-Wallis values calculated from one hundred data sets where each of the twenty observations (nj = 5 and k = 4) came from an exponential pdf with

Section 14.7 Taking a Second Look at Statistics 671

0 1 2 3 4 5

0.20

0.40

D en

si ty

Observed F ratio

F3, 16 pdf 0.60

Figure 14.7.1

0 2 4 6 8 10

0.10

0

0.20

D en

si ty

Observed B

x23 pdf

Figure 14.7.2

0 2 4 6 8 10

0.10

0

0.20

D en

si ty

Observed B

x23 pdf

Figure 14.7.3

672 Chapter 14 Nonparametric Statistics

λ = 1—that is, from fY (y) = e−y, y > 0. The latter is a sharply skewed pdf that violates the symmetry assumption underlying the Kruskal-Wallis test. The actual distribution of b values, though, does not appear to be much different from the values produced in Figure 14.7.2, where all the assumptions of the Kruskal-Wallis test were met.

A similar insensitivity to the data’s underlying pdf is not entirely shared by the F test. Figure 14.7.4 summarizes the results of applying the analysis of variance to the same set of one hundred replications that produced Figure 14.7.3. Notice that a handful of the data sets yielded F ratios much larger than the F3,16 curve would have predicted. Recall that a similar skewness was observed when the t test was applied to exponential data where n was small (see Figure 7.4.6b).

0 1 2 3 4 5 6 7 8

0.40

0.20

0

0.60 D

en si

ty

Observed F ratio

F3, 16 pdf

Figure 14.7.4

Having weaker assumptions and being less sensitive to violations of those assumptions are definite advantages that nonparametric procedures often have over their parametric counterparts. But that broader range of applicability does not come without a price: Nonparametric hypothesis tests will make Type II errors more often than will parametric procedures when the assumptions of the parametric procedures are satisfied.

Consider, for example, the two Monte Carlo simulations pictured in Figures 14.7.5 and 14.7.6. The former shows the results of applying the Kruskal-Wallis test to one hundred sets of k-sample data, where the five measurements representing each of the first three treatment levels came from normal distributions with μ = 0 and σ = 1, while the five measurements representing the fourth treatment level came from a normal distribution with μ = 1 and σ = 1. As expected, the distribution of observed b values has shifted to the right, compared to the H0 distribution shown in Figure 14.7.3. More specifically, 26% of the one hundred data sets produced Kruskal-Wallis values in excess of 7.815

( = χ20.95,3), meaning that H0 would have been rejected at the α = 0.05 level of significance. (If H0 were true, of course, the theoretical percentage of b values exceeding 7.815 would be 5%. Only 1% of the data sets, though, exceeded the α = 0.01 cutoff ( = χ20.99,3 = 11.345), which is the same percentage expected if H0 were true.)

Figure 14.7.6 shows the results of doing the analysis of variance on the same one hundred data sets used for Figure 14.7.5. As was true for the Kruskal-Wallis cal- culations, the distribution of observed F ratios has shifted to the right (compare Figure 14.7.6 to Figure 14.7.1). What is especially noteworthy, though, is that the

Section 14.7 Taking a Second Look at Statistics 673

0 2 4 6 8

Reject H0 at a = 0.05

7.815

12

0.10

0

0.20

D en

si ty

Observed B

10

Reject H0 at a = 0.01

11.345

x23 pdf

Figure 14.7.5

0 21 3 5 7 9 114 6 8

Reject H0 at a = 0.05

3.24

12

0.20

0

0.40

0.60

D en

si ty

Observed F ratio

10

Reject H0 at a = 0.01

5.29

F3, 16 pdf

Figure 14.7.6

observed F ratios have shifted much farther to the right than did the observed b val- ues. For example, while only 1% of the observed b values exceeded the α = 0.01 cutoff (= 11.345), a total of 8% of the observed F ratios exceeded their α = 0.01 cutoff (= F0.99,3,16).

So, is there an easy answer to the question of which type of procedure to use, parametric or nonparametric? Sometimes yes, sometimes no. If it seems reasonable to believe that all the assumptions of the parametric test are satisfied, then the para- metric test should be used. For all those situations, though, where the validity of one or more of the parametric assumptions is in question, the choice becomes more prob- lematic. If the violation of the assumptions is minimal (or if the sample sizes are fairly large), the robustness of the parametric procedures (along with their greater power) usually gives them the edge. Nonparametric tests tend to be reserved for situations where (1) sample sizes are small, and (2) there is reason to believe that “something” about the data is markedly inconsistent with the assumptions implicit in the available parametric procedures.

Appendix

AStatistical Tables A.1 Cumulative Areas under the Standard Normal

Distribution A.2 Upper Percentiles of Student t Distributions A.3 Upper and Lower Percentiles of χ2 Distributions

A.4 Percentiles of F Distributions A.5 Upper Percentiles of Studentized Range Distributions A.6 Upper and Lower Percentiles of the Wilcoxon Signed

Rank Statistic, W

674

Table A.1 Cumulative Areas under the Standard Normal Distribution

0 z

z 0 1 2 3 4 5 6 7 8 9

−3. 0.0013 0.0013 0.0013 0.0012 0.0012 0.0011 0.0011 0.0011 0.0010 0.0010 −2.9 0.0019 0.0018 0.0017 0.0017 0.0016 0.0016 0.0015 0.0015 0.0014 0.0014 −2.8 0.0026 0.0025 0.0024 0.0023 0.0023 0.0022 0.0021 0.0021 0.0020 0.0019 −2.7 0.0035 0.0034 0.0033 0.0032 0.0031 0.0030 0.0029 0.0028 0.0027 0.0026 −2.6 0.0047 0.0045 0.0044 0.0043 0.0041 0.0040 0.0039 0.0038 0.0037 0.0036 −2.5 0.0062 0.0060 0.0059 0.0057 0.0055 0.0054 0.0052 0.0051 0.0049 0.0048 −2.4 0.0082 0.0080 0.0078 0.0075 0.0073 0.0071 0.0069 0.0068 0.0066 0.0064 −2.3 0.0107 0.0104 0.0102 0.0099 0.0096 0.0094 0.0091 0.0089 0.0087 0.0084 −2.2 0.0139 0.0136 0.0132 0.0129 0.0126 0.0122 0.0119 0.0116 0.0113 0.0110 −2.1 0.0179 0.0174 0.0170 0.0166 0.0162 0.0158 0.0154 0.0150 0.0146 0.0143 −2.0 0.0228 0.0222 0.0217 0.0212 0.0207 0.0202 0.0197 0.0192 0.0188 0.0183 −1.9 0.0287 0.0281 0.0274 0.0268 0.0262 0.0256 0.0250 0.0244 0.0238 0.0233 −1.8 0.0359 0.0352 0.0344 0.0336 0.0329 0.0322 0.0314 0.0307 0.0300 0.0294 −1.7 0.0446 0.0436 0.0427 0.0418 0.0409 0.0401 0.0392 0.0384 0.0375 0.0367 −1.6 0.0548 0.0537 0.0526 0.0516 0.0505 0.0495 0.0485 0.0475 0.0465 0.0455 −1.5 0.0668 0.0655 0.0643 0.0630 0.0618 0.0606 0.0594 0.0582 0.0570 0.0559 −1.4 0.0808 0.0793 0.0778 0.0764 0.0749 0.0735 0.0722 0.0708 0.0694 0.0681 −1.3 0.0968 0.0951 0.0934 0.0918 0.0901 0.0885 0.0869 0.0853 0.0838 0.0823 −1.2 0.1151 0.1131 0.1112 0.1093 0.1075 0.1056 0.1038 0.1020 0.1003 0.0985 −1.1 0.1357 0.1335 0.1314 0.1292 0.1271 0.1251 0.1230 0.1210 0.1190 0.1170 −1.0 0.1587 0.1562 0.1539 0.1515 0.1492 0.1469 0.1446 0.1423 0.1401 0.1379 −0.9 0.1841 0.1814 0.1788 0.1762 0.1736 0.1711 0.1685 0.1660 0.1635 0.1611 −0.8 0.2119 0.2090 0.2061 0.2033 0.2005 0.1977 0.1949 0.1922 0.1894 0.1867 −0.7 0.2420 0.2389 0.2358 0.2327 0.2297 0.2266 0.2236 0.2206 0.2177 0.2148 −0.6 0.2743 0.2709 0.2676 0.2643 0.2611 0.2578 0.2546 0.2514 0.2483 0.2451 −0.5 0.3085 0.3050 0.3015 0.2981 0.2946 0.2912 0.2877 0.2843 0.2810 0.2776 −0.4 0.3446 0.3409 0.3372 0.3336 0.3300 0.3264 0.3228 0.3192 0.3156 0.3121 −0.3 0.3821 0.3783 0.3745 0.3707 0.3669 0.3632 0.3594 0.3557 0.3520 0.3483 −0.2 0.4207 0.4168 0.4129 0.4090 0.4052 0.4013 0.3974 0.3936 0.3897 0.3859 −0.1 0.4602 0.4562 0.4522 0.4483 0.4443 0.4404 0.4364 0.4325 0.4286 0.4247 −0.0 0.5000 0.4960 0.4920 0.4880 0.4840 0.4801 0.4761 0.4721 0.4681 0.4641

(cont.) 675

Table A.1 Cumulative Areas under the Standard Normal Distribution (cont.)

z 0 1 2 3 4 5 6 7 8 9 0.0 0.5000 0.5040 0.5080 0.5120 0.5160 0.5199 0.5239 0.5279 0.5319 0.5359 0.1 0.5398 0.5438 0.5478 0.5517 0.5557 0.5596 0.5636 0.5675 0.5714 0.5753 0.2 0.5793 0.5832 0.5871 0.5910 0.5948 0.5987 0.6026 0.6064 0.6103 0.6141 0.3 0.6179 0.6217 0.6255 0.6293 0.6331 0.6368 0.6406 0.6443 0.6480 0.6517 0.4 0.6554 0.6591 0.6628 0.6664 0.6700 0.6736 0.6772 0.6808 0.6844 0.6879 0.5 0.6915 0.6950 0.6985 0.7019 0.7054 0.7088 0.7123 0.7157 0.7190 0.7224 0.6 0.7257 0.7291 0.7324 0.7357 0.7389 0.7422 0.7454 0.7486 0.7517 0.7549 0.7 0.7580 0.7611 0.7642 0.7673 0.7703 0.7734 0.7764 0.7794 0.7823 0.7852 0.8 0.7881 0.7910 0.7939 0.7967 0.7995 0.8023 0.8051 0.8078 0.8106 0.8133 0.9 0.8159 0.8186 0.8212 0.8238 0.8264 0.8289 0.8315 0.8340 0.8365 0.8389 1.0 0.8413 0.8438 0.8461 0.8485 0.8508 0.8531 0.8554 0.8577 0.8599 0.8621 1.1 0.8643 0.8665 0.8686 0.8708 0.8729 0.8749 0.8770 0.8790 0.8810 0.8830 1.2 0.8849 0.8869 0.8888 0.8907 0.8925 0.8944 0.8962 0.8980 0.8997 0.9015 1.3 0.9032 0.9049 0.9066 0.9082 0.9099 0.9115 0.9131 0.9147 0.9162 0.9177 1.4 0.9192 0.9207 0.9222 0.9236 0.9251 0.9265 0.9278 0.9292 0.9306 0.9319 1.5 0.9332 0.9345 0.9357 0.9370 0.9382 0.9394 0.9406 0.9418 0.9430 0.9441 1.6 0.9452 0.9463 0.9474 0.9484 0.9495 0.9505 0.9515 0.9525 0.9535 0.9545 1.7 0.9554 0.9564 0.9573 0.9582 0.9591 0.9599 0.9608 0.9616 0.9625 0.9633 1.8 0.9641 0.9648 0.9656 0.9664 0.9671 0.9678 0.9686 0.9693 0.9700 0.9706 1.9 0.9713 0.9719 0.9726 0.9732 0.9738 0.9744 0.9750 0.9756 0.9762 0.9767 2.0 0.9772 0.9778 0.9783 0.9788 0.9793 0.9798 0.9803 0.9808 0.9812 0.9817 2.1 0.9821 0.9826 0.9830 0.9834 0.9838 0.9842 0.9846 0.9850 0.9854 0.9857 2.2 0.9861 0.9864 0.9868 0.9871 0.9874 0.9878 0.9881 0.9884 0.9887 0.9890 2.3 0.9893 0.9896 0.9898 0.9901 0.9904 0.9906 0.9909 0.9911 0.9913 0.9916 2.4 0.9918 0.9920 0.9922 0.9925 0.9927 0.9929 0.9931 0.9932 0.9934 0.9936 2.5 0.9938 0.9940 0.9941 0.9943 0.9945 0.9946 0.9948 0.9949 0.9951 0.9952 2.6 0.9953 0.9955 0.9956 0.9957 0.9959 0.9960 0.9961 0.9962 0.9963 0.9964 2.7 0.9965 0.9966 0.9967 0.9968 0.9969 0.9970 0.9971 0.9972 0.9973 0.9974 2.8 0.9974 0.9975 0.9976 0.9977 0.9977 0.9978 0.9979 0.9979 0.9980 0.9981 2.9 0.9981 0.9982 0.9982 0.9983 0.9984 0.9984 0.9985 0.9985 0.9986 0.9986 3. 0.9987 0.9987 0.9987 0.9988 0.9988 0.9989 0.9989 0.9989 0.9990 0.9990

676

Table A.2 677

Table A.2 Upper Percentiles of Student t Distributions

0 ta‚ df

Area = a

Student t distribution with df degrees of freedom

α

df 0.20 0.15 0.10 0.05 0.025 0.01 0.005 1 1.376 1.963 3.078 6.3138 12.706 31.821 63.657 2 1.061 1.386 1.886 2.9200 4.3027 6.965 9.9248 3 0.978 1.250 1.638 2.3534 3.1825 4.541 5.8409 4 0.941 1.190 1.533 2.1318 2.7764 3.747 4.6041 5 0.920 1.156 1.476 2.0150 2.5706 3.365 4.0321 6 0.906 1.134 1.440 1.9432 2.4469 3.143 3.7074 7 0.896 1.119 1.415 1.8946 2.3646 2.998 3.4995 8 0.889 1.108 1.397 1.8595 2.3060 2.896 3.3554 9 0.883 1.100 1.383 1.8331 2.2622 2.821 3.2498

10 0.879 1.093 1.372 1.8125 2.2281 2.764 3.1693 11 0.876 1.088 1.363 1.7959 2.2010 2.718 3.1058 12 0.873 1.083 1.356 1.7823 2.1788 2.681 3.0545 13 0.870 1.079 1.350 1.7709 2.1604 2.650 3.0123 14 0.868 1.076 1.345 1.7613 2.1448 2.624 2.9768 15 0.866 1.074 1.341 1.7530 2.1315 2.602 2.9467 16 0.865 1.071 1.337 1.7459 2.1199 2.583 2.9208 17 0.863 1.069 1.333 1.7396 2.1098 2.567 2.8982 18 0.862 1.067 1.330 1.7341 2.1009 2.552 2.8784 19 0.861 1.066 1.328 1.7291 2.0930 2.539 2.8609 20 0.860 1.064 1.325 1.7247 2.0860 2.528 2.8453 21 0.859 1.063 1.323 1.7207 2.0796 2.518 2.8314 22 0.858 1.061 1.321 1.7171 2.0739 2.508 2.8188 23 0.858 1.060 1.319 1.7139 2.0687 2.500 2.8073 24 0.857 1.059 1.318 1.7109 2.0639 2.492 2.7969 25 0.856 1.058 1.316 1.7081 2.0595 2.485 2.7874 26 0.856 1.058 1.315 1.7056 2.0555 2.479 2.7787 27 0.855 1.057 1.314 1.7033 2.0518 2.473 2.7707 28 0.855 1.056 1.313 1.7011 2.0484 2.467 2.7633 29 0.854 1.055 1.311 1.6991 2.0452 2.462 2.7564 30 0.854 1.055 1.310 1.6973 2.0423 2.457 2.7500 31 0.8535 1.0541 1.3095 1.6955 2.0395 2.453 2.7441 32 0.8531 1.0536 1.3086 1.6939 2.0370 2.449 2.7385 33 0.8527 1.0531 1.3078 1.6924 2.0345 2.445 2.7333 34 0.8524 1.0526 1.3070 1.6909 2.0323 2.441 2.7284

(cont.)

678 Appendix A Statistical Tables

Table A.2 Upper Percentiles of Student t Distributions (cont.)

α

df 0.20 0.15 0.10 0.05 0.025 0.01 0.005 35 0.8521 1.0521 1.3062 1.6896 2.0301 2.438 2.7239 36 0.8518 1.0516 1.3055 1.6883 2.0281 2.434 2.7195 37 0.8515 1.0512 1.3049 1.6871 2.0262 2.431 2.7155 38 0.8512 1.0508 1.3042 1.6860 2.0244 2.428 2.7116 39 0.8510 1.0504 1.3037 1.6849 2.0227 2.426 2.7079 40 0.8507 1.0501 1.3031 1.6839 2.0211 2.423 2.7045 41 0.8505 1.0498 1.3026 1.6829 2.0196 2.421 2.7012 42 0.8503 1.0494 1.3020 1.6820 2.0181 2.418 2.6981 43 0.8501 1.0491 1.3016 1.6811 2.0167 2.416 2.6952 44 0.8499 1.0488 1.3011 1.6802 2.0154 2.414 2.6923 45 0.8497 1.0485 1.3007 1.6794 2.0141 2.412 2.6896 46 0.8495 1.0483 1.3002 1.6787 2.0129 2.410 2.6870 47 0.8494 1.0480 1.2998 1.6779 2.0118 2.408 2.6846 48 0.8492 1.0478 1.2994 1.6772 2.0106 2.406 2.6822 49 0.8490 1.0476 1.2991 1.6766 2.0096 2.405 2.6800 50 0.8489 1.0473 1.2987 1.6759 2.0086 2.403 2.6778 51 0.8448 1.0471 1.2984 1.6753 2.0077 2.402 2.6758 52 0.8486 1.0469 1.2981 1.6747 2.0067 2.400 2.6738 53 0.8485 1.0467 1.2978 1.6742 2.0058 2.399 2.6719 54 0.8484 1.0465 1.2975 1.6736 2.0049 2.397 2.6700 55 0.8483 1.0463 1.2972 1.6731 2.0041 2.396 2.6683 56 0.8481 1.0461 1.2969 1.6725 2.0033 2.395 2.6666 57 0.8480 1.0460 1.2967 1.6721 2.0025 2.393 2.6650 58 0.8479 1.0458 1.2964 1.6716 2.0017 2.392 2.6633 59 0.8478 1.0457 1.2962 1.6712 2.0010 2.391 2.6618 60 0.8477 1.0455 1.2959 1.6707 2.0003 2.390 2.6603 61 0.8476 1.0454 1.2957 1.6703 1.9997 2.389 2.6590 62 0.8475 1.0452 1.2954 1.6698 1.9990 2.388 2.6576 63 0.8474 1.0451 1.2952 1.6694 1.9984 2.387 2.6563 64 0.8473 1.0449 1.2950 1.6690 1.9977 2.386 2.6549 65 0.8472 1.0448 1.2948 1.6687 1.9972 2.385 2.6537 66 0.8471 1.0447 1.2945 1.6683 1.9966 2.384 2.6525 67 0.8471 1.0446 1.2944 1.6680 1.9961 2.383 2.6513 68 0.8470 1.0444 1.2942 1.6676 1.9955 2.382 2.6501 69 0.8469 1.0443 1.2940 1.6673 1.9950 2.381 2.6491 70 0.8468 1.0442 1.2938 1.6669 1.9945 2.381 2.6480 71 0.8468 1.0441 1.2936 1.6666 1.9940 2.380 2.6470 72 0.8467 1.0440 1.2934 1.6663 1.9935 2.379 2.6459 73 0.8466 1.0439 1.2933 1.6660 1.9931 2.378 2.6450 74 0.8465 1.0438 1.2931 1.6657 1.9926 2.378 2.6640

Table A.2 679

Table A.2 Upper Percentiles of Student t Distributions (cont.)

α

df 0.20 0.15 0.10 0.05 0.025 0.01 0.005 75 0.8465 1.0437 1.2930 1.6655 1.9922 2.377 2.6431 76 0.8464 1.0436 1.2928 1.6652 1.9917 2.376 2.6421 77 0.8464 1.0435 1.2927 1.6649 1.9913 2.376 2.6413 78 0.8463 1.0434 1.2925 1.6646 1.9909 2.375 2.6406 79 0.8463 1.0433 1.2924 1.6644 1.9905 2.374 2.6396 80 0.8462 1.0432 1.2922 1.6641 1.9901 2.374 2.6388 81 0.8461 1.0431 1.2921 1.6639 1.9897 2.373 2.6380 82 0.8460 1.0430 1.2920 1.6637 1.9893 2.372 2.6372 83 0.8460 1.0430 1.2919 1.6635 1.9890 2.372 2.6365 84 0.8459 1.0429 1.2917 1.6632 1.9886 2.371 2.6357 85 0.8459 1.0428 1.2916 1.6630 1.9883 2.371 2.6350 86 0.8458 1.0427 1.2915 1.6628 1.9880 2.370 2.6343 87 0.8458 1.0427 1.2914 1.6626 1.9877 2.370 2.6336 88 0.8457 1.0426 1.2913 1.6624 1.9873 2.369 2.6329 89 0.8457 1.0426 1.2912 1.6622 1.9870 2.369 2.6323 90 0.8457 1.0425 1.2910 1.6620 1.9867 2.368 2.6316 91 0.8457 1.0424 1.2909 1.6618 1.9864 2.368 2.6310 92 0.8456 1.0423 1.2908 1.6616 1.9861 2.367 2.6303 93 0.8456 1.0423 1.2907 1.6614 1.9859 2.367 2.6298 94 0.8455 1.0422 1.2906 1.6612 1.9856 2.366 2.6292 95 0.8455 1.0422 1.2905 1.6611 1.9853 2.366 2.6286 96 0.8454 1.0421 1.2904 1.6609 1.9850 2.366 2.6280 97 0.8454 1.0421 1.2904 1.6608 1.9848 2.365 2.6275 98 0.8453 1.0420 1.2903 1.6606 1.9845 2.365 2.6270 99 0.8453 1.0419 1.2902 1.6604 1.9843 2.364 2.6265

100 0.8452 1.0418 1.2901 1.6602 1.9840 2.364 2.6260 ∞ 0.84 1.04 1.28 1.64 1.96 2.33 2.58

680 Appendix A Statistical Tables

Table A.3 Upper and Lower Percentiles of χ2 Distributions

Area = 1 – p

x distribution with df degrees of freedom

x2p, df

2

0

p

df 0.010 0.025 0.050 0.10 0.90 0.95 0.975 0.99 1 0.000157 0.000982 0.00393 0.0158 2.706 3.841 5.024 6.635 2 0.0201 0.0506 0.103 0.211 4.605 5.991 7.378 9.210 3 0.115 0.216 0.352 0.584 6.251 7.815 9.348 11.345 4 0.297 0.484 0.711 1.064 7.779 9.488 11.143 13.277 5 0.554 0.831 1.145 1.610 9.236 11.070 12.832 15.086 6 0.872 1.237 1.635 2.204 10.645 12.592 14.449 16.812 7 1.239 1.690 2.167 2.833 12.017 14.067 16.013 18.475 8 1.646 2.180 2.733 3.490 13.362 15.507 17.535 20.090 9 2.088 2.700 3.325 4.168 14.684 16.919 19.023 21.666

10 2.558 3.247 3.940 4.865 15.987 18.307 20.483 23.209 11 3.053 3.816 4.575 5.578 17.275 19.675 21.920 24.725 12 3.571 4.404 5.226 6.304 18.549 21.026 23.336 26.217 13 4.107 5.009 5.892 7.042 19.812 22.362 24.736 27.688 14 4.660 5.629 6.571 7.790 21.064 23.685 26.119 29.141 15 5.229 6.262 7.261 8.547 22.307 24.996 27.488 30.578 16 5.812 6.908 7.962 9.312 23.542 26.296 28.845 32.000 17 6.408 7.564 8.672 10.085 24.769 27.587 30.191 33.409 18 7.015 8.231 9.390 10.865 25.989 28.869 31.526 34.805 19 7.633 8.907 10.117 11.651 27.204 30.144 32.852 36.191 20 8.260 9.591 10.851 12.443 28.412 31.410 34.170 37.566 21 8.897 10.283 11.591 13.240 29.615 32.671 35.479 38.932 22 9.542 10.982 12.338 14.041 30.813 33.924 36.781 40.289 23 10.196 11.688 13.091 14.848 32.007 35.172 38.076 41.638 24 10.856 12.401 13.848 15.659 33.196 36.415 39.364 42.980 25 11.524 13.120 14.611 16.473 34.382 37.652 40.646 44.314 26 12.198 13.844 15.379 17.292 35.563 38.885 41.923 45.642 27 12.879 14.573 16.151 18.114 36.741 40.113 43.194 46.963 28 13.565 15.308 16.928 18.939 37.916 41.337 44.461 48.278 29 14.256 16.047 17.708 19.768 39.087 42.557 45.722 49.588 30 14.953 16.791 18.493 20.599 40.256 43.773 46.979 50.892 31 15.655 17.539 19.281 21.434 41.422 44.985 48.232 52.191 32 16.362 18.291 20.072 22.271 42.585 46.194 49.480 53.486 33 17.073 19.047 20.867 23.110 43.745 47.400 50.725 54.776 34 17.789 19.806 21.664 23.952 44.903 48.602 51.966 56.061

Table A.3 681

Table A.3 Upper and Lower Percentiles of χ2 Distributions (cont.)

p

df 0.010 0.025 0.050 0.10 0.90 0.95 0.975 0.99 35 18.509 20.569 22.465 24.797 46.059 49.802 53.203 57.342 36 19.233 21.336 23.269 25.643 47.212 50.998 54.437 58.619 37 19.960 22.106 24.075 26.492 48.363 52.192 55.668 59.892 38 20.691 22.878 24.884 27.343 49.513 53.384 56.895 61.162 39 21.426 23.654 25.695 28.196 50.660 54.572 58.120 62.428 40 22.164 24.433 26.509 29.051 51.805 55.758 59.342 63.691 41 22.906 25.215 27.326 29.907 52.949 56.942 60.561 64.950 42 23.650 25.999 28.144 30.765 54.090 58.124 61.777 66.206 43 24.398 26.785 28.965 31.625 55.230 59.304 62.990 67.459 44 25.148 27.575 29.787 32.487 56.369 60.481 64.201 68.709 45 25.901 28.366 30.612 33.350 57.505 61.656 65.410 69.957 46 26.657 29.160 31.439 34.215 58.641 62.830 66.617 71.201 47 27.416 29.956 32.268 35.081 59.774 64.001 67.821 72.443 48 28.177 30.755 33.098 35.949 60.907 65.171 69.023 73.683 49 28.941 31.555 33.930 36.818 62.038 66.339 70.222 74.919 50 29.707 32.357 34.764 37.689 63.167 67.505 71.420 76.154

Area = 1 – p

F distribution with m and n degrees of freedom

Fp, m, n0

The figure above illustrates the percentiles of the F distributions shown in Table A.4.

682 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

1 .0005 .0662 .0350 .0238 .0294 .016 .022 .027 .032 .036 .039 .042 .045 .0005 .001 .0525 .0210 .0260 .013 .021 .028 .034 .039 .044 .048 .051 .054 .001 .005 .0462 .0251 .018 .032 .044 .054 .062 .068 .073 .078 .082 .085 .005 .010 .0325 .010 .029 .047 .062 .073 .082 .089 .095 .100 .104 .107 .010 .025 .0215 .026 .057 .082 .100 .113 .124 .132 .139 .144 .149 .153 .025 .05 .0262 .054 .099 .130 .151 .167 .179 .188 .195 .201 .207 .211 .05 .10 .025 .117 .181 .220 .246 .265 .279 .289 .298 .304 .310 .315 .10 .25 .172 .389 .494 .553 .591 .617 .637 .650 .661 .670 .680 .684 .25 .50 1.00 1.50 1.71 1.82 1.89 1.94 1.98 2.00 2.03 2.04 2.05 2.07 .50 .75 5.83 7.50 8.20 8.58 8.82 8.98 9.10 9.19 9.26 9.32 9.36 9.41 .75 .90 39.9 49.5 53.6 55.8 57.2 58.2 58.9 59.4 59.9 60.2 60.5 60.7 .90 .95 161 200 216 225 230 234 237 239 241 242 243 244 .95 .975 648 800 864 900 922 937 948 957 963 969 973 977 .975 .99 4051 5001 5401 5621 5761 5861 5931 5981 6021 6061 6081 6111 .99 .995 1622 2002 2162 2252 2312 2342 2372 2392 2412 2422 2432 2442 .995 .999 4063 5003 5403 5623 5763 5863 5933 5983 6023 6063 6093 6113 .999 .9995 1624 2004 2164 2254 2314 2344 2374 2394 2414 2424 2434 2444 .9995

2 .0005 .0650 .0350 .0242 .011 .020 .029 .037 .044 .050 .056 .061 .065 .0005 .001 .0520 .0210 .0268 .016 .027 .037 .046 .054 .061 .067 .072 .077 .001 .005 .0450 .0250 .020 .038 .055 .069 .081 .091 .099 .106 .112 .118 .005 .01 .0320 .010 .032 .056 .075 .092 .105 .116 .125 .132 .139 .144 .01 .025 .0213 .026 .062 .094 .119 .138 .153 .165 .175 .183 .190 .196 .025 .05 .0250 .053 .105 .144 .173 .194 .211 .224 .235 .244 .251 .257 .05 .10 .020 .111 .183 .231 .265 .289 .307 .321 .333 .342 .350 .356 .10 .25 .133 .333 .439 .500 .540 .568 .588 .604 .616 .626 .633 .641 .25 .50 .667 1.00 1.13 1.21 1.25 1.28 1.30 1.32 1.33 1.34 1.35 1.36 .50 .75 2.57 3.00 3.15 3.23 3.28 3.31 3.34 3.35 3.37 3.38 3.39 3.39 .75 .90 8.53 9.00 9.16 9.24 9.29 9.33 9.35 9.37 9.38 9.39 9.40 9.41 .90 .95 18.5 19.0 19.2 19.2 19.3 19.3 19.4 19.4 19.4 19.4 19.4 19.4 .95 .975 38.5 39.0 39.2 39.2 39.3 39.3 39.4 39.4 39.4 39.4 39.4 39.4 .975 .99 98.5 99.0 99.2 99.2 99.3 99.3 99.4 99.4 99.4 99.4 99.4 99.4 .99 .995 198 199 199 199 199 199 199 199 199 199 199 199 .995 .999 998 999 999 999 999 999 999 999 999 999 999 999 .999 .9995 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 .9995

3 .0005 .0646 .0350 .0244 .012 .023 .033 .043 .052 .060 .067 .074 .079 .0005 .001 .0519 .0210 .0271 .018 .030 .042 .053 .063 .072 .079 .086 .093 .001 .005 .0446 .0250 .021 .041 .060 .077 .092 .104 .115 .124 .132 .138 .005 .01 .0319 .010 .034 .060 .083 .102 .118 .132 .143 .153 .161 .168 .01 .025 .0212 .026 .065 .100 .129 .152 .170 .185 .197 .207 .216 .224 .025 .05 .0246 .052 .108 .152 .185 .210 .230 .246 .259 .270 .279 .287 .05 .10 .019 .109 .185 .239 .276 .304 .325 .342 .356 .367 .376 .384 .10 .25 .122 .317 .424 .489 .531 .561 .582 .600 .613 .624 .633 .641 .25 .50 .585 .881 1.00 1.06 1.10 1.13 1.15 1.16 1.17 1.18 1.19 1.20 .50 .75 2.02 2.28 2.36 2.39 2.41 2.42 2.43 2.44 2.44 2.44 2.45 2.45 .75 .90 5.54 5.46 5.39 5.34 5.31 5.28 5.27 5.25 5.24 5.23 5.22 5.22 .90 .95 10.1 9.55 9.28 9.12 9.01 8.94 8.89 8.85 8.81 8.79 8.76 8.74 .95 .075 17.4 16.0 15.4 15.1 14.9 14.7 14.6 14.5 14.5 14.4 14.4 14.3 .975 .99 34.1 30.8 29.5 28.7 28.2 27.9 27.7 27.5 27.3 27.2 27.1 27.1 .99 .995 55.6 49.8 47.5 46.2 45.4 44.8 44.4 44.1 43.9 43.7 43.5 43.4 .995 .999 167 149 141 137 135 133 132 131 130 129 129 128 .999 .9995 266 237 225 218 214 211 209 208 207 206 204 204 .9995

Read .0356 as .00056, 2001 as 2000, 1624 as 1620000, etc.

Table A.4 683

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .051 .058 .062 .066 .069 .072 .074 .077 .078 .080 .081 .083 .0005 1 .001 .060 .067 .071 .075 .079 .082 .084 .087 .088 .089 .091 .092 .001 .005 .093 .101 .105 .109 .113 .116 .118 .121 .122 .124 .126 .127 .005 .01 .115 .124 .128 .132 .137 .139 .141 .145 .146 .148 .150 .151 .01 .025 .161 .170 .175 .180 .184 .187 .189 .193 .194 .196 .198 .199 .025 .05 .220 .230 .235 .240 .245 .248 .250 .254 .255 .257 .259 .261 .05 .10 .325 .336 .342 .347 .353 .356 .358 .362 .364 .366 .368 .370 .10 .25 .698 .712 .719 .727 .734 .738 .741 .747 .749 .752 .754 .756 .25 .50 2.09 2.12 2.13 2.15 2.16 2.17 2.17 2.18 2.18 2.19 2.19 2.20 .50 .75 9.49 9.58 9.63 9.67 9.71 9.74 9.76 9.78 9.80 9.82 9.84 9.85 .75 .90 61.2 61.7 62.0 62.3 62.5 62.7 62.8 63.0 63.1 63.2 63.3 63.3 .90 .95 246 248 249 250 251 252 252 253 253 254 254 254 .95 .975 985 993 997 1001 1011 1011 1011 1011 1011 1021 1021 1021 .975 .99 6161 6211 6231 6261 6291 6301 6311 6331 6341 6351 6361 6371 .99 .995 2462 2482 2492 2502 2512 2522 2532 2532 2542 2542 2542 2552 .995 .999 6163 6213 6233 6263 6293 6303 6313 6333 6343 6352 6363 6373 .999 .9995 2464 2484 2494 2504 2514 2524 2524 2534 2534 2534 2544 2544 .9995 .0005 .076 .088 .094 .101 .108 .113 .116 .122 .124 .127 .130 .132 .0005 2 .001 .088 .100 .107 .114 .121 .126 .129 .135 .137 .140 .143 .145 .001 .005 .130 .143 .150 .157 .165 .169 .173 .179 .181 .184 .187 .189 .005 .01 .157 .171 .178 .186 .193 .198 .201 .207 .209 .212 .215 .217 .01 .025 .210 .224 .232 .239 .247 .251 .255 .261 .263 .266 .269 .271 .025 .05 .272 .286 .294 .302 .309 .314 .317 .324 .326 .329 .332 .334 .05 .10 .371 .386 .394 .402 .410 .415 .418 .424 .426 .429 .433 .434 .10 .25 .657 .672 .680 .689 .697 .702 .705 .711 .713 .716 .719 .721 .25 .50 1.38 1.39 1.40 1.41 1.42 1.42 1.43 1.43 1.43 1.44 1.44 1.44 .50 .75 3.41 3.43 3.43 3.44 3.45 3.45 3.46 3.47 3.47 3.48 3.48 3.48 .75 .90 9.42 9.44 9.45 9.46 9.47 9.47 9.47 9.48 9.48 9.49 9.49 9.49 .90 .95 19.4 19.4 19.5 19.5 19.5 19.5 19.5 19.5 19.5 19.5 19.5 19.5 .95 .975 39.4 39.4 39.5 39.5 39.5 39.5 39.5 39.5 39.5 39.5 39.5 39.5 .975 .99 99.4 99.4 99.5 99.5 99.5 99.5 99.5 99.5 99.5 99.5 99.5 99.5 .99 .995 199 199 199 199 199 199 199 199 199 199 199 200 .995 .999 999 999 999 999 999 999 999 999 999 999 999 999 .999 .9995 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 2001 .9995 .0005 .093 .109 .117 .127 .136 .143 .147 .156 .158 .162 .166 .169 .0005 3 .001 .107 .123 .132 .142 .152 .158 .162 .171 .173 .177 .181 .184 .001 .005 .154 .172 .181 .191 .201 .207 .211 .220 .222 .227 .231 .234 .005 .01 .185 .203 .212 .222 .232 .238 .242 .251 .253 .258 .262 .264 .01 .025 .241 .259 .269 .279 .289 .295 .299 .308 .310 .314 .318 .321 .025 .05 .304 .323 .332 .342 .352 .358 .363 .370 .373 .377 .382 .384 .05 .10 .402 .420 .430 .439 .449 .455 .459 .467 .469 .474 .476 .480 .10 .25 .658 .675 .684 .693 .702 .708 .711 .719 .721 .724 .728 .730 .25 .50 1.21 1.23 1.23 1.24 1.25 1.25 1.25 1.26 1.26 1.26 1.27 1.27 .50 .75 2.46 2.46 2.46 2.47 2.47 2.47 2.47 2.47 2.47 2.47 2.47 2.47 .75 .90 5.20 5.18 5.18 5.17 5.16 5.15 5.15 5.14 5.14 5.14 5.14 5.13 .90 .95 8.70 8.66 8.63 8.62 8.59 8.58 8.57 8.55 8.55 8.54 8.53 8.53 .95 .975 14.3 14.2 14.1 14.1 14.0 14.0 14.0 14.0 13.9 13.9 13.9 13.9 .975 .99 26.9 26.7 26.6 26.5 26.4 26.4 26.3 26.2 26.2 26.2 26.1 26.1 .99 .995 43.1 42.8 42.6 42.5 42.3 42.2 42.1 42.0 42.0 41.9 41.9 41.8 .995 .999 127 126 126 125 125 125 124 124 124 124 124 123 .999 .9995 203 201 200 199 199 198 198 197 197 197 196 196 .9995

(cont.)

684 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

4 .0005 .0644 .0350 .0246 .013 .024 .036 .047 .057 .066 .075 .082 .089 .0005 .001 .0518 .0210 .0273 .019 .032 .046 .058 .069 .079 .089 .097 .104 .001 .005 .0444 .0250 .022 .043 .064 .083 .100 .114 .126 .137 .145 .153 .005 .01 .0318 .010 .035 .063 .088 .109 .127 .143 .156 .167 .176 .185 .01 .025 .0211 .026 .066 .104 .135 .161 .181 .198 .212 .224 .234 .243 .025 .05 .0244 .052 .110 .157 .193 .221 .243 .261 .275 .288 .298 .307 .05 .10 .018 .108 .187 .243 .284 .314 .338 .356 .371 .384 .394 .403 .10 .25 .117 .309 .418 .484 .528 .560 .583 .601 .615 .627 .637 .645 .25 .50 .549 .828 .941 1.00 1.04 1.06 1.08 1.09 1.10 1.11 1.12 1.13 .50 .75 1.81 2.00 2.05 2.06 2.07 2.08 2.08 2.08 2.08 2.08 2.08 2.08 .75 .90 4.54 4.32 4.19 4.11 4.05 4.01 3.98 3.95 3.94 3.92 3.91 3.90 .90 .95 7.71 6.94 6.59 6.39 6.26 6.16 6.09 6.04 6.00 5.96 5.94 5.91 .95 .975 12.2 10.6 9.98 9.60 9.36 9.20 9.07 8.98 8.90 8.84 8.79 8.75 .975 .99 21.2 18.0 16.7 16.0 15.5 15.2 15.0 14.8 14.7 14.5 14.4 14.4 .99 .995 31.3 26.3 24.3 23.2 22.5 22.0 21.6 21.4 21.1 21.0 20.8 20.7 .995 .999 74.1 61.2 56.2 53.4 51.7 50.5 49.7 49.0 48.5 48.0 47.7 47.4 .999 .9995 106 87.4 80.1 76.1 73.6 71.9 70.6 69.7 68.9 68.3 67.8 67.4 .9995

5 .0005 .0643 .0350 .0247 .014 .025 .038 .050 .061 .070 .081 .089 .096 .0005 .001 .0517 .0210 .0275 .019 .034 .048 .062 .074 .085 .095 .104 .112 .001 .005 .0443 .0250 .022 .045 .067 .087 .105 .120 .134 .146 .156 .165 .005 .01 .0317 .010 .035 .064 .091 .114 .134 .151 .165 .177 .188 .197 .01 .025 .0211 .025 .067 .107 .140 .167 .189 .208 .223 .236 .248 .257 .025 .05 .0243 .052 .111 .160 .198 .228 .252 .271 .287 .301 .313 .322 .05 .10 .017 .108 .188 .247 .290 .322 .347 .367 .383 .397 .408 .418 .10 .25 .113 .305 .415 .483 .528 .560 .584 .604 .618 .631 .641 .650 .25 .50 .528 .799 .907 .965 1.00 1.02 1.04 1.05 1.06 1.07 1.08 1.09 .50 .75 1.69 1.85 1.88 1.89 1.89 1.89 1.89 1.89 1.89 1.89 1.89 1.89 .75 .90 4.06 3.78 3.62 3.52 3.45 3.40 3.37 3.34 3.32 3.30 3.28 3.27 .90 .95 6.61 5.79 5.41 5.19 5.05 4.95 4.88 4.82 4.77 4.74 4.71 4.68 .95 .975 10.0 8.43 7.76 7.39 7.15 6.98 6.85 6.76 6.68 6.62 6.57 6.52 .975 .99 16.3 13.3 12.1 11.4 11.0 10.7 10.5 10.3 10.2 10.1 9.96 9.89 .99 .995 22.8 18.3 16.5 15.6 14.9 14.5 14.2 14.0 13.8 13.6 13.5 13.4 .995 .999 47.2 37.1 33.2 31.1 29.7 28.8 28.2 27.6 27.2 26.9 26.6 26.4 .999 .9995 63.6 49.8 44.4 41.5 39.7 38.5 37.6 36.9 36.4 35.9 35.6 35.2 .9995

6 .0005 .0643 .0350 .0247 .014 .026 .039 .052 .064 .075 .085 .094 .103 .0005 .001 .0517 .0210 .0275 .020 .035 .050 .064 .078 .090 .101 .111 .119 .001 .005 .0443 .0250 .022 .045 .069 .090 .109 .126 .140 .153 .164 .174 .005 .01 .0317 .010 .036 .066 .094 .118 .139 .157 .172 .186 .197 .207 .01 .025 .0211 .025 .068 .109 .143 .172 .195 .215 .231 .246 .258 .268 .025 .05 .0243 .052 .112 .162 .202 .233 .259 .279 .296 .311 .324 .334 .05 .10 .017 .107 .189 .249 .294 .327 .354 .375 .392 .406 .418 .429 .10 .25 .111 .302 .413 .481 .524 .561 .586 .606 .622 .635 .645 .654 .25 .50 .515 .780 .886 .942 .977 1.00 1.02 1.03 1.04 1.05 1.05 1.06 .50 .75 1.62 1.76 1.78 1.79 1.79 1.78 1.78 1.78 1.77 1.77 1.77 1.77 .75 .90 3.78 3.46 3.29 3.18 3.11 3.05 3.01 2.98 2.96 2.94 2.92 2.90 .90 .95 5.99 5.14 4.76 4.53 4.39 4.28 4.21 4.15 4.10 4.06 4.03 4.00 .95 .975 8.81 7.26 6.60 6.23 5.99 5.82 5.70 5.60 5.52 5.46 5.41 5.37 .975 .99 13.7 10.9 9.78 9.15 8.75 8.47 8.26 8.10 7.98 7.87 7.79 7.72 .99 .995 18.6 14.5 12.9 12.0 11.5 11.1 10.8 10.6 10.4 10.2 10.1 10.0 .995 .999 35.5 27.0 23.7 21.9 20.8 20.0 19.5 19.0 18.7 18.4 18.2 18.0 .999 .9995 46.1 34.8 30.4 28.1 26.6 25.6 24.9 24.3 23.9 23.5 23.2 23.0 .9995

Table A.4 685

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .105 .125 .135 .147 .159 .166 .172 .183 .186 .191 .196 .200 .0005 4 .001 .121 .141 .152 .163 .176 .183 .188 .200 .202 .208 .213 .217 .001 .005 .172 .193 .204 .216 .229 .237 .242 .253 .255 .260 .266 .269 .005 .01 .204 .226 .237 .249 .261 .269 .274 .285 .287 .293 .298 .301 .01 .025 .263 .284 .296 .308 .320 .327 .332 .342 .346 .351 .356 .359 .025 .05 .327 .349 .360 .372 .384 .391 .396 .407 .409 .413 .418 .422 .05 .10 .424 .445 .456 .467 .478 .485 .490 .500 .502 .508 .510 .514 .10 .25 .664 .683 .692 .702 .712 .718 .722 .731 .733 .737 .740 .743 .25 .50 1.14 1.15 1.16 1.16 1.17 1.18 1.18 1.18 1.18 1.19 1.19 1.19 .50 .75 2.08 2.08 2.08 2.08 2.08 2.08 2.08 2.08 2.08 2.08 2.08 2.08 .75 .90 3.87 3.84 3.83 3.82 3.80 3.80 3.79 3.78 3.78 3.77 3.76 3.76 .90 .95 5.86 5.80 5.77 5.75 5.72 5.70 5.69 5.66 5.66 5.65 5.64 5.63 .95 .975 8.66 8.56 8.51 8.46 8.41 8.38 8.36 8.32 8.31 8.29 8.27 8.26 .975 .99 14.2 14.0 13.9 13.8 13.7 13.7 13.7 13.6 13.6 13.5 13.5 13.5 .99 .995 20.4 20.2 20.0 19.9 19.8 19.7 19.6 19.5 19.5 19.4 19.4 19.3 .995 .999 46.8 46.1 45.8 45.4 45.1 44.9 44.7 44.5 44.4 44.3 44.1 44.0 .999 .9995 66.5 65.5 65.1 64.6 64.1 63.8 63.6 63.2 63.1 62.9 62.7 62.6 .9995 .0005 .115 .137 .150 .163 .177 .186 .192 .205 .209 .216 .222 .226 .0005 5 .001 .132 .155 .167 .181 .195 .204 .210 .223 .227 .233 .239 .244 .001 .005 .186 .210 .223 .237 .251 .260 .266 .279 .282 .288 .294 .299 .005 .01 .219 .244 .257 .270 .285 .293 .299 .312 .315 .322 .328 .331 .01 .025 .280 .304 .317 .330 .344 .353 .359 .370 .374 .380 .386 .390 .025 .05 .345 .369 .382 .395 .408 .417 .422 .432 .437 .442 .448 .452 .05 .10 .440 .463 .476 .488 .501 .508 .514 .524 .527 .532 .538 .541 .10 .25 .669 .690 .700 .711 .722 .728 .732 .741 .743 .748 .752 .755 .25 .50 1.10 1.11 1.12 1.12 1.13 1.13 1.14 1.14 1.14 1.15 1.15 1.15 .50 .75 1.89 1.88 1.88 1.88 1.88 1.88 1.87 1.87 1.87 1.87 1.87 1.87 .75 .90 3.24 3.21 3.19 3.17 3.16 3.15 3.14 3.13 3.12 3.12 3.11 3.10 .90 .95 4.62 4.56 4.53 4.50 4.46 4.44 4.43 4.41 4.40 4.39 4.37 4.36 .95 .975 6.43 6.33 6.28 6.23 6.18 6.14 6.12 6.08 6.07 6.05 6.03 6.02 .975 .99 9.72 9.55 9.47 9.38 9.29 9.24 9.20 9.13 9.11 9.08 9.04 9.02 .99 .995 13.1 12.9 12.8 12.7 12.5 12.5 12.4 12.3 12.3 12.2 12.2 12.1 .995 .999 25.9 25.4 25.1 24.9 24.6 24.4 24.3 24.1 24.1 23.9 23.8 23.8 .999 .9995 34.6 33.9 33.5 33.1 32.7 32.5 32.3 32.1 32.0 31.8 31.7 31.6 .9995 .0005 .123 .148 .162 .177 .193 .203 .210 .225 .229 .236 .244 .249 .0005 6 .001 .141 .166 .180 .195 .211 .222 .229 .243 .247 .255 .262 .267 .001 .005 .197 .224 .238 .253 .269 .279 .286 .301 .304 .312 .318 .324 .005 .01 .232 .258 .273 .288 .304 .313 .321 .334 .338 .346 .352 .357 .01 .025 .293 .320 .334 .349 .364 .375 .381 .394 .398 .405 .412 .415 .025 .05 .358 .385 .399 .413 .428 .437 .444 .457 .460 .467 .472 .476 .05 .10 .453 .478 .491 .505 .519 .526 .533 .546 .548 .556 .559 .564 .10 .25 .675 .696 .707 .718 .729 .736 .741 .751 .753 .758 .762 .765 .25 .50 1.07 1.08 1.09 1.10 1.10 1.11 1.11 1.11 1.12 1.12 1.12 1.12 .50 .75 1.76 1.76 1.75 1.75 1.75 1.75 1.74 1.74 1.74 1.74 1.74 1.74 .75 .90 2.87 2.84 2.82 2.80 2.78 2.77 2.76 2.75 2.74 2.73 2.73 2.72 .90 .95 3.94 3.87 3.84 3.81 3.77 3.75 3.74 3.71 3.70 3.69 3.68 3.67 .95 .975 5.27 5.17 5.12 5.07 5.01 4.98 4.96 4.92 4.90 4.88 4.86 4.85 .975 .99 7.56 7.40 7.31 7.23 7.14 7.09 7.06 6.99 6.97 6.93 6.90 6.88 .99 .995 9.81 9.59 9.47 9.36 9.24 9.17 9.12 9.03 9.00 8.95 8.91 8.88 .995 .999 17.6 17.1 16.9 16.7 16.4 16.3 16.2 16.0 16.0 15.9 15.8 15.7 .999 .9995 22.4 21.9 21.7 21.4 21.1 20.9 20.7 20.5 20.4 20.3 20.2 20.1 .9995

(cont.)

686 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

7 .0005 .0642 .0350 .0248 .014 .027 .040 .053 .066 .078 .088 .099 .108 .0005 .001 .0517 .0210 .0276 .020 .035 .051 .067 .081 .093 .105 .115 .125 .001 .005 .0442 .0250 .023 .046 .070 .093 .113 .130 .145 .159 .171 .181 .005 .01 .0317 .010 .036 .067 .096 .121 .143 .162 .178 .192 .205 .216 .01 .025 .0210 .025 .068 .110 .146 .176 .200 .221 .238 .253 .266 .277 .025 .05 .0242 .052 .113 .164 .205 .238 .264 .286 .304 .319 .332 .343 .05 .10 .017 .107 .190 .251 .297 .332 .359 .381 .399 .414 .427 .438 .10 .25 .110 .300 .412 .481 .528 .562 .588 .608 .624 .637 .649 .658 .25 .50 .506 .767 .871 .926 .960 .983 1.00 1.01 1.02 1.03 1.04 1.04 .50 .75 1.57 1.70 1.72 1.72 1.71 1.71 1.70 1.70 1.69 1.69 1.69 1.68 .75 .90 3.59 3.26 3.07 2.96 2.88 2.83 2.78 2.75 2.72 2.70 2.68 2.67 .90 .95 5.59 4.74 4.35 4.12 3.97 3.87 3.79 3.73 3.68 3.64 3.60 3.57 .95 .975 8.07 6.54 5.89 5.52 5.29 5.12 4.99 4.90 4.82 4.76 4.71 4.67 .975 .99 12.2 9.55 8.45 7.85 7.46 7.19 6.99 6.84 6.72 6.62 6.54 6.47 .99 .995 16.2 12.4 10.9 10.0 9.52 9.16 8.89 8.68 8.51 8.38 8.27 8.18 .995 .999 29.2 21.7 18.8 17.2 16.2 15.5 15.0 14.6 14.3 14.1 13.9 13.7 .999 .9995 37.0 27.2 23.5 21.4 20.2 19.3 18.7 18.2 17.8 17.5 17.2 17.0 .9995

8 .0005 .0642 .0350 .0248 .014 .027 .041 .055 .068 .081 .092 .102 .112 .0005 .001 .0517 .0210 .0276 .020 .036 .053 .068 .083 .096 .109 .120 .130 .001 .005 .0442 .0250 .027 .047 .072 .095 .115 .133 .149 .164 .176 .187 .005 .01 .0317 .010 .036 .068 .097 .123 .146 .166 .183 .198 .211 .222 .01 .025 .0210 .025 .069 .111 .148 .179 .204 .226 .244 .259 .273 .285 .025 .05 .0242 .052 .113 .166 .208 .241 .268 .291 .310 .326 .339 .351 .05 .10 .017 .107 .190 .253 .299 .335 .363 .386 .405 .421 .435 .445 .10 .25 .109 .298 .411 .481 .529 .563 .589 .610 .627 .640 .654 .661 .25 .50 .499 .757 .860 .915 .948 .971 .988 1.00 1.01 1.02 1.02 1.03 .50 .75 1.54 1.66 1.67 1.66 1.66 1.65 1.64 1.64 1.64 1.63 1.63 1.62 .75 .90 3.46 3.11 2.92 2.81 2.73 2.67 2.62 2.59 2.56 2.54 2.52 2.50 .90 .95 5.32 4.46 4.07 3.84 3.69 3.58 3.50 3.44 3.39 3.35 3.31 3.28 .95 .975 7.57 6.06 5.42 5.05 4.82 4.65 4.53 4.43 4.36 4.30 4.24 4.20 .975 .99 11.3 8.65 7.59 7.01 6.63 6.37 6.18 6.03 5.91 5.81 5.73 5.67 .99 .995 14.7 11.0 9.60 8.81 8.30 7.95 7.69 7.50 7.34 7.21 7.10 7.01 .995 .999 25.4 18.5 15.8 14.4 13.5 12.9 12.4 12.0 11.8 11.5 11.4 11.2 .999 .9995 31.6 22.8 19.4 17.6 16.4 15.7 15.1 14.6 14.3 14.0 13.8 13.6 .9995

9 .0005 .0641 .0350 .0248 .015 .027 .042 .056 .070 .083 .094 .105 .115 .0005 .001 .0517 .0210 .0277 .021 .037 .054 .070 .085 .099 .112 .123 .134 .001 .005 .0442 .0250 .023 .047 .073 .096 .117 .136 .153 .168 .181 .192 .005 .01 .0317 .010 .037 .068 .098 .125 .149 .169 .187 .202 .216 .228 .01 .025 .0210 .025 .069 .112 .150 .181 .207 .230 .248 .265 .279 .291 .025 .05 .0240 .052 .113 .167 .210 .244 .272 .296 .315 .331 .345 .358 .05 .10 .017 .107 .191 .254 .302 .338 .367 .390 .410 .426 .441 .452 .10 .25 .108 .297 .410 .480 .529 .564 .591 .612 .629 .643 .654 .664 .25 .50 .494 .749 .852 .906 .939 .962 .978 .990 1.00 1.01 1.01 1.02 .50 .75 1.51 1.62 1.63 1.63 1.62 1.61 1.60 1.60 1.59 1.59 1.58 1.58 .75 .90 3.36 3.01 2.81 2.69 2.61 2.55 2.51 2.47 2.44 2.42 2.40 2.38 .90 .95 5.12 4.26 3.86 3.63 3.48 3.37 3.29 3.23 3.18 3.14 3.10 3.07 .95 .975 7.21 5.71 5.08 4.72 4.48 4.32 4.20 4.10 4.03 3.96 3.91 3.87 .975 .99 10.6 8.02 6.99 6.42 6.06 5.80 5.61 5.47 5.35 5.26 5.18 5.11 .99 .995 13.6 10.1 8.72 7.96 7.47 7.13 6.88 6.69 6.54 6.42 6.31 6.23 .995 .999 22.9 16.4 13.9 12.6 11.7 11.1 10.7 10.4 10.1 9.89 9.71 9.57 .999 .9995 28.0 19.9 16.8 15.1 14.1 13.3 12.8 12.4 12.1 11.8 11.6 11.4 .9995

Appendix A Table A.4 687

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .130 .157 .172 .188 .206 .217 .225 .242 .246 .255 .263 .268 .0005 7 .001 .148 .176 .191 .208 .225 .237 .245 .261 .266 .274 .282 .288 .001 .005 .206 .235 .251 .267 .285 .296 .304 .319 .324 .332 .340 .345 .005 .01 .241 .270 .286 .303 .320 .331 .339 .355 .358 .366 .373 .379 .01 .025 .304 .333 .348 .364 .381 .392 .399 .413 .418 .426 .433 .437 .025 .05 .369 .398 .413 .428 .445 .455 .461 .476 .479 .485 .493 .498 .05 .10 .463 .491 .504 .519 .534 .543 .550 .562 .566 .571 .578 .582 .10 .25 .079 .702 .713 .725 .737 .745 .749 .760 .762 .767 .772 .775 .25 .50 1.05 1.07 1.07 1.08 1.08 1.09 1.09 1.10 1.10 1.10 1.10 1.10 .50 .75 1.08 1.67 1.67 1.66 1.60 1.66 1.65 1.65 1.65 1.65 1.65 1.65 .75 .90 2.63 2.59 2.58 2.56 2.54 2.52 2.51 2.50 2.49 2.48 2.48 2.47 .90 .95 3.51 3.44 3.41 3.38 3.34 3.32 3.30 3.27 3.27 3.25 3.24 3.23 .95 .975 4.57 4.47 4.42 4.36 4.31 4.28 4.25 4.21 4.20 4.18 4.16 4.14 .975 .99 6.31 6.16 6.07 5.99 5.91 5.86 5.82 5.75 5.74 5.70 5.67 5.65 .99 .995 7.97 7.75 7.65 7.53 7.42 7.35 7.31 7.22 7.19 7.15 7.10 7.08 .995 .999 13.3 12.9 12.7 12.5 12.3 12.2 12.1 11.9 11.9 11.8 11.7 11.7 .999 .9995 16.5 16.0 15.7 15.5 15.2 15.1 15.0 14.7 14.7 14.6 14.5 14.4 .9995 .0005 .136 .164 .181 .198 .218 .230 .239 .257 .262 .271 .281 .287 .0005 8 .001 .155 .184 .200 .218 .238 .250 .259 .277 .282 .292 .300 .306 .001 .005 .214 .244 .261 .279 .299 .311 .319 .337 .341 .351 .358 .364 .005 .01 .250 .281 .297 .315 .334 .346 .354 .372 .376 .385 .392 .398 .01 .025 .313 .343 .360 .377 .395 .407 .415 .431 .435 .442 .450 .456 .025 .05 .379 .409 .425 .441 .459 .469 .477 .493 .496 .505 .510 .516 .05 .10 .472 .500 .515 .531 .547 .556 .563 .578 .581 .588 .595 .599 .10 .25 .684 .707 .718 .730 .743 .751 .756 .767 .769 .775 .780 .783 .25 .50 1.04 1.05 1.06 1.07 1.07 1.07 1.08 1.08 1.08 1.09 1.09 1.09 .50 .75 1.62 1.61 1.60 1.60 1.59 1.59 1.59 1.58 1.58 1.58 1.58 1.58 .75 .90 2.46 2.42 2.40 2.38 2.36 2.35 2.34 2.32 2.32 2.31 2.30 2.29 .90 .95 3.22 3.15 3.12 3.08 3.04 3.02 3.01 2.97 2.97 2.95 2.94 2.93 .95 .975 4.10 4.00 3.95 3.89 3.84 3.81 3.78 3.74 3.73 3.70 3.68 3.67 .975 .99 5.52 5.36 5.28 5.20 5.12 5.07 5.03 4.96 4.95 4.91 4.88 4.86 .99 .995 6.81 6.61 6.50 6.40 6.29 6.22 6.18 6.09 6.06 6.02 5.98 5.95 .995 .999 10.8 10.5 10.3 10.1 9.92 9.80 9.73 9.57 9.54 9.46 9.39 9.34 .999 .9995 13.1 12.7 12.5 12.2 12.0 11.8 11.8 11.6 11.5 11.4 11.4 11.3 .9995 .0005 .141 .171 188 .207 .228 .242 .251 .270 .276 .287 .297 .303 .0005 9 .001 .160 .191 .208 .228 .249 .262 .271 .291 .296 .307 .316 .323 .001 .005 .220 .253 .271 .290 .310 .324 .332 .351 .356 .366 .376 .382 .005 .01 .257 .289 .307 .326 .340 .358 .368 .386 .391 .400 .410 .415 .01 .025 .320 .352 .370 .388 .408 .420 .428 .446 .450 .459 .467 .473 .025 .05 .386 .418 .435 .452 .471 .483 .490 .508 .510 .518 .526 .532 .05 .10 .479 .509 .525 .541 .558 .568 .575 .588 .594 .602 .610 .613 .10 .25 .687 .711 .723 .736 .749 .757 .762 .773 .776 .782 .787 .791 .25 .50 1.03 1.04 1.05 1.05 1.06 1.06 1.07 1.07 1.07 1.08 1.08 1.08 .50 .75 1.57 1.56 1.56 1.55 1.55 1.54 1.54 1.53 1.53 1.53 1.53 1.53 .75 .90 1.56 2.30 2.28 2.25 2.23 2.22 2.21 2.19 2.18 2.17 2.17 2.16 .90 .95 3.01 2.94 2.90 2.86 2.83 2.80 2.79 2.76 2.75 2.73 2.72 2.71 .95 .975 3.77 3.67 3.61 3.56 3.51 3.47 3.45 3.40 3.39 3.37 3.35 3.33 .975 .99 4.96 4.81 4.73 4.65 4.57 4.52 4.48 4.42 4.40 4.36 4.33 4.31 .99 .995 6.03 5.83 5.73 5.62 5.52 5.45 5.41 5.32 5.30 5.26 5.21 5.19 .995 .999 9.24 8.90 8.72 8.55 8.37 8.26 8.19 8.04 8.00 7.93 7.86 7.81 .999 .9995 11.0 10.6 10.4 10.2 9.94 9.80 9.71 9.53 9.49 9.40 9.32 9.26 .9995

(cont.)

688 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

10 .0005 .0641 .0350 .0249 .015 .028 .043 .057 .071 .085 .097 .108 .119 .0005 .001 .0517 .0210 .0277 .021 .037 .054 .071 .087 .101 .114 .126 .137 .001 .005 .0441 .0250 .023 .048 .073 .098 .119 .139 .156 .171 .185 .197 .005 .01 .0317 .010 .037 .069 .100 .127 .151 .172 .190 .206 .220 .233 .01 .025 .0210 .025 .069 .113 .151 .183 .210 .233 .252 .269 .283 .296 .025 .05 .0241 .052 .114 .168 .211 .246 .275 .299 .319 .336 .351 .363 .05 .10 .017 .106 .191 .255 .303 .340 .370 .394 .414 .430 .444 .457 .10 .25 .107 .296 .409 .480 .529 .565 .592 .613 .631 .645 .657 .667 .25 .50 .490 .743 .845 .899 .932 .954 .971 .983 .992 1.00 1.01 1.01 .50 .75 1.49 1.60 1.60 1.59 1.59 1.58 1.57 1.56 1.56 1.55 1.55 1.54 .75 .90 3.28 2.92 2.73 2.61 2.52 2.46 2.41 2.38 2.35 2.32 2.30 2.28 .90 .95 4.96 4.10 3.71 3.48 3.33 3.22 3.14 3.07 3.02 2.98 2.94 2.91 .95 .975 6.94 5.46 4.83 4.47 4.24 4.07 3.95 3.85 3.78 3.72 3.66 3.62 .975 .99 10.0 7.56 6.55 5.99 5.64 5.39 5.20 5.06 4.94 4.85 4.77 4.71 .99 .995 12.8 9.43 8.08 7.34 6.87 6.54 6.30 6.12 5.97 5.85 5.75 5.66 .995 .999 21.0 14.9 12.6 11.3 10.5 9.92 9.52 9.20 8.96 8.75 8.58 8.44 .999 .9995 25.5 17.9 15.0 13.4 12.4 11.8 11.3 10.9 10.6 10.3 10.1 9.93 .9995

11 .0005 .0641 .0350 .0249 .015 .028 .043 .058 .072 .086 .099 .111 .121 .0005 .001 .0516 .0210 .0278 .021 .038 .055 .072 .088 .103 .116 .129 .140 .001 .005 .0440 .0250 .023 .048 .074 .099 .121 .141 .158 .174 .188 .200 .005 .01 .0316 .010 .037 .069 .100 .128 .153 .175 .193 .210 .224 .237 .01 .025 .0210 .025 .069 .114 .152 .185 .212 .236 .256 .273 .288 .301 .025 .05 .0241 .052 .114 .168 .212 .248 .278 .302 .323 .340 .355 .368 .05 .10 .017 .106 .192 .256 .305 .342 .373 .397 .417 .435 .448 .461 .10 .25 .107 .295 .408 .481 .529 .565 .592 .614 .633 .645 .658 .667 .25 .50 .486 .739 .840 .893 .926 .948 .964 .977 .986 .994 1.00 1.01 .50 .75 1.47 1.58 1.58 1.57 1.56 1.55 1.54 1.53 1.53 1.52 1.52 1.51 .75 .90 3.23 2.86 2.66 2.54 2.45 2.39 2.34 2.30 2.27 2.25 2.23 2.21 .90 .95 4.84 3.98 3.59 3.36 3.20 3.09 3.01 2.95 2.90 2.85 2.82 2.79 .95 .975 6.72 5.26 4.63 4.28 4.04 3.88 3.76 3.66 3.59 3.53 3.47 3.43 .975 .99 9.65 7.21 6.22 5.67 5.32 5.07 4.89 4.74 4.63 4.54 4.46 4.40 .99 .995 12.2 8.91 7.60 6.88 6.42 6.10 5.86 5.68 5.54 5.42 5.32 5.24 .995 .999 19.7 13.8 11.6 10.3 9.58 9.05 8.66 8.35 8.12 7.92 7.76 7.62 .999 .9995 23.6 16.4 13.6 12.2 11.2 10.6 10.1 9.76 9.48 9.24 9.04 8.88 .9995

12 .0005 .0641 .0350 .0249 .015 .028 .044 .058 .073 .087 .101 .113 .124 .0005 .001 .0516 .0210 .0278 .021 .038 .056 .073 .089 .104 .118 .131 .143 .001 .005 .0439 .0250 .023 .048 .075 .100 .122 .143 .161 .177 .191 .204 .005 .01 .0316 .010 .037 .070 .101 .130 .155 .176 .196 .212 .227 .241 .01 .025 .0210 .025 .070 .114 .153 .186 .214 .238 .259 .276 .292 .305 .025 .05 .0241 .052 .114 .169 .214 .250 .280 .305 .325 .343 .358 .372 .05 .10 .016 .106 .192 .257 .306 .344 .375 .400 .420 .438 .452 .466 .10 .25 .106 .295 .408 .480 .530 .566 .594 .616 .633 .649 .662 .671 .25 .50 .484 .735 835 .888 .921 .943 .959 .972 .981 .989 .995 1.00 .50 .75 1.46 1.56 1.56 1.55 1.54 1.53 1.52 1.51 1.51 1.50 1.50 1.49 .75 .90 3.18 2.81 2.61 2.48 2.39 2.33 2.28 2.24 2.21 2.19 2.17 2.15 .90 .95 4.75 3.89 3.49 3.26 3.11 3.00 2.91 2.85 2.80 2.75 2.72 2.69 .95 .975 6.55 5.10 4.47 4.12 3.89 3.73 3.61 3.51 3.44 3.37 3.32 3.28 .975 .99 9.33 6.93 5.95 5.41 5.06 4.82 4.64 4.50 4.39 4.30 4.22 4.16 .99 .995 11.8 8.51 7.23 6.52 6.07 5.76 5.52 5.35 5.20 5.09 4.99 4.91 .995 .999 18.6 13.0 10.8 9.63 8.89 8.38 8.00 7.71 7.48 7.29 7.14 7.01 .999 .9995 22.2 15.3 12.7 11.2 10.4 9.74 9.28 8.94 8.66 8.43 8.24 8.08 .9995

Table A.4 689

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .145 .177 .195 .215 .238 .251 .262 .282 .288 .299 .311 .319 .0005 10 .001 .164 .197 .216 .236 .258 .272 .282 .303 .309 .321 .331 .338 .001 .005 .226 .260 .279 .299 .321 .334 .344 .365 .370 .380 .391 .397 .005 .01 .263 .297 .316 .336 .357 .370 .380 .400 .405 .415 .424 .431 .01 .025 .327 .360 .379 .398 .419 .431 .441 .459 .464 .474 .483 .488 .025 .05 .393 .426 .444 .462 .481 .493 .502 .518 .523 .532 .541 .546 .05 .10 .486 .516 .532 .549 .567 .578 .586 .602 .605 .614 .621 .625 .10 .25 .691 .714 .727 .740 .754 .762 .767 .779 .782 .788 .793 .797 .25 .50 1.02 1.03 1.04 1.05 1.05 1.06 1.06 1.06 1.06 1.07 1.07 1.07 .50 .75 1.53 1.52 1.52 1.51 1.51 1.50 1.50 1.49 1.49 1.49 1.48 1.48 .75 .90 2.24 2.20 2.18 2.16 2.13 2.12 2.11 2.09 2.08 2.07 2.06 2.06 .90 .95 2.85 2.77 2.74 2.70 2.66 2.64 2.62 2.59 2.58 2.56 2.55 2.54 .95 .975 3.52 3.42 3.37 3.31 3.26 3.22 3.20 3.15 3.14 3.12 3.09 3.08 .975 .99 4.56 4.41 4.33 4.25 4.17 4.12 4.08 4.01 4.00 3.96 3.93 3.91 .99 .995 5.47 5.27 5.17 5.07 4.97 4.90 4.86 4.77 4.75 4.71 4.67 4.64 .995 .999 8.13 7.80 7.64 7.47 7.30 7.19 7.12 6.98 6.94 6.87 6.81 6.76 .999 .9995 9.56 9.16 8.96 8.75 8.54 8.42 8.33 8.16 8.12 8.04 7.96 7.90 .9995 .0005 .148 .182 .201 .222 .246 .261 .271 .293 .299 .312 .324 .331 .0005 11 .001 .168 .202 .222 .243 .266 .282 .292 .313 .320 .332 .343 .353 .001 .005 .231 .266 .286 .308 .330 .345 .355 .376 .382 .394 .403 .412 .005 .01 .268 .304 .324 .344 .366 .380 .391 .412 .417 .427 .439 .444 .01 .025 .332 .368 .386 .407 .429 .442 .450 .472 .476 .485 .495 .503 .025 .05 .398 .433 .452 .469 .490 .503 .513 .529 .535 .543 .552 .559 .05 .10 .490 .524 .541 .559 .578 .588 .595 .614 .617 .625 .633 .637 .10 .25 .694 .719 .730 .744 .758 .767 .773 .780 .788 .794 .799 .803 .25 .50 1.02 1.03 1.03 1.04 1.05 1.05 1.05 1.06 1.06 1.06 1.06 1.06 .50 .75 1.50 1.49 1.49 1.48 1.47 1.47 1.47 1.46 1.46 1.46 1.45 1.45 .75 .90 2.17 2.12 2.10 2.08 2.05 2.04 2.03 2.00 2.00 1.99 1.98 1.97 .90 .95 2.72 2.65 2.61 2.57 2.53 2.51 2.49 2.46 2.45 2.43 2.42 2.40 .95 .975 3.33 3.23 3.17 3.12 3.06 3.03 3.00 2.96 2.94 2.92 2.90 2.88 .975 .99 4.25 4.10 4.02 3.94 3.86 3.81 3.78 3.71 3.69 3.66 3.62 3.60 .99 .995 5.05 4.86 4.76 4.65 4.55 4.49 4.45 4.36 4.34 4.29 4.25 4.23 .995 .999 7.32 7.01 6.85 6.68 6.52 6.41 6.35 6.21 6.17 6.10 6.04 6.00 .999 .9995 8.52 8.14 7.94 7.75 7.55 7.43 7.35 7.18 7.14 7.06 6.98 6.93 .9995 .0005 .152 .186 .206 .228 .253 .269 .280 .305 .311 .323 .337 .345 .0005 12 .001 .172 .207 .228 .250 .275 .291 .302 .326 .332 .344 .357 .365 .001 .005 .235 .272 .292 .315 .339 .355 .365 .388 .393 .405 .417 .424 .005 .01 .273 .310 .330 .352 .375 .391 .401 .422 .428 .441 .450 .458 .01 .025 .337 .374 .394 .416 .437 .450 .461 .481 .487 .498 .508 .514 .025 .05 .404 .439 .458 .478 .499 .513 .522 .541 .545 .556 .565 .571 .05 .10 .496 .528 .546 .564 .583 .595 .604 .621 .625 .633 .641 .647 .10 .25 .695 .721 .734 .748 .762 .771 .777 .789 .792 .799 .804 .808 .25 .50 1.01 1.02 1.03 1.03 1.04 1.04 1.05 1.05 1.05 1.05 1.00 1.06 .50 .75 1.48 1.47 1.46 1.45 1.45 1.44 1.44 1.43 1.43 1.43 1.42 1.42 .75 .90 2.11 2.06 2.04 2.01 1.99 1.97 1.96 1.94 1.93 1.92 1.91 1.90 .90 .95 2.62 2.54 2.51 2.47 2.43 2.40 2.38 2.35 2.34 2.32 2.31 2.30 .95 .975 3.18 3.07 3.02 2.96 2.91 2.87 2.85 2.80 2.79 2.76 2.74 2.72 .975 .99 4.01 3.86 3.78 3.70 3.62 3.57 3.54 3.47 3.45 3.41 3.38 3.36 .99 .995 4.72 4.53 4.43 4.33 4.23 4.17 4.12 4.04 4.01 3.97 3.93 3.90 .995 .999 6.71 6.40 6.25 6.09 5.93 5.83 5.76 5.63 5.59 5.52 5.46 5.42 .999 .9995 7.74 7.37 7.18 7.00 6.80 6.68 6.61 6.45 6.41 6.33 6.25 6.20 .9995

(cont.)

690 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

15 .0005 .0641 .0350 .0249 .015 .029 .045 .061 .076 .091 .105 .117 .129 .0005 .001 .0516 .0210 .0279 .021 .039 .057 .075 .092 .108 .123 .137 .149 .001 .005 .0439 .0250 .023 .049 .076 .102 .125 .147 .166 .183 .198 .212 .005 .01 .0316 .010 .037 .070 .103 .132 .158 .181 .202 .219 .235 .249 .01 .025 .0210 .025 .070 .116 .156 .190 .219 .244 .265 .284 .300 .315 .025 .05 .0241 .051 .115 .170 .216 .254 .285 .311 .333 .351 .368 .382 .05 .10 .016 .106 .192 .258 .309 .348 .380 .406 .427 .446 .461 .475 .10 .25 .105 .293 .407 .480 .531 .568 .596 .618 .637 .652 .667 .676 .25 .50 .478 .726 .826 .878 .911 .933 .948 .960 .970 .977 .984 .989 .50 .75 1.43 1.52 1.52 1.51 1.49 1.48 1.47 1.46 1.46 1.45 1.44 1.44 .75 .90 3.07 2.70 2.49 2.36 2.27 2.21 2.16 2.12 2.09 2.06 2.04 2.02 .90 .95 4.54 3.68 3.29 3.06 2.90 2.79 2.71 2.64 2.59 2.54 2.51 2.48 .95 .975 6.20 4.76 4.15 3.80 3.58 3.41 3.29 3.20 3.12 3.06 3.01 2.96 .975 .99 8.68 6.36 5.42 4.89 4.56 4.32 4.14 4.00 3.89 3.80 3.73 3.67 .99 .995 10.8 7.70 6.48 5.80 5.37 5.07 4.85 4.67 4.54 4.42 4.33 4.25 .995 .999 16.6 11.3 9.34 8.25 7.57 7.09 6.74 6.47 6.26 6.08 5.93 5.81 .999 .9995 19.5 13.2 10.8 9.48 8.66 8.10 7.68 7.36 7.11 6.91 6.75 6.60 .9995

20 .0005 .0640 .0350 .0250 .015 .029 .046 .063 .079 .094 .109 .123 .136 .0005 .001 .0516 .0210 .0279 .022 .039 .058 .077 .095 .112 .128 .143 .156 .001 .005 .0439 .0250 .023 .050 .077 .104 .129 .151 .171 .190 .206 .221 .005 .01 .0316 .010 .037 .071 .105 .135 .162 .187 .208 .227 .244 .259 .01 .025 .0210 .025 .071 .117 .158 .193 .224 .250 .273 .292 .310 .325 .025 .05 .0240 .051 .115 .172 .219 .258 .290 .318 .340 .360 .377 .393 .05 .10 .016 .106 .193 .260 .312 .353 .385 .412 .435 .454 .472 .485 .10 .25 .104 .292 .407 .480 .531 .569 .598 .622 .641 .656 .671 .681 .25 .50 .472 .718 .816 .868 .900 .922 .938 .950 .959 .966 .972 .977 .50 .75 1.40 1.49 1.48 1.47 1.45 1.44 1.43 1.42 1.41 1.40 1.39 1.39 .75 .90 2.97 2.59 2.38 2.25 2.16 2.09 2.04 2.00 1.96 1.94 1.91 1.89 .90 .95 4.35 3.49 3.10 2.87 2.71 2.60 2.51 2.45 2.39 2.35 2.31 2.28 .95 .975 5.87 4.46 3.86 3.51 3.29 3.13 3.01 2.91 2.84 2.77 2.72 2.68 .975 .99 8.10 5.85 4.94 4.43 4.10 3.87 3.70 3.56 3.46 3.37 3.29 3.23 .99 .995 9.94 6.99 5.82 5.17 4.76 4.47 4.26 4.09 3.96 3.85 3.76 3.68 .995 .999 14.8 9.95 8.10 7.10 6.46 6.02 5.69 5.44 5.24 5.08 4.94 4.82 .999 .9995 17.2 11.4 9.20 8.02 7.28 6.76 6.38 6.08 5.85 5.66 5.51 5.38 .9995

24 .0005 .0640 .0350 .0250 .015 .030 .046 .064 .080 .096 .112 .126 .139 .0005 .001 .0516 .0210 .0279 .022 .040 .059 .079 .097 .115 .131 .146 .160 .001 .005 .0440 .0250 .023 .050 .078 .106 .131 .154 .175 .193 .210 .226 .005 .01 .0316 .010 .038 .072 .106 .137 .165 .189 .211 .231 .249 .264 .01 .025 .0210 .025 .071 .117 .159 .195 .227 .253 .277 .297 .315 .331 .025 .05 .0240 .051 .116 .173 .221 .260 .293 .321 .345 .365 .383 .399 .05 .10 .016 .106 .193 .261 .313 .355 .388 .416 .439 .459 .476 .491 .10 .25 .104 .291 .406 .480 .532 .570 .600 .623 .643 .659 .671 .684 .25 .50 .469 .714 .812 .863 .895 .917 .932 .944 .953 .961 .967 .972 .50 .75 1.39 1.47 1.46 1.44 1.43 1.41 1.40 1.39 1.38 1.38 1.37 1.36 .75 .90 2.93 2.54 2.33 2.19 2.10 2.04 1.98 1.94 1.91 1.88 1.85 1.83 .90 .95 4.26 3.40 3.01 2.78 2.62 2.51 2.42 2.36 2.30 2.25 2.21 2.18 .95 .975 5.72 4.32 3.72 3.38 3.15 2.99 2.87 2.78 2.70 2.64 2.59 2.54 .975 .99 7.82 5.61 4.72 4.22 3.90 3.67 3.50 3.36 3.26 3.17 3.09 3.03 .99 .995 9.55 6.66 5.52 4.89 4.49 4.20 3.99 3.83 3.69 3.59 3.50 3.42 .995 .999 14.0 9.34 7.55 6.59 5.98 5.55 5.23 4.99 4.80 4.64 4.50 4.39 .999 .9995 16.2 10.6 8.52 7.39 6.68 6.18 5.82 5.54 5.31 5.13 4.98 4.85 .9995

Table A.4 691

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .159 .197 .220 .244 .272 .290 .303 .330 .339 .353 .368 .377 .0005 15 .001 .181 .219 .242 .266 .294 .313 .325 .352 .360 .375 .388 .398 .001 .005 .246 .286 .308 .333 .360 .377 .389 .415 .422 .435 .448 .457 .005 .01 .284 .324 .346 .370 .397 .413 .425 .450 .456 .469 .483 .490 .01 .025 .349 .389 .410 .433 .458 .474 .485 .508 .514 .526 .538 .546 .025 .05 .416 .454 .474 .496 .519 .535 .545 .565 .571 .581 .592 .600 .05 .10 .507 .542 .561 .581 .602 .614 .624 .641 .647 .658 .667 .672 .10 .25 .701 .728 .742 .757 .772 .782 .788 .802 .805 .812 .818 .822 .25 .50 1.00 1.01 1.02 1.02 1.03 1.03 1.03 1.04 1.04 1.04 1.04 1.05 .50 .75 1.43 1.41 1.41 1.40 1.39 1.39 1.38 1.38 1.37 1.37 1.36 1.36 .75 .90 1.97 1.92 1.90 1.87 1.85 1.83 1.82 1.79 1.79 1.77 1.76 1.76 .90 .95 2.40 2.33 2.39 2.25 2.20 2.18 2.16 2.12 2.11 2.10 2.08 2.07 .95 .975 2.86 2.76 2.70 2.64 2.59 2.55 2.52 2.47 2.46 2.44 2.41 2.40 .975 .99 3.52 3.37 3.29 3.21 3.13 3.08 3.05 2.98 2.96 2.92 2.89 2.87 .99 .995 4.07 3.88 3.79 3.69 3.59 3.52 3.48 3.39 3.37 3.33 3.29 3.26 .995 .999 5.54 5.25 5.10 4.95 4.80 4.70 4.64 4.51 4.47 4.41 4.35 4.31 .999 .9995 6.27 5.93 5.75 5.58 5.40 5.29 5.21 5.06 5.02 4.94 4.87 4.83 .9995 .0005 .169 .211 .235 .263 .295 .316 .331 .364 .375 .391 .408 .422 .0005 20 .001 .191 .233 .258 .286 .318 .339 .354 .386 .395 .413 .429 .441 .001 .005 .258 .301 .327 .354 .385 .405 .419 .448 .457 .474 .490 .500 .005 .01 .297 .340 .365 .392 .422 .441 .455 .483 .491 .508 .521 .532 .01 .025 .363 .406 .430 .456 .484 .503 .514 .541 .548 .562 .575 .585 .025 .05 .430 .471 .493 .518 .544 .562 .572 .595 .603 .617 .629 .637 .05 .10 .520 .557 .578 .600 .623 .637 .648 .671 .675 .685 .694 .704 .10 .25 .708 .736 .751 .767 .784 .794 .801 .816 .820 .827 .835 .840 .25 .50 .989 1.00 1.01 1.01 1.02 1.02 1.02 1.03 1.03 1.03 1.03 1.03 .50 .75 1.37 1.36 1.35 1.34 1.33 1.33 1.32 1.31 1.31 1.30 1.30 1.29 .75 .90 1.84 1.79 1.77 1.74 1.71 1.69 1.68 1.65 1.64 1.63 1.62 1.61 .90 .95 2.20 2.12 2.08 2.04 1.99 1.97 1.95 1.91 1.90 1.88 1.86 1.84 .95 .975 2.57 2.46 2.41 2.35 2.29 2.25 2.22 2.17 2.16 2.13 2.10 2.09 .975 .99 3.09 2.94 2.86 2.78 2.69 2.64 2.61 2.54 2.52 2.48 2.44 2.42 .99 .995 3.50 3.32 3.22 3.12 3.02 2.96 2.92 2.83 2.81 2.76 2.72 2.69 .995 .999 4.56 4.29 4.15 4.01 3.86 3.77 3.70 3.58 3.54 3.48 3.42 3.38 .999 .9995 5.07 4.75 4.58 4.42 4.24 4.15 4.07 3.93 3.90 3.82 3.75 3.70 .9995 .0005 .174 .218 .244 .274 .309 .331 .349 .384 .395 .416 .434 .449 .0005 24 .001 .196 .241 .268 .298 .332 .354 .371 .405 .417 .437 .455 .469 .001 .005 .264 .310 .337 .367 .400 .422 .437 .469 .479 .498 .515 .527 .005 .01 .304 .350 .376 .405 .437 .459 .473 .505 .513 .529 .546 .558 .01 .025 .370 .415 .441 .468 .498 .518 .531 .562 .568 .585 .599 .610 .025 .05 .437 .480 .504 .530 .558 .575 .588 .613 .622 .637 .649 .669 .05 .10 .527 .566 .588 .611 .635 .651 .662 .685 .691 .704 .715 .723 .10 .25 .712 .741 .757 .773 .791 .802 .809 .825 .829 .837 .844 .850 .25 .50 .983 .994 1.00 1.01 1.01 1.02 1.02 1.02 1.02 1.02 1.03 1.03 .50 .75 1.35 1.33 1.32 1.31 1.30 1.29 1.29 1.28 1.28 1.27 1.27 1.26 .75 .90 1.78 1.73 1.70 1.67 1.64 1.62 1.61 1.58 1.57 1.56 1.54 1.53 .90 .95 2.11 2.03 1.98 1.94 1.89 1.86 1.84 1.80 1.79 1.77 1.75 1.73 .95 .975 2.44 2.33 2.27 2.21 2.15 2.11 2.08 2.02 2.01 1.98 1.95 1.94 .975 .99 2.89 2.74 2.66 2.58 2.49 2.44 2.40 2.33 2.31 2.27 2.24 2.21 .99 .995 3.25 3.06 2.97 2.87 2.77 2.70 2.66 2.57 2.55 2.50 2.46 2.43 .995 .999 4.14 3.87 3.74 3.59 3.45 3.35 3.29 3.16 3.14 3.07 3.01 2.97 .999 .9995 4.55 4.25 4.09 3.93 3.76 3.66 3.59 3.44 3.41 3.33 3.27 3.22 .9995

(cont.)

692 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

30 .0005 .0640 .0350 .0250 .015 .030 .047 .065 .082 .098 .114 .129 .143 .0005 .001 .0516 .0210 .0280 .022 .040 .060 .080 .099 .117 .134 .150 .164 .001 .005 .0440 .0250 .024 .050 .079 .107 .133 .156 .178 .197 .215 .231 .005 .01 .0316 .010 .038 .072 .107 .138 .167 .192 .215 .235 .254 .270 .01 .025 .0210 .025 .071 .118 .161 .197 .229 .257 .281 .302 .321 .337 .025 .05 .0240 .051 .116 .174 .222 .263 .296 .325 .349 .370 .389 .406 .05 .10 .016 .106 .193 .262 .315 .357 .391 .420 .443 .464 .481 .497 .10 .25 .103 .290 .406 .480 .532 .571 .601 .625 .645 .661 .676 .688 .25 .50 .466 .709 .807 .858 .890 .912 .927 .939 .948 .955 .961 .966 .50 .75 1.38 1.45 1.44 1.42 1.41 1.39 1.38 1.37 1.36 1.35 1.35 1.34 .75 .90 2.88 2.49 2.28 2.14 2.05 1.98 1.93 1.88 1.85 1.82 1.79 1.77 .90 .95 4.17 3.32 2.92 2.69 2.53 2.42 2.33 2.27 2.21 2.16 2.13 2.09 .95 .975 5.57 4.18 3.59 3.25 3.03 2.87 2.75 2.65 2.57 2.51 2.46 2.41 .975 .99 7.56 5.39 4.51 4.02 3.70 3.47 3.30 3.17 3.07 2.98 2.91 2.84 .99 .995 9.18 6.35 5.24 4.62 4.23 3.95 3.74 3.58 3.45 3.34 3.25 3.18 .995 .999 13.3 8.77 7.05 6.12 5.53 5.12 4.82 4.58 4.39 4.24 4.11 4.00 .999 .9995 15.2 9.90 7.90 6.82 6.14 5.66 5.31 5.04 4.82 4.65 4.51 4.38 .9995

40 .0005 .0640 .0350 .0250 .016 .030 .048 .066 .084 .100 .117 .132 .147 .0005 .001 .0516 .0210 .0280 .022 .042 .061 .081 .101 .119 .137 .153 .169 .001 .005 .0440 .0250 .024 .051 .080 .108 .135 .159 .181 .201 .220 .237 .005 .01 .0316 .010 .038 .073 .108 .140 .169 .195 .219 .240 .259 .276 .01 .025 .0399 .025 .071 .119 .162 .199 .232 .260 .285 .307 .327 .344 .025 .05 .2240 .051 .116 .175 .224 .265 .299 .329 .354 .376 .395 .412 .05 .10 .016 .106 .194 .263 .317 .360 .394 .424 .448 .469 .488 .504 .10 .25 .103 .290 .405 .480 .533 .572 .603 .627 .647 .664 .680 .691 .25 .50 .463 .705 .802 .854 .885 .907 .922 .934 .943 .950 .956 .961 .50 .75 1.36 1.44 1.42 1.40 1.39 1.37 1.36 1.35 1.34 1.33 1.32 1.31 .75 .90 2.84 2.44 2.23 2.09 2.00 1.93 1.87 1.83 1.79 1.76 1.73 1.71 .90 .95 4.08 3.23 2.84 2.61 2.45 2.34 2.25 2.18 2.12 2.08 2.04 2.00 .95 .975 5.42 4.05 3.46 3.13 2.90 2.74 2.62 2.53 2.45 2.39 2.33 2.29 .975 .99 7.31 5.18 4.31 3.83 3.51 3.29 3.12 2.99 2.89 2.80 2.73 2.66 .99 .995 8.83 6.07 4.98 4.37 3.99 3.71 3.51 3.35 3.22 3.12 3.03 2.95 .995 .999 12.6 8.25 6.60 5.70 5.13 4.73 4.44 4.21 4.02 3.87 3.75 3.64 .999 .9995 14.4 9.25 7.33 6.30 5.64 5.19 4.85 4.59 4.38 4.21 4.07 3.95 .9995

60 .0005 .0640 .0350 .0251 .016 .031 .048 .067 .085 .103 .120 .136 .152 .0005 .001 .0516 .0210 .0280 .022 .041 .062 .083 .103 .122 .140 .157 .174 .001 .005 .0440 .0250 .024 .051 .081 .110 .137 .162 .185 .206 .225 .243 .005 .01 .0316 .010 .038 .073 .109 .142 .172 .199 .223 .245 .265 .283 .01 .025 .0399 .025 .071 .120 .163 .202 .235 .264 .290 .313 .333 .351 .025 .05 .0240 .051 .116 .176 .226 .267 .303 .333 .359 .382 .402 .419 .05 .10 .016 .106 .194 .264 .318 .362 .398 .428 .453 .475 .493 .510 .10 .25 .102 .289 .405 .480 .534 .573 .604 .629 .650 .667 .680 .695 .25 .50 .461 .701 .798 .849 .880 .901 .917 .928 .937 .945 .951 .956 .50 .75 1.35 1.42 1.41 1.38 1.37 1.35 1.33 1.32 1.31 1.30 1.29 1.29 .75 .90 2.79 2.39 2.18 2.04 1.95 1.87 1.82 1.77 1.74 1.71 1.68 1.66 .90 .95 4.00 3.15 2.76 2.53 2.37 2.25 2.17 2.10 2.04 1.99 1.95 1.92 .95 .975 5.29 3.93 3.34 3.01 2.79 2.63 2.51 2.41 2.33 2.27 2.22 2.17 .975 .99 7.08 4.98 4.13 3.65 3.34 3.12 2.95 2.82 2.72 2.63 2.56 2.50 .99 .995 8.49 5.80 4.73 4.14 3.76 3.49 3.29 3.13 3.01 2.90 2.82 2.74 .995 .999 12.0 7.76 6.17 5.31 4.76 4.37 4.09 3.87 3.69 3.54 3.43 3.31 .999 .9995 13.6 8.65 6.81 5.82 5.20 4.76 4.44 4.18 3.98 3.82 3.69 3.57 .9995

Table A.4 693

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .179 .226 .254 .287 .325 .350 .369 .410 .420 .444 .467 .483 .0005 30 .001 .202 .250 .278 .311 .348 .373 .391 .431 .442 .465 .488 .503 .001 .005 .271 .320 .349 .381 .416 .441 .457 .495 .504 .524 .543 .559 .005 .01 .311 .360 .388 .419 .454 .476 .493 .529 .538 .559 .575 .590 .01 .025 .378 .426 .453 .482 .515 .535 .551 .585 .592 .610 .625 .639 .025 .05 .445 .490 .516 .543 .573 .592 .606 .637 .644 .658 .676 .685 .05 .10 .534 .575 .598 .623 .649 .667 .678 .704 .710 .725 .735 .746 .10 .25 .716 .746 .763 .780 .798 .810 .818 .835 .839 .848 .856 .862 .25 .50 .978 .989 .994 1.00 1.01 1.01 1.01 1.02 1.02 1.02 1.02 1.02 .50 .75 1.32 1.30 1.29 1.28 1.27 1.26 1.26 1.25 1.24 1.24 1.23 1.23 .75 .90 1.72 1.67 1.64 1.61 1.57 1.55 1.54 1.51 1.50 1.48 1.47 1.46 .90 .95 2.01 1.93 1.89 1.84 1.79 1.76 1.74 1.70 1.68 1.66 1.64 1.62 .95 .975 2.31 2.20 2.14 2.07 2.01 1.97 1.94 1.88 1.87 1.84 1.81 1.79 .975 .99 2.70 2.55 2.47 2.39 2.30 2.25 2.21 2.13 2.11 2.07 2.03 2.01 .99 .995 3.01 2.82 2.73 2.63 2.52 2.46 2.42 2.32 2.30 2.25 2.21 2.18 .995 .999 3.75 3.49 3.36 3.22 3.07 2.98 2.92 2.79 2.76 2.69 2.63 2.59 .999 .9995 4.10 3.80 3.65 3.48 3.32 3.22 3.15 3.00 2.97 2.89 2.82 2.78 .9995 .0005 .185 .236 .266 .301 .343 .373 .393 .441 .453 .480 .504 .525 .0005 40 .001 .209 .259 .290 .326 .367 .396 .415 .461 .473 .500 .524 .545 .001 .005 .279 .331 .362 .396 .436 .463 .481 .524 .534 .559 .581 .599 .005 .01 .319 .371 .401 .435 .473 .498 .516 .556 .567 .592 .613 .628 .01 .025 .387 .437 .466 .498 .533 .556 .573 .610 .620 .641 .662 .674 .025 .05 .454 .502 .529 .558 .591 .613 .627 .658 .669 .685 .704 .717 .05 .10 .542 .585 .609 .636 .664 .683 .696 .724 .731 .747 .762 .772 .10 .25 .720 .752 .769 .787 .806 .819 .828 .846 .851 .861 .870 .877 .25 .50 .972 .983 .989 .994 1.00 1.00 1.01 1.01 1.01 1.01 1.02 1.02 .50 .75 1.30 1.28 1.26 1.25 1.24 1.23 1.22 1.21 1.21 1.20 1.19 1.19 .75 .90 1.66 1.61 1.57 1.54 1.51 1.48 1.47 1.43 1.42 1.41 1.39 1.38 .90 .95 1.92 1.84 1.79 1.74 1.69 1.66 1.64 1.59 1.58 1.55 1.53 1.51 .95 .975 2.18 2.07 2.01 1.94 1.88 1.83 1.80 1.74 1.72 1.69 1.66 1.64 .975 .99 2.52 2.37 2.29 2.20 2.11 2.06 2.02 1.94 1.92 1.87 1.83 1.80 .99 .995 2.78 2.60 2.50 2.40 2.30 2.23 2.18 2.09 2.06 2.01 1.96 1.93 .995 .999 3.40 3.15 3.01 2.87 2.73 2.64 2.57 2.44 2.41 2.34 2.28 2.23 .999 .9995 3.68 3.39 3.24 3.08 2.92 2.82 2.74 2.60 2.57 2.49 2.41 2.37 .9995 .0005 .192 .246 .278 .318 .365 .398 .421 .478 .493 .527 .561 .585 .0005 60 .001 .216 .270 .304 .343 .389 .421 .444 .497 .512 .545 .579 .602 .001 .005 .287 .343 .376 .414 .458 .488 .510 .559 .572 .602 .633 .652 .005 .01 .328 .383 .416 .453 .495 .524 .545 .592 .604 .633 .658 .679 .01 .025 .396 .450 .481 .515 .555 .581 .600 .641 .654 .680 .704 .720 .025 .05 .463 .514 .543 .575 .611 .633 .652 .690 .700 .719 .746 .759 .05 .10 .550 .596 .622 .650 .682 .703 .717 .750 .758 .776 .793 .806 .10 .25 .725 .758 .776 .796 .816 .830 .840 .860 .865 .877 .888 .896 .25 .50 .967 .978 .983 .989 .994 .998 1.00 1.00 1.01 1.01 1.01 1.01 .50 .75 1.27 1.25 1.24 1.22 1.21 1.20 1.19 1.17 1.17 1.16 1.15 1.15 .75 .90 1.60 1.54 1.51 1.48 1.44 1.41 1.40 1.36 1.35 1.33 1.31 1.29 .90 .95 1.84 1.75 1.70 1.65 1.59 1.56 1.53 1.48 1.47 1.44 1.41 1.39 .95 .975 2.06 1.94 1.88 1.82 1.74 1.70 1.67 1.60 1.58 1.54 1.51 1.48 .975 .99 2.35 2.20 2.12 2.03 1.94 1.88 1.84 1.75 1.73 1.68 1.63 1.60 .99 .995 2.57 2.39 2.29 2.19 2.08 2.01 1.96 1.86 1.83 1.78 1.73 1.69 .995 .999 3.08 2.83 2.69 2.56 2.41 2.31 2.25 2.11 2.09 2.01 1.93 1.89 .999 .9995 3.30 3.02 2.87 2.71 2.55 2.45 2.38 2.23 2.19 2.11 2.03 1.98 .9995

(cont.)

694 Appendix A Statistical Tables

Table A.4 Percentiles of F Distributions (cont.)

n �����p

m 1 2 3 4 5 6 7 8 9 10 11 12 p

120 .0005 .0640 .0350 .0251 .016 .031 .049 .067 .087 .105 .123 .140 .156 .0005 .001 .0516 .0210 .0281 .023 .042 .063 .084 .105 .125 .144 .162 .179 .001 .005 .0439 .0250 .024 .051 .081 .111 .139 .165 .189 .211 .230 .249 .005 .01 .0316 .010 .038 .074 .110 .143 .174 .202 .227 .250 .271 .290 .01 .025 .0399 .025 .072 .120 .165 .204 .238 .268 .295 .318 .340 .359 .025 .05 .0239 .051 .117 .177 .227 .270 .306 .337 .364 .388 .408 .427 .05 .10 .016 .105 .194 .265 .320 .365 .401 .432 .458 .480 .500 .518 .10 .25 .102 .288 .405 .481 .534 .574 .606 .631 .652 .670 .685 .699 .25 .50 .458 .697 .793 .844 .875 .896 .912 .923 .932 .939 .945 .950 .50 .75 1.34 1.40 1.39 1.37 1.35 1.33 1.31 1.30 1.29 1.28 1.27 1.26 .75 .90 2.75 2.35 2.13 1.99 1.90 1.82 1.77 1.72 1.68 1.65 1.62 1.60 .90 .95 3.92 3.07 2.68 2.45 2.29 2.18 2.09 2.02 1.96 1.91 1.87 1.83 .95 .975 5.15 3.80 3.23 2.89 2.67 2.52 2.39 2.30 2.22 2.16 2.10 2.05 .975 .99 6.85 4.79 3.95 3.48 3.17 2.96 2.79 2.66 2.56 2.47 2.40 2.34 .99 .995 8.18 5.54 4.50 3.92 3.55 3.28 3.09 2.93 2.81 2.71 2.62 2.54 .995 .999 11.4 7.32 5.79 4.95 4.42 4.04 3.77 3.55 3.38 3.24 3.12 3.02 .999 .9995 12.8 8.10 6.34 5.39 4.79 4.37 4.07 3.82 3.63 3.47 3.34 3.22 .9995

∞ .0005 .0639 .0350 .0251 .016 .032 .050 069 .088 .108 .127 .144 .161 .0005 .001 .0516 .0210 .0281 .023 .042 .063 .085 .107 .128 .148 .167 .185 .001 .005 .0439 .0250 .024 .052 .082 .113 .141 .168 .193 .216 .236 .256 .005 .01 .0316 .010 .038 .074 .111 .145 .177 .206 .232 .256 .278 .298 .01 .025 .0398 .025 .072 .121 .166 .206 .241 .272 .300 .325 .347 .367 .025 .05 .0239 .051 .117 .178 .229 .273 .310 .342 .369 .394 .417 .436 .05 .10 .016 .105 .195 .266 .322 .367 .405 .436 .463 .487 .508 .525 .10 .25 .102 .288 .404 .481 .535 .576 .608 .634 .655 .674 .690 .703 .25 .50 .455 .693 .789 .839 .870 .891 .907 .918 .927 .934 .939 .945 .50 .75 1.32 1.39 1.37 1.35 1.33 1.31 1.29 1.28 1.27 1.25 1.24 1.24 .75 .90 2.71 2.30 2.08 1.94 1.85 1.77 1.72 1.67 1.63 1.60 1.57 1.55 .90 .95 3.84 3.00 2.60 2.37 2.21 2.10 2.01 1.94 1.88 1.83 1.79 1.75 .95 .975 5.02 3.69 3.12 2.79 2.57 2.41 2.29 2.19 2.11 2.05 1.99 1.94 .975 .99 6.63 4.61 3.78 3.32 3.02 2.80 2.64 2.51 2.41 2.32 2.25 2.18 .99 .995 7.88 5.30 4.28 3.72 3.35 3.09 2.90 2.74 2.62 2.52 2.43 2.36 .995 .999 10.8 6.91 5.42 4.62 4.10 3.74 3.47 3.27 3.10 2.96 2.84 2.74 .999 .9995 12.1 7.60 5.91 5.00 4.42 4.02 3.72 3.48 3.30 3.14 3.02 2.90 .9995

Table A.4 695

Table A.4 Percentiles of F Distributions (cont.) �����p

m 15 20 24 30 40 50 60 100 120 200 500 ∞ p n .0005 .199 .256 .293 .338 .390 .429 .458 .524 .543 .578 .614 .676 .0005 120 .001 .223 .282 .319 .363 .415 .453 .480 .542 .568 .595 .631 .691 .001 .005 .297 .356 .393 .434 .484 .520 .545 .605 .623 .661 .702 .733 .005 .01 .338 .397 .433 .474 .522 .556 .579 .636 .652 .688 .725 .755 .01 .025 .406 .464 .498 .536 .580 .611 .633 .684 .698 .729 .762 .789 .025 .05 .473 .527 .559 .594 .634 .661 .682 .727 .740 .767 .785 .819 .05 .10 .560 .609 .636 .667 .702 .726 .742 .781 .791 .815 .838 .855 .10 .25 .730 .765 .784 .805 .828 .843 .853 .877 .884 .897 .911 .923 .25 .50 .961 .972 .978 .983 .989 .992 .994 1.00 1.00 1.00 1.01 1.01 .50 .75 1.24 1.22 1.21 1.19 1.18 1.17 1.16 1.14 1.13 1.12 1.11 1.10 .75 .90 1.55 1.48 1.45 1.41 1.37 1.34 1.32 1.27 1.26 1.24 1.21 1.19 .90 .95 1.75 1.66 1.61 1.55 1.50 1.46 1.43 1.37 1.35 1.32 1.28 1.25 .95 .975 1.95 1.82 1.76 1.69 1.61 1.56 1.53 1.45 1.43 1.39 1.34 1.31 .975 .99 2.19 2.03 1.95 1.86 1.76 1.70 1.66 1.56 1.53 1.48 1.42 1.38 .99 .995 2.37 2.19 2.09 1.98 1.87 1.80 1.75 1.64 1.61 1.54 1.48 1.43 .995 .999 2.78 2.53 2.40 2.26 2.11 2.02 1.95 1.82 1.76 1.70 1.62 1.54 .999 .9995 2.96 2.67 2.53 2.38 2.21 2.11 2.01 1.88 1.84 1.75 1.67 1.60 .9995 .0005 .207 .270 .311 .360 .422 .469 .505 .599 .624 .704 .804 1.00 .0005 ∞ .001 .232 .296 .338 .386 .448 .493 .527 .617 .649 .719 .819 1.00 .001 .005 .307 .372 .412 .460 .518 .559 .592 .671 .699 .762 .843 1.00 .005 .01 .349 .413 .452 .499 .554 .595 .625 .699 .724 .782 .858 1.00 .01 .025 .418 .480 .517 .560 .611 .645 .675 .741 .763 .813 .878 1.00 .025 .05 .484 .543 .577 .617 .663 .694 .720 .781 .797 .840 .896 1.00 .05 .10 .570 .622 .652 .687 .726 .752 .774 .826 .838 .877 .919 1.00 .10 .25 .736 .773 .793 .816 .842 .860 .872 .901 .910 .932 .957 1.00 .25 .50 .956 .967 .972 .978 .983 .987 .989 .993 .994 .997 .999 1.00 .50 .75 1.22 1.19 1.18 1.16 1.14 1.13 1.12 1.09 1.08 1.07 1.04 1.00 .75 .90 1.49 1.42 1.38 1.34 1.30 1.26 1.24 1.18 1.17 1.13 1.08 1.00 .90 .95 1.67 1.57 1.52 1.46 1.39 1.35 1.32 1.24 1.22 1.17 1.11 1.00 .95 .975 1.83 1.71 1.64 1.57 1.48 1.43 1.39 1.30 1.27 1.21 1.13 1.00 .975 .99 2.04 1.88 1.79 1.70 1.59 1.52 1.47 1.36 1.32 1.25 1.15 1.00 .99 .995 2.19 2.00 1.90 1.79 1.67 1.59 1.53 1.40 1.36 1.28 1.17 1.00 .995 .999 2.51 2.27 2.13 1.99 1.84 1.73 1.66 1.49 1.45 1.34 1.21 1.00 .999 .9995 2.65 2.37 2.22 2.07 1.91 1.79 1.71 1.53 1.48 1.36 1.22 1.00 .9995

Table A.5 Upper Percentiles of Studentized Range Distributions

Area = a

Studentized range distribution with k and v degrees of freedom

Qa, k, v0

v �������1−α

k 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

1 0.95 18.0 27.0 32.8 37.1 40.4 43.1 45.4 47.4 49.1 50.6 52.0 53.2 54.3 55.4 56.3 0.99 90.0 135 164 186 202 216 227 237 246 253 260 266 272 277 282

2 0.95 6.09 8.3 9.8 10.9 11.7 12.4 13.0 13.5 14.0 14.4 14.7 15.1 15.4 15.7 15.9 0.99 14.0 19.0 22.3 24.7 26.6 28.2 29.5 30.7 31.7 32.6 33.4 34.1 34.8 35.4 36.0

3 0.95 4.50 5.91 6.82 7.50 8.04 8.48 8.85 9.18 9.46 9.72 9.95 10.2 10.4 10.5 10.7 0.99 8.26 10.6 12.2 13.3 14.2 15.0 15.6 16.2 16.7 17.1 17.5 17.9 18.2 18.5 18.8

4 0.95 3.93 5.04 5.76 6.29 6.71 7.05 7.35 7.60 7.83 8.03 8.21 8.37 8.52 8.66 8.79 0.99 6.51 8.12 9.17 9.96 10.6 11.1 11.5 11.9 12.3 12.6 12.8 13.1 13.3 13.5 13.7

5 0.95 3.64 4.60 5.22 5.67 6.03 6.33 6.58 6.80 6.99 7.17 7.32 7.47 7.60 7.72 7.83 0.99 5.70 6.97 7.80 8.42 8.91 9.32 9.67 9.97 10.2 10.5 10.7 10.9 11.1 11.2 11.4

6 0.95 3.46 4.34 4.90 5.31 5.63 5.89 6.12 6.32 6.49 6.65 6.79 6.92 7.03 7.14 7.24 0.99 5.24 6.33 7.03 7.56 7.97 8.32 8.61 8.87 9.10 9.30 9.49 9.65 9.81 9.95 10.1

7 0.95 3.34 4.16 4.68 5.06 5.36 5.61 5.82 6.00 6.16 6.30 6.43 6.55 6.66 6.76 6.85 0.99 4.95 5.92 6.54 7.01 7.37 7.68 7.94 8.17 8.37 8.55 8.71 8.86 9.00 9.12 9.24

8 0.95 3.26 4.04 4.53 4.89 5.17 5.40 5.60 5.77 5.92 6.05 6.18 6.29 6.39 6.48 6.57 0.99 4.74 5.63 6.20 6.63 6.96 7.24 7.47 7.68 7.87 8.03 8.18 8.31 8.44 8.55 8.66

9 0.95 3.20 3.95 4.42 4.76 5.02 5.24 5.43 5.60 5.74 5.87 5.98 6.09 6.19 6.28 6.36 0.99 4.60 5.43 5.96 6.35 6.66 6.91 7.13 7.32 7.49 7.65 7.78 7.91 8.03 8.13 8.23

10 0.95 3.15 3.88 4.33 4.65 4.91 5.12 5.30 5.46 5.60 5.72 5.83 5.93 6.03 6.11 6.20 0.99 4.48 5.27 5.77 6.14 6.43 6.67 6.87 7.05 7.21 7.36 7.48 7.60 7.71 7.81 7.91

11 0.95 3.11 3.82 4.26 4.57 4.82 5.03 5.20 5.35 5.49 5.61 5.71 5.81 5.90 5.99 6.06 0.99 4.39 5.14 5.62 5.97 6.25 6.48 6.67 6.84 6.99 7.13 7.25 7.36 7.46 7.56 7.65

12 0.95 3.08 3.77 4.20 4.51 4.75 4.95 5.12 5.27 5.40 5.51 5.62 5.71 5.80 5.88 5.95 0.99 4.32 5.04 5.50 5.84 6.10 6.32 6.51 6.67 6.81 6.94 7.06 7.17 7.26 7.36 7.44

13 0.95 3.06 3.73 4.15 4.45 4.69 4.88 5.05 5.19 5.32 5.43 5.53 5.63 5.71 5.79 5.86 0.99 4.26 4.96 5.40 5.73 5.98 6.19 6.37 6.53 6.67 6.79 6.90 7.01 7.10 7.19 7.27

14 0.95 3.03 3.70 4.11 4.41 4.64 4.83 4.99 5.13 5.25 5.36 5.46 5.55 5.64 5.72 5.79 0.99 4.21 4.89 5.32 5.63 5.88 6.08 6.26 6.41 6.54 6.66 6.77 6.87 6.96 7.05 7.12

696

v �������1 − α

k 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

15 0.95 3.01 3.67 4.08 4.37 4.60 4.78 4.94 5.08 5.20 5.31 5.40 5.49 5.58 5.65 5.72 0.99 4.17 4.83 5.25 5.56 5.80 5.99 6.16 6.31 6.44 6.55 6.66 6.76 6.84 6.93 7.00

16 0.95 3.00 3.65 4.05 4.33 4.56 4.74 4.90 5.03 5.15 5.26 5.35 5.44 5.52 5.59 5.66 0.99 4.13 4.78 5.19 5.49 5.72 5.92 6.08 6.22 6.35 6.46 6.56 6.66 6.74 6.82 6.90

17 0.95 2.98 3.63 4.02 4.30 4.52 4.71 4.86 4.99 5.11 5.21 5.31 5.39 5.47 5.55 5.61 0.99 4.10 4.74 5.14 5.43 5.66 5.85 6.01 6.15 6.27 6.38 6.48 6.57 6.66 6.73 6.80

18 0.95 2.97 3.61 4.00 4.28 4.49 4.67 4.82 4.96 5.07 5.17 5.27 5.35 5.43 5.50 5.57 0.99 4.07 4.70 5.09 5.38 5.60 5.79 5.94 6.08 6.20 6.31 6.41 6.50 6.58 6.65 6.72

19 0.95 2.96 3.59 3.98 4.25 4.47 4.65 4.79 4.92 5.04 5.14 5.23 5.32 5.39 5.46 5.53 0.99 4.05 4.67 5.05 5.33 5.55 5.73 5.89 6.02 6.14 6.25 6.34 6.43 6.51 6.58 6.65

20 0.95 2.95 3.58 3.96 4.23 4.45 4.62 4.77 4.90 5.01 5.11 5.20 5.28 5.36 5.43 5.49 0.99 4.02 4.64 5.02 5.29 5.51 5.69 5.84 5.97 6.09 6.19 6.29 6.37 6.45 6.52 6.59

24 0.95 2.92 3.53 3.90 4.17 4.37 4.54 4.68 4.81 4.92 5.01 5.10 5.18 5.25 5.32 5.38 0.99 3.96 4.54 4.91 5.17 5.37 5.54 5.69 5.81 5.92 6.02 6.11 6.19 6.26 6.33 6.39

30 0.95 2.89 3.49 3.84 4.10 4.30 4.46 4.60 4.72 4.83 4.92 5.00 5.08 5.15 5.21 5.27 0.99 3.89 4.45 4.80 5.05 5.24 5.40 5.54 5.65 5.76 5.85 5.93 6.01 6.08 6.14 6.20

40 0.95 2.86 3.44 3.79 4.04 4.23 4.39 4.52 4.63 4.74 4.82 4.91 4.98 5.05 5.11 5.16 0.99 3.82 4.37 4.70 4.93 5.11 5.27 5.39 5.50 5.60 5.69 5.77 5.84 5.90 5.96 6.02

60 0.95 2.83 3.40 3.74 3.98 4.16 4.31 4.44 4.55 4.65 4.73 4.81 4.88 4.94 5.00 5.06 0.99 3.76 4.28 4.60 4.82 4.99 5.13 5.25 5.36 5.45 5.53 5.60 5.67 5.73 5.79 5.84

120 0.95 2.80 3.36 3.69 3.92 4.10 4.24 4.36 4.48 4.56 4.64 4.72 4.78 4.84 4.90 4.95 0.99 3.70 4.20 4.50 4.71 4.87 5.01 5.12 5.21 5.30 5.38 5.44 5.51 5.56 5.61 5.66

∞ 0.95 2.77 3.31 3.63 3.86 4.03 4.17 4.29 4.39 4.47 4.55 4.62 4.68 4.74 4.80 4.85 0.99 3.64 4.12 4.40 4.60 4.76 4.88 4.99 5.08 5.16 5.23 5.29 5.35 5.40 5.45 5.49

697

698 Appendix A Statistical Tables

Table A.6 Upper and Lower Percentiles of the Wilcoxon Signed Rank Statistic, W

w∗1 w ∗ 2 P(W ≤ w∗1 ) = P(W ≥ w∗2 )

n = 4 0 10 0.062 1 9 0.125

n = 5 0 15 0.031 1 14 0.062 2 13 0.094 3 12 0.156

n = 6 0 21 0.016 1 20 0.031 2 19 0.047 3 18 0.078 4 17 0.109 5 16 0.156

n = 7 0 28 0.008 1 27 0.016 2 26 0.023 3 25 0.039 4 24 0.055 5 23 0.078 6 22 0.109 7 21 0.148

n = 8 0 36 0.004 1 35 0.008 2 34 0.012 3 33 0.020 4 32 0.027 5 31 0.039 6 30 0.055 7 29 0.074 8 28 0.098 9 27 0.125

n = 9 1 44 0.004 2 43 0.006 3 42 0.010 4 41 0.014 5 40 0.020 6 39 0.027 7 38 0.037 8 37 0.049 9 36 0.064

10 35 0.082 11 34 0.102 12 33 0.125

Table A.6 699

Table A.6 Upper and Lower Percentiles of the Wilcoxon Signed Rank Statistic, W (cont.)

w∗1 w ∗ 2 P(W ≤ w∗1 ) = P(W ≥ w∗2 )

n = 10 3 52 0.005 4 51 0.007 5 50 0.010 6 49 0.014 7 48 0.019 8 47 0.024 9 46 0.032

10 45 0.042 11 44 0.053 12 43 0.065 13 42 0.080 14 41 0.097 15 40 0.116 16 39 0.138

n = 11 5 61 0.005 6 60 0.007 7 59 0.009 8 58 0.012 9 57 0.016

10 56 0.021 11 55 0.027 12 54 0.034 13 53 0.042 14 52 0.051 15 51 0.062 16 50 0.074 17 49 0.087 18 48 0.103 19 47 0.120 20 46 0.139

n = 12 7 71 0.005 8 70 0.006 9 69 0.008

10 68 0.010 11 67 0.013 12 66 0.017 13 65 0.021 14 64 0.026 15 63 0.032 16 62 0.039 17 61 0.046 18 60 0.055 19 59 0.065 20 58 0.076 21 57 0.088 22 56 0.102 23 55 0.117 24 54 0.133

This page intentionally left blank

Answers to Selected Odd-Numbered Questions

CHAPTER 2

Section 2.2 2.2.1. S ={(s, s, s), (s, s, f ), (s, f, s), ( f, s, s), (s, f, f ),

( f, s, f ), ( f, f, s), ( f, f, f )}; A = {(s, f, s), ( f, s, s)}; B = {( f, f, f )}

2.2.3. (1, 3, 4), (1, 3, 5), (1, 3, 6), (2, 3, 4), (2, 3, 5), (2, 3, 6) 2.2.5. The outcome sought is (4, 4). 2.2.7. P = {right triangles with sides (5, a, b): a2 +b2 = 25} 2.2.9. (a) S = {(0, 0, 0, 0), (0, 0, 0, 1), (0, 0, 1, 0), (0, 0, 1, 1),

(0, 1, 0, 0), (0, 1, 0, 1), (0, 1, 1, 0), (0, 1, 1, 1), (1, 0, 0, 0), (1, 0, 0, 1), (1, 0, 1, 0), (1, 0, 1, 1), (1, 1, 0, 0), (1, 1, 0, 1), (1, 1, 1, 0), (1, 1, 1, 1)} (b) A = {(0, 0, 1, 1), (0, 1, 0, 1), (0, 1, 1, 0), (1, 0, 0, 1), (1, 0, 1, 0), (1, 1, 0, 0)} (c) 1 + k

2.2.11. Let p1 and p2 denote the two perpetrators and i1, i2, and i3, the three in the lineup who are innocent. Then S = {(p1, i1), (p1, i2), (p1, i3), (p2, i1), (p2, i2), (p2, i3), (p1, p2), (i1, i2), (i1, i3), (i2, i3)}. The event A contains every outcome in S except (p1, p2).

2.2.13. In order for the shooter to win with a point of 9, one of the following (countably infinite) sequences of sums must be rolled: (9, 9), (9, no 7 or no 9, 9), (9, no 7 or no 9, no 7 or no 9, 9), . . . .

2.2.15. Let Ak be the set of chips placed in the urn at 1/2k minute until midnight. For example, A1 = {11, 12, . . . , 20}. Then the set of chips in the urn is⋃∞

k=1(Ak − {k}) = ⋃∞

k=1 Ak − ⋃∞

k=1{k} = ∅, since⋃∞ k=1 Ak is a subset of

⋃∞ k=1{k}.

2.2.17. A∩B = {x: −3 ≤ x ≤ 2} and A∪B = {x: −4 ≤ x ≤ 2} 2.2.19. A = (A11 ∩ A21) ∪ (A12 ∩ A22) 2.2.21. 40

2.2.23. (a) If s is a member of A ∪ (B ∩ C), then s belongs to A or to B ∩ C. If it is a member of A or of B ∩ C, then it belongs to A ∪ B and to A ∪ C. Thus, it is a member of (A ∪ B) ∩ (A ∪ C). Conversely, choose s in (A ∪ B) ∩ (A ∪ C). If it belongs to A, then it be- longs to A ∪ (B ∩C). If it does not belong to A, then it must be a member of B ∩C. In that case it also is a member of A ∪ (B ∩ C). (b) If s is a member of A ∩ (B ∪ C), then s belongs to A and to either B or C or both. Therefore, A must

belong to (A ∩ B) ∪ (A ∩C). Proving that a member in (A ∩ B) ∪ (A ∩ C) must belong to A ∩ (B ∪ C) is done similarly.

2.2.25. (a) Let s be a member of A ∪ (B ∪ C). Then s be- longs to either A or B ∪ C (or both). If s belongs to A, it necessarily belongs to (A ∪ B) ∪ C. If s belongs to B ∪ C, it belongs to B or C or both, so it must belong to (A ∪ B) ∪ C. Now, suppose s belongs to (A ∪ B) ∪ C. Then it belongs to either A ∪ B or C or both. If it belongs to C, it must belong to A ∪ (B ∪ C). If it belongs to A ∪ B, it must be- long to either A or B or both, so it must belong to A ∪ (B ∪ C). (b) The proof is similar to part (a).

2.2.27. (a) A is a subset of B. (b) A is a subset of B.

2.2.29. (a) B and C (b) B is a subset of A.

2.2.31. 240 2.2.35. A ⊂ A ∪ B; B ⊂ A ∪ B; A ∩ B ⊂ A ∪ B; AC ∩ B ⊂

B; A ∩ BC ⊂ A; A ∩ BC ⊂ A ∪ B; AC ∩ B ⊂ A ∪ B; (AC ∪ BC)C ⊂ A ∩ B; (AC ∪ BC)C ⊂ A ∪ B

2.2.37. 100/1200 2.2.39. 500

Section 2.3 2.3.1. 0.41 2.3.3. (a) 1 − P(A ∩ B)

(b) P(B) − P(A ∩ B) 2.3.5. No. P(A1 ∪ A2 ∪ A3) = P(at least one “6” appears) =

1 − P(no 6’s appear) = 1 − ( 56 )3 �= 12 . The Ai’s are not mutually exclusive, so P(A1 ∪ A2 ∪ A3) �= P(A1) + P(A2) + P(A3).

2.3.7. By inspection, B = (B ∩ A1) ∪ (B ∩ A2) ∪ · · · ∪ (B ∩ An).

2.3.9. 3/4 2.3.11. 0.30 2.3.13. 0.15 2.3.15. (a) XC ∩ Y = {(H, T, T, H), (T, H, H, T)}, so

P(XC ∩ Y) = 2/16 (b) X ∩ YC = {(H, T, T, T), (T, T, T, H), (T, H, H, H), (H, H, H, T)}, so P(X ∩ YC) = 4/16

2.3.17. A ∩ B, (A ∩ B) ∪ (A ∩ C), A, A ∪ B, S

701

702 Answers to Selected Odd-Numbered Questions

Section 2.4 2.4.1. 3/10

2.4.3. If P(A|B) = P(A ∩ B) P(B)

< P(A), then P(A ∩ B) <

P(A) · P(B). It follows that P(B|A) = P(A ∩ B) P(A)

<

P(A) · P(B) P(A)

= P(B). 2.4.5. The answer would remain the same. Distinguishing

only three family types does not make them equally likely; (girl, boy) families will occur twice as often as either (boy, boy) or (girl, girl) families.

2.4.7. 3/8 2.4.9. 5/6

2.4.11. (a) 5/100 (b) 70/100 (c) 95/100 (d) 75/100 (e) 70/95 (f) 25/95 (g) 30/35

2.4.13. 3/5 2.4.15. 1/5 2.4.17. 2/3 2.4.19. 20/55 2.4.21. 1800/360, 360; 1/360, 360 2.4.23. (a) 0.766 (b) no (c) yes 2.4.25. 0.027 2.4.27. 0.23 2.4.29. 0.70 2.4.31. 0.01% 2.4.33. 0.43 2.4.35. No. Let B denote the event that the person calling

the toss is correct. Let AH be the event that the coin comes up Heads and let AT be the event that the coin comes up Tails. Then P(B) = P(B|AH)P(AH)+ P(B|AT )P(AT ) = (0.7)

( 1 2

) + (0.3)

( 1 2

) = 1

2 .

2.4.37. 0.415 2.4.39. 0.46 2.4.41. 5/12 2.4.43. Hearthstone 2.4.45. 0.74 2.4.47. 14 2.4.49. 0.441 2.4.51. 0.64 2.4.53. 1/3

Section 2.5 2.5.1. (a) No, P(A ∩ B) > 0 (b) No, P(A ∩ B) = 0.2 �=

0.3 = P(A)P(B) (c) 0.8 2.5.3. 6/36 2.5.5. 0.51 2.5.7. (a) (1) 3/8 (2) 11/32 (b) (1) 0 (2) 1/4 2.5.9. 6/16

2.5.11. Equation 2.5.3:

P(A ∩ B ∩ C) = P({(1, 3)}) = 1/36 = (2/6)(3/6)(6/36) = P(A)P(B)P(C)

Equation 2.5.4:

P(B ∩ C) = P({(1, 3), (5, 6)}) = 2/36 �= (3/6)(6/36) = P(B)P(C)

2.5.13. 11 2.5.15. P(A ∩ B ∩ C) = 0 (since the sum of two odd num-

bers is necessarily even) �= P(A) · P(B) · P(C) > 0, so A, B, and C are not mutually independent. How-

ever, P(A ∩ B) = 9 36

= P(A) · P(B) = 3 6

· 3 6

,

P(A ∩ C) = 9 36

= P(A) · P(C) = 3 6

· 18 36

, and

P(B ∩ C) = 9 36

= P(B) · P(C) = 3 6

· 18 36

, so A, B,

and C are pairwise independent. 2.5.17. 0.56 2.5.19. Let p be the probability of having a winning game

card. Then 0.32 = P(winning at least once in 5 tries)

= 1 − P(not winning in 5 tries) = 1 − (1 − p)5, so p = 0.074

2.5.21. 7 2.5.23. 63/384 2.5.25. 25 2.5.27.

w

w + r 2.5.29. 12 2.5.31. Final A

Section 2.6 2.6.1. 2 · 3 · 2 · 2 = 24 2.6.3. 3 · 3 · 5 = 45; included are aeu and cdx 2.6.5. 9 · 9 · 8 = 648; 8 · 8 · 5 = 320 2.6.7. 5 · 27 = 640 2.6.9. 4 · 14 · 6 + 4 · 6 · 5 + 14 · 6 · 5 + 4 · 14 · 5 = 1156

2.6.11. 28 − 1 = 255; five families can be added. 2.6.13. 28 − 1 = 255 2.6.15. 12 · 4 + 1 · 3 = 51 2.6.17. 6 · 5 · 4 = 120 2.6.19. 2.645 × 1032 2.6.21. 2 · 6 · 5 = 60 2.6.23. 4 · 10P3 = 2880 2.6.25. 6! − 1 = 719 2.6.27. (2!)(8!)(6) = 483, 840 2.6.29. (13!)4

2.6.31. 9(8)4 = 288 2.6.33. (a) (4!)(5!) = 2880 (b) 6(4!)(5!) = 17,280

(c) (4!)(5!) = 2880 (d) 2(9)8(7)6(5) = 30,240 2.6.35.

6! 3!(1!)3

+ 6! 2!2!(1!)2

= 300 2.6.37. (a) 4!3!3! = 864 (b) 3!4!3!3! = 5184

(c) 10! = 3,628,800 (d) 10!/4!3!3! = 4200 2.6.39. (2n)!/n!(2!)n = 1 · 3 · 5 . . .· (2n − 1) 2.6.41. 11 · 10!/3! = 6,652,800

Answers to Selected Odd-Numbered Questions 703

2.6.43. 4!/2!2! = 6 2.6.45. 6!/3!3! = 20 2.6.47.

1 30

· 14! 2!2!1!2!2!3!1!1!

= 30,270,240 2.6.49. The three courses with A grade can be:

English, math, French English, math, psychology English, math, history English, French, psychology English, French, history English, psychology, history math, French, psychology math, French, history math, psychology, history French, psychology, history

2.6.51. (

10 6

)( 15 3

) = 95,550

2.6.53. (a) (

9 4

) = 126 (b)

( 5 2

)( 4 2

) = 60

(c) (

9 4

) − (

5 4

) − (

4 4

) = 120

2.6.55. (

10 5

)/ 2 = 126

2.6.57. (

8 4

) 7!

2!4!1! = 7350

2.6.59. (

n k + 1

) = n − k

k + 1 (

n k

) 2.6.61. The ratio of two successive terms in the sequence

is (

n j + 1

)/( n j

) = n − j

j + 1 . For small j, n − j > j + 1, implying that the terms are increasing. For j >

n − 1 2

, though, the ratio is less than 1, meaning

the terms are decreasing.

2.6.63. Using Newton’s binomial expansion, the equation (1 + t)d · (1 + t)e = (1 + t)d+e can be written⎛ ⎝ d∑

j=0

( d j

) t j

⎞ ⎠ · ⎛ ⎝ e∑

j=0

( e j

) t j

⎞ ⎠ = d+e∑

j=0

( d + e

j

) t j

Since the exponent k can arise as t0 · tk, t1 · tk−1, . . . , or tk · t0, it follows that

( d 0

)( e k

) + (

d 1

)( e

k − 1 )

+· · ·

+ (

d k

)( e 0

) = (

d + e k

) . That is,

( d + e

k

) =

k∑ j=0

( d j

)( e

k − j )

.

Section 2.7 2.7.1. 63/210

2.7.3. 1 − 37 190

2.7.5. 10/19 (recall Bayes’s rule)

2.7.7. 1/6n−1

2.7.9. 2(n!)2/(2n)!

2.7.11. 7!/77; 1/76. The assumption being made is that all possible departure patterns are equally likely, which is probably not true, since residents living on lower floors would be less inclined to wait for the elevator than would those living on the top floors.

2.7.13. 210 /(

20 10

)

2.7.15. (

k 2

) · 365 · 364 · · · (365 − k + 2)

(365)k

2.7.17. (

11 3

)/( 47 3

)

2.7.19. 2 /(

47 2

) ; [(

10 2

) − 2 ]/(

47 2

)

2.7.21. (

5 3

)( 4 2

)3(3 1

)( 4 2

)( 2 1

)( 4 1

)/( 52 9

)

2.7.23. [(

2 1

)( 2 1

)]4 (32 4

)/( 48 12

)

CHAPTER 3

Section 3.2 3.2.1. 0.211 3.2.3. (0.23)12 .= 1/45, 600, 000 3.2.5. 0.0185 3.2.7. The probability that a two engine plane lands safely

is 0.84. The probability that a four engine plane lands safely is 0.8208.

3.2.9. n = 6: 0.67 n = 12: 0.62 n = 18: 0.60 3.2.11. The probability of two girls and two boys is 0.375.

The probability of three of one sex and one of the other is 0.5.

3.2.13. 7 3.2.15. (1) 0.273 (2) 0.756 3.2.17. 0.118 3.2.19. 0.031 3.2.21. 64/84 3.2.23. 0.967 3.2.25. 0.964 3.2.27. 0.129 3.2.31. 53/99

3.2.33.

⎛ ⎝ n1

r1

⎞ ⎠ ⎛ ⎝ n2

r2

⎞ ⎠ ⎛ ⎝ n3

r3

⎞ ⎠

⎛ ⎝N

r

⎞ ⎠

3.2.35.

⎛ ⎝ n1

k1

⎞ ⎠ ⎛ ⎝ n2

k2

⎞ ⎠ · · ·

( nt kt

) ⎛ ⎝N

n

⎞ ⎠

704 Answers to Selected Odd-Numbered Questions

Section 3.3 3.3.1. (a)

k pX (k)

2 1/10 3 2/10 4 3/10 5 4/10

(b) k pV (k)

3 1/10 4 1/10 5 2/10 6 2/10 7 2/10 8 1/10 9 1/10

3.3.3. pX (k) = k3/216 − (k − 1)3/216, k = 1, 2, 3, 4, 5, 6 3.3.5. pX (3) = 1/8; pX (1) = 3/8; pX (−1) = 3/8,

pX (−3) = 1/8 3.3.7. pX (2k − 4) =

( 4 k

) 1 16

, k = 0, 1, 2, 3, 4 3.3.9.

k pX (k)

0 4/10 1 3/10 2 2/10 3 1/10

3.3.11. p2X+1(k) = pX (

k − 1 2

) = (

4 k−1

2

)( 2 3

) k−1 2 (

1 3

)4− k−12 ,

k = 1, 3, 5, 7, 9 3.3.13. FX (k) =

k∑ j=0

( 4 j

)( 1 6

) j (5 6

)4− j , k = 1, 2, 3, 4

3.3.15. p(1 − p)k−1, k = 1, 2, . . . (Geometric)

Section 3.4 3.4.1. 1/16 3.4.3. 13/64 3.4.5. 0.408

3.4.7. FY (y) = y4, 0 ≤ y ≤ 1 P(Y ≤ 1/2) = 1/16

3.4.9. FY (y) =

⎧⎪⎪⎨ ⎪⎪⎩

1 2 + y +

y2

2 , −1 ≤ y ≤ 0

1 2 + y −

y2

2 , 0 ≤ y ≤ 1

3.4.11. (a) 0.693 (b) 0.223 (c) 0.223 (d) fY (y) = 1y , 1 ≤ y ≤ e

3.4.13. fY (y) = 16 y + 1 4

y2, 0 ≤ y ≤ 2

3.4.15. F ′(y) = −1(1 + e−y)−2(−e−y) = e −y

(1 + e−y)2 > 0, so F (y) is increasing. The other two assertions follow from the facts that lim

y→−∞ e−y = ∞ and lim

y→∞ e−y = 0.

3.4.17. P(−a < Y < a) = P(−a < Y ≤ 0) + P(0 < Y < a)

= ∫ 0

−a fY (y)dy +

∫ a 0

fY (y)dy = − ∫ a

0 fY (−y)dy

+ ∫ a

0 fY (y)dy =

∫ a 0

fY (y)dy + ∫ a

0 fY (y)dy

= 2[FY (a) − FY (0)] But by the symmetry of fY , FY (0) = 1/2. Thus, 2[FY (a) − FY (0)] = 2[FY (a) − 1/2] = 2FY (a) − 1

Section 3.5 3.5.1. −0.144668 3.5.3. $28,200 3.5.5. $227.32 3.5.7. 15 3.5.9. 9/4 years

3.5.11. 1/λ

3.5.13. E(X ) = 200∑ k=1

k (

200 k

) (0.80)k(0.20)200−k

E(X ) = np = 200(0.80) = 160 3.5.15. $307,421.92 3.5.17. 10/3 3.5.19. $10.95 3.5.21. 91/36 3.5.23. 5.8125

3.5.25. E(X ) = r∑

k=1 k

( r k

)( w n − k

) (

r + w n

) = r∑ k=1

k

r! k!(r − k)!

( w

n − k )

(r + w)! n!(r + w − n)!

Factor out the presumed value of E(X ) = rn/(r + w):

E(X ) = rn r + w

r∑ k=1

(r − 1)! (k − 1)!(r − k)!

( w

n − k )

(r − 1 + w)! (n − 1)!(r + w − n)!

= rn r + w

r∑ k=1

( r − 1 k − 1

)( w

n − k )

( r − 1 + w

n − 1 )

Change the index of summation to begin at 0, which

gives E(X ) = rn r + w

r−1∑ k=0

( r − 1

k

)( w

n − 1 − k )

( r − 1 + w

n − 1 ) .

The terms of the summation are urn probabilities where there are r − 1 red balls, w white balls, and a sample size of n − 1 is drawn. Since these are the probabilities of a hypergeometric pdf, the sum is one. This leaves us with the desired equality E(X ) =

rn r + w .

3.5.27. (a) (0.5) 1

θ+1 (b) −1 + √5

2

Answers to Selected Odd-Numbered Questions 705

3.5.29. E(Y) = $132 3.5.31. $50,000 3.5.33. Class average = 53.3, so the professor’s “curve”

did not work. 3.5.35. 16.33

Section 3.6 3.6.1. 12/25 3.6.3. 0.748 3.6.5. 3/80 3.6.7. 1.115 3.6.9. Johnny should pick (a + b)/2

3.6.11. E(Y) = ∫∞0 yλe−λydy = 1/λ. E(Y 2) = ∫∞0 y2λe−λydy = 2/λ2, using integration by parts. Thus, Var(Y) = 2/λ2 − (1/λ)2 = 1/λ2.

3.6.13. E[(X −a)2] = Var(X )+(μ−a)2 since E(X −μ) = 0. This is minimized when a = μ, so the minimum of g(a) = Var(X ).

3.6.15. 8.7◦C 3.6.17. (a) fY (y) = 1b − a fU

( y − a b − a

) = 1

b − a . The inter- val where Y is non-zero is (b − a)(0) + a ≤ y ≤ (b − a)(1) + a, or equivalently a ≤ y ≤ b (b) Var(Y) = Var[(b−a)U +a] = (b−a)2 Var(U) = (b − a)2/12

3.6.19. 2r

r + 1 ; 1/7 3.6.21. 9/5 − 3 = −6/5 3.6.23. Let E(X ) = μ and Var(X ) = σ2. Then E(aX +

b) = aμ + b and Var(aX + b) = a2σ2. Thus, the standard deviation of aX + b = aσ and

γ1 = E [

((aX + b) − (aμ + b))3 ] (aσ)3

= a 3E [ (X − μ)3] a3σ3

= E [ (X − μ)3]

σ3 = γ1(X )

The demonstration for γ2 is similar. 3.6.25. (a) c = 5 (b) Highest integral moment = 4

Section 3.7 3.7.1. 1/10 3.7.3. 2

3.7.5. P(X = x,Y = y) =

( 3 x

)( 2 y

)( 4

3 − x − y )

( 9 3

) , 0 ≤ x ≤ 3, 0 ≤ y ≤ 2, x + y ≤ 3

3.7.7. 13/50 3.7.9. pz(0) = 16/36 pz(1) = 16/36 pz(2) = 4/36

3.7.11. 1/2 3.7.13. 19/24 3.7.15. 3/4 3.7.17. pX (0) = 1/2 pX (1) = 1/2

pY (0) = 1/8 pX (1) = 3/8 pX (2) = 3/8 pX (3) = 1/8

3.7.19. (a) fX (x) = 1/2, 0 ≤ x ≤ 2 fY (y) = 1, 0 ≤ y ≤ 1

(b) fX (x) = 1/2, 0 ≤ x ≤ 2 fY (y) = 3y2, 0 ≤ y ≤ 1

(c) fX (x) = 23 (x + 1), 0 ≤ x ≤ 1 fY (y) = 43 y + 13 , 0 ≤ y ≤ 1

(d) fX (x) = x + 12 , 0 ≤ x ≤ 1 fY (y) = y + 12 , 0 ≤ y ≤ 1

(e) fX (x) = 2x, 0 ≤ x ≤ 1 fY (y) = 2y, 0 ≤ y ≤ 1

(f) fX (x) = xe−x, 0 ≤ x fY (y) = ye−y, 0 ≤ y

(g) fX (x) = (

1 x + 1

)2 , 0 ≤ x

fY (y) = e−y, 0 ≤ y 3.7.21. fX (x) = 3 − 6x + 3x2, 0 ≤ x ≤ 1 3.7.23. X is binomial with n = 4 and p = 1/2. Similarly, Y

is binomial with n = 4 and p = 1/3. 3.7.25. (a) {(H, 1), (H, 2), (H, 3), (H, 4), (H, 5), (H, 6),

(T, 1), (T, 2), (T, 3), (T, 4), (T, 5), (T, 6)} (b) 4/12 3.7.27. (a) FX,Y (u, v) = 12 uv3, 0 ≤ u ≤ 2, 0 ≤ v ≤ 1

(b) FX,Y (u, v) = 13 u2v + 23 uv2, 0 ≤ u ≤ 1, 0 ≤ v ≤ 1 (c) FX,Y (u, v) = u2v2, 0 ≤ u ≤ 1, 0 ≤ v ≤ 1

3.7.29. fX,Y (x, y) = 1, 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 The graph of fX,Y (x, y) is a plane of height one over the unit square.

3.7.31. f (x, y) = 49 (4xy + 5y3), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1; 11/32 3.7.33. 0.015 3.7.35. 25/576 3.7.37. fW,X (w, x) = 4wx, 0 ≤ w ≤ 1, 0 ≤ x ≤ 1

P(0 ≤ W ≤ 1/2, 1/2 ≤ X ≤ 1) = 3/16 3.7.39. fX (x) = λe−λx, 0 ≤ x and fY (y) = λe−λy, 0 ≤ y 3.7.41. Note that P(Y ≥ 3/4) �= 0. Similarly P(X ≥ 3/4) �=

0. However, (X ≥ 3/4) ∩ (Y ≥ 3/4) is in the region where the density is 0. Thus, P((X ≥ 3/4) ∩ (Y ≥ 3/4)) is zero, but the product P(X ≥ 3/4)P(Y ≥ 3/4) is not zero.

3.7.43. 2/5 3.7.45. 1/12 3.7.47. P(0 ≤ X ≤ 1/2, 0 ≤Y ≤ 1/2) = 5/32 �= (3/8)(1/2) =

P(0 ≤ X ≤ 1/2)P(0 ≤ Y ≤ 1/2) 3.7.49. Let K be the region of the plane where fX,Y �= 0. If K

is not a rectangle with sides parallel to the coordinate axes, there exists a rectangle A = {(x, y)|a ≤ x ≤ b, c ≤ y ≤ d} with A∩K = ∅, but for A1 = {(x, y)|a ≤ x ≤ b, all y} and A2 = {(x, y)| all x, c ≤ y ≤ d}, A1 ∩ K �= ∅ and A2 ∩ K �= ∅. Then P(A) = 0, but P(A1) �= 0 and P(A2) �= 0. But A = A1 ∩ A2, so P(A1 ∩ A2) �= P(A1)P(A2).

3.7.51. (a) 1/16 (b) 0.206 (c) fX1,X2,X3,X4 (x1, x2, x3, x4) = 256(x1x2x3x4)3 where 0 ≤ x1, x2, x3, x4 ≤ 1 (d) FX2,X3 (x2, x3) = x42x43, 0 ≤ x2, x3 ≤ 1

706 Answers to Selected Odd-Numbered Questions

Section 3.8

3.8.1. fW (w) = 1|− 4| . 1 2

( 1 + w − 7−4

)

= 1 32

(11 − w), 3 ≤ w ≤ 11

3.8.3. (a) pX+Y (w) = e−(λ+μ) (λ + μ) w

w! , w = 0, 1, 2, . . . ,

so X + Y does belong to the same family. (b) pX+Y (w) = (w − 1)(1 − p)w−2 p2, w = 2, 3, 4, . . . X +Y does not have the same form of pdf as X and Y , but Section 4.5 will show that they all belong to the same family—the negative binomial.

3.8.5. fx+y(w) = {

w 0 ≤ w ≤ 1 2 − w 1 ≤ w ≤ 2

3.8.7. FW (w) = P(W ≤ w) = P(Y 2 ≤ w) = P(Y ≤ √

w) = FY (√w)

fW (w) = F ′W (w) = F ′Y ( √

w) = 12√w fY (w) 3.8.9. 3(1 − √w), 0 ≤ w ≤ 1

3.8.11. (a) fW (w) = − ln w, 0 < w ≤ 1 (b) fW (w) = −4w ln w, 0 < w ≤ 1

3.8.13. fW (w) = 2(1 + w)3 , 0 ≤ w

Section 3.9

3.9.1. r(n + 1)

2

3.9.3. 5 9

+ 11 18

= 7 6

3.9.5. If and only if n∑

i=1 ai = 1

3.9.7. (a) E(Xi) is the probability that the i-th ball drawn is red, 1 ≤ i ≤ n. Draw the balls in order without replacement, but do not note the colors. Then look at the i-th ball first. The probability that it is red is surely independent of when it is drawn. Thus, all of these expected values are the same and = r/(r + w). (b) Let X be the number of red balls drawn. Then

X = n∑

i=1 Xi and E(X ) =

n∑ i=1

E(Xi) = nr/(r + w). 3.9.9. 7.5

3.9.11. 1/8 3.9.13. 105/72 = 35/24 3.9.15. E(X ) = E(Y) = E(XY) = 0. Then Cov(X,Y) =

0. But X and Y are functionally dependent, Y =√ 1 − X 2, so they are probabilistically dependent.

3.9.17. 2/λ2

3.9.19. 29/240 3.9.21. $6750, $373,500 3.9.23. σ ≤ 0.163

Section 3.10 3.10.1. 5/16 3.10.3. 0.64

3.10.5. P ( Y ′1 > m

) = P(Y1, . . . ,Yn > m) = ( 12 )n P ( Y ′n > m

) = 1 − P(Y ′n < m) = 1 − P(Y1, . . . ,Yn < m) = 1 − P(Y1 < m) · . . . · P(Yn < m) = 1 −

( 1 2

)n If n ≥ 2, the latter probability is greater.

3.10.7. 0.200 3.10.9. P(Ymin > 20) = (1/2)n

3.10.11. 0.725; 0.951 3.10.13. If Y1,Y2, . . . ,Yn is a random sample from the

uniform distribution over [0, 1], then by Theo-

rem 3.10.2, the quantity n!

(i − 1)!(n − i)! [Fy(y)] i−1

[1 − Fy(y)]n−i fy(y) = n!(i − 1)!(n − i)! y i−1(1 −

y)n−1 is the pdf of the i-th order statistic. Thus,

1 = ∫ 1

0

n! (i − 1)!(n − i)! y

i−1(1 − y)n−idy = n!

(i − 1)!(n − i)! ∫ 1

0 yi−1(1−y)n−idy or, equivalently,∫ 1

0 yi−1(1 − y)n−i dy = (i − 1)!(n − i)!

n! .

3.10.15. 1/2

Section 3.11

3.11.1. pY |x(y) = pX,Y (x, y)pX (x) = x + y + xy

3 + 5x , y = 1, 2

3.11.3. pY |x(y) =

( 6 y

)( 4

3 − x − y )

( 10

3 − x ) , y = 0, 1, . . . , 3 − x

3.11.5. (a) k = 1/36 (b) pY |x(1) = x + 13x + 6 , x = 1, 2, 3

3.11.7. pX,Y |z(x, y) = xy + xz + yz9 + 12z , x = 1, 2 y = 1, 2 z = 1, 2

3.11.13. fY |x(y) = x + y x + 12

, 0 ≤ y ≤ 1

3.11.15. fY (y) = 13 (2y + 2), 0 ≤ y ≤ 1 3.11.17. 2/3 3.11.19. fX1,X2,X3|x4x5 (x1, x2, x3) = 8x1x2x3, 0 ≤ x1, x2, x3 ≤ 1

Note: the five random variables are independent, so the conditional pdf’s are just the marginal pdf’s.

3.11.21. E(Y | x) = ∫ ∞

−∞ y

fX,Y (x, y) fX (x)

dy is a function of x.

Then the expected value of this function with regard to x is

E(Y | x) = ∫ ∞

−∞ x (∫ ∞

−∞ y

fX,Y (x, y) fX (x)

dy )

fX (x) dx

= ∫ ∞

−∞ y (∫ ∞

−∞ fX,Y (x, y) dx

) dy

∫ ∞ −∞

y · fY (y)dy = E(Y)

Answers to Selected Odd-Numbered Questions 707

Section 3.12 3.12.1. MX (t) = E

( etX ) = n−1∑

k=0 etk pX (k) =

n−1∑ k=0

etk 1 n

= 1 n

n−1∑ k=0

(et)k = 1 − e nt

n(1 − et) 3.12.3.

1 310

(2 + e3)10

3.12.5. (a) Normal with μ = 0 and σ2 = 12 (b) Exponential with λ = 2 (c) Binomial with n = 4 and p = 1/2 (d) Geometric with p = 0.3

3.12.7. MX (t) = eλ(et −1) 3.12.9. 0

3.12.11. M(1)Y (t) = ddt eat+b 2t2/2 = (a + b2t)eat+b2t2/2,

so M(1)Y (0) = a M(2)Y (t) = (a + b2t)2eat+b 2t2/2+

b2eat+b 2t2/2, so M(2)Y (0) = a2 + b2.

Then Var(Y) = (a2 + b2) − a2 = b2. 3.12.13. 9

3.12.15. E(Y) = a + b 2

3.12.17. MY (t) = λ 2

(λ − t)2 3.12.19. (a) True

(b) False (c) True

3.12.21. Y is normally distributed with mean μ and variance σ2/n.

3.12.23. (a) MW (t) = M3X (t) = MX (3t) = e−λ+λe3t . This last term is not the moment-generating function of a Poisson random variable, so W is not Poisson. (b) MW (t) = M3X+1(t) = etMX (3t) = ete−λ+λe3t . This last term is not the moment-generating function of a Poisson random variable, so W is not Poisson.

CHAPTER 4

Section 4.2 4.2.1. Binomial answer: 0.158; Poisson approximation:

0.158. The agreement is not surprising because n (= 6000) is so large and p (= 1/3250) is so small.

4.2.3. 0.602 4.2.5. For both the binomial formula and the Poisson ap-

proximation, P(X ≥ 1) = 0.10. The exact model that applies here is the hypergeometric, rather than the binomial, because p = P (ith item must be checked) is a function of the previous i − 1 items purchased. However, the variation in p is likely to be so small that the binomial and hypergeometric distributions in this case are essentially the same.

4.2.7. 0.122 4.2.9. 6.9 × 10−12

4.2.11. The Poisson model pX (k) = e−0.435(0.435)k/k!, k = 0, 1, . . . fits the data fairly well. The expected fre- quencies corresponding to k = 0, 1, 2, and 3+ are 230.3, 100.4, 21.7, and 3.6, respectively.

4.2.13. The model px(k) = e−0.363 0.363 k

k! fits the data well if

we follow the usual statistical practice of collapsing low frequency categories, in this case k = 2, 3, 4.

Number of Expected Countries, k Frequency px(k) Frequency

0 82 0.696 78.6 1 25 0.252 28.5 2+ 6 0.052 5.9

The level of agreement between the observed and expected frequencies suggests that the Poisson is a good model for these data.

4.2.15. If the mites exhibit any sort of “contagion” effect, the independence assumption implicit in the Poisson model will be violated. Here, x̄ = 1100 [55(0)+20(1)+ . . . + 1(7)] = 0.81, but pX (k) = e−0.81(0.81)k/k!, k = 0, 1, . . . does not adequately approximate the infestation distribution.

No. of Infestations, k Frequency Proportion pX(k)

0 55 0.55 0.4449 1 20 0.20 0.3603 2 21 0.21 0.1459 3 1 0.01 0.0394 4 1 0.01 0.0080 5 1 0.01 0.0013 6 0 0 0.0002 7+ 1 0.01 0.0000

1.00 1.00

4.2.17. 0.826 4.2.19. 0.762 4.2.21. (a) 0.076

(b)No.P(4 accidents occur during next two weeks) = P(X = 4) · P(X = 0) + P(X = 3) · P(X = 1) + P(X = 2) · P(X = 2) + P(X = 1) · P(X = 3) + P(X = 0) · P(X = 4).

4.2.23. P(X is even) = ∞∑

k=0

e−λλ2k

(2k)!

= e−λ {

1 + λ22! + λ 4

4! + λ 6

6! + · · · }

= e−λ · cosh λ = e−λ (

eλ+e−λ 2

) = 1

2 (1 + e−2λ).

4.2.25. P(X2 = k) = ∞∑

x1=k

( x1 k

) pk(1 − p)x1−k · e

−λλx1

x1! . Let

y = x1 −k. Then P(X2 = k) = ∞∑

y=0

( y + k

k

) pk(1 − p)y·

e−λλy+k

(y + k)! = e−λ(λp)k

k! ·

∞∑ y=0

[λ(1 − p)]y y!

= e −λ(λp)k

k! · eλ(1−p) = e

−λp(λp)k

k! .

708 Answers to Selected Odd-Numbered Questions

4.2.27. 0.50 4.2.29. Yes, because the equation fY (y) = 0.027e−0.027y,

y > 0 fits the data’s density-scaled histogram very well.

Section 4.3 4.3.1. (a) 0.5782 (b) 0.8264 (c) 0.9306 (d) 0.0000

4.3.3. (a) Both are the same (b) ∫ a+ 12

a− 12

1√ 2π

e−z 2/2 dz

4.3.5. (a) −0.44 (b) 0.76 (c) 0.41 (d) 1.28 (e) 0.95

4.3.7. 0.0655 4.3.9. (a) 0.0053 (b) 0.0197

4.3.11. P(X ≥ 344) .= P(Z ≥ 13.25) = 0.0000, which strongly discredits the hypothesis that people die randomly with respect to their birthdays.

4.3.13. The normal approximation does not apply because the needed condition n > 9p/(1 − p) = 9(0.7)/ 0.3 = 21 does not hold.

4.3.15. 0.5646 For binomial data, the central limit theorem and DeMoivre-Laplace approximations differ only if the continuity correction is used in the DeMoivre- Laplace approximation.

4.3.17. 0.6808 4.3.19. 0.0694 4.3.21. No, only 84% of drivers are likely to get at least

25,000 miles on the tires. 4.3.23. 0.0228 4.3.25. (a) 6.68%; 15.87% 4.3.27. 434 4.3.29. 29.85 4.3.31. 0.0062. The “0.075%” driver should ask to take the

test twice; the “0.09%” driver has a greater chance of not being charged by taking the test only once. As n, the number of times the test is taken, increases, the precision of the average reading increases. It is to the sober driver’s advantage to have a reading as precise as possible; the opposite is true for the drunk driver.

4.3.33. 0.2877; 0.4247; 0.2333 4.3.35. 0.0274; σ = 0.22 ohms 4.3.37. If y = a1Y1 + · · · + anYn then

MY (t) = n∏

i=1 MaiYi (t) =

n∏ i=1

eaiμi+a 2 i σ

2 i t

2/2

= e(a1μ1+···+anμn)t+(a21σ21+···a2nσ2n)t2/2

which implies that Y is normally distributed with mean a1μ1 +· · ·+anμn and variance a21σ21 +· · ·+a2nσ2n. Corollary 4.3.1 is proved similarly.

4.3.39. (a) Poisson, because n, the number of families that might come is large and p, the probability that any particular family does come is very small; σx =

√ 400 = 20.

(b) 0.034

(c) No; $20,400 is the expected cost, but the actual number of students requiring additional instruction could easily exceed the expected number.

Section 4.4 4.4.1. 0.343 4.4.3. No, the expected frequencies (= 50 · pX (k)) differ

considerably from the observed frequencies, espe- cially for small values of k. The observed number of 1’s, for example, is 4, while the expected number is 12.5.

4.4.5. FX (t) = P(X ≤ t) = p [t]−1∑ s=0

(1 − p)s. But [t]−1∑ s=0

(1 − p)s

= 1 − (1 − p) [t]

1 − (1 − p) = 1 − (1 − p)[t]

p , and the result

follows.

4.4.7. P(n ≤ Y ≤ n + 1) = ∫ n+1

n λe−λy dy = (1 − e−λy)

∣∣∣∣ n+1

n

= e−λn −e−λ(n+1) = e−λn(1−e−λ). Setting p = 1−e−λ gives P(n ≤ Y ≤ n + 1) = (1 − p)n p.

4.4.9. Recall from Example 3.12.5 that the first derivative of the mgf for a geometric pdf is given by

M(1)X (t) = p (1 − p) e2t

[1 − (1 − p)et ]2 + pe

t

1 − (1 − p)et

and M(1)X (0) = E(X ) = 1p . The second derivative of the mgf evaluated at t = 0 is M(2)X (0) = 2 − pp2 = E(X 2). So Var(X ) = E(X 2) − [E(X )]2 = 2 − p

p2 −(

1 p

)2 = 1 − p

p2

Section 4.5 4.5.1. 0.029 4.5.3. Probably not. The presumed model, pX (k) =(k−1

1

) ( 1 2

)2 ( 1 2

)k−2 , k = 2, 3, . . . fits the data al-

most perfectly, as the table shows. Agreement this good is often an indication that the data have been fabricated.

k pX(k) Obs. Freq. Exp. Freq.

2 1/4 24 25 3 2/8 26 25 4 3/16 19 19 5 4/32 13 12 6 5/64 8 8 7 6/128 5 5 8 7/256 3 3 9 8/512 1 2

10 9/1024 1 1

Answers to Selected Odd-Numbered Questions 709

4.5.5. E(X ) = ∞∑

k=r k (

k − 1 r − 1

) pr(1 − p)k−r

= r p

∞∑ k=r

( k r

) pr+1(1 − p)k−r = r

p .

4.5.7. The given X = Y − r, where Y has the negative binomial pdf as described in Theorem 4.5.1. Then

E(X ) = r p

− p = r(1 − p) p

, Var(X ) = r(1 − p) p2

,

MX (t) = [

p 1 − (1 − p)et

]r

4.5.9. M(1)X (t) = r [

pet

1 − (1 − p)et ]r−1

{pet [1 − (1 − p)et ]−2 ·

(1 − p)et + [1 − (1 − p)et ]−1 pet}. When t = 0,

M(1)X (0) = E(X ) = r [

p(1 − p) p2

+ p p

] = r

p .

Section 4.6

4.6.1. fY (y) = (0.001) 3

2 y2e−0.001y, 0 ≤ y

4.6.3. If E(Y) = r λ

= 1.5 and Var(Y) = r λ2

= 0.75, then r = 3 and λ = 2, which makes fY (y) = 4y2e−2y, y > 0. Then P(1.0 ≤ Yi ≤ 2.5) =

∫ 2.5 1.0

4y2e−2ydy = 0.55. Let X = number of Yi’s in the interval (1.0, 2.5). Since X is a binomial random variable with n = 100 and p = 0.55, E(X ) = np = 55.

4.6.5. To find the maximum of the function fY (y) = λr

�(r) yr−1e−λy, differentiate it with respect to y and

set it equal to 0 to obtain dfY (y)

dy = λ

r

�(r) yr−2e−λy

[(r − 1) − λy] = 0. The only critical point is the solution ymode = r − 1

λ .

Since the derivative is positive for y < ymode, and negative for y > ymode, there is a maximum at that point.

4.6.7. � (

7 2

) = 52 �( 52 ) = 52 32 �( 32 ) = 52 32 12 �( 12 ) = 158 �( 12 ) by Theorem 4.6.2 (2), and �

( 1 2

) = √π by Question 4.6.6. 4.6.9. Write the gamma moment-generating function in the

form MY (t) = (1 − t/λ)−r. Then M(1)Y (t) = −r(1 − t/λ)−r−1(−1/λ) = (r/λ)(1 − t/λ)−r−1 and M(2)Y (t) = (r/λ)(−r − 1)(1 − t/λ)r−2 · (−1/λ) = (r/λ2)(r + 1)(1 − t/λ)−r−2. Therefore, E(Y) = M(1)Y (0) =

r λ

and

Var(Y) = M(2)Y (0) − [ M(1)Y (0)

]2 = r(r + 1) λ2

− r 2

λ2 = r

λ2 .

CHAPTER 5

Section 5.2 5.2.1. 5/8 5.2.3. 0.122

5.2.5. 0.733 5.2.7. 8.00 5.2.9. (a) λ = [0(6)+1(19)+2(12)+3(13)+4(9)]/59 = 2.00

Number of No-Hitters

Observed Frequency

Expected Frequency

0 6 8.0 1 19 16.0 2 12 16.0 3 13 10.6 4 9 8.4

(b) The agreement is reasonably good considering the number of changes in baseball over the 59 years— most notably the change in the height of the pitcher’s mound.

5.2.11. ymin = 0.21 5.2.13.

25

−25 ln k + 25∑

i=1 ln yi

5.2.15. αe = nn∑ i=1

yβi

5.2.17. θe = 32 y. For the sample, θe = 75. The maximum likelihood estimate is ymax = 92.

5.2.19. λe = y = 13/6. The maximum likelihood estimate is the same.

5.2.21. θ1e = y. θ2e = √√√√3

( 1 n

n∑ i=1

y2i − y2 )

For the given data, θ1e = 5.575, θ2e = 3.632 5.2.23. θe = y, which for the given data is 2/5. 5.2.25. pe = x

x + 1n n∑

i=1 x2i − x2

and re = x 2

x + 1n n∑

i=1 x2i − x2

5.2.27. Var(Y) = σ̂2 implies E(Y 2) − E(Y)2 = 1 n

n∑ i=1

y2i − y2.

By the first given equation, E(Y)2 = y2. Remov- ing these equal terms from the equation above gives the second equation of Definition 5.2.3, or

E(Y 2) = 1 n

n∑ i=1

y2i .

Section 5.3 5.3.1. Confidence interval is (103.7, 112.1). 5.3.3. The confidence interval is (64.432, 77.234). Since 80

does not fall within the confidence interval, that men and women metabolize methylmercury at the same rate is not believable.

5.3.5. 336 5.3.7. 0.501 5.3.9. The interval given is correctly calculated. However,

the data do not appear to be normal, so claiming that it is a 95% confidence interval would not be correct.

710 Answers to Selected Odd-Numbered Questions

5.3.11. The parameter is the proportion of viewers who ex- pect to see less than a quarter of the advertisements. (0.254, 0.300)

5.3.13. Since 0.54 does not fall in the confidence interval of (0.61, 0.65), the increase could be considered significant.

5.3.15. 16,641 5.3.17. Both intervals have confidence level approximately

50%. 5.3.19. The margin of error is 0.012. The confidence interval

is (0.618, 0.642).

5.3.21. In Definition 5.3.1, substitute d = 1.96 2 √

n

√ N − n N − 1

5.3.23. For margin of error 0.06, n = 267. For margin of error 0.03, n = 1068.

5.3.25. The first case requires n = 421; the second, n = 479. 5.3.27. 1024

Section 5.4 5.4.1. 2/10 5.4.3. 0.1841

5.4.5. (a) E(X̄ ) = E (

1 n

n∑ i=1

Xi

) = 1

n

n∑ i=1

E(Xi) = 1n n∑

i=1 λ =λ

(b) In general, the sample mean is an unbiased es- timator of the mean μ.

5.4.7. First note that FY (y) = 1 − e−(y−θ), θ ≤ y. By The- orem 3.10.1 fYmin (y) = ne−n(y−θ), θ ≤ y. Make the substitution u = y − θ to get

E(Ymin) = ∫ ∞

θ

y · ne−n(y−θ)dy

= ∫ ∞

0 (u + θ) · ne−nu du =

∫ ∞ 0

u · ne−nu du

+ θ ∫ ∞

0 ne−nu du = 1

n + θ

Finally, E(Ymin − 1n ) = 1n + θ − 1n = θ. 5.4.9. 1/2

5.4.11. E(W 2) = Var(W) + E(W)2 = Var(W) + θ2. Thus, W 2 is unbiased only if Var(W) = 0, which in essence means that W is constant.

5.4.13. The median of θ̂ is (n + 1)

n n √

2 θ, which is unbiased only

if n = 1. 5.4.15. E

( W̄ 2 ) = Var(W̄)+E(W̄)2 = σ2

n +μ2, so lim

n→∞ E ( W̄ 2 )

= lim n→∞

( σ2

n + μ2

) = μ2

5.4.17. (a) E(p̂1) = E(X1) = p. E(p̂2) = E (

X n

) = 1

n E(X )

= 1 n

np = p, so both p̂1 and p̂2 are unbiased estima- tors of p. (b) Var(p̂1) = p(1 − p); Var(p̂2) = p(1 − p)/n, so Var(p̂2) is smaller by a factor of n.

5.4.19. (a) The random variable Y1 has the same pdf as the random variable in Example 3.5.6, so E(Y1) = θ. Also, E(Ȳ) = E(Y1) = θ. Note that nYmin has the same pdf as Y1:

fYmin (y) = n fY (y)[1 − FY (y)]n−1

= n 1 θ

e−y/θ[1 − (1 − e−y/θ)]n−1

= n 1 θ

e−ny/θ.

Then fnYmin (y) = 1 n

fYmin ( y

n

) = 1

n n

1 θ

e −n

y n

/θ = 1 θ

e−y/θ

(b) Var(θ̂1) = Var(Y1) = θ2, since Y1 is a gamma variable with parameters 1 and 1/θ, and Var(θ̂3) = Var(nYmin) = Var(Y1) = θ2. Var(θ̂2) = Var(Ȳ) = Var(Y1)/n = θ2/n (c) Var(θ̂3)/Var(θ̂1) = θ2/θ2 = 1 Var(θ̂3)/Var(θ̂2) = (θ2/n)/θ2 = 1/n

5.4.21. Var(θ̂1) = Var (

n + 1 n

Ymax

) = θ

2

n(n + 2) Var(θ̂2) = Var((n + 1)Ymin) = nθ

2

(n + 2) Var(θ̂2)/Var(θ̂1) = nθ

2

(n + 2) /

θ2

n(n + 2) = n 2

Section 5.5 5.5.1. The Cramer-Rao bound is θ2/n. Var(θ̂) = Var(Ȳ) =

Var(Y)/n = θ2/n, so θ̂ is a best estimator. 5.5.3. The Cramer-Rao bound is σ2/n. Var(μ̂) = Var(Ȳ) =

Var(Y)/n = σ2/n, so μ̂ is an efficient estimator. 5.5.5. The Cramer-Rao bound is

(θ − 1)θ n

. Var(θ̂) =

Var(X̄ ) = Var(X )/n = (θ − 1)θ n

, so θ̂ is an efficient

estimator.

5.5.7. E (

∂2 ln fW (W ; θ) ∂θ2

) = ∫ ∞

−∞

∂θ

( ∂ ln fW (w; θ)

∂θ

) × fW (w; θ) dw

= ∫ ∞

−∞

∂θ

( 1

fW (w; θ) ∂ fW (w; θ)

∂θ

) × fW (w; θ) dw

= ∫ ∞

−∞

[ 1

fW (w; θ) ∂2 fW (w; θ)

∂θ2

− 1 ( fW (w; θ))2

( ∂ fW (w; θ)

∂θ

)2]

× fW (w; θ) dw

Answers to Selected Odd-Numbered Questions 711

= ∫ ∞

−∞

∂2 fW (w; θ) ∂θ2

dw

− ∫ ∞

−∞

1 ( fW (w; θ))2

( ∂ fW (w; θ)

∂θ

)2 × fW (w; θ) dw

= 0 − ∫ ∞

−∞

( ∂ ln fW (w; θ)

∂θ

)2 × fW (w; θ) dw

The 0 occurs because 1 = ∫ ∞

−∞ fW (w; θ) dw, so

0 = ∂2 ∫ ∞

−∞ fW (w; θ) dw

∂θ2 = ∫ ∞

−∞

∂2 fW (w; θ) ∂θ2

dw

The above argument shows that

E (

∂2 ln fW (W ; θ) ∂θ2

) = −E

( ∂ ln fW (W ; θ)

∂θ

)2 Multiplying both sides of the equality by n and in- verting gives the desired equality.

Section 5.6

5.6.1. n∏

i=1 pX (ki; p) =

n∏ i=1

(1 − p)ki−1 p = (1 − p) (

n∑ i=1

ki

) −n

pn.

Let g ( n∑

i=1 ki; p )

= (1 − p) (

n∑ i=1

ki

) −n

pn and

u(k1, k2, . . . , kn) = 1. By Theorem 5.6.1, n∑

i=1 Xi is

sufficient.

5.6.3. In the discrete case, and for a one-to-one function g, note that P(X1 = x1, X2 = x2, . . . , Xn = x1|g(θ̂) = θe) = P(X1 = x1, X2 = x2, . . . , Xn = x1|θ̂ = g−1(θe)) The right hand term does not depend on θ, because θ̂ is sufficient.

5.6.5. The likelihood function is

[ 1

θrn e − 1

θ

n∑ i=1

yi

]

1 [(r − 1)!]n

( n∏

i=1 yi

)r−1 so

n∑ i=1

Yi is a sufficient statistic

for θ. So also is 1r Ȳ . (See Question 5.6.3.)

5.6.7. (a) Write the pdf in the form fY (y) = e−(y−θ) ·I[θ,∞](y) where I[θ,∞](y) is the indicator function introduced in Example 5.6.2. Then the likelihood function is

L(θ) = n∏

i=1 e−(yi−θ) · I[θ,∞](yi) = e

− n∑

i=1 yi

enθ n∏

i=1 I[θ,∞](yi)

But n∏

i=1 I[θ,∞](yi) = I[θ,∞](ymin), so the likelihood func-

tion factors into

L(θ) = (

e −

n∑ i=1

yi

) [enθ, I[θ,∞](ymin)]

Thus the likelihood function decomposes in such a way that the factor involving θ only contains the yi ′s through ymin. By Theorem 5.6.1, ymin is sufficient. (b) We need to show that the likelihood function given ymax is independent of θ. But the likelihood function is

n∏ i=1

e−(yi−θ) = ⎧⎨ ⎩ enθ e

− n∑

i=1 yi

if θ ≤ y1, y2, . . . yn 0 otherwise

Regardless of the value of ymax, the expression for the likelihood does depend on θ. If any one of the yi, other than ymax, is less than θ, the expression is 0. Otherwise it is non-zero.

5.6.9. n∏

i=1 gW (wi; θ) =

⎛ ⎝e (

n∑ i=1

K(wi)

) p(θ)+nq(θ)

⎞ ⎠(e n∑i=1 S(wi)

) , so

n∑ i=1

K(Wi) is a sufficient statistic for θ by Theorem 5.6.1.

5.6.11. θ/(1+y)θ+1 = e[ln(1+y)](−θ−1)+ln θ. Take K(y) = ln(1+y), p(θ) = −θ − 1, and q(θ) = ln θ. Then

n∑ i=1

K(Yi) = n∑

i=1 ln(1 + Yi) is sufficient for θ.

Section 5.7 5.7.1. 17

5.7.3. (a) P(Y1 > 2λ) = ∫ ∞

2λ λe−λydy = e−2λ2 . Then P(|Y1−

λ| < λ/2) < 1 − e−2λ2 < 1. Thus, lim n→∞

P(|Y1 − λ| < λ/2) < 1.

(b) P

( n∑

i=1 Yi > 2λ

) ≥ P(Y1 > 2λ) = e−2λ2 . The

proof now proceeds along the lines of Part (a).

5.7.5. E[(Ymax − θ)2] = ∫ θ

0 (y − θ)2 n

θ

(y θ

)n−1 dy

= n θn

∫ θ 0

( yn+1 − 2θyn + θ2yn−1)dy

= n θn

( θn+2

n + 2 − 2θn+2

n + 1 + θn+2

n

)

= (

n n + 2 −

2n n + 1 + 1

) θ2

Then lim n→∞

E[(Ymax−θ)2] = lim n→∞

( n

n + 2− 2n

n + 1+1 )

θ2 = 0, and the estimator is squared error consistent.

712 Answers to Selected Odd-Numbered Questions

Section 5.8 5.8.1. The numerator of g�(θ|X = k) is

px(k|θ) f�(θ) = [(1 − θ)k−1θ] �(r + s) �(r)�(s)

θr−l(1 − θ)s−l

= �(r + s) �(r)�(s)

θr(1 − θ)s+k−2

The term θr(1 − θ)s+k−2 is the variable part of the beta distribution with parameters r+1 and s+k−1, so that is the pdf g�(θ| X = k).

5.8.3. (a) The posterior distribution is a beta pdf with pa- rameters k + 135 and n − k + 135. (b) The mean of the Bayes pdf given in part (a) is

k + 135 k + 135 + n − k + 135 =

k + 135 n + 270

= n n + 270

( k n

) + 270

n + 270 (

135 270

)

= n n + 270

( k n

) + 270

n + 270 (

1 2

)

5.8.5. In each case the estimator is biased, since the mean of the estimator is a weighted average of the unbi- ased maximum likelihood estimator and a non-zero constant. However, in each case, the weighting on the maximum likelihood estimator tends to 1 as n tends to ∞, so these estimators are asymptotically unbiased.

5.8.7. Since the sum of gamma random variables is gamma, then W is gamma with parameters nr and λ. Then g�(θ|W = w) is a gamma pdf with parameters nr + s and

n∑ i=1

yi + μ.

5.8.9. pX (k|θ) f�(θ) = (

n k

) �(r + s) �(r)�(s)

θk+r−1(1−θ)n−k+s−1, so

pX (k|θ) = (

n k

) �(r + s) �(r)�(s)

∫ 1 0

θk+r−1(1 − θ)n−k+s−1dθ

= (

n k

) �(r + s) �(r)�(s)

�(k + r)�(n − k + s) �(n + r + s)

= n! k!(n − k)!

(r + s − 1)! (r − 1)!(s − 1)!

(k + r − 1)!(n − k + s − 1)! (n + r + s − 1)!

= (k + r − 1)! k!(r − 1)!

(n − k + s − 1)! (n − k)!(s − 1)!

n!(r + s − 1)! (n + r + s − 1)!

= (

k + r − 1 k

)( n − k + s − 1

n − k )/(

n + r + s − 1 n

)

CHAPTER 6

Section 6.2 6.2.1. (a) Reject H0 if

ȳ − 120 18/

√ 25

≤ −1.41; z = −1.61; reject H0.

(b) Reject H0 if ȳ − 42.9 3.2/

√ 16

is either 1) ≤ −2.58 or 2) ≥ 2.58; z = 2.75; reject H0. (c) Reject H0 if

ȳ − 14.2 4.1/

√ 9

≥ 1.13; z = 1.17; reject H0. 6.2.3. (a) No (b) Yes 6.2.5. No

6.2.7. (a) H0 should be rejected if ȳ − 12.6 0.4/

√ 30

is either (1)

≤ −1.96 or (2) ≥ 1.96. But ȳ = 12.76 and z = 2.19, suggesting that the machine should be readjusted. (b) The test assumes that the yi’s constitute a ran- dom sample from a normal distribution. Graphed, a histogram of the thirty yi’s shows a mostly bell- shaped pattern. There is no reason to suspect that the normality assumption is not being met.

6.2.9. P-value = P(Z ≤ −0.92) + P(Z ≥ 0.92) = 0.3576; H0 would be rejected if α had been set at any value greater than or equal to 0.3576.

6.2.11. H0 should be rejected if ȳ − 145.75 9.50/

√ 25

is 1) ≤ −1.96 or 2) ≥ 1.96. Here, ȳ = 149.75 and z = 2.11, so the dif- ference between $145.75 and $149.75 is statistically significant.

Section 6.3 6.3.1. (a) z = 0.91, which is not larger than z.05 (= 1.64),

so H0 would not be rejected. These data do not pro- vide convincing evidence that transmitting predator sounds helps to reduce the number of whales in fish- ing waters. (b) P-value = P(Z ≥ 0.91) = 0.1814; H0 would be rejected for any α ≥ 0.1814.

6.3.3. z = 72 − 120(0.65)√ 120(0.65)(0.35)

= −1.15, which is not less than −z.05 (= −1.64), so H0: p = 0.65 would not be rejected.

6.3.5. Let p = P(Yi ≤ 0.69315). Test H0: p = 12 versus H1: p �= 12 . Given that x = 26 and n = 60, the P-value = P(X ≤ 26) + P(X ≥ 34) = 0.3030.

6.3.7. Reject H0 if x ≥ 4 gives α = 0.50; reject H0 if x ≥ 5 gives α = 0.23; reject H0 if x ≥ 6 gives α = 0.06; reject H0 if x ≥ 7 gives α = 0.01.

6.3.9. (a) 0.07

Section 6.4 6.4.1. 0.0735 6.4.3. 0.3786 6.4.5. 0.6293 6.4.7. 95 6.4.9. 0.23

6.4.11. α = 0.064; β = 0.107. A Type I error (convict- ing an innocent defendant) would be considered more serious than a Type II error (acquitting a guilty defendant).

6.4.13. 1.98

Answers to Selected Odd-Numbered Questions 713

6.4.15. n √

0.95 6.4.17. 1 − β = ( 12 )θ+1 6.4.19. 78 6.4.21. 0.63 6.4.23. (a) 0.022 (b) 0.386

Section 6.5 6.5.1. λ = max

ω L(p)/ max

Ω L(p), where

max ω

L(p) = pn0(1 − p0) n∑

i=1 ki−n

and max Ω

L(p)

= (

n / n∑

i=1 ki

)n [ 1 − (

n / n∑

i=1 ki

)] n∑ i=1

ki−n

6.5.3.

λ = {

(2π)−n/2e − 12

n∑ i=1

(yi−μ0)2 }/{

(2π)−n/2e − 12

n∑ i=1

(yi−ȳ)2 }

= e− 12 (

(ȳ−μ0)/ (

1/ √

n ))2

.

Base the test on z = (ȳ − μ0)/ ( 1/

√ n ) .

6.5.5. (a) λ = ( 12 )n/[(k/n)k(1 − k/n)n−k] = 2−nk−k(n − k)k−nnn. Rejecting H0 when 0 < λ ≤ λ∗ is equivalent to rejecting H0 when k ln k + (n − k) ln(n − k) ≥ λ∗∗. (b) By inspection, k ln k+(n−k) ln(n−k) is symmet- ric in k. Therefore, the left-tail and right-tail critical regions will be equidistant from p = 12 , which implies that H0 should be rejected if

∣∣k − 12 ∣∣ ≥ c, where c is a function of α.

CHAPTER 7

Section 7.3 7.3.1. Clearly, fU (u) > 0 for all u > 0. To verify that fU (u)

is a pdf requires proving that ∫∞

0 fU (u) du = 1. But

∫∞ 0 fU (u) du = 1�(n/2)

∫∞ 0

1 2n/2

un/2−1e−u/2du = 1

�(n/2)

∫∞ 0 (

u 2 )

n/2−1e−u/2(du/2) = 1 �( n2 )

∫∞ 0 v

n/2−1e−vdv,

where v = u2 and dv = du2 . By definition, �( n2 ) =∫∞ 0 v

n/2−1e−vdv. Thus, ∫∞

0 fU (u)dy = 1�(n/2) ·�( n2 ) = 1. 7.3.3. If μ = 50 and σ = 10,

3∑ i=1

( Yi−50

10

)2 should have a χ23

distribution, implying that the numerical value of the sum is likely to be between, say, χ2.025,3(= 0.216) and χ2.975,3(= 9.348). Here,

3∑ i=1

( Yi−50

10

)2 = ( 65−5010 )2 +(

30−50 10

)2 + ( 55−5010 )2 = 6.50, so the data are not incon- sistent with the hypothesis that the Yi’s are normally distributed with μ = 50 and σ = 10.

7.3.5. Since E(S2) = σ2, it follows from Chebyshev’s in- equality that P(|S2 − σ2| < ε) > 1 − Var(S2)

ε2 . But

Var(S2) = 2σ4n−1 → 0 as n → ∞. Therefore, S2 is con- sistent for σ2.

7.3.7. (a) 0.983 (b) 0.132 (c) 9.00

7.3.9. (a) 6.23 (b) 0.65 (c) 9 (d) 15 (e) 2.28

7.3.11. F = V/mU/n , where V and U are independent χ2 vari- ables with m and n degrees of freedom, respectively. Then 1F = U/nV/m , which implies that 1F has an F distri- bution with n and m degrees of freedom.

7.3.13. Hints: (

1 + t2n )−(n+1)/2

→ e−t2/2 as n → ∞ and �[(n+1)/2]√

nπ�(n/2) → 1√2π as n → ∞ 7.3.15. Let T be a Student t random variable with n degrees

of freedom. Then E(T 2k) =C ∫ ∞

−∞ t2k

1( 1+ t2n

)(n+1)/2 dt, where C is the product of the constants appear- ing in the definition of the Student t pdf. The change of variable y = t/√n results in the integral E(T 2k) =C∗

∫ ∞ −∞

y2k 1

(1 + y2)(n+1)/2 dy for some con-

stant C∗. Because of the symmetry of the integrand,

E(T 2k) is finite if the integral ∫ ∞

0

y2k

(1 + y2)(n+1)/2 dy is

finite. But∫ ∞ 0

y2k

(1 + y2)(n+1)/2 dy <

∫ ∞ 0

( 1 + y2)k

(1 + y2)(n+1)/2 dy

= ∫ ∞

0

1

(1 + y2)(n+1)/2−k dy =

∫ ∞ 0

1

(1 + y2) n−2k

2 + 1 2

dy

To apply the hint, take α = 2 and β = n − 2k 2

+ 1 2

.

Then 2k < n, β > 0, and αβ > 1, so the integral is finite.

Section 7.4 7.4.1. (a) 0.15

(b) 0.80 (c) 0.85 (d) 0.99 − 0.15 = 0.84

7.4.3. Both differences represent intervals associated with 5% of the area under fTn (t). Because the pdf is closer to the horizontal axis the further t is away from 0, the difference t.05,n − t.10,n is the larger of the two.

7.4.5. k = 2.2281 7.4.7. (1.403, 1.447) 7.4.9. (a) (30.8 yrs, 40.0 yrs)

(b) The graph of date versus age shows no obvious patterns or trends. The assumption that μ has re- mained constant over time is believable.

7.4.11. (175.6, 211.4) The medical and statistical definition of “normal” differ somewhat. There are people with medically normal platelet counts who appear in the population less than 10% of the time.

714 Answers to Selected Odd-Numbered Questions

7.4.13. No, because the length of a confidence interval for μ is a function of s as well as the confidence coeffi- cient. If the sample standard deviation for the second sample was sufficiently small (relative to the sample standard deviation for the first sample), the 95% con- fidence interval would be shorter than the 90% con- fidence interval.

7.4.15. (a) 0.95 (b) 0.80 (c) 0.945 (d) 0.95

7.4.17. Obs. t = −1.71; −t.05,18 = −1.7341; fail to reject H0 7.4.19. Test H0: μ = 40 vs. H1: μ < 40; obs. t = −2.25;

−t.05,14 = −1.7613; reject H0. 7.4.21. Test H0: μ = 0.0042 vs. H1: μ < 0.0042; obs. t =

−2.48; −t.05,9 = −1.8331; reject H0. 7.4.23. The set of μ0’s for which H0 : μ = μ0 would not be

rejected at the α = 0.05 level of significance is the same as the 95% confidence interval for μ.

7.4.25. Both sets of ratios would have distributions similar to that of a Student t random variable with 2 df. Be- cause of the shapes of the two fY (y)’s, though, both distributions would be skewed to the right, particu- larly so for fY (y) = 4y3 (recall the answer to Ques- tion 7.4.24.).

7.4.27. Only (c) would raise any serious concerns. There the sample size is small and the yi’s are showing a markedly skewed pattern. Those are the two condi- tions that particularly “stress” the robustness prop- erty of the t-ratio (recall Figure 7.4.6).

Section 7.5 7.5.1. (a) 23.685

(b) 4.605 (c) 2.700

7.5.3. (a) 2.088 (b) 7.261 (c) 14.041 (d) 17.539

7.5.5. 233.9 7.5.7. P

( χ2a/2,n−1 ≤ (n−1)S

2

σ2 ≤ χ21−α/2,n−1

) = 1 − α =

P (

(n−1)S2 χ21−α/2,n−1

≤ σ2 ≤ (n−1)S2 χ2

α/2,n−1

) , so

( (n−1)s2

χ21−α/2,n−1 ,

(n−1)s2 χ2

α/2,n−1

) is a 100(1 − α)% confidence interval for σ2. Taking the square root of both sides gives a 100(1 − α)% confidence interval for σ.

7.5.9. (a) (20.13, 42.17) (b) (0, 39.16) and (21.11, ∞)

7.5.11. Confidence intervals for σ (as opposed to σ2) are of- ten preferred by experimenters because they are ex- pressed in the same units as the data, which makes them easier to interpret.

7.5.13. If (

(n−1)s2 χ2

.95,n−1 ,

(n−1)s2 χ2

.05,n−1

) = (51.47, 261.90), then χ2.95,n−1/

χ2.05,n−1 = 261.9051.47 = 5.088. A trial and error inspec- tion of the χ2 table shows that χ2.95,9/χ

2 .05,9 = 16.9193.325 =

5.088, so n = 10, which means that 9s23.325 = 261.90. Therefore, s = 9.8.

7.5.15. Test H0: σ2 = 30.42 versus H1: σ2 < 30.42 The test statistic in this case is χ2 = (n−1)s2

σ20 = 18(733.4)

30.42 =

14.285. The critical value is χ2α,n−1 = χ2.05,18 = 9.390.

Accept the null hypothesis, so do not assume that the potassium-argon method is more precise.

7.5.17. (a) Test H0: μ = 10.1 versus H1: μ > 10.1 Test statistic is ȳ−μ0s/√n = 11.5−10.110.17/√24 = 0.674. Critical value is tα,n−1 = t0.05,23 = 1.7139.

Accept the null hypothesis. Do not ascribe the in- crease of the portfolio yield over the bench mark to the analyst’s system for choosing stocks. (b) Test H0: σ2 = 15.67 versus H1: σ2 < 15.67 Test statistic is χ2 = 23(10.172)

15.672 = 9.688. Critical value

is χ2.05,23 = 13.091. Reject the null hypothesis. The analyst’s method of choosing stocks does seem to result in less volatility.

CHAPTER 8

Section 8.2 8.2.1. Regression data 8.2.3. One-sample data 8.2.5. Regression data 8.2.7. k-sample data 8.2.9. One-sample data

8.2.11. Regression data 8.2.13. Two-sample data 8.2.15. k-sample data 8.2.17. Categorical data 8.2.19. Two-sample data 8.2.21. Paired data 8.2.23. Categorical data 8.2.25. Categorical data 8.2.27. Categorical data 8.2.29. Paired data 8.2.31. Randomized block data

CHAPTER 9

Section 9.2 9.2.1. Since t = 1.72 < t.01,19 = 2.539, accept H0. 9.2.3. Since z.05 = 1.64 < t = 5.67, reject H0. 9.2.5. Since −z.005 = −2.58 < t = −0.532 < z.005 = 2.58,

do not reject H0. 9.2.7. Since −t.025,6 = −2.4469 < t = 0.69 < t.025,6 =

2.4469, accept H0. 9.2.9. Since t = −2.45 < −t.025,72 = −1.9935, reject the

equality of means. 9.2.11. (a) 22.880 (b) 166.990 9.2.13. (a) 0.3974 (b) 0.2090

Answers to Selected Odd-Numbered Questions 715

9.2.15. E ( S2X ) = E(S2Y ) = σ2 by Example 5.4.4.

E ( S2P ) = (n−1)E(S2X )+(m−1)E(S2Y)n+m−2

= (n−1)σ2+(m−1)σ2n+m−2 = σ2 9.2.17. Since t = 2.16 > t.05,13 = 1.7709, reject H0. 9.2.19. (a) The sample standard deviation for the first data

set is approximately 3.15; for the second, 3.29. These seem close enough to permit the use of Theo- rem 9.2.2. (b) Intuitively, the states with the comprehensive law should have fewer deaths. However, the average for these data is 8.1, which is larger than the average of 7.0 for the states with a more limited law.

Section 9.3 9.3.1. The observed F = 35.7604/115.9929 = 0.308. Since

F.025,11,11 = 0.288 < 0.308 < 3.47 = F.975,11,11, we can accept H0 that the variances are equal.

9.3.3. (a) The critical values are F.025,19,19 and F.975,19,19. These values are not tabulated, but in this case, we can approximate them by F.025,20,20 = 0.406 and F.975,20,20 = 2.46. The observed F = 2.41/3.52 = 0.685. Since 0.406 < 0.685 < 2.46, we can accept H0 that the variances are equal. (b) Since t = 2.662 > t.025,38 = 2.0244, reject H0.

9.3.5. F = (0.20)2/(0.37)2 = 0.292. Since 0.248 = F.025,9,9 < 0.292 < 4.03 = F.975,9,9, accept H0.

9.3.7. F = 65.25/227.77 = 0.286. Since 0.208 = F.025,8,5 < 0.286 < 6.76 = F.975,8,5, accept H0. Thus, Theo- rem 9.2.2 is appropriate.

9.3.9. If σ2X = σ2Y = σ2, the maximum likelihood estimator for σ2 is

σ̂2 = 1 n + m

( n∑

i=1 (xi − x)2 +

m∑ i=1

(yi − y)2 )

.

Then L(ω̂) = (

1 2πσ̂2

)(n+m)/2 e − 1

2σ̂2

( n∑

i=1 (xi−x)2+

m∑ i=1

(yi−y)2 )

= (

1 2πσ̂2

)(n+m)/2 e−(n+m)/2

If σ2X �= σ2Y the maximum likelihood estimators for σ2X and σ

2 Y are

σ̂2X = 1 n

n∑ i=1

(xi − x)2, and σ̂2Y = 1 m

m∑ i=1

(yi − y)2.

Then L(Ω̂) = (

1 2πσ̂2X

)n/2 e

1 2σ̂2X

( n∑

i=1 (xi−x)2

) ( 1

2πσ̂2Y

)m/2

× e 1

2σ̂2Y

( m∑

i=1 (yi−y)2

)

= (

1 2πσ̂2X

)n/2 e−m/2

( 1

2πσ̂2Y

)m/2 e−n/2

The ratio λ = L(ω̂) L(Ω̂)

= (σ̂ 2 X )

n/2(σ̂2Y ) m/2

(σ̂2)(n+m)/2 , which

equates to the expression given in the statement of the question.

Section 9.4 9.4.1. Since −1.96 < z = 1.76 < 1.96 = z.025, accept H0. 9.4.3. Since −1.96 < z = −0.17 < 1.96 = z.025, accept H0

at the 0.05 level of significance. 9.4.5. Since z = 4.25 > 2.33 = z.01, reject H0 at the 0.01

level of significance. 9.4.7. Since −1.96 < z = 1.50 < 1.96 = z.025, accept H0 at

the 0.05 level of significance. 9.4.9. Since = 0.25 < 1.64 = z.05, accept H0. The player is

right.

Section 9.5 9.5.1. (0.71, 1.55). Since 0 is not in the interval, we can

reject the null hypothesis that μX = μY . 9.5.3. Equal variance confidence interval is (−13.32, 6.72).

Unequal variance confidence interval is (−13.61, 7.01).

9.5.5. Begin with the statistic X̄ −Ȳ , which has E(X̄ −Ȳ) = μX − μY and Var(X̄ − Ȳ) = σ2X /n + σ2Y /m. Then P (

−zα/2 ≤ X̄−Ȳ−(μX −μY )√ σ2X /n+σ2Y /m

≤ zα/2 )

= 1 − α, which implies

P (

−zα/2 √

σ2X /n + σ2Y /m ≤ X̄ − Ȳ − (μX − μY )

≤ zα/2 √

σ2X /n + σ2Y /m )

= 1 − α.

Solving the inequality for μX − μY gives

P (

X̄ − Ȳ − zα/2 √

σ2X /n + σ2Y /m ≤ μX − μY ≤ X̄ − Ȳ

+zα/2 √

σ2X /n + σ2Y /m )

= 1 − α.

Thus the confidence interval is( x̄ − ȳ − zα/2

√ σ2X /n + σ2Y /m, x̄ − ȳ + zα/2

√ σ2X /n + σ2Y /m

) .

9.5.7. (0.06, 2.14). Since the confidence interval contains 1, we can accept H0 that the variances are equal, and Theorem 9.2.1 applies.

9.5.9. (−0.021, 0.051). Since the confidence interval con- tains 0, we can conclude that Flonase users do not suffer more headaches.

9.5.11. The approximate normal distribution implies that

P

⎛ ⎝−zα/2 ≤ Xn − Ym − (pX − pY )√

(X/n)(1−X/n) n + (Y/m)(1−Y/m)m

≤ zα/2 ⎞ ⎠ = 1−α

716 Answers to Selected Odd-Numbered Questions

or

P

( −zα/2

√ (X/n)(1 − X/n)

n + (Y/m)(1 − Y/m)

m ≤ X

n − Y

m

− (pX − pY ) ≤ zα/2 √

(X/n)(1 − X/n) n

+ (Y/m)(1 − Y/m) m

)

= 1 − α which implies that

P

( − (

X n

− Y m

) − zα/2

√ (X/n)(1 − X/n)

n + (Y/m)(1 − Y/m)

m

≤ −(pX − pY ) ≤ − (

X n

− Y m

)

+zα/2 √

(X/n)(1 − X/n) n

+ (Y/m)(1 − Y/m) m

) = 1 − α

Multiplying the inequality by −1 yields the confi- dence interval.

CHAPTER 10

Section 10.2 10.2.1. 0.0281 10.2.3. 0.00265 10.2.5. 0.00689 10.2.7. (a) 50!3!7!15!25!

( 1 64

)3 ( 7 64

)7 ( 19 64

)15 ( 37 64

)25 (b) Var(X3) = 50

( 19 64

) ( 45 64

) = 10.44 10.2.9. Assume that MX1,X2,X3 (t1, t2, t3) = (p1et1 + p2et2 +

p3et3 )n. Then MX1,X2,X3 (t1, 0, 0) = E(et1X1 ) = (p1et1 + p2+p3)n = (1−p1+p1et1 )n is the mgf for X1. But the latter has the form of the mgf for a binomial random variable with parameters n and p1.

Section 10.3 10.3.1.

t∑ i=1

(Xi−npi)2 npi

= t∑

i=1

( X 2i −2npiXi+n2 p2i

) npi

= t∑

i=1

X 2i npi

− 2 t∑

i=1 Xi +

n t∑

i=1 pi =

t∑ i=1

X 2i npi

− n. 10.3.3. If the sampling is done with replacement, the num-

ber of white chips drawn should follow a binomial distribution (with n = 2 and p = 0.4). Since the obs. χ2 = 3.30 < 4.605 = χ2.90,2, fail to reject H0.

10.3.5. Let p = P(baby is born between midnight and 4 a.m.). Test H0: p = 1/6 vs. H1: p �= 1/6; obs. z = 2.73; reject H0 if α = 0.05. The obs. χ2 in Ques- tion 10.3.4 will equal the square of the obs. z. The two tests are equivalent.

10.3.7. Obs. χ2 = 12.23 with 5 df; χ2.95,5 = 11.070; reject H0. 10.3.9. Obs. χ2 = 18.22 with 7 df; χ2.95,7 = 14.067; reject H0.

10.3.11. Obs. χ2 = 8.10; χ2.95,1 = 3.841; reject H0.

Section 10.4 10.4.1. For the estimated parameter value of 0.54, Obs.

χ2 = 11.72 with 4 − 1 − 1 = 2 df; χ2.95,2 = 5.991; reject H0.

10.4.3. Obs. χ2 = 46.75 with 7 − 1 − 1 = 5 df; χ2.95,5 = 11.070; reject H0. The independence assumption would not hold if the infestation was contagious.

10.4.5. For the model fY (y) = λe−λy, λ̂ = 0.823; obs. χ2 = 4.181 with 5 − 1 − 1 = 3 df; χ2.95,3 = 7.815; fail to reject H0.

10.4.7. Let p = P(child is a boy). Then p̂ = 0.533, obs. χ2 = 0.62, and we fail to reject the binomial model because χ2.95,1 = 3.841.

10.4.9. For the model pX (k) = e−3.87(3.87)k/k!, obs. χ2 = 12.9 with 12 − 1 − 1 = 10 df. But χ2.95,10 = 18.307, so we fail to reject H0.

10.4.11. p̂ = 0.26; obs. χ2 = 9.23; χ2.95,3 = 7.815; reject H0. 10.4.13. Using 136, 139, 142, . . . as class boundaries, obs.

χ2 = 4.35. χ2.90,4 = 7.779; do not reject H0.

Section 10.5 10.5.1. Obs. χ2 = 4.35. χ2.90,1 = 2.706; reject H0. 10.5.3. Obs. χ2 = 42.25; χ2.99,3 = 11.345, reject H0. 10.5.5. Obs. χ2 = 4.80; χ2.95,1 = 3.841; reject H0. Regular

use of aspirin appears to lessen the chances that a woman will develop breast cancer.

10.5.7. Obs. χ2 = 12.61; χ2.95,1 = 3.841; reject H0. 10.5.9. Obs. χ2 = 9.19. χ2.95,3 = 7.815; reject H0.

CHAPTER 11

Section 11.2 11.2.1. y = 25.23 + 3.29x; 84.5◦F 11.2.3.

xi yi − ŷi 0 −0.81 4 0.01

10 0.09 15 0.03 21 −0.09 29 0.14 36 0.55 51 1.69 68 −1.61

A straight line appears to fit these data. 11.2.5. The value 12 is too “far” from the data observed. 11.2.7. The least squares line is y = 81.088 + 0.412x.

120

100

80

60

40

20

0 10.0 12.0 14.0 16.0 18.0

Spending

G ra

du at

io n

ra te

20.0 22.0 24.0

Conclusion: The linear relationship between x and y is poor.

Answers to Selected Odd-Numbered Questions 717

11.2.9. The least squares line is y = 114.72 + 9.23x. 25

20

15

10

5

0 2 4 6 8 10 12 140–5

R es

id ua

ls

–10

–15

–20

A linear fit seems reasonable. 11.2.11. The least squares line is y = 0.61 + 0.84x, which

seems inadequate because of the large values of the residuals.

11.2.13. When x̄ is substituted for x in the least squares equa- tion, we obtain y = a + bx̄ = ȳ − bx̄ + bx̄ = ȳ.

11.2.15. 0.03544

11.2.17. y = 100 − 5.19x 11.2.19. To find the a, b, and c, solve the following set of

equations.

(1) na + (

n∑ i=1

xi

) b + (

n∑ i=1

sin xi

) c =

n∑ i=1

yi

(2)

( n∑

i=1 xi

) a + (

n∑ i=1

x2i

) b + (

n∑ i=1

xi sin xi

) c =

n∑ i=1

xiyi

(3)

( n∑

i=1 cos xi

) a + (

n∑ i=1

xi cos xi

) b+

( n∑

i=1 (cos xi)(sin xi)

) c =

n∑ i=1

yi cos xi

11.2.21. (a) y = 5.2506e0.0876x (b)

x y − ŷ 2006 −0.4303 2007 −0.7433 2008 −0.5959 2009 0.3253 2010 0.9209 2011 1.0016 2012 1.0286 2013 0.3213 2014 −0.105 2015 −1.4176

The residuals show a pattern that casts doubt on the exponential model.

11.2.23. y = 9.1870e0.1072x 11.2.25. The model is y = 13.487x10.538. 11.2.27. The model is y = 0.07416x1.43687.

Striate Cortex

P re

st ri

at e

C or

te x

8000

9000

7000

6000

5000

4000

3000

2000

1000

0 0 500 1000 1500 2000 2500 3000

11.2.29. (d) If y = 1a+bx , then 1y = a + bx, and 1/y is linear with x. (e) If y = xa+bx , then 1y = a+bxx = b + a 1x , and 1/y is linear with 1/x. (f) If y = 1 − e−xb/a , then 1 − y = e−xb/a , and 11−y = ex

b/a. Taking the ln of both sides gives ln 11−y = xb/a. Taking the ln again yields ln ln 11−y = − ln a + b ln x, and ln ln 11−y is linear with ln x.

11.2.31. a = 5.55870; b = −0.13314

Age Mid-Point

% I

m pr

ov ed

60 55 50 45 40 35 30 25 20 15 10 5 0 25 30 35 040 45 50 55 60

Section 11.3 11.3.1. y = 13.8 − 1.5x; since −t.025,2 = −4.3027 < t =

−1.59 < 4.3027 = t.025,2, accept H0. 11.3.3. Since t = 5.47 > t.005,13 = 3.0123, reject H0. 11.3.5. 0.9164 11.3.7. (66.551, 68.465) 11.3.9. Since t = 4.38 > t.025,9 = 2.2622, reject H0.

11.3.11. By Theorem 11.3.2, E(β̂0) = β0, and

Var ( β̂0 ) = σ

2 n∑

i=1 xi

n n∑

i=1 (xi − x̄)2

.

718 Answers to Selected Odd-Numbered Questions

Now (β̂0 − β0)/ √

Var(β̂0) is normal, so

P (

−za/2 < ( β̂0 − β0

) /

√ Var ( β̂0 )

< zα/2

) = 1 − α.

Then the confidence interval is( β̂0 − zα/2

√ Var ( β̂0 ) , β̂0 + zα/2

√ Var ( β̂

0

)) or⎛ ⎜⎜⎜⎜⎝β̂ − za/2

σ

√ n∑

i=1 xi√

n n∑

i=1 (xi − x̄)2

, β̂0 + zα/2 σ

√ n∑

i=1 xi√

n n∑

i=1 (xi − x̄)2

⎞ ⎟⎟⎟⎟⎠

11.3.13. Reject the null hypothesis if the test statistic is < χ2.025,22 = 10.982 or > χ2.975,22 = 36.781. The ob- served chi square is

(n − 2)s2 σ20

= (24 − 2)(18.2) 12.6

= 31.778, so do not reject H0.

11.3.15. (1.544, 11.887) 11.3.17. (2.060, 2.087) 11.3.19. The confidence interval is (27.71, 29.34), which does

not contain 37. However, the Honda Civic Hybrid has a different engine than those automobiles in the data set.

11.3.21. The test statistic is t = β̂1 − β̂ ∗ 1

s √

1 6∑

i=1 (xi−x̄)2

+ 18∑ i=1

( x∗i −x̄∗ )2 ,

where s = √

5.983 + 13.804 6 + 8 − 4 = 1.407.

Then t = 0.606 − 1.07

1.407

√ 1

31.33 + 1

46

= −1.42

Since the observed ratio is not less than −t0.05,10 = −1.8125, the difference in slopes can be ascribed to chance. These data do not support further investi- gation.

11.3.23. The form given in the text is Var(Ŷ) =

σ2

⎡ ⎣ 1

n + (x−x̄) 2

n∑ i=1

(xi−x̄)2

⎤ ⎦. Putting the sum in the brack-

ets over a least common denominator gives

1 n

+ (x − x̄) 2

n∑ i=1

(xi − x̄)2 =

n∑ i=1

(xi − x̄)2 + n(x − x̄)2

n n∑

i=1 (xi − x̄)2

=

n∑ i=1

x2i − nx̄2 + n(x2 + x̄2 − 2xx̄)

n n∑

i=1 (xi − x̄)2

=

n∑ i=1

x2i + nx2 − 2nxx̄

n n∑

i=1 (xi − x̄)2

=

n∑ i=1

x2i + nx2 − 2x n∑

i=1 xi

n n∑

i=1 (xi − x̄)2

=

n∑ i=1

(xi − x)2

n n∑

i=1 (xi − x̄)2

.

Thus, Var(Ŷ) = σ2

n∑ i=1

(xi−x)2

n n∑

i=1 (xi−x̄)2

.

Section 11.4 11.4.1. −2/121; −2/15√14 11.4.3. 0.492

11.4.5. ρ(a+bX, c+dY) = Cov(a + bX, c + dY)√ Var(a + bX )Var(c + dY) =

bd Cov (X,Y)√ b2Var(X )d2Var(Y)

, the equality in the numera-

tors stemming from Question 3.9.14. Since b > 0, d > 0, this last expression is

bd Cov(X,Y) bdσX σY

= Cov(X,Y) σX σY

= ρ(X,Y).

11.4.7. (a) Cov(X + Y, X − Y) = E [(X + Y)(X − Y)] −E(X + Y)E(X − Y)

= E[X 2 − Y 2] − (μX + μY ) (μX − μY )

= E(X 2) − μ2X − E(Y 2) + μ2Y = Var(X ) − Var(Y)

(b) ρ(X + Y) = Cov(X + Y, X − Y)√ Var(X + Y)Var(X − Y) . By

Part (a) Cov(X + Y, X − Y) = Var(X ) − Var(Y). Var(X + Y) = Var(X ) + Var(Y) − 2Cov(X,Y) = Var(X ) + Var(Y) + 0. Similarly, Var(X −Y) = Var(X )+Var(Y). Then

ρ(X + Y) = Var(X ) − Var(Y)√ (Var(X ) + Var(Y))(Var(X ) + Var(Y))

=Var(X ) − Var(Y) Var(X ) + Var(Y) .

11.4.9. By Equation 11.4.2

r = n

n∑ i=1

xiyi − (

n∑ i=1

xi

)( n∑

i=1 yi

) √

n n∑

i=1 x2i −

( n∑

i=1 xi

)2√ n

n∑ i=1

y2i − (

n∑ i=1

yi

)2

Answers to Selected Odd-Numbered Questions 719

= n

n∑ i=1

xiyi − (

n∑ i=1

xi

)( n∑

i=1 yi

)

n n∑

i=1 x2i −

( n∑

i=1 xi

)2

× n

n∑ i=1

x2i − (

n∑ i=1

xi

)2 √

n n∑

i=1 x2i −

( n∑

i=1 xi

)2√ n

n∑ i=1

y2i − (

n∑ i=1

yi

)2

= β̂1

√ n

n∑ i=1

x2i − (

n∑ i=1

xi

)2 √

n n∑

i=1 y2i −

( n∑

i=1 yi

)2 .

11.4.11. r = −0.030. The data do not suggest that altitude affects home run hitting.

11.4.13. 58.1% 11.4.15. (a) The correlation between driving and earnings =

0.300. The correlation between putting and earn- ings = −0.311. (b) r2 = 0.09 for driving and earnings r2 = 0.097 for putting and earnings

Section 11.5 11.5.1. 0.1891; 0.2127 11.5.3. (a) fX+Y (t) = 1

2π √

1−ρ2 ∫∞

−∞

exp { −1

2

( 1

1 − ρ2 )

[(t − y)2 − 2ρ(t − y)y + y2] }

dy

The expression in the brackets can be expanded and rewritten as

t2 + 2(1 + ρ)y2 − 2t(1 + ρ)y = t2 + 2(1 + ρ)[y2 − ty]

= t2 + 2(1 + ρ) [

y2 − ty + t 2

4

]

− 1 2

(1 + ρ)t2

= 1 − ρ 2

t2 + 2(1 + ρ)(y − t/2)2.

Placing this expression into the exponent gives

fX+Y (t) = 1 2π √

1 − ρ2 e − 12 (

1 1−ρ2

) 1−ρ

2 t 2

∫ ∞ −∞

e − 12 (

1 1−ρ2

) 2(1+ρ)(y−t/2)2

dy

= 1 2π √

1 − ρ2 e − 12 (

t2 2(1+ρ)

) ∫ ∞ −∞

e − 12 (

(y−t/2)2 (1+ρ)/2

) dy.

The integral is that of a normal pdf with mean t/2 and σ2 = (1 + ρ)/2. Thus, the integral equals√

2π(1 + ρ)/2 = √π(1 + ρ). Putting this into the ex- pression for fX+Y gives

fX+Y (t) = 1√ 2π √

2(1 + ρ) e − 12 (

t2 2(1+ρ)

) ,

which is the pdf of a normal variable with μ = 0 and σ2 = 2(1 + ρ). (b) E(cX + dY) = cμX + dμY, Var(cX + dY) = c2σ2X + d2σ2Y + 2cdσX σY ρ(X,Y)

11.5.5. E(X ) = E(Y) = 0; Var(X ) = 4; Var(Y) = 1; ρ(X,Y) = 1/2; k = 1/2π√3

11.5.7. Since −t.005,18 = −2.8784 < Tn−2 = −2.156 < 2.8784 = t.005,18, accept H0.

11.5.9. Since −t.025,10 = −2.2281 < Tn−2 = −0.094 < 2.2281 = t.025,10, accept H0.

11.5.11. r = −0.249. The test statistic is √

8(−0.249)√ 1 − (−0.249)2 =

0.727. Since the test statistic lies between −t.05,8 = −1.8595 and t.05,8 = 1.8595, do not reject H0.

CHAPTER 12

Section 12.2 12.2.1. Obs. F = 3.94 with 3 and 6 df; F.95,3,6 = 4.76

and F.90,3,6 = 3.29, so H0 would be rejected at the α = 0.10 level, but not at the α = 0.05 level.

12.2.3.

Source df SS MS F

Sector 2 186.0 93.0 3.44 Error 27 728.2 27.0 Total 29 914.2

F.99,2,27 does not appear in Table A.9, but F.99,2,30 = 5.39 < F.99,2,27 < F.99,2,24 = 5.61. Thus, we fail to reject H0, since 3.44 < 5.39.

12.2.5.

Source df SS MS F P

Tribe 3 504167 168056 3.70 0.062 Error 8 363333 45417 Total 11 867500

Since the P-value is greater than 0.01, we fail to reject H0.

12.2.7.

Source df SS MS F

Treatment 4 271.36 67.84 6.40 Error 10 106.00 10.60 Total 14 377.36

720 Answers to Selected Odd-Numbered Questions

12.2.9.

SSTOT = k∑

j=1

n j∑ i=1

( Yi j − Ȳ..

)2 = k∑ j=1

n j∑ i=1

( Y 2i j − 2Yi jȲ.. + Ȳ 2..

)

= k∑

j=1

n j∑ i=1

Y 2i j − 2Ȳ.. k∑

j=1

n j∑ i=1

Yi j + nȲ 2..

= k∑

j=1

n j∑ i=1

Y 2i j − 2nȲ 2.. + nȲ 2..

= k∑

j=1

n j∑ i=1

Y 2i j − nȲ 2.. = k∑

j=1

n j∑ i=1

Y 2i j − C,

where C = T 2.. /n. Also,

SSTR = k∑

j=1

n j∑ i=1

( Ȳ 2. j − Ȳ..

)2

= k∑

j=1 nj ( Ȳ 2. j − 2Ȳ. jȲ.. + Ȳ 2..

)

= k∑

j=1 T 2. j/nj − 2Ȳ..

k∑ j=1

njȲ. j + nȲ 2..

= n∑

j=1 T 2. j/nj − 2nȲ 2.. + nȲ 2..

= k∑

j=1 T 2. j/nj − C.

12.2.11. Analyzed with a two-sample t test, the data in Question 9.2.8 require that H0: μX = μY be rejected (in favor of a two-sided H1) at the α = 0.05 level if |t| ≥ t.025,6+9−2 = 2.1604. Evaluating the test statis- tic gives t = (70.83 − 79.33)/11.31√1/6 + 1/9 = −1.43, which implies that H0 should not be rejected. The ANOVA table for the same data shows that F = 2.04. But (−1.43)2 = 2.04. Moreover, H0 would be rejected with the analysis of variance if F ≥ F.95,1,13 = 4.667. But (2.1604)2 = 4.667.

Source df SS MS F

Sex 1 260 260 2.04 Error 13 1661 128 Total 14 1921

12.2.13.

Source df SS MS F P

Law 1 16.333 16.333 1.58 0.2150 Error 46 475.283 10.332 Total 47 491.616

The F critical value is 4.05.

For the pooled two-sample t test, the observed t ratio is −1.257, and the critical value is 2.0129.

Note that (−1.257)2 = 1.58 (rounded to two dec- imal places) which is the observed F ratio. Also, 2.01292 = 4.05 (rounded to two decimal places), which is the F critical value.

Section 12.3 12.3.1.

Pairwise Difference Tukey Interval Conclusion

μ1 − μ2 (−15.27, 13.60) NS μ1 − μ3 (−23.77, 5.10) NS μ1 − μ4 (−33.77, −4.90) Reject μ2 − μ3 (−22.94, 5.94) NS μ2 − μ4 (−32.94, −4.06) Reject μ3 − μ4 (−24.44, 4.44) NS

12.3.3. Obs. F = 5.81 with 2 and 15 df; reject H0: μC = μA = μM at α = 0.05 but not at α = 0.01.

Pairwise Difference Tukey Interval Conclusion

μC − μA (−78.9, 217.5) NS μC − μM (−271.0, 25.4) NS μA − μM (−340.4, −44.0) Reject

12.3.5.

Pairwise Difference Tukey Interval Conclusion

μ1 − μ2 (−29.5, 2.8) NS μ1 − μ3 (−56.2, −23.8) Reject μ2 − μ3 (−42.8, −10.5) Reject

12.3.7. Longer. As k gets larger, the number of possible pairwise comparisons increases. To maintain the same overall probability of committing at least one Type I error, the individual intervals would need to be widened.

Section 12.4 12.4.1.

Source df SS MS F

Tube 2 510.7 255.4 11.56 Error 42 927.7 22.1 Total 44 1438.4

Subhypothesis Contrast SS F

H0: μA = μC C1 = μA − μC 264 11.95 H0: μB = μA + μC2 C2 =

1 2 μA − μB + 12 μC 246.7 11.16

H0: μA = μB = μC is strongly rejected (F.99,2,42 = F.99,2,40 = 5.18). Theorem 12.4.1 holds true for orthogonal contrasts C1 and C2 since SSC1 + SSC2 = 264 + 246.7 = 510.7 = SSTR.

Answers to Selected Odd-Numbered Questions 721

12.4.3. Ĉ = −14.25; SSC = 812.25; obs. F = 10.19; F.95,1,20 = 4.35; reject H0.

12.4.5.

μA μB μC μD 4∑

j=1 c j

C1 1 −1 0 0 0 C2 0 0 1 −1 0 C3 1112

11 12 −1 −56 0

C1 and C3 are orthogonal because 1(11/12)

6 + (−1)(11/12)

6 = 0; also C2 and C3 are orthogonal be- cause 1(−1)6 + (−1)(−5/6)5 = 0. Ĉ3 = −2.293 and SSC3 = 8.97. But SSC1 + SSC2 + SSC3 = 4.68 + 1.12 + 8.97 = 14.77 = SSTR.

Section 12.5 12.5.1. Replace each observation by its square root. At the

α = 0.05 level, H0: μA = μB is rejected. (For α = 0.01, though, we would fail to reject H0.)

Source df SS MS F P

Developer 1 1.836 1.836 6.23 0.032 Error 10 2.947 0.295 Total 11 4.783

12.5.3. Since Yi j is a binomial random variable based on n = 20 trials, each data point should be replaced by the arcsin of (yi j/20)1/2. Based on those trans- formed observations, H0: μA = μB = μC is strongly rejected (P < 0.001).

Source df SS MS F P

Launcher 2 0.30592 0.15296 22.34 0.000 Error 9 0.06163 0.00685 Total 11 0.36755

Appendix 12.A.2 12.A.2.1. The F test will have greater power against H∗∗1

because the latter yields a larger noncentrality parameter than does H∗1 .

12.A.2.3. MV (t) = (1 − 2t)−r/2eγt(1−2t)−1 , so M(1)V (t) = (1 − 2t)−r/2

eγt(1−2t) −1 [

γt(−1)(1 − 2t)−2(−2) + (1 − 2t)−1γ]+ eγt(1−2t)

−1 (− r 2

) (1 − 2t)−(r/2)−1(−2).

Therefore E(V) = M(1)V (0) = γ + r. 12.A.2.5. MV (t) =

n∏ i=1

(1 − 2t)−ri/2eγit/(1−2t) =

(1 − 2t) −

n∑ i=1

ri/2 · e (

n∑ i=1

γi

) t/(1−2t)

which implies that

V has a noncentral χ2 distribution with n∑

i=1 ri df

and with noncentrality parameter n∑

i=1 γi.

CHAPTER 13

Section 13.2 13.2.1.

Source df SS MS F P

States 1 61.63 61.63 7.20 0.0178 Students 14 400.80 28.63 3.34 0.0155 Error 14 119.87 8.56 Total 29 582.30

The critical value F.95,1,14 is approximately 4.6. Since the F statistic = 7.20 > 4.6, reject H0.

13.2.3.

Source df SS MS F P

Additive 1 0.0340 0.0340 4.19 0.0865 Batch 6 0.0202 0.0034 0.41 0.8483 Error 6 0.0484 0.0081 Total 13 0.1026

Since the F statistic = 4.19 < F.95,1,6 = 5.99, accept H0.

13.2.5. From the Table 13.2.9, we obtain MSE = 6.00. The radius of the Tukey interval is D

√ MSE =

(Q.05,3,22/ √

b) √

6.00 = (3.56/√12)√6.00 = 2.517. The Tukey intervals are

Pairwise Difference y.s − y.t Tukey Interval Conclusion μ1 − μ2 −2.41 (−4.93, 0.11) NS μ1 − μ3 −0.54 (−3.06, 1.98) NS μ2 − μ3 1.87 (−0.65, 4.39) NS

From this analysis and that of Case Study 13.2.3, we find that the significant difference occurs not for overall means testing or pairwise comparisons, but for the comparison of “during the full Moon” with “not during the full Moon.”

13.2.7.

Pairwise Difference y·s − y·t Tukey Interval Conclusion μ1 − μ2 2.925 (0.78, 5.07) Reject μ1 − μ3 1.475 (−0.67, 3.62) NS μ2 − μ3 −1.450 (−3.60, 0.70) NS

13.2.9. (a)

Source df SS MS F P

Sleep stages 2 16.99 8.49 4.13 0.0493 Shrew 5 195.44 39.09 19.00 0.0001 Error 10 20.57 2.06 Total 17 233.00

722 Answers to Selected Odd-Numbered Questions

(b) Since the observed F ratio = 2.42 < F.95,1,10 = 4.96, accept the subhypothesis. For the contrast C1 = − 12 μ1 − 12 μ2 + μ3, SSC1 = 4.99. For the con- trast C2 = μ1 − μ2, SSC2 = 12.00. Then SSTR = 16.99 = 4.99 + 12.00 = SSC1 + SSC2 .

13.2.11. Equation 13.2.2:

SSTR = b∑

i=1

k∑ j=1

( Y . j − Y . .

)2 = b k∑ j=1

( Y . j − Y . .

)2

= b k∑

j=1

( Y

2 . j − 2Y . jY . . + Y

2 . .

)

= b k∑

j=1 Y

2 . j − 2bY . .

k∑ j=1

Y . j + bkY 2. .

= b k∑

j=1

T 2. j b2

− 2T 2 . .

bk + T

2 . .

bk =

k∑ j=1

T 2. j b

− T 2 . .

bk =

k∑ j=1

T 2. j b

− c

Equation 13.2.3:

SSB = b∑

i=1

k∑ j=1

( Y i. − Y . .

)2 = k b∑ i=1

( Y i. − Y . .

)2

= k b∑

i=1

( Y

2 i. − 2Y i.Y . . + Y

2 . .

) = k b∑ i=1

Y 2 i. − 2kY . .

b∑ i=1

Y i.

+bkY 2. .

= k b∑

i=1

T 2i. k2

− 2T 2 . .

bk + T

2 . .

bk =

b∑ i=1

T 2i. k

− T 2 . .

bk =

b∑ i=1

T 2i. k

− c

Equation 13.2.4:

SSTOT = b∑

i=1

k∑ j=1

( Yi j − Y . .

)2 = b∑ i=1

k∑ j=1

( Y 2i j − 2Yi jY . . + Y

2 . .

)

= b∑

i=1

k∑ j=1

Y 2i j − 2Y . . b∑

i=1

k∑ j=1

Yi j + bkY 2. .

= b∑

i=1

k∑ j=1

Y 2i j − 2T 2. . bk

+ T 2 . .

bk =

b∑ i=1

k∑ j=1

Y 2i j − c

13.2.13. (a) False. They are equal only when b = k. (b) False. If neither treatment levels nor blocks are significant, it is possible to have F variables

SSTR/(k − 1) SSE/(b − 1)(k − 1) and

SSB/(b − 1) SSE/(b − 1)(k − 1) both < 1.

In that case both SSTR and SSB are less than SSE.

Section 13.3 13.3.1. Since 1.51 < 1.7341 = t.05,18, do not reject H0. 13.3.3. α = 0.05: Since −t.025,11 = −2.2010 < 0.74 <

2.2010 = t.025,11, accept H0. α = 0.01: Since −t.005,11 = −3.1058 < 0.74 < 3.1058 = t.005,11, fail to reject H0.

13.3.5. Since −t.025,6 = −2.4469 < −2.0481 < 2.4469 = t.025,6, accept H0. The square of the observed Stu- dent t statistic = (−2.0481)2 = 4.1947 = the observed F statistic. Also, (t.025,6)2 = (2.4469)2 =

5.987 = F.95,1,6. Conclusion: the square of the t statistic for paired data is the randomized block design statistic for two treatments.

13.3.7. (−0.21, 0.43) 13.3.9. t = −4.01/(10.15/√7) = −1.04; −t.05,6 = −1.94; fail

to reject H0.

CHAPTER 14

Section 14.2 14.2.1. Here, x = 8 of the n = 10 groups were larger

than the hypothesized median of 9. The P-value is P(X ≥ 8) + P(X ≤ 2) = 0.000977 + 0.009766 + 0.043945 + 0.043945 + 0.009766 + 0.000977 = 2(0.054688) = 0.109376.

14.2.3. The median of fY (y) is 0.693. There are x = 22 val- ues that exceed the hypothesized median of 0.693.

The test statistic is z = 22 − 50/2√ 50/4

= −0.85. Since −z0.025 = −1.96 < −0.85 < z0.025 = 1.96, do not reject H0.

14.2.5.

y+ P(Y+ = y+) 0 1/128 1 7/128 2 21/128 3 35/128 4 35/128 5 21/128 6 7/128 7 1/128

Possible levels for a one-sided test: 1/128, 8/128, 29/128, etc.

14.2.7. P(Y+ ≤ 6) = 0.0835; P(Y+ ≤ 7) = 0.1796. The clos- est test to one with α = 0.10 is to reject H0 if y+ ≤ 6. Since y+ = 9, do not reject H0. Since the observed t statistic = −1.71 < −1.330 = −t.10,18, reject H0.

14.2.9. The approximate, large-sample observed Z ratio is 1.89. Do not reject H0, since −z.025 = −1.96 < 1.89 < 1.96 = z.025.

14.2.11. From Table 13.3.1, the number of pairs where xi > yi is 7. The P-value for this test is P(U ≥ 7) + P(U ≤ 3) = 2(0.17186) = 0.343752. Since the P-value exceeds α = 0.05, do not reject the null hypothesis, which is the conclusion of Case Study 13.3.1.

Section 14.3 14.3.1. For the critical values of 7 and 29, α = 0.148. Since

w = 9, do not reject H0. 14.3.3. The observed Z statistic has value 0.99. Since

−z.025 = −1.96 < 0.99 < 1.96 = z.025, do not re- ject H0.

14.3.5. Since w′ = 58.0 − 95√ 617.5

= −1.49 < −1.28 = −z.10, reject H0. The sign test did not reject H0.

Answers to Selected Odd-Numbered Questions 723

14.3.7. The signed rank test should have more power since it uses more of the information in the data.

14.3.9. A reasonable assumption is that alcohol abuse shortens life span. In that case, reject H0 if the test statistic is less than −z0.05 = −1.64. Since the test statistic has value −1.66, reject H0.

Section 14.4 14.4.1. Assume the data within groups are independent and

that the group distributions have the same shape. Let the null hypothesis be that teachers’ expecta- tions do not matter. The Kruskal-Wallis statistics has value b = 5.64. Since 5.64 < 5.991 = χ0.95,2, do not reject H0.

14.4.3. Since b = 1.68 < 3.841 = χ2.95,1, do not reject H0. 14.4.5. Since b = 10.72 > 7.815 = χ2.95,3, reject H0. 14.4.7. Since b = 12.48 > 5.991 = χ2.95,2, reject H0.

Section 14.5 14.5.1. Since g = 8.8 < 9.488 = χ2.95,4, do not reject H0. 14.5.3. Since g = 17.0 > 5.991 = χ2.95,2, reject H0.

14.5.5. Since g = 8.4 < 9.210 = χ0.99,2, do not reject H0. On the other hand, using the analysis of variance, the null hypothesis would be rejected at this level.

Section 14.6 14.6.1. (a) For these data, w = 23 and z = −0.53. Since

−z.025 = −1.96 < −0.53 < 1.96 = z.025, do not re- ject H0 and assume the sequence is random. (b) For these data, w = 21 and z = −1.33. Since −z.025 = −1.96 < −1.33 < 1.96 = z.025, accept H0 and assume the sequence is random.

14.6.3. For these data, w = 19 and z = 1.68. Since −z.025 = −1.96 < 1.68 < 1.96 = z.025, do not reject H0 and assume the sequence is random.

14.6.5. For these data, w = 25 and z = −0.51. Since −z.025 = −1.96 < −0.51 < 1.96 = z.025, do not reject H0 at the 0.05 level of significance and assume the sequence is random.

This page intentionally left blank

Bibliography

1. Advanced Placement Program, Summary Reports. New York: The College Board, 1996.

2. Agresti, Alan, and Winner, Larry. “Evaluating Agreement and Disagreement among Movie Reviewers.” Chance, 10, no. 2 (1997), pp. 10–14.

3. Asimov, I. Asimov on Astronomy. New York: Bonanza Books, 1979, p. 31.

4. Ayala, F. J. “The Mechanisms of Evolution.” Evolution, A Scientific American Book. San Francisco: W. H. Freeman, 1978, pp. 14–27.

5. Ball, J. A. C., and Taylor, A. R. “The Effect of Cyclandelate on Mental Function and Cerebral Blood Flow in Elderly Patients,” in Research on the Cerebral Circulation. Edited by John Stirling Meyer, Helmut Lechner, and Otto Eichhorn. Springfield, Ill.: Thomas, 1969.

6. Barnicot, N. A., and Brothwell, D. R. “The Evaluation of Metrical Data in the Com- parison of Ancient and Modern Bones,” in Medical Biology and Etruscan Origins. Edited by G. E. W. Wolstenholme and Cecilia M. O’Connor. Boston: Little, Brown and Company, 1959, pp. 131–149.

7. Barnothy, Jeno M. “Development of Young Mice,” in Biological Effects of Mag- netic Fields. Edited by Madeline F. Barnothy. New York: Plenum Press, 1964, pp. 93–99.

8. Baron, Robert A., Markman, Gideon D., and Bollinger, Mandy. “Exporting Social Psychology: Effects of Attractiveness on Perceptions of Entrepreneurs, Their Ideas for New Products, and Their Financial Success.” Journal of Applied Social Psychol- ogy, 36 (2006), pp. 467–492.

9. Bartle, Robert G. The Elements of Real Analysis, 2nd ed. New York: John Wiley & Sons, 1976.

10. Bellany, Ian. “Strategic Arms Competition and the Logistic Curve.” Survival, 16 (1974), pp. 228–230.

11. Berger, R. J., and Walker, J. M. “A Polygraphic Study of Sleep in the Tree Shrew.” Brain, Behavior and Evolution, 5 (1972), pp. 54–69.

12. Black, Stephanie D., Greenberg, Seth N., and Goodman, Gail S. “Remembrance of Eyewitness Testimony: Effects of Emotional Content, Self-Relevance, and Emo- tional Tone.” Journal of Applied Social Psychology, 39 (2009), pp. 2859–2878.

13. Blackman, Sheldon, and Catalina, Don. “The Moon and the Emergency Room.” Perceptual and Motor Skills, 37 (1973), pp. 624–626.

14. Bortkiewicz, L. Das Gesetz der Kleinen Zahlen. Leipzig: Teubner, 1898.

15. Boyd, Edith. “The Specific Gravity of the Human Body.” Human Biology, 5 (1933), pp. 651–652.

725

726 Bibliography

16. Breed, M. D., and Byers, J. A. “The Effect of Population Density on Spacing Pat- terns and Behavioral Interactions in the Cockroach, Byrsotria fumigata (Guerin).” Behavioral and Neural Biology, 27 (1979), pp. 523–531.

17. Brien, A. J., and Simon, T. L. “The Effects of Red Blood Cell Infusion on 10- km Race Time.” Journal of the American Medical Association, May 22 (1987), pp. 2761–2765.

18. Brinegar, Claude S. “Mark Twain and the Quintus Curtius Snodgrass Letters: A Statistical Test of Authorship.” Journal of the American Statistical Association, 58 (1963), pp. 85–96.

19. Brown, L. E., and Littlejohn, M. J. “Male Release Call in the Bufo americanus Group,” in Evolution in the Genus Bufo. Edited by W. F. Blair. Austin, Tx.: Uni- versity of Texas Press, 1972, p. 316.

20. Brown, Will K., Jr., Hickman, John S., and Baker, Merl. “Chemical Dehumidifica- tion for Comfort Air-Conditioning Systems,” in Humidity and Moisture: Measure- ment and Control in Science and Industry, vol. 2. Edited by Arnold Wexler and Elias J. Amdur. New York: Reinhold Publishing, 1965, pp. 376–383.

21. Buchanav, T. M., Brooks, G. F., and Brachman, P. S. “The Tularemia Skin Test.” Annals of Internal Medicine, 74 (1971), pp. 336–343.

22. Camner, P., and Philipson, K. “Urban Factor and Tracheobronchial Clearance.” Archives of Environmental Health, 27 (1973), p. 82.

23. Carlson, T. “Uber Geschwindigkeit und Grosse der Hefevermehrung in Wurze.” Biochemishe Zeitschrift, 57 (1913), pp. 313–334.

24. Casler, Lawrence. “The Effects of Hypnosis on GESP.” Journal of Parapsychology, 28 (1964), pp. 126–134.

25. Chronicle of Higher Education. April 25, 1990.

26. Clason, Clyde B. Exploring the Distant Stars. New York: G. P. Putnam’s Sons, 1958, p. 337.

27. Cochran, W. G. “Approximate Significance Levels of the Behrens–Fisher Test.” Bio- metrics, 20 (1964), pp. 191–195.

28. Cochran, W. G., and Cox, Gertrude M. Experimental Designs, 2nd ed. New York: John Wiley & Sons, 1957, p. 108.

29. Cohen, B. “Getting Serious About Skills.” Virginia Review, 71 (1992).

30. Collins, Robert L. “On the Inheritance of Handedness.” Journal of Heredity, 59, no. 1 (1968).

31. Conover, W. J. Practical Nonparametric Statistics. New York: John Wiley & Sons, Inc., 1999.

32. Cooil, B. “Using Medical Malpractice Data to Predict the Frequency of Claims: A Study of Poisson Process Models with Random Effects.” Journal of the American Statistical Association, 86 (1991), pp. 285–295.

33. Coulson, J. C. “The Significance of the Pair-bond in the Kittiwake,” in Parental Be- havior in Birds. Edited by Rae Silver. Stroudsburg, Pa.: Dowden, Hutchinson, & Ross, 1977, pp. 104–113.

34. Craf, John R. Economic Development of the U.S. New York: McGraw-Hill, 1952, pp. 368–371.

35. Cummins, Harold, and Midlo, Charles. Finger Prints, Palms, and Soles. Philadelphia: Blakiston Company, 1943.

36. Dallas Morning News. January 29, 1995.

Bibliography 727

37. David, F. N. Games, Gods, and Gambling. New York: Hafner, 1962, p. 16.

38. Davis, D. J. “An Analysis of Some Failure Data.” Journal of the American Statistical Association, 47 (1952), pp. 113–150.

39. Davis, M. “Premature Mortality among Prominent American Authors Noted for Alcohol Abuse.” Drug and Alcohol Dependence, 18 (1986), pp. 133–138.

40. Davis, Roger R., Medin, Douglas L., and Borkhuis, Mary L. Monkeys as Perceivers. New York: Academic Press, 1974, p. 161.

41. Dubois, Cora, ed. Lowie’s Selected Papers in Anthropology. Berkeley, Calif.: Uni- versity of California Press, 1960, pp. 137–142.

42. Dunn, Olive Jean, and Clark, Virginia A. Applied Statistics: Analysis of Variance and Regression. New York: John Wiley & Sons, 1974, pp. 339–340.

43. Elsner, James B., and Kara, Birod. Hurricanes of the North Atlantic: Climate and Society. New York: Oxford University Press, 1999, p. 265.

44. Evans, B. Personal communication.

45. Fadelay, Robert Cunningham. “Oregon Malignancy Pattern Physiographically Re- lated to Hanford, Washington Radioisotope Storage.” Journal of Environmental Health, 27 (1965), pp. 883–897.

46. Fagen, Robert M. “Exercise, Play, and Physical Training in Animals,” in Perspectives in Ethology. Edited by P. P. G. Bateson and Peter H. Klopfer. New York: Plenum Press, 1976, pp. 189–219.

47. Fairley, William B. “Evaluating the ‘Small’ Probability of a Catastrophic Accident from the Marine Transportation of Liquefied Natural Gas,” in Statistics and Pub- lic Policy. Edited by William B. Fairley and Frederick Mosteller. Reading, Mass.: Addison-Wesley, 1977, pp. 331–353.

48. Feller, W. “Statistical Aspects of ESP.” Journal of Parapsychology, 4 (1940), pp. 271–298.

49. Finkbeiner, Daniel T. Introduction to Matrices and Linear Transformations. San Francisco: W. H. Freeman, 1960.

50. Fishbein, Morris. Birth Defects. Philadelphia: Lippincott, 1962, p. 177.

51. Fisher, R. A. “On the ‘Probable Error’ of a Coefficient of Correlation Deduced from a Small Sample.” Metron, 1 (1921), pp. 3–32.

52. . “On the Mathematical Foundations of Theoretical Statistics.” Philosoph- ical Transactions of the Royal Society of London, Series A, 222 (1922), pp. 309– 368.

53. . Contributions to Mathematical Statistics. New York: John Wiley & Sons, 1950, pp. 265–272.

54. Fisz, Marek. Probability Theory and Mathematical Statistics, 3rd ed. New York: John Wiley & Sons, 1963, pp. 358–361.

55. Florida Department of Commerce. February 20, 1996.

56. Forbes Magazine. October 10, 1994.

57. . November 2, 2009.

58. Free, J. B. “The Stimuli Releasing the Stinging Response of Honeybees.” Animal Behavior, 9 (1961), pp. 193–196.

59. Freund, John E. Mathematical Statistics, 2nd ed. Englewood Cliffs, N.J.: Prentice Hall, 1971, p. 226.

728 Bibliography

60. Fricker, Ronald D., Jr. “The Mysterious Case of the Blue M&M’s.” Chance, 9, no. 4 (1996), pp. 19–22.

61. Fry, Thornton C. Probability and Its Engineering Uses, 2nd ed. New York: Van Nostrand-Reinhold, 1965, pp. 206–209.

62. Furuhata, Tanemoto, and Yamamoto, Katsuichi. Forensic Odontology. Springfield, Ill.: Thomas, 1967, p. 84.

63. Galton, Francis. Natural Inheritance. London: Macmillan, 1908.

64. Gardner, C. D. et al. “Comparison of the Atkins, Zone, Ornish, and LEARN Diets for Change in Weight and Related Risk Factors Among Overweight Premenopausal Women.” Journal of the American Medical Association, 297 (2007), pp. 969–977.

65. Gendreau, Paul, et al. “Changes in EEG Alpha Frequency and Evoked Response Latency During Solitary Confinement.” Journal of Abnormal Psychology, 79 (1972), pp. 54–59.

66. Geotis, S. “Thunderstorm Water Contents and Rain Fluxes Deduced from Radar.” Journal of Applied Meteorology, 10 (1971), p. 1234.

67. Gerber, Robert C., et al. “Kinetics of Aurothiomalate in Serum and Synovial Fluid.” Arthritis and Rheumatism, 15 (1972), pp. 625–629.

68. Goldman, Malcomb. Introduction to Probability and Statistics. New York: Harcourt, Brace & World, 1970, pp. 399–403.

69. Goodman, Leo A. “Serial Number Analysis.” Journal of the American Statistical Association, 47 (1952), pp. 622–634.

70. Griffin, Donald R., Webster, Frederick A., and Michael, Charles R. “The Echolo- cation of Flying Insects by Bats.” Animal Behavior, 8 (1960), p. 148.

71. Grover, Charles A. “Population Differences in the Swell Shark Cephaloscyllium ventriosum.” California Fish and Game, 58 (1972), pp. 191–197.

72. Gunter, Barrie, Furnham, Adrian, and Pappa, Eleni. “Effects of Television Violence on Memory for Violent and Nonviolent Advertising.” Journal of Applied Social Psychology, 35 (2005), pp. 1680–1697.

73. Gutenberg, B., and Richter, C. F. Seismicity of the Earth and Associated Phenomena. Princeton, N.J.: Princeton University Press, 1949.

74. Haggard, William H., Bilton, Thaddeus H., and Crutcher, Harold L. “Maximum Rainfall from Tropical Cyclone Systems which Cross the Appalachians.” Journal of Applied Meteorology, 12 (1973), pp. 50–61.

75. Haight, F. A. “Group Size Distributions with Applications to Vehicle Occupancy,” in Random Counts in Physical Science, Geological Science, and Business, vol. 3. Edited by G. P. Patil. University Park, Pa.: Pennsylvania State University Press, 1970.

76. Hankins, F. H. “Adolph Quetelet as Statistician,” in Studies in History, Economics, and Public Law, xxxi, no. 4, New York: Longman, Green, 1908, p. 497.

77. Hansel, C. E. M. ESP: A Scientific Evaluation. New York: Scribner’s, 1966, pp. 86–89.

78. Hare, Edward, Price, John, and Slater, Eliot. “Mental Disorders and Season of Birth: A National Sample Compared with the General Population.” British Jour- nal of Psychiatry, 124 (1974), pp. 81–86.

79. Hassard, Thomas H. Understanding Biostatistics. St. Louis, Mo.: Mosby Year Book, 1991.

80. Hasselblad, V. “Estimation of Finite Mixtures of Distributions from the Exponential Family.” Journal of the American Statistical Association, 64 (1969), pp. 1459–1471.

Bibliography 729

81. Heath, Clark W., and Hasterlik, Robert J. “Leukemia among Children in a Suburban Community.” The American Journal of Medicine, 34 (1963), pp. 796–812.

82. Hendy, M. F., and Charles, J. A. “The Production Techniques, Silver Content and Circulation History of the Twelfth-Century Byzantine Trachy.” Archaeometry, 12 (1970), pp. 13–21.

83. Hersen, Michel. “Personality Characteristics of Nightmare Sufferers.” Journal of Nervous and Mental Diseases, 153 (1971), pp. 29–31.

84. Herstein, I. N., and Kaplansky, I. Matters Mathematical. New York: Harper and Row, 1974, pp. 121–128.

85. Hill, T. P. “The First Digit Phenomenon.” American Scientist, 86 (1998), pp. 358–363.

86. Hilton, Geoff M., Cresswell, Will, and Ruxton, Graeme D. “Intraflock Variation in the Spread of Escape-Flight Response on Attack by an Avian Predator.” Behavioral Ecology, 10 (1999), pp. 391–395.

87. Hogben, D., Pinkham, R. S., and Wilk, M. B. “The Moments of the Non-central t-distribution.” Biometrika, 48 (1961), pp. 465–468.

88. Hogg, Robert V., McKean, Joseph W., and Craig, Allen T. Introduction to Math- ematical Statistics, 6th ed. Upper Saddle River, N.J.: Pearson Prentice Hall, 2005.

89. Hollander, Myles, and Wolfe, Douglas A. Nonparametric Statistical Methods. New York: John Wiley & Sons, 1973, pp. 272–282.

90. Horvath, Frank S., and Reid, John E. “The Reliability of Polygraph Examiner Di- agnosis of Truth and Deception.” Journal of Criminal Law, Criminology, and Police Science, 62 (1971), pp. 276–281.

91. Howell, John M. “A Strange Game.” Mathematics Magazine, 47 (1974), pp. 292–294.

92. Hudgens, Gerald A., Denenberg, Victor H., and Zarrow, M. X. “Mice Reared with Rats: Effects of Preweaning and Postweaning Social Interactions upon Behaviour.” Behaviour, 30 (1968), pp. 259–274.

93. Hulbert, Roger H., and Krumbiegel, Edward R. “Synthetic Flavors Improve Ac- ceptance of Anticoagulant-Type Rodenticides.” Journal of Environmental Health, 34 (1972), pp. 402–411.

94. Huxtable, J., Aitken, M. J., and Weber, J. C. “Thermoluminescent Dating of Baked Clay Balls of the Poverty Point Culture.” Archaeometry, 14 (1972), pp. 269–275.

95. Hyneck, Joseph Allen. The UFO Experience: A Scientific Inquiry. Chicago: Rognery, 1972.

96. Ibrahim, Michel A., et al. “Coronary Heart Disease: Screening by Familial Aggre- gation.” Archives of Environmental Health, 16 (1968), pp. 235–240.

97. Jones, Jack Colvard, and Pilitt, Dana Richard. “Blood-feeding Behavior of Adult Aedes Aegypti Mosquitoes.” Biological Bulletin, 31 (1973), pp. 127–139.

98. Karlsen, Carol F. The Devil in the Shape of a Woman. New York: W. W. Norton & Company, 1998, p. 51.

99. Kendall, Maurice G. “The Beginnings of a Probability Calculus,” in Studies in the History of Statistics and Probability. Edited by E. S. Pearson and Maurice G. Kendall. Darien, Conn.: Hafner, 1970, pp. 8–11.

100. Kendall, Maurice G., and Stuart, Alan. The Advanced Theory of Statistics, vol. 1. New York: Hafner, 1961.

101. . The Advanced Theory of Statistics, vol. 2. New York: Hafner, 1961.

730 Bibliography

102. Kruk-DeBruin, M., Rost, Luc C. M., and Draisma, Fons G. A. M. “Estimates of the Number of Foraging Ants with the Lincoln-Index Method in Relation to the Colony Size of Formica Polyctena.” Journal of Animal Ecology, 46 (1977), pp. 463– 465.

103. Larsen, Richard J., and Marx, Morris L. An Introduction to Probability and Its Ap- plications. Englewood Cliffs, N.J.: Prentice Hall, 1985.

104. . An Introduction to Mathematical Statistics and Its Applications, 2nd ed. Englewood Cliffs, N.J.: Prentice-Hall, 1986, pp. 452–453.

105. . An Introduction to Mathematical Statistics and Its Applications, 3rd ed. Up- per Saddle River, N.J.: Prentice Hall, 2001, pp. 181–182.

106. Lathem, Edward Connery, ed. The Poetry of Robert Frost. New York: Holt, Rinehart and Winston, 1970.

107. Lemmon, W. B., and Patterson, G. H. “Depth Perception in Sheep: Effects of Inter- rupting the Mother-Neonate Bond,” in Comparative Psychology: Research in Ani- mal Behavior. Edited by M. R. Denny and S. Ratner. Homewood, Ill.: Dorsey Press, 1970, p. 403.

108. Lemon, Robert E., and Chatfield, Christopher. “Organization of Song in Cardinals.” Animal Behaviour, 19 (1971), pp. 1–17.

109. Lindgren, B. W. Statistical Theory. New York: Macmillan, 1962.

110. Linnik, Y. V. Method of Least Squares and Principles of the Theory of Observations. Oxford: Pergamon Press, 1961, p. 1.

111. Longwell, William. Personal communication.

112. Lottenbach, K. “Vasomotor Tone and Vascular Response to Local Cold in Primary Raynaud’s Disease.” Angiology, 32 (1971), pp. 4–8.

113. MacDonald, G. A., and Abbott, A. T. Volcanoes in the Sea. Honolulu: University of Hawaii Press, 1970.

114. Maistrov, L. E. Probability Theory—A Historical Sketch. New York: Academic Press, 1974.

115. Mann, H. B. Analysis and Design of Experiments. New York: Dover, 1949.

116. Mares, M. A., et al. “The Strategies and Community Patterns of Desert Animals,” in Convergent Evolution in Warm Deserts. Edited by G. H. Orians and O. T. Solbrig. Stroudsberg, Pa.: Dowden, Hutchinson & Ross, 1977, p. 141.

117. Marx, Morris L. Personal communication.

118. McIntyre, Donald B. “Precision and Resolution in Geochronometry,” in The Fabric of Geology. Edited by Claude C. Albritton, Jr. Stanford, Calif.: Freeman, Cooper, and Co., 1963, pp. 112–133.

119. Mendel, J. G. “Experiments in Plant Hybridization.” Journal of the Royal Horticul- tural Society, 26 (1866), pp. 1–32.

120. Merchant, L. The National Football Lottery. New York: Holt, Rinehart and Winston, 1973.

121. Miettinen, Jorma K. “The Accumulation and Excretion of Heavy Metals in Organ- isms,” in Heavy Metals in the Aquatic Environment. Edited by P. A. Krenkel. Oxford: Pergamon Press, 1975, pp. 155–162.

122. Morand, David A. “Black Holes in Social Space: The Occurrence and Effects of Non-Avoidance in Organizations.” Journal of Applied Social Psychology, 35 (2005), p. 327.

Bibliography 731

123. Morgan, Peter J. “A Photogrammetric Survey of Hoseason Glacier, Kemp Coast, Antarctica.” Journal of Glaciology, 12 (1973), pp. 113–120.

124. Mulcahy, R., McGilvray, J. W., and Hickey, N. “Cigarette Smoking Related to Geo- graphic Variations in Coronary Heart Disease Mortality and to Expectation of Life in the Two Sexes.” American Journal of Public Health, 60 (1970), pp. 1515–1521.

125. Munford, A. G. “A Note on the Uniformity Assumption in the Birthday Problem.” American Statistician, 31 (1977), p. 119.

126. Nakano, T. “Natural Hazards: Report from Japan,” in Natural Hazards. Edited by G. White. New York: Oxford University Press, 1974, pp. 231–243.

127. Nash, Harvey. Alcohol and Caffeine. Springfield, Ill.: Thomas, 1962, p. 96.

128. Nashville Banner. November 9, 1994.

129. New York Times (New York). May 22, 2005.

130. . October 7, 2007.

131. Newsweek. March 6, 1978.

132. Nye, Francis Iven. Family Relationships and Delinquent Behavior. New York: John Wiley & Sons, 1958, p. 37.

133. Olmsted, P. S. “Distribution of Sample Arrangements for Runs Up and Down.” Annals of Mathematical Statistics, 17 (1946), pp. 24–33.

134. Olvin, J. F. “Moonlight and Nervous Disorders.” American Journal of Psychiatry, 99 (1943), pp. 578–584.

135. Ore, O. Cardano, The Gambling Scholar. Princeton, N.J.: Princeton University Press, 1963, pp. 25–26.

136. Papoulis, Athanasios. Probability, Random Variables, and Stochastic Processes. New York: McGraw-Hill, 1965, pp. 206–207.

137. Passingham, R. E. “Anatomical Differences between the Neocortex of Man and Other Primates.” Brain, Behavior and Evolution, 7 (1973), pp. 337–359.

138. Payne, Monica. “Effects of Parental Presence/Absence on Size of Children’s Human Figure Drawings.” Perceptual and Motor Skills, 70 (1990), pp. 843–849.

139. Payne, Robert B., and Payne, Laura L. “Brood Parasitism by Cowbirds: Risks and Effects on Reproductive Success and Survival in Indigo Buntings.” Behavioral Ecol- ogy, 9 (1998), pp. 64–73.

140. Pearson, E. S., and Kendall, Maurice G. Studies in the History of Statistics and Prob- ability. London: Griffin, 1970.

141. Peberdy, M. A., et al. “Survival from In-Hospital Cardiac Arrest During Nights and Weekends.” Journal of the American Medical Association, 299 (2008), pp. 785–792.

142. Pensacola News Journal (Florida). May 25, 1997.

143. . September 21, 1997.

144. Phillips, David P. “Deathday and Birthday: An Unexpected Connection,” in Statis- tics: A Guide to the Unknown. Edited by Judith M. Tanur, et al. San Francisco: Holden-Day, 1972.

145. Pierce, George W. The Songs of Insects. Cambridge, Mass.: Harvard University Press, 1949, pp. 12–21.

146. Polya, G. “Uber den Zentralen Grenzwertsatz der Wahrscheinlichkeitsrechnung und das Momenten-problem.” Mathematische Zeitschrift, 8 (1920), pp. 171–181.

732 Bibliography

147. Porter, John W., et al. “Effect of Hypnotic Age Regression on the Magnitude of the Ponzo Illusion.” Journal of Abnormal Psychology, 79 (1972), pp. 189–194.

148. Ragsdale, A. C., and Brody, S. Journal of Dairy Science, 5 (1922), p. 214.

149. Rahman, N. A. Practical Exercises in Probability and Statistics. New York: Hafner, 1972.

150. Reichler, Joseph L., ed. The Baseball Encyclopedia, 4th ed. New York: Macmillan, 1979, p. 1350.

151. Resnick, Richard B., Fink, Max, and Freedman, Alfred M. “A Cyclazocine Ty- pology in Opiate Dependence.” American Journal of Psychiatry, 126 (1970), pp. 1256–1260.

152. Richardson, Lewis F. “The Distribution of Wars in Time.” Journal of the Royal Sta- tistical Society, 107 (1944), pp. 242–250.

153. Ritter, Brunhilde. “The Use of Contact Desensitization, Demonstration-Plus- Participation and Demonstration-Alone in the Treatment of Acrophobia.” Be- haviour Research and Therapy, 7 (1969), pp. 157–164.

154. Roberts, Charlotte A. “Retraining of Inactive Medical Technologists—Whose Responsibility?” American Journal of Medical Technology, 42 (1976), pp. 115– 123.

155. Rohatgi, V. K. An Introduction to Probability Theory and Mathematical Statistics. New York: John Wiley & Sons, 1976, p. 81.

156. Rosenthal, R., and Jacobson, L. F. “Teacher Expectations for the Disadvantaged.” Scientific American, 218 (1968), pp. 19–23.

157. Ross, Sheldon. A First Course in Probability, 7th ed. Upper Saddle River, N.J.: Pearson Prentice Hall, 2006, pp. 51–53.

158. Roulette, Amos. “An Assessment of Unit Dose Injectable Systems.” American Jour- nal of Hospital Pharmacy, 29 (1972), pp. 60–62.

159. Rowley, Wayne A. “Laboratory Flight Ability of the Mosquito Culex Tarsalis Coq.” Journal of Medical Entomology, 7 (1970), pp. 713–716.

160. Roy, R. H. The Cultures of Management. Baltimore: Johns Hopkins University Press, 1977, p. 261.

161. Rutherford, Sir Ernest, Chadwick, James, and Ellis, C. D. Radiations from Radioac- tive Substances. London: Cambridge University Press, 1951, p. 172.

162. Ryan, William J., Kucharski, L. Thomas, and Kunkle, Christopher D. “Judicial and Amorous Stalkers: An Analysis of Rorschach, MMPI-2 and Clinical Findings.” American Journal of Forensic Psychology, 21 (2003), pp. 5–30.

163. Sagan, Carl. Cosmos. New York: Random House, 1980, pp. 298–302.

164. Salvosa, Carmencita B., Payne, Philip R., and Wheeler, Erica F. “Energy Expen- diture of Elderly People Living Alone or in Local Authority Homes.” American Journal of Clinical Nutrition, 24 (1971), pp. 1467–1470.

165. Saturley, B. A. “Colorimetric Determination of Cyclamate in Soft Drinks, Us- ing Picryl Chloride.” Journal of the Association of Official Analytical Chemists, 55 (1972), pp. 892–894.

166. Schaller, G. B. “The Behavior of the Mountain Gorilla,” in Primate Patterns. Edited by P. Dolhinow. New York: Holt, Rinehart and Winston, 1972, p. 95.

167. Schell, E. D. “Samuel Pepys, Isaac Newton, and Probability.” The American Statis- tician, 14 (1960), pp. 27–30.

Bibliography 733

168. Schoeneman, Robert L., Dyer, Randolph H., and Earl, Elaine M. “Analytical Pro- file of Straight Bourbon Whiskies.” Journal of the Association of Official Analytical Chemists, 54 (1971), pp. 1247–1261.

169. Seiter, John S., and Gass, Robert H. “The Effect of Patriotic Messages on Restaurant Tipping.” Journal of Applied Social Psychology, 35 (2005), pp. 1197–1205.

170. Selective Service System. Office of the Director. Washington, D.C., 1969.

171. Sella, Gabriella, Premoli, M. Clotilde, and Turri, Fiametta. “Egg-Trading in the Simultaneously Hermaphroditic Polychaete Worm Ophryotrocha gracilis (Huth).” Behavioral Ecology, 8 (1997), pp. 83–86.

172. Sen, Nrisinha, et al. “Effect of Sodium Nitrite Concentration on the Formation of Nitrosopyrrolidine and Dimethyl Nitrosamine in Fried Bacon.” Journal of Agricul- tural and Food Chemistry, 22 (1974), pp. 540–541.

173. Sharpe, Roger S., and Johnsgard, Paul A. “Inheritance of Behavioral Characters in F2 Mallard x Pintail (Anas Platyrhynchos L. x Anas Acuta L.) Hybrids.” Behaviour, 27 (1966), pp. 259–272.

174. Shaw, G. B. The Doctor’s Dilemma, with a Preface on Doctors. New York: Brentano’s, 1911, p. lxiv.

175. Shore, N. S., Greene, R., and Kazemi, H. “Lung Dysfunction in Workers Exposed to Bacillus subtilis Enzyme.” Environmental Research, 4 (1971), pp. 512–519.

176. Stroup, Donna F. Personal communication.

177. Strutt, John William (Baron Rayleigh). “On the Resultant of a Large Number of Vibrations of the Same Pitch and of Arbitrary Phase.” Philosophical Magazine, X (1880), pp. 73–78.

178. Sukhatme, P. V. “On Fisher and Behrens’ Test of Significance for the Difference in Means of Two Normal Samples.” Sankhya, 4 (1938), pp. 39–48.

179. Sutton, D. H. “Gestation Period.” Medical Journal of Australia, 1 (1945), pp. 611– 613.

180. Szalontai, S., and Timaffy, M. “Involutional Thrombopathy,” in Age with a Future. Edited by P. From Hansen. Philadelphia: F. A. Davis, 1964, p. 345.

181. Tanguy, J. C. “An Archaeomagnetic Study of Mount Etna: The Magnetic Direction Recorded in Lava Flows Subsequent to the Twelfth Century.” Archaeometry, 12, 1970, pp. 115–128.

182. Tennessean (Nashville). January 20, 1973.

183. . August 30, 1973.

184. . July 21, 1990.

185. . May 5, 1991.

186. . May 12, 1991.

187. . December 11, 1994.

188. . January 29, 1995.

189. . April 25, 1995.

190. Terry, Mary Beth, et al. “Association of Frequency and Duration of Aspirin Use and Hormone Receptor Status with Breast Cancer Risk.” Journal of the American Medical Association, 291 (2004), pp. 2433–2436.

191. Thorndike, Frances. “Applications of Poisson’s Probability Summation.” Bell System Technical Journal, 5 (1926), pp. 604–624.

734 Bibliography

192. Treuhaft, Paul S., and McCarty, Daniel J. “Synovial Fluid pH, Lactate, Oxygen and Carbon Dioxide Partial Pressure in Various Joint Diseases.” Arthritis and Rheuma- tism, 14 (1971), pp. 476–477.

193. Trugo, L. C., Macrae, R., and Dick, J. “Determination of Purine Alkaloids and Trigonelline in Instant Coffee and Other Beverages Using High Performance Liq- uid Chromatography.” Journal of the Science of Food and Agriculture, 34 (1983), pp. 300–306.

194. Turco, Salvatore, and Davis, Neil. “Particulate Matter in Intravenous Infusion Fluids—Phase 3.” American Journal of Hospital Pharmacy, 30 (1973), pp. 611–613.

195. Turner, Dennis C. The Vampire Bat: A Field Study in Behavior and Ecology. Baltimore, Md.: Johns Hopkins University Press, 1975, p. 40.

196. USA Today. May 20, 1991.

197. . September 20, 1991.

198. . March 14, 1994.

199. . April 12, 1994.

200. . December 30, 1994.

201. . May 4, 1995.

202. Verma, Santosh K., and Deb, Manas K. “Single-Drop and Nanogram Determina- tion of Sulfite (SO2−3 ) in Alcoholic and Nonalcoholic Beverage Samples Based on Diffuse Reflectance Transform Infrared Spectroscopic (DRS-FTIR) Analysis on KBr Matrix.” Journal of Agricultural and Food Chemistry, 55 (2007), pp. 8319–8324.

203. Vilenkin, N. Y. Combinatorics. New York: Academic Press, 1971, pp. 24–26.

204. Vogel, John H. K., Horgan, John A., and Strahl, Cheryl L. “Left Ventricular Dys- function in Chronic Constrictive Pericarditis.” Chest, 59 (1971), pp. 484–492.

205. Vogt, E. Z., and Hyman, R. Water Witching U.S.A. Chicago: University of Chicago Press, 1959, p. 55.

206. Walker, H. Studies in the History of Statistical Method. Baltimore: Williams and Wilkins, 1929.

207. Wall Street Journal. March 20, 1994.

208. Wallechinsky, D., Wallace, I., and Wallace, A. The Book of Lists. New York: Barton Books, 1978.

209. Wallis, W. A. “The Poisson Distribution and the Supreme Court.” Journal of the American Statistical Association, 31 (1936), pp. 376–380.

210. Werner, Martha, Stabenau, James R., and Pollin, William. “Thematic Apperception Test Method for the Differentiation of Families of Schizophrenics, Delinquents, and ‘Normals.’ ” Journal of Abnormal Psychology, 75 (1970), pp. 139–145.

211. Wilks, Samuel S. Mathematical Statistics. New York: John Wiley & Sons, 1962.

212. Williams, Wendy M., and Ceci, Stephen J. “How’m I Doing?” Change, 29, no. 5 (1997), pp. 12–23.

213. Willott, S. J., et al. “Effects of Selective Logging on the Butterflies of a Borneo Rain- forest,” Conservation Biology, 14 (2000), pp. 1055–1065.

214. Winslow, Charles. The Conquest of Epidemic Disease. Princeton, N.J.: Princeton University Press, 1943, p. 303.

215. Wolf, Stewart, ed. The Artery and the Process of Arteriosclerosis: Measurement and Modification. Proceedings of an Interdisciplinary Conference on Fundamental Data

Bibliography 735

on Reactions of Vascular Tissue in Man (Lindau, West Germany, April 19–25, 1970). New York: Plenum Press, 1972, p. 116.

216. Wolfowitz, J. “Asymptotic Distribution of Runs Up and Down.” Annals of Mathe- matical Statistics, 15 (1944), pp. 163–172.

217. Wood, Robert M. “Giant Discoveries of Future Science.” Virginia Journal of Sci- ence, 21 (1970), pp. 169–177.

218. Woodward, W. F. “A Comparison of Base Running Methods in Baseball.” M.Sc. Thesis, Florida State University, 1970.

219. Woolson, Robert E. Statistical Methods for the Analysis of Biomedical Data. New York: John Wiley & Sons, 1987, p. 302.

220. Wu, Yuhua, et al. “Event-Specific Qualitative and Quantitative PCR Detection Methods for Transgenic Rapeseed Hybrids MS1 × RF1 and MS1 × RF2.” Journal of Agricultural and Food Chemistry, 55 (2007), pp. 8380–8389.

221. Wyler, Allen R., Minoru, Masuda, and Holmes, Thomas H. “Magnitude of Life Events and Seriousness of Illness.” Psychosomatic Medicine, 33 (1971), pp. 70–76.

222. Yochem, Donald, and Roach, Darrell. “Aspirin: Effect on Thrombus Formulation Time and Prothrombin Time of Human Subjects.” Angiology, 22 (1971), pp. 70–76.

223. Young, P. V., and Schmid, C. Scientific Social Surveys and Research. Englewood Cliffs, N.J.: Prentice Hall, 1966, p. 319.

224. Zaret, Thomas M. “Predators, Invisible Prey, and the Nature of Polymorphism in the Cladocera (Class Crustacea).” Limnology and Oceanography, 17 (1972), pp. 171–184.

225. Zelazo, Philip R., Zelazo, Nancy Ann, and Kolb, Sarah. “‘Walking’ in the Newborn.” Science, 176 (1972), pp. 314–315.

226. Zelinsky, Daniel A. A First Course in Linear Algebra, 2nd ed. New York: Academic Press, 1973.

227. Zimmerman, Robert R., et al. Primate Behavior: Developments in Field and Lab- oratory Research, vol. 4. Edited by Leonard A. Rosenblum. New York: Academic Press, 1975, p. 296.

228. Ziv, G., and Sulman, F. G. “Binding of Antibiotics to Bovine and Ovine Serum.” Antimicrobial Agents and Chemotherapy, 2 (1972), pp. 206–213.

229. Zucker, N. “The Role of Hood-Building in Defining Territories and Limiting Com- bat in Fiddler Crabs.” Animal Behaviour, 29 (1981), pp. 387–395.

This page intentionally left blank

Index

Alternative hypothesis, 343, 349–350 Analysis of variance (see Completely randomized one-factor

design; Randomized block design) ANOVA table, 586, 617 Arc sine transformation, 604–605 Asymptotically unbiased, 313, 326

Bayesian estimation, 329–341 Bayes theorem, 45–46, 60 Behrens-Fisher problem, 457–460 Benford’s law, 119–120, 492–494 Bernoulli distribution, 185, 190, 279–280, 317, 319–320 Bernoulli trials, 184–185 Best estimator, 317–318 Beta distribution, 332 Binomial coefficients, 84–85 Binomial distribution:

additive property, 177–178 arc sine transformation, 604–605 confidence interval for p, 298–300 definition, 103–104 estimate for p, 279–280, 309, 317 examples, 105–106, 139, 177, 184–185, 190, 241–242,

250–252, 332, 500–501 hypothesis tests for p, 353, 357–358 moment-generating function, 207 moments, 139–140, 184–185, 190, 211–212 normal approximation, 235–237, 240–242 Poisson approximation, 219–221 relationship to Bernoulli distribution, 184–185, 190 relationship to beta distribution, 334 relationship to hypergeometric distribution, 109, 201–202 relationship to multinomial distribution, 484–486, 509 sample size determination, 304–306 in sign test, 639

Birthday problem, 92–94 Bivariate distribution (see Joint probability density function) Bivariate normal distribution, 570–573 Blocks, 423, 432–437, 613–614 Bootstrapping, 341–342

Categorical data, 437–438, 443–444, 507–510 Central limit theorem, 235–237, 243–247, 276–277 Chebyshev’s inequality, 328 Chi square distribution:

definition, 383–384 formula for approximating percentiles, 411 moments, 388 noncentral, 609

relationship to F distribution, 385 relationship to gamma distribution, 383 relationship to normal distribution, 384 relationship to Student t distribution, 386 table, 404–405

Chi square test: for goodness-of-fit, 410, 488–490, 496–497, 499–500 for independence, 510 for means, 584 in nonparametric analyses, 659, 662 for the variance, 408–409

Coefficient of determination, 566 Combinations, 83–84 Complement, 21 Completely randomized one-factor design:

comparison with Kruskal-Wallis test, 669–673 comparison with randomized block design, 622–623 computing formulas, 588 error sum of squares, 584 notation, 581 relationship to two-sample data, 590–591 test statistic, 584–586, 608–612 total sum of squares, 585 treatment sum of squares, 582–583

Conditional expectation, 544–545, 556–558 Conditional probability:

in bivariate distribution, 200–205 definition, 33, 200, 202 in higher-order intersections, 38 in partitioned sample spaces, 41–42, 45–46, 330 in regression, 544–545

Confidence band, 558 Confidence coefficient, 298 Confidence interval (see also Prediction interval):

for conditional mean in linear model, 557 definition, 294–296, 298 for difference of two means, 473 for difference of two proportions, 476 interpretation, 294–296, 300–301 for mean of normal distribution, 294–296, 391 for p in binomial distribution, 299 for quotient of two variances, 475 for regression coefficients, 553–555 relationship to hypothesis testing, 477 for variance of normal distribution, 406

Consistent estimator, 326–328 Consumer’s risk, 370 Contingency table, 437–438, 507, 511–513 Continuity correction, 239–240

737

738 Index

Contrast, 596–598, 624–626 Correlation coefficient (see also Sample correlation

coefficient): applied to linear relationships, 563–564 in bivariate normal distribution, 572–573 definition, 564 estimate, 565 interpretation, 565–568 relationship to covariance, 564–565 relationship to independence, 572–573

Correlation data, 435–438, 576–577 Covariance, 188 Cramér-Rao lower bound, 316–318, 325 Craps, 58–60 Critical region, 348 Critical value, 348 Cumulative distribution function (cdf):

definition, 125, 135, 169 in pdf of order statistics, 193, 195–197 relationship to pdf, 135, 170

Curve-fitting: examples, 522–528, 531–541 method of least squares, 520–522 residual, 523–528 residual plot, 525–528 transformations to induce linearity, 531–541

Decision rule (see Hypothesis testing; Testing) DeMoivre-Laplace limit theorem, 235–237, 243–244 DeMorgan’s laws, 25 Density function (see Probability density function (pdf)) Density-scaled histogram, 130–132, 233–234 Dependent samples, 424, 432–433, 442, 613–614, 634–637 Distribution-free statistics (see Nonparametric statistics) Dot notation, 581, 615–616

Efficiency, 313–315, 318 Efficient estimator, 318 Estimation (see also Confidence interval; Estimator):

Bayesian, 329–340 least squares, 520–522 maximum likelihood, 278–288 method of moments, 289–292 point versus interval, 293–298

Estimator (see also Confidence interval; Estimation): best, 316–317 for binomial p, 278–280, 308–310, 317 for bivariate normal parameters, 573–577 consistent, 326–329 for contrast, 596–597 for correlation coefficient, 565 Cramér-Rao lower bound, 316 difference between estimate and estimator, 279–280 efficient, 318 for exponential parameter, 286–287 interval, 293–295 for normal parameters, 311–312

for Poisson parameter, 322–323 for slope and y-intercept (linear model), 545–546 sufficient, 319–322 unbiasedness, 310–312 for uniform parameter, 327 for variance in linear model, 545–546, 549

Event, 17 Expected value (see also “moments” listings for

specific distributions): conditional, 544–545 definition, 138, 158–159 examples, 137–145, 182–184, 582–583 of functions, 148–152, 182, 184, 186–187 of linear combinations, 184 of loss functions, 338 in method of moments estimation, 289–290 relationship to median, 145–146 relationship to moment-generating function, 206, 209

Experiment, 17 Experimental design, 421–422, 426, 441–444, 580–581,

613–614, 622–623, 634–637 Exponential distribution:

examples, 132–133, 143–144, 145–146, 178, 193–194, 232–234, 271–274, 400–402

moment-generating function, 208 moments, 143–144, 210 parameter estimation, 286–287 relationship to Poisson distribution, 232–233 threshold parameter, 286

Exponential form, 326 Exponential regression, 3, 532–533, 541

Factor, 422–423 Factorial data (online)

aliases, 15-76–15-77 Bartlett’s test, 15-39 constructing error terms, 15-62–15-64, 15-69, 15-77–15-78,

15-80, 15-82 defining contrast, 15-74, 15-76–15-77, 15-81–15-82 distribution of sums of squares, 15-18–15-19 effect matrix, 15-57–15-59 estimated parameters, 15-8–15-10 fractional replicates, 15-72–15-77 hypothesis tests, 15-21–15-23 interpreting interactions, 15-11–15-14, 15-14–15-15,

15-41–15-43 orthogonality, 15-55–15-57, 15-76 rules for computing sums of squares, 15-16–15-18,

15-43–15-47 rules for finding expected mean squares, 15-26–15-29 theoretical models, 15-6–15-8, 15-11, 15-41, 15-50 three-factor factorial examples, 15-2–15-4, 15-47–15-50 two-factor factorial examples, 15-10–15-11, 15-23–15-25,

15-30–15-40 2n examples, 15-64–15-71 using contrasts to test hypotheses, 15-60–15-62 Yates notation, 15-52–15-55

Index 739

Factorization theorem, 322–324 Factor levels, 422–423 F distribution:

in analysis of variance, 585–586, 598, 617 definition, 385 in inferences about variance ratios, 464, 475 relationship to chi square distribution, 385 relationship to Student t distribution, 387

Finite correction factor, 305–306 Fisher’s lemma, 416 Friedman’s test, 662

Gamma distribution: additive property, 270 definition, 267–269 examples, 267–268 moment-generating function, 270 moments, 269 parameter estimation, 282–283 relationship to chi square distribution, 384 relationship to exponential distribution, 267 relationship to normal distribution, 384 relationship to Poisson distribution, 267

Generalized likelihood ratio, 376 Generalized likelihood ratio test (GLRT):

definition, 376 examples, 375–377, 395, 416–418, 468–469, 480–482,

490, 582 Geometric distribution:

definition, 257–258 examples, 258–259, 283–284 moment-generating function, 206–207 moments, 210, 258–259 parameter estimation, 283–284 relationship to negative binomial distribution, 259–260

Geometric probability, 164–166 Goodness-of-fit test (see Chi square test)

Hazard rate, 137 Hypergeometric distribution:

definition, 109–110 examples, 110–115, 140 moments, 140–141, 190–191, 305–306 relationship to binomial distribution, 109, 201–202

Hypothesis testing (see also Testing): critical region, 348 decision rule, 343–347, 367–370, 376 level of significance, 348 P-value, 351–352, 355–356 Type I and Type II errors, 359–363, 592

Independence: effect of, on the expected value of a product, 187 of events, 33, 50–51, 55 mutual versus pairwise, 55 of random variables, 171–173, 186–187 of regression estimators, 548, 577–579

of repeated trials, 57 of sample mean and sample variance (normal data),

384, 414–416, 548 of sums of squares, 584, 616 tests for, 483–489, 507–510

Independent samples, 424, 428–430, 450–451, 580, 634–637, 655, 658

Intersection, 20 Interval estimate (see Confidence interval; Prediction

interval)

Joint cumulative distribution function, 169–170 Joint probability density function, 160–163

Kruskal-Wallis test, 658–661, 669–673 k-sample data, 430–432, 580–581, 658–659 Kurtosis, 159

Law of small numbers, 227–228 Level of significance, 348, 351–352, 359–360, 367–370,

592–593 Likelihood function, 281 Likelihood ratio (see Generalized likelihood ratio) Likelihood ratio test (see Generalized likelihood ratio test

(GLRT)) Linear model (see also Curve-fitting):

assumptions, 435–437, 543–545 confidence intervals for parameters, 553, 555 hypothesis tests, 550, 554–555, 560 parameter estimation, 545

Logarithmic regression, 535–538, 541 Logistic regression, 538–541 Loss function, 337–340

Margin of error, 300–304 Marginal probability density function, 162–163, 167–168,

335–336, 486 Maximum likelihood estimation (see also Estimation):

definition, 281 examples, 279–280, 282–288, 545–547 in goodness-of-fit testing, 498 properties, 325, 329 in regression analysis, 546–547, 549

Mean (see Expected value) Mean free path, 143–144 Mean square, 586–587 Median, 145, 299–300, 313, 329, 639–640 Median unbiased, 313 Method of least squares (see Estimation) Method of moments (see Estimation) Minimum variance estimator, 317 Model equation, 427, 428–429, 430, 432, 434, 582, 614–615 Moment-generating function (see also “moment-generating

function” listings for specific distributions): definition, 206 examples, 206–208 in proof of central limit theorem, 276–277 properties, 209–210, 213

740 Index

Moment-generating function (Continued) relationship to moments, 209–210, 211–212 as technique for finding distributions of sums, 213–215

Moments (see Expected value; Variance; “moments” listings for specific distributions)

Monte Carlo studies, 99–101, 271–274, 294–297, 370–373 Moore’s Law, 533–535 Multinomial coefficients, 77–78 Multinomial distribution, 484–485, 509 Multiple comparisons, 592–595 Multiplication rule, 66 Mutually exclusive events, 21, 26, 52

Negative binomial distribution, 259–264 definition, 259–261 examples, 124, 261–264, 335–336 moment-generating function, 260–261 moments, 260–261

Noncentral chi square distribution, 609 Noncentral F distribution, 610 Noncentral t distribution, 413 Noninformative prior, 332 Nonparametric statistics, 638–639 Normal distribution (see also Standard normal distribution):

additive property, 254 approximation to binomial distribution, 235–237, 239–242 approximation to sign test, 639–641 approximation to Wilcoxon signed rank statistic, 651–653 central limit theorem, 235–237, 243–247, 276–277 confidence interval for mean, 293–298, 389–393 confidence interval for variance, 404–407 definition, 248–249 hypothesis test for mean (variance known), 350–351 hypothesis test for mean (variance unknown), 395–397,

400–403 hypothesis test for variance, 409–410, 418–420 independence of sample mean and sample variance, 389,

414–416 as limit for Student t distribution, 381–383, 388 in linear model, 544–545 moment-generating function, 208, 214–215 moments, 248–249 parameter estimation, 287–288, 311–312 relationship to chi square distribution, 384, 386, 710–711 relationship to gamma distribution, 384 table, 238 transformation to standard normal, 214–215,

248–253, 256 unbiased estimator for variance, 311–312, 549

Null hypothesis, 343, 351

One-sample data, 427–428, 639–640 One-sample t test, 395–397, 416–418 Operating characteristic curve, 113–115 Order statistics:

definition, 192 estimates based on, 286–287, 310–311, 315, 327–328

joint pdf, 197 probability density function for ith, 193, 195–196

Outliers, 517–519

Paired data, 432–433, 628–629, 642–644, 653–655 Paired t test, 432, 628–633, 634–637 Pairwise comparisons (see Tukey’s test) Parameter, 278–279 Parameter space, 375–376, 416–418 Pareto distribution, 289, 293, 326, 492–494 Partitioned sample space, 41–42, 45–46 Pascal’s triangle, 85–86 Pearson product moment correlation coefficient, 565 Permutations:

objects all distinct, 72 objects not all distinct, 77–78

Poisson distribution: additive property, 213–214 definition, 224–225 examples, 118–119, 221–223, 225–227, 230, 400–403 hypothesis test, 368–369 as limit of binomial distribution, 219–221, 227–228 moment-generating function, 212 moments, 212, 224–225 parameter estimation, 282–283, 322–323 relationship to exponential distribution, 232–235 relationship to gamma distribution, 267, 334–335 square root transformation, 605

Poisson model, 227–229 Poker hands, 94–95 Political arithmetic, 10–15 Posterior distribution, 331–335 Power, 362 Power curve, 362–365, 378–379 Prediction interval, 559 Prior distribution, 330–335 Probability:

axiomatic definition, 16–17 classical definition, 9, 16 empirical definition, 16

Probability density function (pdf), 122, 133–134, 170, 176, 179–181

Probability function, 26–27, 117, 127–129 Producer’s risk, 370 P-value, 351–352, 354–355

Qualitative measurement, 425–426 Quantitative measurement, 425–426

Random deviates, 263–266 Random Mendelian mating, 53–54 Randomized block data, 433–435, 441–442, 613–614 Randomized block design:

block sum of squares, 616 comparison with completely randomized one-factor

design, 622–623 computing formulas, 617–618

Index 741

error sum of squares, 615–616, 619–621 notation, 614–615 relationship to paired t test, 632–633 test statistic, 617 treatment sum of squares, 616

Random sample, 173 Random variable, 102–103, 117, 122, 133–134 Range, 198 Rank sum test (see Wilcoxon rank sum test) Rayleigh distribution, 144–145 Rectangular distribution (see Uniform distribution) Regression curve, 544–545, 572–573 Regression data, 435–437, 520, 531–541, 543–545 Relative efficiency, 313–315 Repeated independent trials, 67, 484–485 Resampling, 341–342 Residual, 523 Residual plot, 523–528 Risk, 338–340 Robustness, 393, 400–403, 453–455, 638–639, 669–673 Runs, 665–667

Sample correlation coefficient: definition, 565 interpretation and misinterpretation, 565–568, 576–577 in tests of independence, 574–575

Sample outcome, 17 Sample size determination, 304–305, 364–366, 408,

448–449 Sample space, 17 Sample standard deviation, 312 Sample variance, 312, 388, 451–452, 549, 560, 584 Sampling distributions, 383–384 Serial number analysis, 5–6 Sign test, 639–644 Signed rank test (see Wilcoxon signed rank test) Simple linear model (see Linear model) Skewness, 159 Spurious correlation, 576–577 Square root transformation, 604–605 Squared-error consistent, 329 Standard deviation, 154, 311–312 Standard normal distribution (see also Normal distribution):

in central limit theorem, 243–247, 248–249 definition, 235–237 in DeMoivre-Laplace limit theorem, 235–237 table, 238 Z transformation, 214–215, 249, 254

Statistic, 280 Statistically significant, 348, 378–379 Stirling’s formula, 74, 78–79 St. Petersburg paradox, 142–143 Studentized range, 592–593 Student t distribution:

approximated by standard normal distribution, 381–383, 388

definition, 386–388

in inferences about difference between two dependent means, 628–632

in inferences about difference between two independent means, 451–455

in inferences about single mean, 390–392, 395–397 in regression analysis, 550, 553, 554–555, 557, 559–560, 574 relationship to chi square distribution, 386 relationship to F distribution, 387

Subhypothesis, 582, 592–594, 596–600 Sufficient estimator:

definition, 319, 321–325 examples, 319–325 exponential form, 326 factorization criterion, 323–325 relationship to maximum likelihood estimator, 325 relationship to minimum variance, unbiased estimator, 325

t distribution (see Student t distribution) Testing (see also Hypothesis testing)

that correlation coefficient is zero, 574–575 the equality of k location parameters (dependent

samples), 662–664 the equality of k location parameters (independent

samples), 658–661 the equality of k means (dependent samples), 616–617 the equality of k means (independent samples), 582–586 the equality of two location parameters (dependent

samples), 642–644 the equality of two location parameters (independent

samples), 655–657 the equality of two means (dependent samples), 628–631 the equality of two means (independent samples),

451–455, 460, 590–591 the equality of two proportions (independent samples),

468–470 the equality of two slopes (independent samples), 560–562 the equality of two variances (independent samples),

463–466 for goodness-of-fit, 483–484, 488–491, 496–497, 498–501 for independence, 483–484, 507–512, 550–552, 574–575 the parameter of Poisson distribution, 368–369 the parameter of uniform distribution, 375–377 for randomness, 665–667 a single mean with variance known, 350–351 a single mean with variance unknown, 395–397,

416–418 a single median, 639–641 a single proportion, 353–356, 357–358 a single variance, 408–409, 418–420 the slope of a regression line, 550–552 subhypotheses, 592–595, 598–600

Test statistic, 348 Threshold parameter, 286–287 Total sum of squares, 584–585, 588 Transformations:

of data, 604–605 of random variables, 174–181

742 Index

Treatment sum of squares, 582–584, 588, 598, 608, 616–617

Trinomial distribution, 488 Tukey’s test, 592–595, 623–624 Two-sample data, 428–430, 450–451,

655–657 Two-sample t test, 428–429, 451–455, 480–482,

560–562, 590–591, 634–637 Type I error, 359–360, 366–370,

592–594 Type II error, 359–363, 412–414

Unbiased estimator, 310–312 Uniform distribution, 129, 164–166, 198, 246–247, 265,

327–328, 367–368, 375–377, 401 Union, 20

Variance (see also Sample variance; Testing) computing formula, 155 confidence interval, 406–407, 555 definition, 154 in hypothesis tests, 408–410, 463–466, 555 lower bound (Cramér-Rao), 316–318 properties, 156 of a sum, 188–189, 596–597

Venn diagrams, 23–25, 28–29, 34

Weak law of large numbers, 328–329 Weibull distribution, 289 Wilcoxon rank sum test, 655–657 Wilcoxon signed rank test, 645–653

Z transformation (see Normal distribution)

  • Cover
  • Title page
  • Copyright Page
  • Contents
  • Preface
  • Acknowledgments
  • 1 Introduction���������������������
    • 1.1 An Overview����������������������
    • 1.2 Some Examples������������������������
    • 1.3 A Brief History��������������������������
    • 1.4 A Chapter Summary����������������������������
  • 2 Probability��������������������
    • 2.1 Introduction�����������������������
    • 2.2 Sample Spaces and the Algebra of Sets������������������������������������������������
    • 2.3 The Probability Function�����������������������������������
    • 2.4 Conditional Probability����������������������������������
    • 2.5 Independence�����������������������
    • 2.6 Combinatorics������������������������
    • 2.7 Combinatorial Probability������������������������������������
    • 2.8 Taking a Second Look at Statistics (Monte Carlo Techniques)����������������������������������������������������������������������
  • 3 Random Variables�������������������������
    • 3.1 Introduction�����������������������
    • 3.2 Binomial and Hypergeometric Probabilities����������������������������������������������������
    • 3.3 Discrete Random Variables������������������������������������
    • 3.4 Continuous Random Variables��������������������������������������
    • 3.5 Expected Values��������������������������
    • 3.6 The Variance�����������������������
    • 3.7 Joint Densities��������������������������
    • 3.8 Transforming and Combining Random Variables������������������������������������������������������
    • 3.9 Further Properties of the Mean and Variance������������������������������������������������������
    • 3.10 Order Statistics����������������������������
    • 3.11 Conditional Densities���������������������������������
    • 3.12 Moment-Generating Functions���������������������������������������
    • 3.13 Taking a Second Look at Statistics (Interpreting Means)�������������������������������������������������������������������
  • 4 Special Distributions������������������������������
    • 4.1 Introduction�����������������������
    • 4.2 The Poisson Distribution�����������������������������������
    • 4.3 The Normal Distribution����������������������������������
    • 4.4 The Geometric Distribution�������������������������������������
    • 4.5 The Negative Binomial Distribution���������������������������������������������
    • 4.6 The Gamma Distribution���������������������������������
    • 4.7 Taking a Second Look at Statistics (Monte Carlo Simulations)�����������������������������������������������������������������������
    • Appendix 4.A.1 Properties of Frequently-Used pdfs��������������������������������������������������������
    • Appendix 4.A.2 A Proof of the Central Limit Theorem����������������������������������������������������������
  • 5 Estimation�������������������
    • 5.1 Introduction�����������������������
    • 5.2 Estimating Parameters: The Method of Maximum Likelihood and the Method of Moments��������������������������������������������������������������������������������������������
    • 5.3 Interval Estimation������������������������������
    • 5.4 Properties of Estimators�����������������������������������
    • 5.5 Minimum-Variance Estimators: The Cram´er-Rao Lower Bound
    • 5.6 Sufficient Estimators��������������������������������
    • 5.7 Consistency����������������������
    • 5.8 Bayesian Estimation������������������������������
    • 5.9 Taking a Second Look at Statistics (Beyond Classical Estimation)���������������������������������������������������������������������������
  • 6 Hypothesis Testing���������������������������
    • 6.1 Introduction�����������������������
    • 6.2 The Decision Rule����������������������������
    • 6.3 Testing Binomial Data—H0: p = po�������������������������������������������
    • 6.4 Type I and Type II Errors������������������������������������
    • 6.5 A Notion of Optimality: The Generalized Likelihood Ratio�������������������������������������������������������������������
    • 6.6 Taking a Second Look at Hypothesis Testing (Statistical Significance versus “Practical” Significance)����������������������������������������������������������������������������������������������������������������
  • 7 Inferences Based on the Normal Distribution����������������������������������������������������
    • 7.1 Introduction�����������������������
    • 7.2 Comparing Y−μσ/√n and Y−μS/√n
    • 7.3 Deriving the Distribution of Y−μS/√n
    • 7.4 Drawing Inferences About µ�������������������������������������
    • 7.5 Drawing Inferences About σ2
    • 7.6 Taking a Second Look at Statistics (Type II Error)�������������������������������������������������������������
    • Appendix 7.A.1 Some Distribution Results for Y and S2������������������������������������������������������������
    • Appendix 7.A.2 A Proof That the One-Sample t Test Is a GLRT������������������������������������������������������������������
    • Appendix 7.A.3 A Proof of Theorem 7.5.2����������������������������������������������
  • 8 Types of Data: A Brief Overview����������������������������������������
    • 8.1 Introduction�����������������������
    • 8.2 Classifying Data���������������������������
    • 8.3 Taking a Second Look at Statistics (Why Samples Are Not “Valid”!)����������������������������������������������������������������������������
  • 9 Two-Sample Inferences������������������������������
    • 9.1 Introduction�����������������������
    • 9.2 Testing H0: µX = µY������������������������������
    • 9.3 Testing H0: s2X= s2Y—The F Test������������������������������������������
    • 9.4 Binomial Data: Testing H0: pX= pY��������������������������������������������
    • 9.5 Confidence Intervals for the Two-Sample Problem����������������������������������������������������������
    • 9.6 Taking a Second Look at Statistics (Choosing Samples)����������������������������������������������������������������
    • Appendix 9.A.1 A Derivation of the Two-Sample t Test (A Proof of Theorem 9.2.2)��������������������������������������������������������������������������������������
  • 10 Goodness-of-Fit Tests�������������������������������
    • 10.1 Introduction������������������������
    • 10.2 The Multinomial Distribution����������������������������������������
    • 10.3 Goodness-of-Fit Tests: All Parameters Known�������������������������������������������������������
    • 10.4 Goodness-of-Fit Tests: Parameters Unknown�����������������������������������������������������
    • 10.5 Contingency Tables������������������������������
    • 10.6 Taking a Second Look at Statistics (Outliers)���������������������������������������������������������
  • 11 Regression��������������������
    • 11.1 Introduction������������������������
    • 11.2 The Method of Least Squares���������������������������������������
    • 11.3 The Linear Model����������������������������
    • 11.4 Covariance and Correlation��������������������������������������
    • 11.5 The Bivariate Normal Distribution���������������������������������������������
    • 11.6 Taking a Second Look at Statistics (How Not to Interpret the Sample Correlation Coefficient)��������������������������������������������������������������������������������������������������������
    • Appendix 11.A.1 A Proof of Theorem 11.3.3������������������������������������������������
  • 12 The Analysis of Variance����������������������������������
    • 12.1 Introduction������������������������
    • 12.2 The F Test����������������������
    • 12.3 Multiple Comparisons: Tukey’s Method������������������������������������������������
    • 12.4 Testing Subhypotheses with Contrasts������������������������������������������������
    • 12.5 Data Transformations��������������������������������
    • 12.6 Taking a Second Look at Statistics (Putting the Subject of Statistics Together—The Contributions of Ronald A. Fisher)���������������������������������������������������������������������������������������������������������������������������������
    • Appendix 12.A.1 A Proof of Theorem 12.2.2������������������������������������������������
    • Appendix 12.A.2 The Distribution of SSTR/(k-1) SSE/(n-k) When H1 Is True�������������������������������������������������������������������������������
  • 13 Randomized Block Designs����������������������������������
    • 13.1 Introduction������������������������
    • 13.2 The F Test for a Randomized Block Design����������������������������������������������������
    • 13.3 The Paired t Test�����������������������������
    • 13.4 Taking a Second Look at Statistics (Choosing between a Two-Sample t Test and a Paired t Test)���������������������������������������������������������������������������������������������������������
  • 14 Nonparametric Statistics����������������������������������
    • 14.1 Introduction������������������������
    • 14.2 The Sign Test�������������������������
    • 14.3 Wilcoxon Tests��������������������������
    • 14.4 The Kruskal-Wallis Test�����������������������������������
    • 14.5 The Friedman Test�����������������������������
    • 14.6 Testing for Randomness����������������������������������
    • 14.7 Taking a Second Look at Statistics (Comparing Parametric and Nonparametric Procedures)��������������������������������������������������������������������������������������������������
  • Appendix A: Statistical Tables�������������������������������������
  • Answers to Selected Odd-Numbered Questions�������������������������������������������������
  • Bibliography�������������������
  • Index������������
    • A
    • B
    • C
    • D
    • E
    • F
    • G
    • H
    • I
    • J
    • K
    • L
    • M
    • N
    • O
    • P
    • Q
    • R
    • S
    • T
    • U
    • V
    • W
    • Z
    1. 2017-10-26T10:20:25+0000
    2. Preflight Ticket Signature