Docsity

Model Comparison: Choosing the Best Statistical Model for a Dataset - Prof. Mary Kathryn C, Study notes of Statistics

Toggle sidebar
bg1
1
22S:138
Model Comparison
Lecture 18
Nov. 7, 2007
Kate Cowles
374 SH, 335-0727
2
Model comparison
•often there are several plausible candidate
models
–different candidate predictor variables in
regression
–different link functions in generalized lin-
ear models
–different assumptions regarding form of like-
lihood
–different priors
•statisticians often will compare the fit of sev-
eral models in order to choose the “best” one
–then assess whether that one is adequate
•alternative: Bayesian model-mixing
–does prediction using a weighted combina-
tion of all candidate models
3
Model comparison for nested vs. non-
nested models
•nested models: two regression-type models in
which the predictors in the smaller model are
a subset of the predictors in a larger model
–larger model will fit better but will be more
difficult to fit and to interpret
–key questions in model comparison
∗is improvement in fit substantial enough
to justify increased difficulty in fitting
and interpreting
∗are priors on additional parameters rea-
sonable
•non-nested models
–different link functions in GLMs
–non-nested sets of predictors
4
Tools for Bayesian model comparison
•Bayes factors and approximations to them
•Deviance Information Criterion
pf3
pf4

Partial preview of the text

Download Model Comparison: Choosing the Best Statistical Model for a Dataset - Prof. Mary Kathryn C and more Study notes Statistics in PDF only on Docsity!

22S:

Model Comparison

Lecture 18 Nov. 7, 2007

Kate Cowles 374 SH, 335- [email protected]

Model comparison

  • often there are several plausible candidate models - different candidate predictor variables in regression - different link functions in generalized lin- ear models - different assumptions regarding form of like- lihood - different priors
  • statisticians often will compare the fit of sev- eral models in order to choose the “best” one - then assess whether that one is adequate
  • alternative: Bayesian model-mixing
    • does prediction using a weighted combina- tion of all candidate models

3

Model comparison for nested vs. non- nested models

  • nested models: two regression-type models in which the predictors in the smaller model are a subset of the predictors in a larger model - larger model will fit better but will be more difficult to fit and to interpret - key questions in model comparison ∗ is improvement in fit substantial enough to justify increased difficulty in fitting and interpreting ∗ are priors on additional parameters rea- sonable
  • non-nested models
    • different link functions in GLMs
    • non-nested sets of predictors

4 Tools for Bayesian model comparison

  • Bayes factors and approximations to them
  • Deviance Information Criterion

Frequentist use of deviance as measure of model fit in linear and generalized linear models

Example:

Dataset is counts of how many beetles were killed ri, i = 1,... , 8 in 8 groups of beetles exposed to different doses of an insecticide. Each group i had ni beetles in it.

  • consider a “saturated model” for a particular dataset - has a parameter for every observation in the dataset so its fit is “perfect” - not useful, since it is no simpler than the entire original dataset - but it provides a benchmark to which to compare the fit of other models - saturated model for beetles data would have 8 parameters: pi, i = 1,... , 8, the pop- ulation proportion killed at each of the 8 dose levels - the frequentist point estimate of each pi would be (^) nrii
  • now consider a more useful model that lets us quantify the dose-response logit(pi) = α + β(xi − x¯) - has only 2 parameters - will not fit the data as perfectly as the saturated model
  • notation: let logL(ˆθ; y) denote the maxi- mum of the log likelihood for a particular model
  • deviance in GLM is defined as − 2

[ logL(θˆmodel of interest; y) − logL(θˆsaturated; y)

]

  • this is the likelihood-ratio statistic for test- ing the null hypothesis that the model holds

7 against the general alternative

  • under certain conditions, deviance has an asymptotic chi-square distribution with de- grees of freedom equal to the difference between the number of parameters in the saturated model and the number of pa- rameters in the model being evaluated

8 Frequentist deviance for models for bee- tles data fit.beetles(beetles) [,1] [,2] [1,] 6 53 [2,] 13 47 [3,] 18 44 [4,] 28 28 [5,] 52 11 [6,] 52 7 [7,] 61 1 [8,] 60 0 Call: glm(formula = respmat ~ beetles$V1, family = binomial(link = logit)) Deviance Residuals: Min 1Q Median 3Q Max -1.5213 -0.6270 0.8705 1.2575 1. Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -59.869 5.100 -11.74 <2e-16 *** beetles$V1 33.784 2.866 11.79 <2e-16 ***


Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1 (Dispersion parameter for binomial family taken to be 1) Null deviance: 280.866 on 7 degrees of freedom Residual deviance: 11.474 on 6 degrees of freedom AIC: 41.

  • and the DIC is

DIC = Dˆavg(y) + pD = 2 Dˆavg(y) − D (^) θˆ(y)

  • DIC is an approximation to the expected pre- dictive deviance and has been suggested as an indicator of model fit when the goal is to pick a model with the best out-of-sample predictive ability
  • smaller values of DIC suggest better model fit