Faculty of Science FINAL EXAMINATION Mathematics MATH 523 Generalized Linear Models

Size: px
Start display at page:

Download "Faculty of Science FINAL EXAMINATION Mathematics MATH 523 Generalized Linear Models"

Transcription

1 Faculty of Science FINAL EXAMINATION Mathematics MATH 523 Generalized Linear Models Examiner: Professor K.J. Worsley Associate Examiner: Professor R. Steele Date: Thursday, April 17, 2008 Time: 14:00-17:00 hours INSTRUCTIONS: Answer all questions. Any books, notes or calculators may be brought into the exam. Computer printout and tables are provided at the end of the exam. Each part of each question is worth approximately equal marks. This exam comprises this cover, 5 pages of questions, 10 pages of computer printout, 3 pages of figures, and 4 pages of tables (23 pages in all). 1

2 MATH 523 FINAL EXAM, April 17, We wish to test for the effect of X on Y. What are the consequences, if any, on inference about the effect of X if (a) We ignore an effect of Z (i.e. we base our inference on Y X) when in fact Y is related to Z. (b) We allow for an effect of Z (i.e. we base our inference on Y Z + X) when in fact Y is not related to Z. (c) We allow for an interaction between Z and X (i.e. Y Z + X + Z : X). we base our inference on 2. The Great Plague of London ( ) was an outbreak of bubonic plague that struck London and was particularly violent during the hot months of August and September of The following table gives the number of deaths during nine consecutive weeks starting with the week of September 4th, The variables were: week: consecutive weeks starting with the week of September 4th, 1665 all: number of deaths due to all diseases plague: number of plague deaths week all plague We shall assume that the number of plague deaths (plague) is a binomial random variable out of the number of deaths due to all diseases (all). A logistic regression was fitted to a polynomial in the number of weeks (week = 1,..., 9). (a) Estimate the degree of the polynomial by carrying out appropriate tests. (b) Is there any evidence for a polynomial effect beyond degree 3?

3 MATH 523 FINAL EXAM, April 17, (c) For the quadratic model, draw a rough sketch of the fitted proportion of plague deaths against time for say 20 weeks before and after the nine weeks considered here. (d) Using the quadratic model, estimate the time i. when the proportion of plague deaths was a maximum, ii. when the proportion of plague deaths would equal 1%. 3. The data set hillrace.dat gives data on record times in Scottish hill races. The variables are: dist: distance in miles height: total height gained during the route, in feet time: record time in minutes dist height time Greenmantle Carnethy Craig Dunain Ben Rha Ben Lomond Goatfell Bens of Jura Cairnpapple Scolty Traprain Lairig Ghru Dollar Lomonds Cairn Table Eildon Two Cairngorm Seven Hills Knock Hill dist height time Black Hill Creag Beag Kildcon Hill Meall Ant-Suidhe Half Ben Nevis Cow Hill N Berwick Law Creag Dubh Burnswark Largo Law Criffel Acmony Ben Nevis Knockfarrel Two Breweries Cockleroi Moffat Chase

4 MATH 523 FINAL EXAM, April 17, We shall assume that time (time) has a normal distribution with an identity link to a linear model in distance (dist) and height (height). (a) From Figure 2.3 and the printout of the residuals it appears that observation 18 (Knock Hill race) is an outlier. Two models were fitted: with all the data, and all the data except observation 18. i. Explain how you can test that observation 18 is an outlier using the summaries of these two models. ii. Carry out the test, making a Bonferroni correction by using the small listing of critical values that follow. (b) After omitting observation 18, test that the effect of distance on running time depends on the height. Does increased height make the distance effect larger or smaller? (c) Check the final model for i. equal variance; ii. outliers; iii. normality. 4. The following table gives remission times of 43 leukemia patients, from Gehan, E.A. (1965) A generalized Wilcoxon test for comparing arbitrarily single-censored samples. Biometrika 52: Some were treated with the drug 6-mercaptopurine (6-MP), known as Purinethol, and the rest are controls. The trial was designed as matched pairs, both withdrawn from the trial when either came out of remission. The variables were: pair: label for pair censoring: censoring, 0/1 time: remission time in weeks

5 MATH 523 FINAL EXAM, April 17, Control 6-MP pair time censoring time censoring We shall assume that remission time (time) has an exponential distribution with a log link to a linear model in treatment (treatment; 1=control, 2=6-MP). (a) Test that the drug 6-MP has an effect on the remission time, i. ignoring the pairs, ii. allowing for the pairs. (b) Several authors have ignored the pairs. Were the pairs really different? (c) Using the first model, estimate the remission time for a leukemia patient who is given the drug 6-MP, and the probability that the remission time will be longer than 26 weeks. 5. Self-reported data on ear infections in 287 swimmers between 15 and 29 years old was collected in New South Wales (Australia). The variables are: frq: Frequent Ocean Swimmer: 1 = occasional swimmer, 2 = frequent swimmer loc: location: 1 = beach swimmer, 4 = non-beach swimmer Age: 2 (aged 15-19), 3 (aged 20-25), or 4 (aged 25-29) sex 1 (male) or 2 (female) inf = number of ear infections

6 MATH 523 FINAL EXAM, April 17, We shall assume that the number of ear infections (inf) is a Poisson random variable with a log link to a linear model. (a) Is there any evidence for an effect of Frequent Ocean Swimmer (frq; 1=no, 2=yes), location (loc), age as a factor (Age) or sex (sex; 1=male, 2=female) on number of ear infections (inf)? (b) Is the goodness of fit test valid for the model in (a)? If so, do it; if not, say why not. (c) It appears that the model in (a) does not fit, and that there is extra-poisson variation. To account for this, we shall assume that Var(inf) = φµ, where E(inf) = µ and φ is unknown. Estimate φ, and using this estimate, repeat (a). (d) From now on we shall assume that there is extra-poisson variation and φ is unknown. Is the effect of age linear or non-linear? Test this. (e) Is there a linear effect of age? Test this. (f) Does the effect of location depend on whether the person is a frequent ocean swimmer or not? Test this. (g) Another way of allowing for extra-poisson variation is to assume that the number of ear infections (inf) is a Poisson random variable with a mean that is itself an exponential random variable. It can then be shown that the marginal distribution of inf1 = inf + 1 is geometric. The likelihood of inf1 can be calculated by assuming that 1 has a binomial distribution with inf1 trials. Show that if there is a log link from θ = E(inf) to a linear model, then there is a logistic link from the binomial probability to the negative of the linear model. (h) All the above models were re-fitted assuming the geometric distribution. Explain why all the parameter estimates are roughly the same, but their standard deviations are different. (i) Explain why the parameter estimates for the model frq+loc+frq:loc are exactly the same. (j) Choose an appropriate model to estimate the expected number of ear infections for a 21-year old female who is a frequent ocean swimmer, and who usually swims in a non-beach location (such as a coral reef).

7 MATH 523 FINAL EXAM, April 17, R version ( ) Copyright (C) 2007 The R Foundation for Statistical Computing > ################ Question 2 ################## > > m<-matrix(scan("c:/keith/teaching/smalldatasets/plague.dat"),10,2,t) Read 18 items > all<-m[:,1] > plague<-m[:,2] > p<-plague/all > week<-1:9 > postscript("c:/keith/teaching/523/2008/fig1.eps",horizontal=false) > par(mfrow=c(2,2)) > plot(week,p,main="fig 2.1 Plague mortality") > glm1<-glm(p~week,family=binomial,weight=all) > summary(glm1) glm(formula = p ~ week, family = binomial, weights = all) (Intercept) <2e-16 *** week <2e-16 *** (Dispersion parameter for binomial family taken to be 1) Null deviance: on 8 degrees of freedom Residual deviance: on 7 degrees of freedom AIC: Number of Fisher Scoring iterations: 4 > week2<-week^2 > glm2<-glm(p~week+week2,family=binomial,weight=all) > summary(glm2) glm(formula = p ~ week + week2, family = binomial, weights = all) (Intercept) <2e-16 *** week <2e-16 *** week <2e-16 *** (Dispersion parameter for binomial family taken to be 1)

8 MATH 523 FINAL EXAM, April 17, Null deviance: on 8 degrees of freedom Residual deviance: on 6 degrees of freedom AIC: Number of Fisher Scoring iterations: 3 > week3<-week^3 > glm3<-glm(p~week+week2+week3,family=binomial,weight=all) > summary(glm3) glm(formula = p ~ week + week2 + week3, family = binomial, weights = all) (Intercept) < 2e-16 *** week e-12 *** week ** week (Dispersion parameter for binomial family taken to be 1) Null deviance: on 8 degrees of freedom Residual deviance: on 5 degrees of freedom AIC: 103 Number of Fisher Scoring iterations: 3 > lines(week,fitted(glm2)) > > ################ Question 3 ################## > > m<-matrix(scan("c:/keith/teaching/smalldatasets/hillrace.dat"),35,3,t) Read 105 items > dist<-m[,1] > height<-m[,2] > time<-m[,3] > plot(dist,time,main="fig 3.1: Time vs dist") > plot(height,time,main="fig 3.2: Time vs height") > glm1<-glm(time~dist+height) > summary(glm1) glm(formula = time ~ dist + height)

9 MATH 523 FINAL EXAM, April 17, Estimate Std. Error t value Pr(> t ) (Intercept) * dist e-12 *** height e-06 *** (Dispersion parameter for gaussian family taken to be ) Null deviance: on 34 degrees of freedom Residual deviance: on 32 degrees of freedom AIC: Number of Fisher Scoring iterations: 2 > plot(fitted(glm1),resid(glm1),main="fig 3.3: Residuals") > abline(0,0) > dev.off() windows 2 > cbind(time,fitted(glm1),resid(glm1)) time > time0<-time[-18] > dist0<-dist[-18]

10 MATH 523 FINAL EXAM, April 17, > height0<-height[-18] > glm2<-glm(time0~dist0+height0) > summary(glm2) glm(formula = time0 ~ dist0 + height0) Estimate Std. Error t value Pr(> t ) (Intercept) e-05 *** dist < 2e-16 *** height e-11 *** (Dispersion parameter for gaussian family taken to be ) Null deviance: on 33 degrees of freedom Residual deviance: on 31 degrees of freedom AIC: Number of Fisher Scoring iterations: 2 > postscript("c:/keith/teaching/523/2008/fig2.eps",horizontal=false) > par(mfrow=c(2,2)) > plot(fitted(glm2),resid(glm2),main="fig 3.4: Omitting obs 18") > abline(0,0) > glm3<-glm(time0~dist0+height0+height0:dist0) > summary(glm3) glm(formula = time0 ~ dist0 + height0 + height0:dist0) Estimate Std. Error t value Pr(> t ) (Intercept) dist e-11 *** height dist0:height ** (Dispersion parameter for gaussian family taken to be ) Null deviance: on 33 degrees of freedom Residual deviance: on 30 degrees of freedom AIC: Number of Fisher Scoring iterations: 2 > plot(fitted(glm3),resid(glm3),main="fig 3.5: With interaction")

11 MATH 523 FINAL EXAM, April 17, > abline(0,0) > > vl<-predict.lm(glm3,se.fit=t)$se.fit^2 > sc<-summary(glm3)$dispersion > z<-resid(glm3)/sqrt(sc-vl) > z > hist(z,main="figure 3.6 Normalized residuals, z") > u<-pnorm(z) > hist(u,main="figure 3.7 Uniforms, u") > dev.off() windows 2 > uhat<-((1:34)-0.5)/34 > u<-sort(u) > postscript("c:/keith/teaching/523/2008/fig3.eps",horizontal=false) > par(mfrow=c(2,2)) > plot(uhat,u,xaxs="i",xlim=c(0,1),yaxs="i", + ylim=c(0,1),main="figure 3.8 P-P plot") > abline(0,1) > zhat<-qnorm(uhat) > z<-sort(z) > plot(zhat,z,main="figure 3.9 Q-Q plot") > abline(0,1) > u-uhat > > ################ Question 4 ################## > > m<-matrix(scan("c:/keith/teaching/smalldatasets/remiss.dat"),42,3,t) Read 126 items > pair<-factor(m[,1]) > time<-m[,2] > censoring<-m[,3] > treatment<-factor(c(rep(c(1,2,2,1),10),c(1,2))) > rate<-censoring/time > summary(glm(rate~treatment,family=poisson,weight=time))

12 MATH 523 FINAL EXAM, April 17, glm(formula = rate ~ treatment, family = poisson, weights = time) (Intercept) < 2e-16 *** treatment *** (Dispersion parameter for poisson family taken to be 1) Null deviance: on 41 degrees of freedom Residual deviance: on 40 degrees of freedom AIC: Inf Number of Fisher Scoring iterations: 6 > summary(glm(rate~treatment+pair,family=poisson,weight=time)) glm(formula = rate ~ treatment + pair, family = poisson, weights = time) (Intercept) treatment e-05 *** pair * pair pair pair pair pair pair * pair pair * pair pair pair pair pair pair * pair pair pair pair pair (Dispersion parameter for poisson family taken to be 1)

13 MATH 523 FINAL EXAM, April 17, Null deviance: on 41 degrees of freedom Residual deviance: on 20 degrees of freedom AIC: Inf Number of Fisher Scoring iterations: 6 > > ################ Question 5 ################## > > m<-matrix(scan("c:/keith/teaching/smalldatasets/ear.dat"),287,5,t) Read 1435 items > frq<-factor(m[,1]) > loc<-factor(m[,2]) > Age<-factor(m[,3]) > sex<-factor(m[,4]) > inf<-m[,5] > summary(glm(inf~frq+loc+age+sex,family=poisson)) glm(formula = inf ~ frq + loc + Age + sex, family = poisson) (Intercept) < 2e-16 *** frq e-09 *** loc e-07 *** Age ** Age sex (Dispersion parameter for poisson family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 281 degrees of freedom AIC: Number of Fisher Scoring iterations: 6 > hist(fitted(glm(inf~frq+loc+age+sex,family=poisson)),main="figure 5.1 Fitted values") > dev.off() windows 2 > age<-m[,3] > summary(glm(inf~frq+loc+age+sex,family=poisson)) glm(formula = inf ~ frq + loc + age + sex, family = poisson)

14 MATH 523 FINAL EXAM, April 17, (Intercept) e-10 *** frq e-09 *** loc e-06 *** age * sex (Dispersion parameter for poisson family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 282 degrees of freedom AIC: Number of Fisher Scoring iterations: 6 > summary(glm(inf~frq+loc+frq:loc,family=poisson)) glm(formula = inf ~ frq + loc + frq:loc, family = poisson) (Intercept) < 2e-16 *** frq e-07 *** loc e-06 *** frq2:loc (Dispersion parameter for poisson family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 283 degrees of freedom AIC: Number of Fisher Scoring iterations: 6 > summary(glm(inf~frq+loc,family=poisson)) glm(formula = inf ~ frq + loc, family = poisson) (Intercept) < 2e-16 *** frq e-09 *** loc e-07 ***

15 MATH 523 FINAL EXAM, April 17, (Dispersion parameter for poisson family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 284 degrees of freedom AIC: Number of Fisher Scoring iterations: 6 > inf1<-inf+1 > y<-1/inf1 > summary(glm(y~frq+loc+age+sex,family=binomial,weight=inf1)) glm(formula = y ~ frq + loc + Age + sex, family = binomial, weights = inf1) (Intercept) e-10 *** frq *** loc ** Age * Age sex (Dispersion parameter for binomial family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 281 degrees of freedom AIC: Number of Fisher Scoring iterations: 4 > summary(glm(y~frq+loc+age+sex,family=binomial,weight=inf1)) glm(formula = y ~ frq + loc + age + sex, family = binomial, weights = inf1) (Intercept) e-05 *** frq *** loc ** age sex (Dispersion parameter for binomial family taken to be 1)

16 MATH 523 FINAL EXAM, April 17, Null deviance: on 286 degrees of freedom Residual deviance: on 282 degrees of freedom AIC: Number of Fisher Scoring iterations: 4 > summary(glm(y~frq+loc+frq:loc,family=binomial,weight=inf1)) glm(formula = y ~ frq + loc + frq:loc, family = binomial, weights = inf1) (Intercept) e-09 *** frq *** loc ** frq2:loc (Dispersion parameter for binomial family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 283 degrees of freedom AIC: Number of Fisher Scoring iterations: 4 > summary(glm(y~frq+loc,family=binomial,weight=inf1)) glm(formula = y ~ frq + loc, family = binomial, weights = inf1) (Intercept) e-10 *** frq *** loc ** (Dispersion parameter for binomial family taken to be 1) Null deviance: on 286 degrees of freedom Residual deviance: on 284 degrees of freedom AIC: Number of Fisher Scoring iterations: 4

17 MATH 523 FINAL EXAM, April 17, Fig 2.1 Plague mortality Fig 3.1: Time vs dist p time week dist Fig 3.2: Time vs height Fig 3.3: Residuals time resid(glm1) height fitted(glm1)

18 MATH 523 FINAL EXAM, April 17, Fig 3.4: Omitting obs 18 Fig 3.5: With interaction resid(glm2) resid(glm3) fitted(glm2) fitted(glm3) Figure 3.6 Normalized residuals, z Figure 3.7 Uniforms, u Frequency Frequency z u

19 MATH 523 FINAL EXAM, April 17, Figure 3.8 P P plot Figure 3.9 Q Q plot u z uhat zhat Figure 5.1 Fitted values Frequency fitted(glm(inf ~ frq + loc + Age + sex, family = poisson))

20 MATH 523 FINAL EXAM, April 17, Upper tail probabilities of the standard Normal distribution z

21 MATH 523 FINAL EXAM, April 17, Quantiles of the t distribution Quantiles of the χ 2 distribution Degrees of Upper tail probability Upper tail probability freedom

22 MATH 523 FINAL EXAM, April 17, Quantiles of the F distribution, P = 0.05 Denominator degrees of Numerator degrees of freedom freedom

23 MATH 523 FINAL EXAM, April 17, Quantiles of the Bonferroni t distribution, P (T > t) = 0.025/n Degrees of freedom n Quantiles of the Bonferroni t distribution, P (T > t) = 0.005/n Degrees of freedom n End of exam

Making Sense of Coefficients in Multiple Regression

Making Sense of Coefficients in Multiple Regression Making Sense of Coefficients in Multiple Regression David C. Hoaglin 12 January 2013 Many analyses of data by multiple regression and related methods (e.g., logistic regression) involve interpreting coefficients

More information

Logistic Regression - problem 6.14

Logistic Regression - problem 6.14 Logistic Regression - problem 6.14 Let x 1, x 2,, x m be given values of an input variable x and let Y 1,, Y m be independent binomial random variables whose distributions depend on the corresponding values

More information

UNIVERSITY OF TORONTO Faculty of Arts and Science

UNIVERSITY OF TORONTO Faculty of Arts and Science UNIVERSITY OF TORONTO Faculty of Arts and Science December 2013 Final Examination STA442H1F/2101HF Methods of Applied Statistics Jerry Brunner Duration - 3 hours Aids: Calculator Model(s): Any calculator

More information

9 Generalized Linear Models

9 Generalized Linear Models 9 Generalized Linear Models The Generalized Linear Model (GLM) is a model which has been built to include a wide range of different models you already know, e.g. ANOVA and multiple linear regression models

More information

Linear Regression Models P8111

Linear Regression Models P8111 Linear Regression Models P8111 Lecture 25 Jeff Goldsmith April 26, 2016 1 of 37 Today s Lecture Logistic regression / GLMs Model framework Interpretation Estimation 2 of 37 Linear regression Course started

More information

Checking the Poisson assumption in the Poisson generalized linear model

Checking the Poisson assumption in the Poisson generalized linear model Checking the Poisson assumption in the Poisson generalized linear model The Poisson regression model is a generalized linear model (glm) satisfying the following assumptions: The responses y i are independent

More information

Exam Applied Statistical Regression. Good Luck!

Exam Applied Statistical Regression. Good Luck! Dr. M. Dettling Summer 2011 Exam Applied Statistical Regression Approved: Tables: Note: Any written material, calculator (without communication facility). Attached. All tests have to be done at the 5%-level.

More information

Logistic Regression. James H. Steiger. Department of Psychology and Human Development Vanderbilt University

Logistic Regression. James H. Steiger. Department of Psychology and Human Development Vanderbilt University Logistic Regression James H. Steiger Department of Psychology and Human Development Vanderbilt University James H. Steiger (Vanderbilt University) Logistic Regression 1 / 38 Logistic Regression 1 Introduction

More information

STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis. 1. Indicate whether each of the following is true (T) or false (F).

STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis. 1. Indicate whether each of the following is true (T) or false (F). STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis 1. Indicate whether each of the following is true (T) or false (F). (a) T In 2 2 tables, statistical independence is equivalent to a population

More information

Modeling Overdispersion

Modeling Overdispersion James H. Steiger Department of Psychology and Human Development Vanderbilt University Regression Modeling, 2009 1 Introduction 2 Introduction In this lecture we discuss the problem of overdispersion in

More information

Clinical Trials. Olli Saarela. September 18, Dalla Lana School of Public Health University of Toronto.

Clinical Trials. Olli Saarela. September 18, Dalla Lana School of Public Health University of Toronto. Introduction to Dalla Lana School of Public Health University of Toronto olli.saarela@utoronto.ca September 18, 2014 38-1 : a review 38-2 Evidence Ideal: to advance the knowledge-base of clinical medicine,

More information

STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis. 1. Indicate whether each of the following is true (T) or false (F).

STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis. 1. Indicate whether each of the following is true (T) or false (F). STA 4504/5503 Sample Exam 1 Spring 2011 Categorical Data Analysis 1. Indicate whether each of the following is true (T) or false (F). (a) (b) (c) (d) (e) In 2 2 tables, statistical independence is equivalent

More information

A Handbook of Statistical Analyses Using R. Brian S. Everitt and Torsten Hothorn

A Handbook of Statistical Analyses Using R. Brian S. Everitt and Torsten Hothorn A Handbook of Statistical Analyses Using R Brian S. Everitt and Torsten Hothorn CHAPTER 6 Logistic Regression and Generalised Linear Models: Blood Screening, Women s Role in Society, and Colonic Polyps

More information

SCHOOL OF MATHEMATICS AND STATISTICS. Linear and Generalised Linear Models

SCHOOL OF MATHEMATICS AND STATISTICS. Linear and Generalised Linear Models SCHOOL OF MATHEMATICS AND STATISTICS Linear and Generalised Linear Models Autumn Semester 2017 18 2 hours Attempt all the questions. The allocation of marks is shown in brackets. RESTRICTED OPEN BOOK EXAMINATION

More information

Sample solutions. Stat 8051 Homework 8

Sample solutions. Stat 8051 Homework 8 Sample solutions Stat 8051 Homework 8 Problem 1: Faraway Exercise 3.1 A plot of the time series reveals kind of a fluctuating pattern: Trying to fit poisson regression models yields a quadratic model if

More information

STATS216v Introduction to Statistical Learning Stanford University, Summer Midterm Exam (Solutions) Duration: 1 hours

STATS216v Introduction to Statistical Learning Stanford University, Summer Midterm Exam (Solutions) Duration: 1 hours Instructions: STATS216v Introduction to Statistical Learning Stanford University, Summer 2017 Remember the university honor code. Midterm Exam (Solutions) Duration: 1 hours Write your name and SUNet ID

More information

BOOTSTRAPPING WITH MODELS FOR COUNT DATA

BOOTSTRAPPING WITH MODELS FOR COUNT DATA Journal of Biopharmaceutical Statistics, 21: 1164 1176, 2011 Copyright Taylor & Francis Group, LLC ISSN: 1054-3406 print/1520-5711 online DOI: 10.1080/10543406.2011.607748 BOOTSTRAPPING WITH MODELS FOR

More information

Two Hours. Mathematical formula books and statistical tables are to be provided THE UNIVERSITY OF MANCHESTER. 26 May :00 16:00

Two Hours. Mathematical formula books and statistical tables are to be provided THE UNIVERSITY OF MANCHESTER. 26 May :00 16:00 Two Hours MATH38052 Mathematical formula books and statistical tables are to be provided THE UNIVERSITY OF MANCHESTER GENERALISED LINEAR MODELS 26 May 2016 14:00 16:00 Answer ALL TWO questions in Section

More information

Generalized linear models

Generalized linear models Generalized linear models Douglas Bates November 01, 2010 Contents 1 Definition 1 2 Links 2 3 Estimating parameters 5 4 Example 6 5 Model building 8 6 Conclusions 8 7 Summary 9 1 Generalized Linear Models

More information

Problem #1 #2 #3 #4 #5 #6 Total Points /6 /8 /14 /10 /8 /10 /56

Problem #1 #2 #3 #4 #5 #6 Total Points /6 /8 /14 /10 /8 /10 /56 STAT 391 - Spring Quarter 2017 - Midterm 1 - April 27, 2017 Name: Student ID Number: Problem #1 #2 #3 #4 #5 #6 Total Points /6 /8 /14 /10 /8 /10 /56 Directions. Read directions carefully and show all your

More information

Logistic Regressions. Stat 430

Logistic Regressions. Stat 430 Logistic Regressions Stat 430 Final Project Final Project is, again, team based You will decide on a project - only constraint is: you are supposed to use techniques for a solution that are related to

More information

A Generalized Linear Model for Binomial Response Data. Copyright c 2017 Dan Nettleton (Iowa State University) Statistics / 46

A Generalized Linear Model for Binomial Response Data. Copyright c 2017 Dan Nettleton (Iowa State University) Statistics / 46 A Generalized Linear Model for Binomial Response Data Copyright c 2017 Dan Nettleton (Iowa State University) Statistics 510 1 / 46 Now suppose that instead of a Bernoulli response, we have a binomial response

More information

Statistical Methods III Statistics 212. Problem Set 2 - Answer Key

Statistical Methods III Statistics 212. Problem Set 2 - Answer Key Statistical Methods III Statistics 212 Problem Set 2 - Answer Key 1. (Analysis to be turned in and discussed on Tuesday, April 24th) The data for this problem are taken from long-term followup of 1423

More information

MODULE 6 LOGISTIC REGRESSION. Module Objectives:

MODULE 6 LOGISTIC REGRESSION. Module Objectives: MODULE 6 LOGISTIC REGRESSION Module Objectives: 1. 147 6.1. LOGIT TRANSFORMATION MODULE 6. LOGISTIC REGRESSION Logistic regression models are used when a researcher is investigating the relationship between

More information

Chapter 1 Statistical Inference

Chapter 1 Statistical Inference Chapter 1 Statistical Inference causal inference To infer causality, you need a randomized experiment (or a huge observational study and lots of outside information). inference to populations Generalizations

More information

STA 303 H1S / 1002 HS Winter 2011 Test March 7, ab 1cde 2abcde 2fghij 3

STA 303 H1S / 1002 HS Winter 2011 Test March 7, ab 1cde 2abcde 2fghij 3 STA 303 H1S / 1002 HS Winter 2011 Test March 7, 2011 LAST NAME: FIRST NAME: STUDENT NUMBER: ENROLLED IN: (circle one) STA 303 STA 1002 INSTRUCTIONS: Time: 90 minutes Aids allowed: calculator. Some formulae

More information

22s:152 Applied Linear Regression. RECALL: The Poisson distribution. Let Y be distributed as a Poisson random variable with the single parameter λ.

22s:152 Applied Linear Regression. RECALL: The Poisson distribution. Let Y be distributed as a Poisson random variable with the single parameter λ. 22s:152 Applied Linear Regression Chapter 15 Section 2: Poisson Regression RECALL: The Poisson distribution Let Y be distributed as a Poisson random variable with the single parameter λ. P (Y = y) = e

More information

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS. Duration - 3 hours. Aids Allowed: Calculator

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS. Duration - 3 hours. Aids Allowed: Calculator UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2010 EXAMINATIONS STA 303 H1S / STA 1002 HS Duration - 3 hours Aids Allowed: Calculator LAST NAME: FIRST NAME: STUDENT NUMBER: There are 27 pages

More information

Exercise 5.4 Solution

Exercise 5.4 Solution Exercise 5.4 Solution Niels Richard Hansen University of Copenhagen May 7, 2010 1 5.4(a) > leukemia

More information

McGill University. Faculty of Science. Department of Mathematics and Statistics. Statistics Part A Comprehensive Exam Methodology Paper

McGill University. Faculty of Science. Department of Mathematics and Statistics. Statistics Part A Comprehensive Exam Methodology Paper Student Name: ID: McGill University Faculty of Science Department of Mathematics and Statistics Statistics Part A Comprehensive Exam Methodology Paper Date: Friday, May 13, 2016 Time: 13:00 17:00 Instructions

More information

ISQS 5349 Final Exam, Spring 2017.

ISQS 5349 Final Exam, Spring 2017. ISQS 5349 Final Exam, Spring 7. Instructions: Put all answers on paper other than this exam. If you do not have paper, some will be provided to you. The exam is OPEN BOOKS, OPEN NOTES, but NO ELECTRONIC

More information

7/28/15. Review Homework. Overview. Lecture 6: Logistic Regression Analysis

7/28/15. Review Homework. Overview. Lecture 6: Logistic Regression Analysis Lecture 6: Logistic Regression Analysis Christopher S. Hollenbeak, PhD Jane R. Schubart, PhD The Outcomes Research Toolbox Review Homework 2 Overview Logistic regression model conceptually Logistic regression

More information

Introduction to General and Generalized Linear Models

Introduction to General and Generalized Linear Models Introduction to General and Generalized Linear Models Generalized Linear Models - part III Henrik Madsen Poul Thyregod Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs.

More information

Multiple regression. Partial regression coefficients

Multiple regression. Partial regression coefficients Multiple regression We now generalise the results of simple linear regression to the case where there is one response variable Y and two predictor variables, X and Z. Data consist of n triplets of values

More information

Log-linear Models for Contingency Tables

Log-linear Models for Contingency Tables Log-linear Models for Contingency Tables Statistics 149 Spring 2006 Copyright 2006 by Mark E. Irwin Log-linear Models for Two-way Contingency Tables Example: Business Administration Majors and Gender A

More information

BMI 541/699 Lecture 22

BMI 541/699 Lecture 22 BMI 541/699 Lecture 22 Where we are: 1. Introduction and Experimental Design 2. Exploratory Data Analysis 3. Probability 4. T-based methods for continous variables 5. Power and sample size for t-based

More information

Generalised linear models. Response variable can take a number of different formats

Generalised linear models. Response variable can take a number of different formats Generalised linear models Response variable can take a number of different formats Structure Limitations of linear models and GLM theory GLM for count data GLM for presence \ absence data GLM for proportion

More information

R Hints for Chapter 10

R Hints for Chapter 10 R Hints for Chapter 10 The multiple logistic regression model assumes that the success probability p for a binomial random variable depends on independent variables or design variables x 1, x 2,, x k.

More information

PAPER 206 APPLIED STATISTICS

PAPER 206 APPLIED STATISTICS MATHEMATICAL TRIPOS Part III Thursday, 1 June, 2017 9:00 am to 12:00 pm PAPER 206 APPLIED STATISTICS Attempt no more than FOUR questions. There are SIX questions in total. The questions carry equal weight.

More information

Lecture 14: Introduction to Poisson Regression

Lecture 14: Introduction to Poisson Regression Lecture 14: Introduction to Poisson Regression Ani Manichaikul amanicha@jhsph.edu 8 May 2007 1 / 52 Overview Modelling counts Contingency tables Poisson regression models 2 / 52 Modelling counts I Why

More information

Modelling counts. Lecture 14: Introduction to Poisson Regression. Overview

Modelling counts. Lecture 14: Introduction to Poisson Regression. Overview Modelling counts I Lecture 14: Introduction to Poisson Regression Ani Manichaikul amanicha@jhsph.edu Why count data? Number of traffic accidents per day Mortality counts in a given neighborhood, per week

More information

Introduction to the Generalized Linear Model: Logistic regression and Poisson regression

Introduction to the Generalized Linear Model: Logistic regression and Poisson regression Introduction to the Generalized Linear Model: Logistic regression and Poisson regression Statistical modelling: Theory and practice Gilles Guillot gigu@dtu.dk November 4, 2013 Gilles Guillot (gigu@dtu.dk)

More information

A Handbook of Statistical Analyses Using R 2nd Edition. Brian S. Everitt and Torsten Hothorn

A Handbook of Statistical Analyses Using R 2nd Edition. Brian S. Everitt and Torsten Hothorn A Handbook of Statistical Analyses Using R 2nd Edition Brian S. Everitt and Torsten Hothorn CHAPTER 7 Logistic Regression and Generalised Linear Models: Blood Screening, Women s Role in Society, Colonic

More information

Logistic Regression 21/05

Logistic Regression 21/05 Logistic Regression 21/05 Recall that we are trying to solve a classification problem in which features x i can be continuous or discrete (coded as 0/1) and the response y is discrete (0/1). Logistic regression

More information

PAPER 30 APPLIED STATISTICS

PAPER 30 APPLIED STATISTICS MATHEMATICAL TRIPOS Part III Wednesday, 5 June, 2013 9:00 am to 12:00 pm PAPER 30 APPLIED STATISTICS Attempt no more than FOUR questions, with at most THREE from Section A. There are SIX questions in total.

More information

Classification. Chapter Introduction. 6.2 The Bayes classifier

Classification. Chapter Introduction. 6.2 The Bayes classifier Chapter 6 Classification 6.1 Introduction Often encountered in applications is the situation where the response variable Y takes values in a finite set of labels. For example, the response Y could encode

More information

Generalized linear models for binary data. A better graphical exploratory data analysis. The simple linear logistic regression model

Generalized linear models for binary data. A better graphical exploratory data analysis. The simple linear logistic regression model Stat 3302 (Spring 2017) Peter F. Craigmile Simple linear logistic regression (part 1) [Dobson and Barnett, 2008, Sections 7.1 7.3] Generalized linear models for binary data Beetles dose-response example

More information

Tento projekt je spolufinancován Evropským sociálním fondem a Státním rozpočtem ČR InoBio CZ.1.07/2.2.00/

Tento projekt je spolufinancován Evropským sociálním fondem a Státním rozpočtem ČR InoBio CZ.1.07/2.2.00/ Tento projekt je spolufinancován Evropským sociálním fondem a Státním rozpočtem ČR InoBio CZ.1.07/2.2.00/28.0018 Statistical Analysis in Ecology using R Linear Models/GLM Ing. Daniel Volařík, Ph.D. 13.

More information

Survival Analysis I (CHL5209H)

Survival Analysis I (CHL5209H) Survival Analysis Dalla Lana School of Public Health University of Toronto olli.saarela@utoronto.ca January 7, 2015 31-1 Literature Clayton D & Hills M (1993): Statistical Models in Epidemiology. Not really

More information

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples Objective Section 9.4 Inferences About Two Means (Matched Pairs) Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means

More information

Statistics 203 Introduction to Regression Models and ANOVA Practice Exam

Statistics 203 Introduction to Regression Models and ANOVA Practice Exam Statistics 203 Introduction to Regression Models and ANOVA Practice Exam Prof. J. Taylor You may use your 4 single-sided pages of notes This exam is 7 pages long. There are 4 questions, first 3 worth 10

More information

Interactions in Logistic Regression

Interactions in Logistic Regression Interactions in Logistic Regression > # UCBAdmissions is a 3-D table: Gender by Dept by Admit > # Same data in another format: > # One col for Yes counts, another for No counts. > Berkeley = read.table("http://www.utstat.toronto.edu/~brunner/312f12/

More information

STAT 350. Assignment 4

STAT 350. Assignment 4 STAT 350 Assignment 4 1. For the Mileage data in assignment 3 conduct a residual analysis and report your findings. I used the full model for this since my answers to assignment 3 suggested we needed the

More information

Truck prices - linear model? Truck prices - log transform of the response variable. Interpreting models with log transformation

Truck prices - linear model? Truck prices - log transform of the response variable. Interpreting models with log transformation Background Regression so far... Lecture 23 - Sta 111 Colin Rundel June 17, 2014 At this point we have covered: Simple linear regression Relationship between numerical response and a numerical or categorical

More information

1. If Z χ 2 4, then P(Z 1.06) = 0.1, P(Z 7.78) = If Z F 4,96, then P(Z 0.26) = 0.1, P(Z 2.00) = 0.9.

1. If Z χ 2 4, then P(Z 1.06) = 0.1, P(Z 7.78) = If Z F 4,96, then P(Z 0.26) = 0.1, P(Z 2.00) = 0.9. 88 Paper 4, Section I 5K Consider the normal linear model where the n-vector of responses Y satisfies Y = Xβ + ε with ε N n (0, σ 2 I) and X is an n p design matrix with full column rank. Write down a

More information

Various Issues in Fitting Contingency Tables

Various Issues in Fitting Contingency Tables Various Issues in Fitting Contingency Tables Statistics 149 Spring 2006 Copyright 2006 by Mark E. Irwin Complete Tables with Zero Entries In contingency tables, it is possible to have zero entries in a

More information

Age 55 (x = 1) Age < 55 (x = 0)

Age 55 (x = 1) Age < 55 (x = 0) Logistic Regression with a Single Dichotomous Predictor EXAMPLE: Consider the data in the file CHDcsv Instead of examining the relationship between the continuous variable age and the presence or absence

More information

Statistics Handbook. All statistical tables were computed by the author.

Statistics Handbook. All statistical tables were computed by the author. Statistics Handbook Contents Page Wilcoxon rank-sum test (Mann-Whitney equivalent) Wilcoxon matched-pairs test 3 Normal Distribution 4 Z-test Related samples t-test 5 Unrelated samples t-test 6 Variance

More information

Stat 401B Final Exam Fall 2016

Stat 401B Final Exam Fall 2016 Stat 40B Final Exam Fall 0 I have neither given nor received unauthorized assistance on this exam. Name Signed Date Name Printed ATTENTION! Incorrect numerical answers unaccompanied by supporting reasoning

More information

Generalized linear models

Generalized linear models Generalized linear models Outline for today What is a generalized linear model Linear predictors and link functions Example: estimate a proportion Analysis of deviance Example: fit dose- response data

More information

Today. HW 1: due February 4, pm. Aspects of Design CD Chapter 2. Continue with Chapter 2 of ELM. In the News:

Today. HW 1: due February 4, pm. Aspects of Design CD Chapter 2. Continue with Chapter 2 of ELM. In the News: Today HW 1: due February 4, 11.59 pm. Aspects of Design CD Chapter 2 Continue with Chapter 2 of ELM In the News: STA 2201: Applied Statistics II January 14, 2015 1/35 Recap: data on proportions data: y

More information

Regression so far... Lecture 21 - Logistic Regression. Odds. Recap of what you should know how to do... At this point we have covered: Sta102 / BME102

Regression so far... Lecture 21 - Logistic Regression. Odds. Recap of what you should know how to do... At this point we have covered: Sta102 / BME102 Background Regression so far... Lecture 21 - Sta102 / BME102 Colin Rundel November 18, 2014 At this point we have covered: Simple linear regression Relationship between numerical response and a numerical

More information

PAPER 218 STATISTICAL LEARNING IN PRACTICE

PAPER 218 STATISTICAL LEARNING IN PRACTICE MATHEMATICAL TRIPOS Part III Thursday, 7 June, 2018 9:00 am to 12:00 pm PAPER 218 STATISTICAL LEARNING IN PRACTICE Attempt no more than FOUR questions. There are SIX questions in total. The questions carry

More information

Non-Gaussian Response Variables

Non-Gaussian Response Variables Non-Gaussian Response Variables What is the Generalized Model Doing? The fixed effects are like the factors in a traditional analysis of variance or linear model The random effects are different A generalized

More information

Generalized Linear Models

Generalized Linear Models Generalized Linear Models 1/37 The Kelp Data FRONDS 0 20 40 60 20 40 60 80 100 HLD_DIAM FRONDS are a count variable, cannot be < 0 2/37 Nonlinear Fits! FRONDS 0 20 40 60 log NLS 20 40 60 80 100 HLD_DIAM

More information

NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION. ST3241 Categorical Data Analysis. (Semester II: ) April/May, 2011 Time Allowed : 2 Hours

NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION. ST3241 Categorical Data Analysis. (Semester II: ) April/May, 2011 Time Allowed : 2 Hours NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION Categorical Data Analysis (Semester II: 2010 2011) April/May, 2011 Time Allowed : 2 Hours Matriculation No: Seat No: Grade Table Question 1 2 3 4 5 6 Full marks

More information

STA102 Class Notes Chapter Logistic Regression

STA102 Class Notes Chapter Logistic Regression STA0 Class Notes Chapter 0 0. Logistic Regression We continue to study the relationship between a response variable and one or more eplanatory variables. For SLR and MLR (Chapters 8 and 9), our response

More information

Chapter 22: Log-linear regression for Poisson counts

Chapter 22: Log-linear regression for Poisson counts Chapter 22: Log-linear regression for Poisson counts Exposure to ionizing radiation is recognized as a cancer risk. In the United States, EPA sets guidelines specifying upper limits on the amount of exposure

More information

R Output for Linear Models using functions lm(), gls() & glm()

R Output for Linear Models using functions lm(), gls() & glm() LM 04 lm(), gls() &glm() 1 R Output for Linear Models using functions lm(), gls() & glm() Different kinds of output related to linear models can be obtained in R using function lm() {stats} in the base

More information

Stat 5102 Final Exam May 14, 2015

Stat 5102 Final Exam May 14, 2015 Stat 5102 Final Exam May 14, 2015 Name Student ID The exam is closed book and closed notes. You may use three 8 1 11 2 sheets of paper with formulas, etc. You may also use the handouts on brand name distributions

More information

Poisson regression: Further topics

Poisson regression: Further topics Poisson regression: Further topics April 21 Overdispersion One of the defining characteristics of Poisson regression is its lack of a scale parameter: E(Y ) = Var(Y ), and no parameter is available to

More information

Let s see if we can predict whether a student returns or does not return to St. Ambrose for their second year.

Let s see if we can predict whether a student returns or does not return to St. Ambrose for their second year. Assignment #13: GLM Scenario: Over the past few years, our first-to-second year retention rate has ranged from 77-80%. In other words, 77-80% of our first-year students come back to St. Ambrose for their

More information

Generalized Linear Models 1

Generalized Linear Models 1 Generalized Linear Models 1 STA 2101/442: Fall 2012 1 See last slide for copyright information. 1 / 24 Suggested Reading: Davison s Statistical models Exponential families of distributions Sec. 5.2 Chapter

More information

STAC51: Categorical data Analysis

STAC51: Categorical data Analysis STAC51: Categorical data Analysis Mahinda Samarakoon April 6, 2016 Mahinda Samarakoon STAC51: Categorical data Analysis 1 / 25 Table of contents 1 Building and applying logistic regression models (Chap

More information

Generalized Linear Models

Generalized Linear Models York SPIDA John Fox Notes Generalized Linear Models Copyright 2010 by John Fox Generalized Linear Models 1 1. Topics I The structure of generalized linear models I Poisson and other generalized linear

More information

Class Notes: Week 8. Probit versus Logit Link Functions and Count Data

Class Notes: Week 8. Probit versus Logit Link Functions and Count Data Ronald Heck Class Notes: Week 8 1 Class Notes: Week 8 Probit versus Logit Link Functions and Count Data This week we ll take up a couple of issues. The first is working with a probit link function. While

More information

MATH ASSIGNMENT 2: SOLUTIONS

MATH ASSIGNMENT 2: SOLUTIONS MATH 204 - ASSIGNMENT 2: SOLUTIONS (a) Fitting the simple linear regression model to each of the variables in turn yields the following results: we look at t-tests for the individual coefficients, and

More information

MODELING COUNT DATA Joseph M. Hilbe

MODELING COUNT DATA Joseph M. Hilbe MODELING COUNT DATA Joseph M. Hilbe Arizona State University Count models are a subset of discrete response regression models. Count data are distributed as non-negative integers, are intrinsically heteroskedastic,

More information

Logistic Regression. Interpretation of linear regression. Other types of outcomes. 0-1 response variable: Wound infection. Usual linear regression

Logistic Regression. Interpretation of linear regression. Other types of outcomes. 0-1 response variable: Wound infection. Usual linear regression Logistic Regression Usual linear regression (repetition) y i = b 0 + b 1 x 1i + b 2 x 2i + e i, e i N(0,σ 2 ) or: y i N(b 0 + b 1 x 1i + b 2 x 2i,σ 2 ) Example (DGA, p. 336): E(PEmax) = 47.355 + 1.024

More information

Generalized Estimating Equations

Generalized Estimating Equations Outline Review of Generalized Linear Models (GLM) Generalized Linear Model Exponential Family Components of GLM MLE for GLM, Iterative Weighted Least Squares Measuring Goodness of Fit - Deviance and Pearson

More information

STAT 526 Spring Midterm 1. Wednesday February 2, 2011

STAT 526 Spring Midterm 1. Wednesday February 2, 2011 STAT 526 Spring 2011 Midterm 1 Wednesday February 2, 2011 Time: 2 hours Name (please print): Show all your work and calculations. Partial credit will be given for work that is partially correct. Points

More information

McGill University. Faculty of Science MATH 204 PRINCIPLES OF STATISTICS II. Final Examination

McGill University. Faculty of Science MATH 204 PRINCIPLES OF STATISTICS II. Final Examination McGill University Faculty of Science MATH 204 PRINCIPLES OF STATISTICS II Final Examination Date: 23rd April 2007 Time: 2pm-5pm Examiner: Dr. David A. Stephens Associate Examiner: Dr. Russell Steele Please

More information

Generalized Linear Models. stat 557 Heike Hofmann

Generalized Linear Models. stat 557 Heike Hofmann Generalized Linear Models stat 557 Heike Hofmann Outline Intro to GLM Exponential Family Likelihood Equations GLM for Binomial Response Generalized Linear Models Three components: random, systematic, link

More information

Cherry.R. > cherry d h v <portion omitted> > # Step 1.

Cherry.R. > cherry d h v <portion omitted> > # Step 1. Cherry.R ####################################################################### library(mass) library(car) cherry < read.table(file="n:\\courses\\stat8620\\fall 08\\trees.dat",header=T) cherry d h v 1

More information

Regression models. Generalized linear models in R. Normal regression models are not always appropriate. Generalized linear models. Examples.

Regression models. Generalized linear models in R. Normal regression models are not always appropriate. Generalized linear models. Examples. Regression models Generalized linear models in R Dr Peter K Dunn http://www.usq.edu.au Department of Mathematics and Computing University of Southern Queensland ASC, July 00 The usual linear regression

More information

Duration of Unemployment - Analysis of Deviance Table for Nested Models

Duration of Unemployment - Analysis of Deviance Table for Nested Models Duration of Unemployment - Analysis of Deviance Table for Nested Models February 8, 2012 The data unemployment is included as a contingency table. The response is the duration of unemployment, gender and

More information

Reaction Days

Reaction Days Stat April 03 Week Fitting Individual Trajectories # Straight-line, constant rate of change fit > sdat = subset(sleepstudy, Subject == "37") > sdat Reaction Days Subject > lm.sdat = lm(reaction ~ Days)

More information

Consider fitting a model using ordinary least squares (OLS) regression:

Consider fitting a model using ordinary least squares (OLS) regression: Example 1: Mating Success of African Elephants In this study, 41 male African elephants were followed over a period of 8 years. The age of the elephant at the beginning of the study and the number of successful

More information

Introduction to logistic regression

Introduction to logistic regression Introduction to logistic regression Tuan V. Nguyen Professor and NHMRC Senior Research Fellow Garvan Institute of Medical Research University of New South Wales Sydney, Australia What we are going to learn

More information

Generalized Linear Model under the Extended Negative Multinomial Model and Cancer Incidence

Generalized Linear Model under the Extended Negative Multinomial Model and Cancer Incidence Generalized Linear Model under the Extended Negative Multinomial Model and Cancer Incidence Sunil Kumar Dhar Center for Applied Mathematics and Statistics, Department of Mathematical Sciences, New Jersey

More information

Stat 401B Exam 3 Fall 2016 (Corrected Version)

Stat 401B Exam 3 Fall 2016 (Corrected Version) Stat 401B Exam 3 Fall 2016 (Corrected Version) I have neither given nor received unauthorized assistance on this exam. Name Signed Date Name Printed ATTENTION! Incorrect numerical answers unaccompanied

More information

STAT 510 Final Exam Spring 2015

STAT 510 Final Exam Spring 2015 STAT 510 Final Exam Spring 2015 Instructions: The is a closed-notes, closed-book exam No calculator or electronic device of any kind may be used Use nothing but a pen or pencil Please write your name and

More information

Poisson Regression. The Training Data

Poisson Regression. The Training Data The Training Data Poisson Regression Office workers at a large insurance company are randomly assigned to one of 3 computer use training programmes, and their number of calls to IT support during the following

More information

Using R in 200D Luke Sonnet

Using R in 200D Luke Sonnet Using R in 200D Luke Sonnet Contents Working with data frames 1 Working with variables........................................... 1 Analyzing data............................................... 3 Random

More information

Parametric Modelling of Over-dispersed Count Data. Part III / MMath (Applied Statistics) 1

Parametric Modelling of Over-dispersed Count Data. Part III / MMath (Applied Statistics) 1 Parametric Modelling of Over-dispersed Count Data Part III / MMath (Applied Statistics) 1 Introduction Poisson regression is the de facto approach for handling count data What happens then when Poisson

More information

STAT 526 Spring Final Exam. Thursday May 5, 2011

STAT 526 Spring Final Exam. Thursday May 5, 2011 STAT 526 Spring 2011 Final Exam Thursday May 5, 2011 Time: 2 hours Name (please print): Show all your work and calculations. Partial credit will be given for work that is partially correct. Points will

More information

NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION (SOLUTIONS) ST3241 Categorical Data Analysis. (Semester II: )

NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION (SOLUTIONS) ST3241 Categorical Data Analysis. (Semester II: ) NATIONAL UNIVERSITY OF SINGAPORE EXAMINATION (SOLUTIONS) Categorical Data Analysis (Semester II: 2010 2011) April/May, 2011 Time Allowed : 2 Hours Matriculation No: Seat No: Grade Table Question 1 2 3

More information

One-Way ANOVA. Some examples of when ANOVA would be appropriate include:

One-Way ANOVA. Some examples of when ANOVA would be appropriate include: One-Way ANOVA 1. Purpose Analysis of variance (ANOVA) is used when one wishes to determine whether two or more groups (e.g., classes A, B, and C) differ on some outcome of interest (e.g., an achievement

More information

Final Exam. Name: Solution:

Final Exam. Name: Solution: Final Exam. Name: Instructions. Answer all questions on the exam. Open books, open notes, but no electronic devices. The first 13 problems are worth 5 points each. The rest are worth 1 point each. HW1.

More information

On the Inference of the Logistic Regression Model

On the Inference of the Logistic Regression Model On the Inference of the Logistic Regression Model 1. Model ln =(; ), i.e. = representing false. The linear form of (;) is entertained, i.e. ((;)) ((;)), where ==1 ;, with 1 representing true, 0 ;= 1+ +

More information