C MODEL DIAGNOSTICS & SELECTION

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/62

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:15 AM on 8/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

63 Terms

1
New cards

Linear Model

  • Y1, … , Yn indep

    • Yi ~ N(μi, σ2)

  • Constant variance → homoscedasticity

  • μi = xiβ

    • Coefficients are linear

2
New cards

GLM

  • Y1, … , Yn indep

    • Yi ~ Exponential Family Distr

  • Don’t require homoscedasticity

  • g(μi)= xiβ

    • Link function

3
New cards

exponential function

GLMs:

  • Yi can be any distr from _____ Family

  • A _____ of the mean is linearly related to the predictors instead of mean itself

  • Var doesn’t have to be constant

Linear Regression:

  • Least Squares & MLE will give same coefficients

    • NOT the case for GLMs!

4
New cards

Systematic

Components of a GLM → _____ Component

  • Var explained by lin comb of predictors

  • g(μi)= xiβ + offset

5
New cards

Random

Components of a GLM → _____ Component

  • Var NOT explained by systematic component

    • Pure random var εi

    • Var from variables not included in model

6
New cards

function dispersion

GLM → For observation yi:

  • See pic for mean & var formulas

  • V(μi) = var of distr as a _____ of mean

  • ϕ = _____ parameter

  • ω = weight

<p><strong>GLM → For observation y<sub>i</sub>:</strong></p><ul><li><p>See pic for mean &amp; var formulas</p></li><li><p><strong>V(μ<sub>i</sub>)</strong> = var of distr as a _____ of mean</p></li><li><p><strong>ϕ </strong>= _____ parameter </p></li><li><p><strong>ω</strong> = weight </p></li></ul><p></p>
7
New cards

Link Function

Specifies relationship between random & systematic components of GLM

  • Applied to systematic component

  • Improves predictive power of model

  • Applied to MEAN

8
New cards

link explanatory coefficients fit

Steps to constructing a GLM:

  1. Choose distr for response → f(y)

  2. Choose _____ function → g(μ)

  3. Choose _____ variables x to be modeled → xi

  4. Collect indep obs → yi

  5. Fit model by estimating _____ → β (and ϕ)

  6. Evaluate model _____ → residuals

9
New cards

Transformation multiplicative

Applied directly to response var

  • Helps make relationship more linear

    • Addresses non-normality

10
New cards

response mean

Transformation vs Link Function → Application

  • Transformation → apply directly to _____

  • Link → apply to _____

11
New cards

yes no

Transformation vs Link Function → Affects Variance?

  • Transformation → _____

  • Link → _____

12
New cards

multiplicative distribution

Transformation vs Link Function → Error Component on original scale of y

  • Transformation → distorts error

    • May make it _____

    • Change its _____

  • Link → does NOT affect error

13
New cards

retains bias interpretability normal linear

Benefits of Link Function

  • _____ original data

  • Introduce less _____

  • Preserve model _____

  • Facilitate model comparisons

  • Handles non-_____ response variables

  • Accounts for non-_____ relationships

14
New cards

Identity Normal

_____ Link → g(μ) = μ

  • Domain = (-∞, ∞)

  • Canonical: _____

15
New cards

Log Poisson

_____ Link → g(μ) = lnμ

  • Frequency/count data

  • Domain = (0, ∞)

  • Canonical: _____

16
New cards

Power Gamma Inverse Gaussian

_____ Link → g(μ) = μp

  • Right-skewed data

  • Domain = (0, ∞)

  • Canonical:

    • _____ → p = -1

      • 1/μ

    • _____ → p = -2

      • 1/μ2

17
New cards

Logit Binomial

_____ Link → g(μ) = ln(μ/(1-μ))

  • Probabilities

  • Odds = μ/(1-μ)

  • Domain = [0,1]

  • Canonical: _____

18
New cards

Distributions

Instructions for model on how to generate values

19
New cards

neg skewed patterns

Considerations in choosing distribution:

  • Can response be _____?

  • Discrete or cts?

  • Is data _____

  • Noticeable _____

20
New cards

1

Normal Distr → Var(μ) =

  • Not impacted by mean

21
New cards

u(1-u)

Binomial Distr → Var(μ) =

22
New cards

u

Poisson Distr → Var(μ) =

23
New cards

Gamma Distr → Var(μ) =

24
New cards

Inverse Gaussian Distr → Var(μ) =

25
New cards

u(1+ku)

Negative Binomial Distr → Var(μ) =

26
New cards

u^p

Tweedie Distr → Var(μ) =

27
New cards

Binomial Logit

_____ Distribution:

  • Discrete

    • Captures prob of event occurring

    • Best used for binary response

  • Canonical Link → _____

  • Var(μ) = μ(1-μ)

28
New cards

Logistic Regression

Binomial distr + Logit link

  • Use logistic function to convert log(odds) to a probability

29
New cards

Bernoulli Binomial

_____: prob of success in a single trial

_____: collection of multiple indep Bernoulli trials

30
New cards

Poisson Log

_____ Distribution:

  • Discrete

    • Best for count data

    • GLM implementation allows cts data

      • Rates or frequency

  • Canonical Link → _____

  • Var(μ) = μ

31
New cards

Overdispersion

When data has larger var than predicted by regression

32
New cards

Neg Binomial Quasi Poisson

Poisson has mean = var

Need to adjust for overdispersion if not the case!

  • Use another distr

  • Use _____ _____

    • ϕ = 1

    • Scale var using ϰ

    • V(y) = μ(1 + ϰμ)

  • Use _____-_____

    • Scale var using ϕ

      • V(y)= ϕ μ

    • β coefficients same as Poisson

    • Larger SE

33
New cards

Gamma Inverse Gamma severity power

_____ Distribution:

  • Right-skewed, non-neg data

    • Use _____ _____ for extreme right skew

  • Commonly used for _____

  • Canonical Link → ____

34
New cards

Tweedie power

_____ Distribution:

  • Handles data that’s:

    • Clustered around zero

    • Right-skewed

  • If 1<p<2 → gives compound Poisson-Gamma

    • Discrete & cts → freq & sev

  • Canonical Link → _____

    • g(μ) = μ1-p

  • Var(μ) = μp

35
New cards

Poisson Gamma

_____ _____ Compound Distr

  • Tweedie where 1<p<2

  • Discrete & cts

  • No canonical link

  • Var(μ) = μp

36
New cards

Coefficient SE

Var of coefficient estimate from pop avg

  • 95% CI = b ± 2 SE(β)

37
New cards

Statistical Significance true effect

_____ _____: determines if b is far enough from 0 → β=0?

  • If observed relationship is likely due to _____ _____ rather than random chance

    • Doesn’t necessarily mean impact on response is big

  • Compute z or t-value

    • t* = b/SE(β)

38
New cards

30 pop sd

When to use t-test for statistical significance?

  • If n < ____

  • _____ _____ unknown

39
New cards

Variable Selection

  • Balance efficiency & interpretability

  • Too many variables lead to overfitting

40
New cards

context exploratory bivariate analysis

Variable Selection → Qualitative Approach

  • Relies on understanding of data & _____

  • Findings from _____ phase

    • _____ _____ → correlations

    • Non-linear relationships

41
New cards

Interaction Variables

Variable Selection → _____ _____

  • For joint impact on response variables

  • Con: hard to interpret

    • Don’t add just bc there’s correlation!

42
New cards

Statistical Significance

Variable Selection → _____ _____

  • Generally avoid using variables that aren’t significant

43
New cards

criteria

Forward/Backwards Selection _____

  • Typically uses:

    • Adjusted R2

    • AIC

    • Mallow’s Cp

44
New cards

null criteria significance

Forward Selection

  • Start w/ _____ model → only intercept

  • Explanatory variable examined one at a time

    • Set _____ that allows variables to enter regression

  • Add variable w/ best improvement

    • Can’t be removed once added

  • Stop when adding another var no longer improves model

  • Cons:

    • _____ of existing variable can change as other var are added

      • May end up w/ variable that aren’t statistically sig in model

    • Not flexible

45
New cards

full predictive flexible

Backwards Algorithm / Deletion

  • Start w/ _____ model

  • Set criteria that allows variable to be removed

    • Can’t be added once removed

  • Stop when removing another variable doesn’t improve model

  • Pros:

    • Easier to account for when variables have greater _____ power together

    • Preferred over forward selection

  • Con: not _____

46
New cards

Order matters

Cons of Forward/Backward Selection

  • Not flexible → can’t add/remove variables once removed/added

  • _____ _____ when predictors are correlated

    • Not guaranteed to find best model

47
New cards

Step Wise alternate

_____ _____ Selection

  • Blend of forward& backwards selection

  • Initial model can be null, full or fitted model

  • _____ between adding/removing variable steps

  • Pro: flexible → ALL variables evaluated at each step

  • Con: computational complexity

48
New cards

Marginality

Higher power terms will dominate regression

  • x is marginal to x2

  • x1, x2 are marginal to interaction x1x2

49
New cards

Marginality Principle

If you include a higher power / interaction term, you must include all marginal terms

  • Removing marginal terms is statistically meaningless

50
New cards

group time periods

ωi = Weight of observation yi

  • Used when:

    • Observations contain _____ info

    • Adjust for diff _____ _____

51
New cards

scaling variance

Offset: optional constant term to linear predictor

  • Acts as _____ factor

  • Can vary for each obs

  • Affects _____ too!

    • Coz link may make it multiplicative

52
New cards

predetermined deductibles directly exposure

When to add offset term:

  • Incorporate _____ values

    • _____

  • Response _____ varies based on other measures

    • _____ → policy length, # of claims, mileage

53
New cards

MLE

Estimate parameters s.t. observed sample is most likely

54
New cards

Likelihood

Plausibility of set of parameters given observed sample & model

  • Only useful for comparisons

  • Not useful by itself

55
New cards

Likelihood Function

<p></p>
56
New cards

Log Likelihood Function

Find max by taking deriv wrt θ

<p>Find max by taking deriv wrt θ</p>
57
New cards

Residuals

Measures model fit

  • Represents portion of var that model doesn’t explain

58
New cards

Raw Residuals

Diff between observed vs predicted values

<p>Diff between observed vs predicted values</p>
59
New cards

Pearson Residuals

Standardized diff between observed vs predicted values

  • Accounts for heteroscedasticity (diff var)

<p>Standardized diff between observed vs predicted values</p><ul><li><p>Accounts for heteroscedasticity (diff var)</p></li></ul><p></p>
60
New cards

Coefficient of Determination

_____ _____ _____ (R²)

  • Prop of var in response that’s explained by model

  • Null Model

    • Only intercept → p = 1

    • Lowest R²

  • Saturated Model

    • p = n

    • Highest R²

61
New cards

Null Deviance

Compares log likelihood of saturated vs null model

  • 2ϕ ( ln LSat - ln Lnull )

62
New cards

Residual Deviance

Compares log likelihood of saturated vs proposed model

  • 2ϕ ( ln LSat - ln LProp )

  • Smaller = better fit

    • df = n-p

    • If (Residual Deviance) / (n-p) > > 1 → poor fit

63
New cards