Example For Reviewing
Example For Reviewing
Propose
the model when: a) Y is continuous; b) Y is binary (no order)
Problem 2 (6p): Variable Names: S: annual salary ($1000), Male = 1 if male, 0 otherwise,
Exp=Years of working, MBA = 1 if having an MBA degree, 0 otherwise; (standard error of
respective coefficient is within brackets, n=25). Estimated model is:
B2 B3 B4 B5 B6 B7
1. Write the estimation of logistic regression model, logit model. Explain the meaning of coefficients.
2. Estimate the Probability of using coupon for a customer who holds the store’ Credit card and
spending of $1500. If we fix Spending, how the Probability of using coupon change when customer
is change from not holding Card to holding Card
Problem 1:
P(Y=1)= e
1+ e
β 1+ β 2 X 2+β 3 X 3+u
Problem 2:
1.
R2=0.92 It means that 92% of variation of dependent variable that is explained by the model
Test for significane of the model
Hypothesis:
Ho: beta2=beta3=…=beta7=0
H1: not Ho
o R2=0.92, n=25, k=7,
o F= [R2/(k-1)]/[(1-R2)/(n-k)] =(0.92/(7-1))/((1-0.92)/(25-7))=34.5
- F(6,18)=3.22
- F> F(6.18) (34.5>3.22) Reject Ho model is significant
3. Does the rate of change of salary with pespect to Exp decrease when Exp increases?
To test the rate of change of salary with pespect to Exp decrease when Exp increases, we have the
hypothesis:
Ho: beta3 >= 0
H1: beta3 <0
t-test : t= beta3_hat/se(beta3_hat)= -0.02/0.015= -4/3
t25-70.05= 1.734
t>-t180.05=-1.734
Do not reject H0
-beta3>=0: constant
the rate of change of salary with pespect to Exp is decrease when Exp increases
- Male vs Female:
S=B1 +-B3exp2+B5MBA+B7MBA*exp + (B2-B6)*exp +B4
S=B1 -B3exp2+B5MBA+B7MBA*exp +B2exp
The difference in the rate of changes of salary respect to Exp between male and female is beta6
We test the hypothesis:
Ho: β6=0
H1: β6#0
-test : t= beta6_hat/se(beta6_hat)=0.06/0.065=0.923
T(18, 0.025)= 2.101
|t|< t(18,0.025) do not reject Ho
- MBA vs no MBA
S= B1 +(B2+B7)exp-B3exp2+B4Male+B5-B6Male*exp
S=B1 +B2exp-B3exp2+B4Male-B6Male*exp
The difference in the rate of changes of salary respect to Exp between people with and without MBA
degree is beta7
We test the hypothesis:
Ho: β7=0
H1: β7#0
-test : t= beta7_hat/se(beta7_hat)=1.04/0.42=2.47
T(18, 0.025)= 2.101
t>t (18, 0,025) reject Ho there is no difference in the rate of changes of salary respect to Exp
between people with and without MBA degrees
5.
6.
Snew=27.3 3.4Exp -0.02Exp2
H0: B4=B5=B6=B7=0
H1: not Ho
M=4, n=25, k=7
[(0.92-0.84)/4]/[(1-0.92)/(25-7)]=4.5 > 3.01 reject h0 we cannot drop the variable=> we need the qualitative
factors in the model
7.
P3:
1.Write the estimation of logistic regression model, logit model. Explain the meaning of coefficients.
logistic regression model
−2.146+0.3416∗S +1.098∗C
e
p= −2.146+0.3416∗S+1.098∗C
1+e
Logit model:
Estimate the Probability of using coupon for a customer who holds the store’ Credit card and spending of $1500. If
we fix Spending, how the Probability of using coupon change when customer is change from not holding Card to
holding Card
e−2.146+0.3416∗1.5+1.098∗1
p= =0.369
1+e−2.146+0.3416∗1.5+1.098∗1
If we fix Spending, how the Probability of using coupon change when customer is change from not holding Card
to holding Card increases 1.098*p (1-p) =0.25572
1.
Meaning of the coefficients:
- Beta2_hat: If other variables fixed, when the annual total sales of firms I increases by
1 % the annual salary of CEO increases 0.182%
-Beta3_hat: If other variables fixed, when the market value of firms I increases by 1 %
the annual salary of CEO increases 0.102%
2.
R^2=ESS/TSS= (TSS-RSS)/TSS= (64.646-42.06)/ 64.646=34.3%
It means that 34.3% of variation of dependent variable that is explained by the model
3.
Ho: Beta2=beta3 beta2-beta3=0
H1: not Ho
t-statistic=(beta2_hat-beta3_hat)/ se(beta2_hat-beta3_hat)
Se(beta2_hat-beta3_hat)=sqrt(var(beta2)+var(beta3)-2cov(beta2,beta3))
=sqrt(0.0412^2+0.0493^2-2*-0.001473)=0.08411
T=(0.182-0.102)/ 0.08411=0.95117
|T| <t(60-7, 0.05/2)=2.007 do not reject the coefficients of AR and MV are equal
5.
H0: Beta5=beta7=0
H1: not Ho
5.