Assumptions: Is our fit valid?
How did we fit this model?
(sensu Richard McElreath)
Validity
Representativeness
Model captures features in the data
Additivity and Linearity
Independence of Errors
Equal Variance of Errors
Normality of Errors
Minimal Outlier Influence
What if predator approaches is not a good measure of recognition? Or mimics just don't look like fish?
Always question if you did a good job sampling
Use natural history and the literature to get the bounds of values
If experimenting, make sure your treatment levels are representative
If you realize post-hoc they are not, qualify your conclusions
Does the model seem to fit the data? Are there any deviations? Can be hard to see...
Is anything off?
Solutions: Nonlinear transformations or a better model!
Are all replicates TRULY independent
Did they come from the same space, time, etc.
Non-independence can introduce BIAS
Incoporate Non-independence into models (many methods)
Shapes (cones, footballs, etc.) with no bias in fitted v. residual relationship
A linear relationship indicates an additivity problem
Can solve with a better model (more predictors)
Can solve with weighting by X values, if source of heteroskedasticity known
Minor problem for coefficient estimates
Major problem for doing inference and prediction as it changes error
We assumed ϵi∼N(0,σ) - but is that right?
Can assess with a QQ-plot
Again, minor problem for coefficient estimates
Major problem for doing inference and prediction, as it changes error
Are they real?
Do they indicate a problem or a nonlinearity?
Remove only as a dead last resort
If from a nonlinearity, consider transformation
Validity: only you know!
Representativeness: look at nature
Model captures features in the data: compare model v. data!
Additivity and Linearity: compare model v. data!
Independence of Errors: consider sampling design
Equal Variance of Errors: evaluate res-fit
Normality of Errors: evaluate qq and levene test
Minimal Outlier Influence: evaluate Cook's D
Assumptions: Is our fit valid?
How did we fit this model?
How do we draw inference from this model?
Least Squares
Likelihood
Bayesian
ˆY=β0+β1X+ϵ where β0 = intercept, β1 = slope
Minimize Residuals defined as SSresiduals=∑(Yi−ˆY)2
b=sxys2x =cov(x,y)var(x)
b=sxys2x =cov(x,y)var(x)
=rxysysx
Least squares regression line always goes through the mean of X and Y
ˉY=β0+β1ˉX
Least squares regression line always goes through the mean of X and Y
ˉY=β0+β1ˉX
β0=ˉY−β1ˉX
L=∏p(Data|parmeters)
L=∏p(Data|parmeters)L(θ|D)=∏dnorm(yi,μ=β0+β1xi,σ)
L=∏p(Data|parmeters)L(θ|D)=∏dnorm(yi,μ=β0+β1xi,σ)Deviance = -2 * Log Likelihood
Preliminary iteration .. DoneProfiling for parameter (Intercept) ... DoneProfiling for parameter resemblance ... Done
p(H|D)=p(D|H)p(H)p(D)
Searches p(H|D)=p(D|H)p(H)p(D)
<!--
--><!--
-->Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |