Docsity

Practice Midterm Exam - Discrete Data Analysis | STAT 665, Exams of Statistics

Toggle sidebar
bg1
Statistics 665 Spring 2008
Practice Midterm Exam
There is just one data set on this exam, with questions about it divided into three parts.
Part 1 involves simple descriptions, useful for becoming familiar with the data. In Part 2
you are given output from analyzing a data set in different ways and asked to interpret. For
full credit, you need to give full explanations. In Part 3, you are asked to compare the
models used and say how you would choose to analyze the data. You need not choose any of
the given methods, but you need to justify whatever choice you make.
The time allotted to finish the exam is 72 minutes. You will be allowed one sheet of
notes and a calculator in the actual exam.
The table below lists total attendance (in thousands) and the total number of arrests, in
the 1987-1988 season for soccer teams in the second division of the British football league.
The arrests are football-related, and not necessarily limited to those actually attending the
game.
Team Attendance Arrests
Aston Villa 404 308
Bradford City 286 197
Leeds United 443 184
Bournemouth 169 149
West Brom 222 132
Hudderfield 150 126
Middlesbro 321 110
Birmingham 189 101
Ipswich Town 258 99
Leichester City 223 81
Blackburn 211 79
Crystal Palace 215 78
Shrewsbury 108 68
Swindon Town 210 67
Sheffield United 224 60
Stoke City 211 57
Barnsley 168 55
Millwall 185 44
Hull City 158 38
Manchester City 429 35
Plymouth 226 29
Reading 150 20
Oldham 148 19
pf3
pf4
pf5
pf8

Partial preview of the text

Download Practice Midterm Exam - Discrete Data Analysis | STAT 665 and more Exams Statistics in PDF only on Docsity!

Statistics 665 Spring 2008

Practice Midterm Exam

There is just one data set on this exam, with questions about it divided into three parts.

Part 1 involves simple descriptions, useful for becoming familiar with the data. In Part 2

you are given output from analyzing a data set in different ways and asked to interpret. For

full credit, you need to give full explanations. In Part 3, you are asked to compare the

models used and say how you would choose to analyze the data. You need not choose any of

the given methods, but you need to justify whatever choice you make.

The time allotted to finish the exam is 72 minutes. You will be allowed one sheet of

notes and a calculator in the actual exam.

The table below lists total attendance (in thousands) and the total number of arrests, in

the 198719 88 season for soccer teams in the second division of the British football league.

The arrests are footballrelated, and not necessarily limited to those actually attending the

game.

Team Attendance Arrests Aston Villa 404 308 Bradford City 286 197 Leeds United 443 184 Bournemouth 169 149 West Brom 222 132 Hudderfield 150 126 Middlesbro 321 110 Birmingham 189 101 Ipswich Town 258 99 Leichester City 223 81 Blackburn 211 79 Crystal Palace 215 78 Shrewsbury 108 68 Swindon Town 210 67 Sheffield United 224 60 Stoke City 211 57 Barnsley 168 55 Millwall 185 44 Hull City 158 38 Manchester City 429 35 Plymouth 226 29 Reading 150 20 Oldham 148 19

Part 1. Here is a scatterplot of the data:

Let Y denote the number of arrests for a team with total attendance t, measured in terms of

thousands of attendees.

a. Describe how you think the mean E[Y] varies with t

It is increasing with t, perhaps linearly.

b. Describe how you think Var[Y] varies with t.

This also is increasing with t, but perhaps at a faster rate.

c. Specify a generalized linear model that you think would be most suitable for this data.

Include:

i. Family of Distributions for the random component

The most natural would be the Poisson family, since the responses are counts.

ii. Link function

The log function is the canonical link; but an identity link would seem to follow the

linear trend more closely.

iii. Overdispersion term, if appropriate.

Because the variance is perhaps increasing at a faster rate than the mean, it is

reasonable to consider overdispersion. We could deal with this by using a

Negative Binomial distribution or a quasi poisson regression to estimate an

overdispersion parameter.

1. Call number 1

Call: glm(formula = Arrests ~ Attendance, family = poisson)

a. Given t, the distribution of Y is assumed to be Poisson with mean μ

(t). The implicit form of is given by the default link function: log[ μ(t)]= α + βt, where the parameters ( α, β)are to be estimated. b. This model is the simplest one that captures the features that Y is a count, with its expectation increasing with t. Deviance Residuals: Min 1Q Median 3Q Max

  1. 2054 3.36 52 0 .5351 2.1572 10. Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) 3.6402072 0.0593258 61.36 <2e16 ** * Attendance 0.0036115 0.0002089 17.29 <2e16 ** * Signif. codes: 0 '' 0.001 '' 0.01 '' 0.05 '.' 0.1 ' ' 1 c. Here log[ μ(t)] is estimated by 3.64 + 0.00361t, so μ(t)is estimated by exp(3.64)[exp(0.00361)]t^ = (38)(1.00362)t. Thus if season attendance is increased by 1,000 (t increased by 1), we expect the number of arrests to increase by a factor of 1.00362 (about 1/3 of a percent). Note that the small coefficient ( β = 0.0036115) makes the operating range of the exponential [exp(0.00361)]t^ close to 1, where the exponential curve is almost linear. The intercept term defines a lower asymptote, which here may be thought of as a baseline number of arrests. That is, regardless of attendance, there is a base of approximately exp(3.64)= 38 arrests per season at each site, with the number increasing from there, depending on attendance. (Dispersion parameter for poisson family taken to be 1) Null deviance: 945.92 on 22 degrees of freedom Residual deviance: 672.92 on 21 degrees of freedom AIC: 818. Number of Fisher Scoring iterations: 5

2. Call number 2

Call:

glm(formula = Arrests ~ Attendance, family = poisson(link = identity))

a. Given t, the distribution of Y is again assumed to be Poisson with mean μ

(t). The implicit form of is given by the identitiy link function: μ(t)= α + βt, where the parameters ( α, β)are to be estimated.

b. This model captures the features that Y is a count, with its expectation

increasing linearly with t.

Deviance Residuals:

Min 1Q Median 3Q Max

Coefficients:

Estimate Std. Error z value Pr(>|z|)

(Intercept) 3.72766 5.60544 0.665 0.

Attendance 0.38626 0.02568 15.039 <2e 16 ***

Signif. codes: 0 '' 0.001 '' 0.01 '' 0.05 '.' 0.1 ' ' 1

c. Here μ(t) is estimated by 3.73 + 0.38t. Thus if season attendance is

increased by 1,000 (t increased by 1), we expect the number of arrests to increase by an additional .38 arrests. The intercept term has a literal interpretation as the number of expected arrests (3.73) if nobody attended the game. The fact that the estimate for the intercept is not statistically significant suggests that the intercept might be 0.

(Dispersion parameter for poisson family taken to be 1)

Null deviance: 945.92 on 22 degrees of freedom

Residual deviance: 668.96 on 21 degrees of freedom

AIC: 814.

Number of Fisher Scoring iterations: 6

b. This model captures the features that Y is a count, with its expectation

increasing linearly with t, and the variance increasing quadratically with t.

c. Here μ(t) is estimated by 9.4+0.4t. Thus if season attendance is increased

by 1,000 (t increased by 1), we expect the number of arrests to increase by an additional .4 arrests.

Part 3 Comparison of Models

a. Some of the 3 models from part 2 have linear fits and some have exponential, as illustrated in

the following plot.

Those of the same form that differ do not differ by much. Which of the three have a linear

prediction curve and which have an exponential curve?

Only Model 1 has an exponential curve; the curve (line) for models 2 and 3 are very close.

b. Is there any evidence of overdispersion in any or the four models?

Yes! The residuals from all 4 models are very large, since if the model were at all appropriate

the range of deviance residuals would be within ( 3, 3) [due to approximate normality].

Additionally, in model 4, we estimate k to be 3.151, which is quite small. If the data were truly

Poisson distributed, we would expect k to be very large. Instead, we expect the variance to be

0.3 μ(t)^2 greater than the mean.

a. Which of the four models do you regard as most appropriate?

Because the models are not nested, the likelihood ratio test does not apply, but the AIC criterion

is considered by some to be valid. For the four models the AICs are 818.1, 814.13, 812.62, and

246.11. Thus the last model, Model 4, seems to be the best in terms of the AIC prediction scores.

d. Make some suggestions about what else you might consider before making formal

inferences.

In terms of fitting a model, we would of course like to look more closely at the residuals. Also, if

you know something about the teams involved, you might include an explanatory variable, such

as “disturbing the peace” arrest rates in the region where the team plays.