Thanh Huyen - Week 5 - Final Test Answer
Thanh Huyen - Week 5 - Final Test Answer
for i = 1, : : : , 925. The maximum likelihood estimates of the parameters are given by
Answer:
3.174023
= = 0.760423
4.174023
(b) The activity status variable is only a dummy variable and hence it can take only two values. It
is therefore better to define the elasticity as
Answer:
age𝑖 2
exp (β0 + β1male𝑖 + β3age𝑖 + β4 ( ) )=A
10
exp(β2active𝑖 ) = B
exp(β2active𝑖 )−1
= (*)
1+exp(β0 + β1male𝑖 + β2active𝑖 + β3age𝑖 + β4(age𝑖/10)2 )
1
Since = Pr[respi = 0|activei = 1].
1+exp(β0 + β1male𝑖 + β2active𝑖 + β3age𝑖 + β4(age𝑖/10)2 )
(c) Use the formula in (b) to compute the activity elasticity of 50 years old male active
customer.
exp(β2active𝑖 )−1
=
1+exp(β0 + β1male𝑖 + β2active𝑖 + β3age𝑖 + β4(age𝑖/10)2 )
exp(0.914x 1 )−1
=
1+exp(−2.488 + 0.954x1 + 0.914x1 + 0.07x50 + (−0.069)x(50/10)2 )
= 0.357995