Stat 431/831
ASSIGNMENT 2
Due: October 11, 2013
Your assignment must be handed in by noon on the due date in the drop boxes. Be sure to use
the cover page provided on Learn. Also be sure to include all R code and relevant output for all
questions of this
Stat 431/831
ASSIGNMENT 2 SOLUTIONS
1. [15 marks]
(a) [5 marks] Let i denote the probability of occurrence of infection following birth by
Ceasarian section for subject i. The main eects logistic regression model is given by
log
i
1 i
= 0 + 1 xi1 + 2 xi2
STAT 431/831, Fall 2013
STAT 431/831: Generalized Linear Models and Their Application
LEC 001 Tuesday & Thursday, 1:00-
2:20, RCH 307
Professor
Cecilia Cotton
[email protected]
Office Hours: Tuesday 2:30-
4:0
STAT 431
Generalized Linear Models and Applications
Term Test # 1
Fall 2012
Student Name:
UW Student ID Number:
Instructor:
Cecilia Cotton
Date of Exam:
October 18, 2012
Time Period:
Start time:
Duration of Exam:
1 hour, 30 minutes
Number of Exam Pages:
(
Stat 431/831
ASSIGNMENT 1 - SOLUTIONS
1. [15 points]
(a) [6 points]
the likelihood function is
L( ) =
n
f (yi ) =
i=1
n
n
(1 )yi = n (1 )
i=1
yi
.
i=1
The score function is
log L( )
(
)
n
=
n log +
yi log (1 )
i=1
n
yi
n
=
i=1
1
n n (n + 1)
y
=
.
(1 )
Stat 431/831
ASSIGNMENT 1
Due: Noon Sep 27, 2013
You need to use the cover page provided in Learn. Submit to the drop boxes located across the
hall from MC 4065/4066.
1. The geometric distribution can be written as
P (Y = y ; ) = (1 )y
0 < < 1, y = 0, 1,