Testing Likelihood ratio test Michel Bierlaire Introduction to - - PowerPoint PPT Presentation

testing
SMART_READER_LITE
LIVE PREVIEW

Testing Likelihood ratio test Michel Bierlaire Introduction to - - PowerPoint PPT Presentation

Testing Likelihood ratio test Michel Bierlaire Introduction to choice models Applications of the likelihood ratio test Benchmarking Unrestricted model Restricted model Equal probability model V in = 1 x ink + V in = 0 V jn = 2


slide-1
SLIDE 1

Testing

Likelihood ratio test Michel Bierlaire Introduction to choice models

slide-2
SLIDE 2

Applications of the likelihood ratio test

slide-3
SLIDE 3

Benchmarking

Unrestricted model

Vin = β1xink + · · · Vjn = β2xjnk + · · · . . .

Restricted model

Equal probability model Vin = 0 Vjn = 0 . . .

Restrictions

βk = 0, ∀k

slide-4
SLIDE 4

Benchmarking

Log likelihood of the unrestricted model

L( β)

Log likelihood of the restricted model

Pin = 1/Jn, ∀i ∈ Cn, ∀n L(0) = −

N

  • n=1

log(Jn)

Statistic

−2(L(0) − L( β)) ∼ χ2

K

slide-5
SLIDE 5

Benchmarking revisited

Unrestricted model

Vin = β1xink + · · · Vjn = β2xjnk + · · · . . .

Restricted model

Only alternative specific constants Vin = βi Vjn = βj . . .

Restrictions

All coefficients but the constants are constrained to zero.

slide-6
SLIDE 6

Benchmarking revisited

Log likelihood of the unrestricted model

L( β)

Log likelihood of the restricted model

Pin = Ni/N ∀i ∈ C, ∀n L(c) =

J

  • i=1

Ni log(Ni/N)

Statistic

−2(L(c) − L( β)) ∼ χ2

d with d = K − J + 1

slide-7
SLIDE 7

Benchmarking

Classical output of estimation software

Summary statistics Number of observations = 2544 L(0) = −2794.870 L(c) = −2203.160 L(ˆ β) = −1640.525 −2[L(0) − L(ˆ β)] = 2308.689

slide-8
SLIDE 8

Test of generic attributes

Unrestricted model

Alternative specific Vin = β1ixink + · · · Vjn = β1jxjnk + · · · . . .

Restricted model

Generic Vin = β1xink + · · · Vjn = β1xjnk + · · · . . .

Restriction

β1i = β1j = · · ·

slide-9
SLIDE 9

Test of generic attributes

Log likelihood of the unrestricted model

L( βAS)

Log likelihood of the restricted model

L( βG)

Statistic

−2(L( βG) − L( βAS)) ∼ χ2

d with d = KAS − KG

slide-10
SLIDE 10

Test of taste variations

Segmentation

◮ Classify the data into G groups. Size of group g: Ng. ◮ The same specification is considered for each group. ◮ A different set of parameters is estimated for each group.

slide-11
SLIDE 11

Test of taste variations

N1 N2 N3 N4 LN1( β1) LN2( β2) LN3( β3) LN4( β4) G

g=1 LNg(

βg) N

slide-12
SLIDE 12

Test of taste variations

Unrestricted model

Group specific coefficients Vin =

G

  • g=1

(δngβ1g)xink + · · · Vjn =

G

  • g=1

(δngβ2g)xjnk + · · · . . .

Restricted model

Generic coefficients Vin = β1xink + · · · Vjn = β2xjnk + · · · . . .

Restrictions

βk1 = βk2 = · · · = βkG, ∀k.

slide-13
SLIDE 13

Test of taste variations

Log likelihood of the unrestricted model

G

  • g=1

LNg( βg)

Log likelihood of the restricted model

LN( β)

Statistic

−2

  • LN(

β) −

G

  • g=1

LNg( βg)

  • ∼ χ2

d with d = G

  • g=1

K − K = (G − 1)K.

slide-14
SLIDE 14

Tests of nonlinear specifications

Unrestricted model

Power series Vin =

L

  • ℓ=1

β1ℓ xink xref

+ · · · Vjn = β2xjnk + · · · . . .

Restricted model

Linear specification Vin = β1xink + · · · Vjn = β2xjnk + · · · . . .

Restrictions

β12 = β13 = · · · = β1L = 0

slide-15
SLIDE 15

Power series

xink Vin

slide-16
SLIDE 16

Test of nonlinear specifications

Log likelihood of the unrestricted model

L( βU)

Log likelihood of the restricted model

L( βR)

Statistic

−2

  • L(

βR) − L( βU)

  • ∼ χ2

d with d = L − 1

slide-17
SLIDE 17

Notes

◮ Usually not behaviorally meaningful ◮ Danger of overfitting ◮ Polynomials are most of the time inappropriate for extrapolation due to

  • scillation

◮ Other nonlinear specifications can be used for testing

◮ Piecewise linear ◮ Box-Cox