Ideas for PDFs and the Banff Challenge

60
Ideas for PDFs and the Banff Challenge Chad M. Schafer www.stat.cmu.edu/cschafer Department of Statistics Carnegie Mellon University July 2010 1

Transcript of Ideas for PDFs and the Banff Challenge

Page 1: Ideas for PDFs and the Banff Challenge

Ideas for PDFs andthe Banff Challenge

Chad M. Schaferwww.stat.cmu.edu/∼cschafer

Department of Statistics

Carnegie Mellon University

July 2010

1

Page 2: Ideas for PDFs and the Banff Challenge

The Core Collaborators

Philip B. Stark

Ann B. Lee

Peter E. Freeman

Susan M. Buchman

Joseph W. Richards

Work Supported by

NSF Grant #0707059, NASA AISR Grant, DOE Contract

W-7405-Eng-48, ONR Grant N00014-08-1-073

The InCA Group: www.incagroup.org

2

Page 3: Ideas for PDFs and the Banff Challenge

Motivation

Cowan (2009), “Testing nature to the limit: the Large Hadron Collider,”

Significance, page 158:

“What the physicist would of course like to have is a test with

maximal power with respect to a broad class of alternative

hypotheses.

For a given signal model, for example, one would like to

choose the acceptance and rejection regions based on the

likelihood ratiofs(x)

fb(x).

3

Page 4: Ideas for PDFs and the Banff Challenge

Motivation

Cowan (2009), continued:

“In principle the signal and background theories should allow

us to work out the required functions fs(x) and fb(x), but in

practice the calculations are too difficult and we do not have

explicit formulas for these.

What we have instead . . . are complicated Monte Carlo

programs: that is, we can sample x to produce simulated

signal and background events.”

4

Page 5: Ideas for PDFs and the Banff Challenge

Motivation

Facing similar challenges in cosmology

How to estimate cosmological parameters when

faced with complex model relating parameters to

observable data?

Increasing use of simulation models

5

Page 6: Ideas for PDFs and the Banff Challenge

Motivation

Seek procedures (tests, confidence regions) that

have “power against with maximal power with

respect to a broad class of alternative hypotheses”

that are physically feasible

The power tradeoff

6

Page 7: Ideas for PDFs and the Banff Challenge

Outline

⇒Formalism:

Test Functions, Acceptance Probability Functions

⇒Decision Theoretic Construction

⇒From Theory to Practice

⇒Related Problem in Cosmology

⇒PDFs and the Banff Challenge

7

Page 8: Ideas for PDFs and the Banff Challenge

Formalism

Elements η ∈ Θ are parameter vectors that specify

the distribution of the data:

In cosmology cases, η = (H0,Ωm,ΩΛ, . . .)

In case of estimating PDF, η = (a1, a2, . . . , a25)

In the case of Banff Challenge, η = ???

8

Page 9: Ideas for PDFs and the Banff Challenge

Formalism

Test Function: d(η, x) for η ∈ Θ and event data x

d(η, x) =

1, if η accepted when x is observed

0, if η rejected when x is observed

Of course,

d(η, x) =

1, if η included in confidence region

0, if η excluded from confidence region

9

Page 10: Ideas for PDFs and the Banff Challenge

Formalism

Acceptance Probability Function:

For θ, η ∈ Θ,

γd(θ, η) = Probability test d accepts η when θ is truth

= Pθ(d(η,X) = 1)

10

Page 11: Ideas for PDFs and the Banff Challenge

Formalism

Frequentists require choosing d such that

γd(θ, θ) ≥ 1 − α

for all θ ∈ Θ.

Bayesian credible regions satisfy∫

Θ

γd(θ, θ) π(dθ) = 1 − α

for chosen prior π.

11

Page 12: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Neither of the above defines a unique choice for d.

Clearly, would prefer d that forces γd(θ, θ) large

while keeping γd(θ, η) small when θ 6= η.

Propose decision theoretic considerations for

choosing d.

12

Page 13: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Specify a nonnegative penalty function:

φ(θ, η) = penalty for accepting η when θ is truth

Then define the loss function:

Ld(θ, x) =

Θ

φ(θ, η) d(η, x) dη

Note that Ld(θ, x) is the accumulated penalties

when d is used and data x is observed.

13

Page 14: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

If choose φ(θ, η) = 1, then

Ld(θ, x) =

Θ

d(η, x) dη

= Volume of confidence region,

a natural measure of precision.

14

Page 15: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

If choose φ(θ, η) = g(η), then

Ld(θ, x) =

Θ

d(η, x) g(η) dη

= ν-measure of confidence region,

where g = dν/dη.

15

Page 16: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

For the PDF case, could choose

φ(θ, η) =6∑

i=1

‖fi(θ) − fi(η)‖,

where fi(θ) is the ith parton distribution function

under parameters θ.

16

Page 17: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

For the Banff challenge, could choose φ(θ, η) as a

function of whether or not the parameter vectors

agree on their classification of background/signal:

If θ and η are both “background,” then make φ(θ, η) small

If θ and η are both “signal,” then make φ(θ, η) small

If θ is “signal” and η is “background,” then make φ(θ, η) large

If θ is “background” and η is “signal,” then make φ(θ, η) larger

17

Page 18: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Next define the risk function:

Rd(θ) = Expected loss when θ is truth

= Eθ[Ld(θ,X)]

=

∫ ∫φ(θ, η) d(η, x) fθ(x) dη dx

=

∫γd(θ, η) φ(θ, η) dη

= Weighted average of acceptance

probabilities

18

Page 19: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Next define the risk function:

Rd(θ) = Expected loss when θ is truth

= Eθ[Ld(θ,X)]

=

X

Θ

φ(θ, η) d(η, x) fθ(x) dη dx

=

∫γd(θ, η) φ(θ, η) dη

= Weighted average of acceptance

probabilities

19

Page 20: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Next define the risk function:

Rd(θ) = Expected loss when θ is truth

= Eθ[Ld(θ,X)]

=

X

Θ

φ(θ, η) d(η, x) fθ(x) dη dx

=

Θ

γd(θ, η) φ(θ, η) dη

= Weighted average of acceptance

probabilities

20

Page 21: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Next define the risk function:

Rd(θ) = Expected loss when θ is truth

= Eθ[Ld(θ,X)]

=

X

Θ

φ(θ, η) d(η, x) fθ(x) dη dx

=

Θ

γd(θ, η) φ(θ, η) dη

= Weighted average of acceptance

probabilities

21

Page 22: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Bayes risk for prior π:

Bd(π) ≡

Θ

Rd(θ) π(dθ)

Neyman-Pearson Lemma: To minimize Bd(π),

d(η, x) = 1 if

∫Θ fθ(x)φ(θ, η) π(dθ)

fη(x)≤ Kη

Denote this Bayes procedure dπ

22

Page 23: Ideas for PDFs and the Banff Challenge

Decision Theoretic Construction

Alternatively, one could seek d that is minimax, i.e.

it minimizes

maxθ∈Θ

Rd(θ)

Either of these possibilities sets up a difficult

computational problem.

Keep in mind that we want to deal with the case

where fθ is only approximated.

23

Page 24: Ideas for PDFs and the Banff Challenge

From Theory to Practice

Instead, only limit Rd over densities of the form

f(x) =

p∑

i=1

ρifi(x)

where f1, f2, . . . , fp are user-specified basis densities.

The nonnegative mixing coefficients ρi satisfy

p∑

i=1

ρi = 1.

24

Page 25: Ideas for PDFs and the Banff Challenge

From Theory to Practice

Schafer and Stark (2009):

Monte Carlo algorithm for approximating d(η, x)

that minimizes the maximum value of Rd(θ) under

the assumption that

f(x) =

p∑

i=1

ρifi(x).

Considers the case φ(θ, η) = 1, but theory extends

25

Page 26: Ideas for PDFs and the Banff Challenge

From Theory to Practice

Minimax Expected Size (MES) procedure

Pratt (1961):

Rd(θ) =

Θ

γd(θ, η) dη

=

Θ

Pθ(η in confidence set) dη

= Expected volume of confidence set

26

Page 27: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

Type Ia Supernovae are exploding stars, and

standard candles

Observe redshift (z) and apparent magnitude (m)

Theory predicts relationship between redshift and

distance modulus as a function of cosmological

parameters

27

Page 28: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

Credit: NASA, ESA, R. Sankrit and W. Blair (Johns Hopkins University)

28

Page 29: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

44

Redshift

Dis

tanc

e M

odul

us

From Riess, et al. (2007), 182 Type Ia Supernovae

29

Page 30: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

Simple, flat cosmology, two parameter model:

µ(z | θ) = 5 log10

(c(1 + z)

H0

∫ z

0

du√Ωm(1 + u)3 + (1 − Ωm)

)

+ 25

Observed pairs (zi, Yi) are realizations of

Yi = µ(zi | θ) + σiǫi,

where the ǫi are i.i.d. standard normal.

30

Page 31: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

To establish link with previous notation:

θ = (H0,Ωm), the two cosmological parameters.

Θ is the range of the cosmological parameters

considered physically possible. We assume

60 ≤ H0 ≤ 90 and 500 ≤ ΩmH20 ≤ 2500

31

Page 32: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

x is the collection of all 182 pairs (zi, Yi)

fθ(x) is the multivariate normal distribution with

mean and covariance given by the “complex”

model

The objective is to construct a 95% confidence

region for (H0,Ωm) that minimizes γd(θ, η) to the

extent possible

32

Page 33: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

44

Redshift

Dis

tanc

e M

odul

us

Curve is case where H0 = 72.76 and Ωm = 0.341 (the MLE)

33

Page 34: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

4446

Redshift

Dis

tanc

e M

odul

us

The collection of tested theories: d(η, x) is for each η depicted

34

Page 35: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

4446

Redshift

Dis

tanc

e M

odul

us

Those accepted by a chi-squared test

35

Page 36: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

4446

Redshift

Dis

tanc

e M

odul

us

The range of those accepted by the chi-squared test

36

Page 37: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.5 1.0 1.5

3638

4042

4446

Redshift

Dis

tanc

e M

odul

us

The range of those accepted by MES

37

Page 38: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7

6065

7075

8085

90

ΩM

H0

CSQ

MES

MLE, SCR, MR

Schafer and Stark (2009)

38

Page 39: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

Practical Concern:

How to choose the the basis densities fi?

In this case, use a set of densities fθ for p values of θ

Ideally, the distributions are evenly “spread out”

39

Page 40: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

The Hellinger Distance between distributions:

H(f, g) =

√1

2

∫ (√f(x) −

√g(x)

)2

dx

Note that 0 ≤ H(f, g) ≤ 1

40

Page 41: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Data

−0.10 −0.05 0.00 0.05 0.10

−0.

08−

0.06

−0.

04−

0.02

0.0

0 0

.02

0.0

4 0

.06

−0.10

−0.05

0.00

0.05

0.10

First Coordinate

Sec

ond

Coo

rdin

ate

Thi

rd C

oord

inat

e

*

“Theories” are spaced by their similarity

41

Page 42: Ideas for PDFs and the Banff Challenge

Type Ia Supernovae Analysis

−0.10 −0.05 0.00 0.05 0.10

−0.

08−

0.06

−0.

04−

0.02

0.0

0 0

.02

0.0

4 0

.06

−0.10

−0.05

0.00

0.05

0.10

First Coordinate

Sec

ond

Coo

rdin

ate

Thi

rd C

oord

inat

e * **

**

***

*

*

**

*

***

*

*

*

*

Ideally, the fi would be representative of all the possible truths

42

Page 43: Ideas for PDFs and the Banff Challenge

Banff Challenge

Could marginalize over the nuisance parameters

βsignal, βbackground, ǫsignal, ǫbackground,L

I interpreted x to be the individual event data.

Define ξ as the parameter

ξ =

1, if from signal

0, if from background

43

Page 44: Ideas for PDFs and the Banff Challenge

Banff Challenge

Assume that

fb(x) =3∑

i=1

αifbackground,i(x)

and

fs(x) =3∑

i=1

τifsignal,i(x)

as a way of compensating for uncertainty in these

densities.

44

Page 45: Ideas for PDFs and the Banff Challenge

Banff Challenge

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.5

1.0

1.5

2.0

2.5

3.0

Event Data

Den

sity

Challenge One, the three background distributions

45

Page 46: Ideas for PDFs and the Banff Challenge

Banff Challenge

0.0 0.2 0.4 0.6 0.8 1.0

01

23

Event Data

Den

sity

Challenge One, the three signal distributions

46

Page 47: Ideas for PDFs and the Banff Challenge

Banff Challenge

Now have six effective parameters

When ξ = 0,∑3

i=1 αi = 1 and τi = 0

When ξ = 1,∑3

i=1 τi = 1 and αi = 0

Basis densities can be the fbackground,i(x) and fsignal,i(x)

47

Page 48: Ideas for PDFs and the Banff Challenge

Banff Challenge

The penalty function only penalizes accpeting cases

when ξ = 0 when, in fact, ξ = 1, and vice-versa.

48

Page 49: Ideas for PDFs and the Banff Challenge

Banff Challenge

Can test both the case where. . .

. . . ξ = 0, and get the p-value p0

. . . ξ = 1, and get the p-value p1

49

Page 50: Ideas for PDFs and the Banff Challenge

PDFs

Could work well, if willing to assume

35∑

j=1

Nj∑

i=1

(datai − theoryi

errori

)2

is the log-likelihood of a normal.

Handles the complexity of the relationship between

parameters and PDFs well.

50

Page 51: Ideas for PDFs and the Banff Challenge

Conclusion

Formalism for considering frequentist confidence

procedures

How to work with complex models?

Practical issues

Ideas for the PDFs and Banff Challenge

51

Page 52: Ideas for PDFs and the Banff Challenge

Approximating the LFA

Schafer and Stark (2009):

The least favorable alternative is approximated via

Monte Carlo simulations

Sample from parameter space Θ, sample from data

space under each of these theories

Set up a “matrix game” in which statistician

chooses d, and nature chooses π

52

Page 53: Ideas for PDFs and the Banff Challenge

Approximating the LFA

Goal: Estimate B(π, dπ) for fixed π

Estimate Type II Error probabilities: Pθ[dπ(η,X) = 1]

If X ∼ fη, then

E

[(fθ(X)

fη(X)

)dπ(η,X)

]= Pθ[dπ(η,X) = 1]

and

E

[(∫

Θ

fθ(X)

fη(X)π(dθ)

)dπ(η,X)

]=

Θ

Pθ[dπ(η,X) = 1] π(dθ)

53

Page 54: Ideas for PDFs and the Banff Challenge

Approximating the LFA

Goal: Estimate B(π, dπ) for fixed π

Estimate Type II Error probabilities: Pθ[dπ(η,X) = 1]

If X ∼ fη, then

E

[(fθ(X)

fη(X)

)dπ(η,X)

]= Pθ[dπ(η,X) = 1]

and

E

[(∫

Θ

fθ(X)

fη(X)π(dθ)

)dπ(η,X)

]=

Θ

Pθ[dπ(η,X) = 1] π(dθ)

54

Page 55: Ideas for PDFs and the Banff Challenge

Approximating the LFA

If X ∼ fη, then

E

[(∫

Θ

fθ(X)

fη(X)π(dθ)

)dπ(η,X)

]=

Θ

Pθ[dπ(η,X) = 1] π(dθ)

but∫

Θ

fθ(X)

fη(X)π(dθ)

is distributed as desired test statistic under the null

Use Monte Carlo to estimate dπ(η, ·)

55

Page 56: Ideas for PDFs and the Banff Challenge

Approximating the LFA

If X ∼ fη, then

E

[(∫

Θ

fθ(X)

fη(X)π(dθ)

)dπ(η,X)

]=

Θ

Pθ[dπ(η,X) = 1] π(dθ)

but∫

Θ

[∫

Θ

Pθ[dπ(η,X) = 1] π(dθ)

]ν(dη) = B(π, dπ)

Another level of MC: randomly choose η to estimate

outer integral – This defines B(π)

56

Page 57: Ideas for PDFs and the Banff Challenge

Approximating the LFA

B(π) =∑

k

dk′A(ηk)π

“Nature” chooses π and “Statistician” chooses dk

The (i, j) entry of A(ηk) is

fθj(xi)

fηk(xi)

57

Page 58: Ideas for PDFs and the Banff Challenge

Approximating the LFA

(π1 π2 · · · πp

)

d(η, X1)

d(η, X2)

...

d(η, Xn)

LR[θ1/η, X1] LR[θ2/η, X1] · · · LR[θp/η, X1]

LR[θ1/η, X2] LR[θ2/η, X2] · · · LR[θp/η, X2]

......

. . ....

LR[θ1/η, Xn] LR[θ2/η, Xn] · · · LR[θp/η, Xn]

LR[θ/η, x] ≡fθ(x)φ(θ, η)

fη(x)

58

Page 59: Ideas for PDFs and the Banff Challenge

Matrix Games

Matrix game characterized by payoff matrix A

Player one chooses row i, player two column j

Player one pays player two A(i, j)

Example: Matching Pennies

H T

A ≡

(1 −1

−1 1

)H

T

Optimal strategy is mixed: randomly choose heads or tails.

59

Page 60: Ideas for PDFs and the Banff Challenge

Matrix Games

Takes the form

B(π) =∑

k

dk′A(ηk)π

“Nature” chooses π and “Statistician” chooses dk

Brown-Robinson algorithm handles statistician’s

complicated strategy space.

60