Midterm 2 Flashcards Preview

Bio 180 > Midterm 2 > Flashcards

Flashcards in Midterm 2 Deck (63)
Loading flashcards...
1
Q

What are the consequences of violating these assumption?

A

P-values will not be meaningful

Parameters may not be accurate

2
Q

What is independence?

A

Knowing the error of one or a subset of datapts provides no knowledge of the error of any others

3
Q

What are the 3 ways non-independence arises?

A

Heterogeneity in the dataset (ignoring natural subsets related to response
Replicate measurements per test subject incorrectly inflates dfresidual
Nested data( ignoring subs smoking or another hierarchy caused heterogeneity in data

4
Q

What are 3 warning signs of non-independence in a study?

A

Too many data points
Indication of any kind of repeated measurements
Any implausible result

5
Q

What is homogeneity of variance?

A

Assumption that the scatter around old he model is of equal magnitude throughout the fitted model

6
Q

What is the ideal approach for homogeneity of variance?

A

Residuals spread equally above and below fitted line. Plot residuals~ fitted values

7
Q

What is normality of error?

A

When the residuals are normally distributed

8
Q

Which type of plot is a more of a precise way to visualize distribution normality??

A

QQ Norm. If the QQnorm plot fits a straight line between -2 and +2 then the data is normally distributed

9
Q

What is the Shapiro-will test

A

It test for normality giving a specific p-value for the null hypothesis that the data is normally distributed

10
Q

How do we fix non normality and inhomogeneity?

A

Transform the variables. Ex apply log, sqrt, or exp

11
Q

If residuals~ frequency plot is a right hand tail how do we fix the problem

A

Transform the response variable with log, sqrt or 1/y.

12
Q

If residual~frequency is a left hand tail, how do we fix the problem

A

Transform the variable with e^y

13
Q

What is linearity/additivity

A

A linear relationship between the response and the explanatory variables

14
Q

How is non linearity detected

A

Plot the residuals against each of the explanatory variable. If linear the plot for each variable should show an equal distribution of points above and below zero

15
Q

What other strategies to fix non-linearity

A

Inclusion of variable interactions

Inclusion of higher powers of the explanatory variables

16
Q

What is model criticism

A

Testing key assumption of general linear models
Be normally distributed with mean zero
Not systemically vary different values of he predicted response
Not systematically vary for different values of any of the explanatory variables

17
Q

From a scientific understanding what is conflicted a best model

A

Fewest explanatory variables that yield model who small p-value

18
Q

An accurate predictive model is considered a beat model of?

A

Highest r^2 without regard for number variables but avoid over-fitting

19
Q

What are the three principles of model choice

A

Economy of variables
Considerations of mariginality
Multiplicity of p-values

20
Q

What is economy of variables

A

The simpler the better

21
Q

What is multiplicity of p values

A

If you calculate enough p values some models will be significant just be chance

22
Q

What is considerations of marginality

A

The simplest terms have priority and inclusion of interaction terms requires the inclusion of their simpler parts

23
Q

What is the goal of economy of variables

A

To identify the minimum adequate model

24
Q

How to deal with the problem of multiplicity of p values

A

Reduce the p value cutoff
Use more specialized statistical tests
Reduce the number of explanatory variables by combining multiple terms into a single term
Focus, don’t fish

25
Q

What is the importance of marginality

A

Hierarchies must be respected in model formulae

26
Q

How is type 4 goal of finishing the subset of variable to explain some response achieved?

A
  1. Attempt to build a model using all first, second and third order terms
  2. Build simpler model including only first and second order terms
  3. Build simpler models removing terms not deemed significant
  4. Build simpler model including only first order terms
27
Q

What is adjusted r^2

A

One metric for measuring how “economically” a model describes a data set of rules

28
Q

What is the formula for adjusted R^2

A

(Total MS-Residual MS)/ total MS where total MS= total ss/total df

1 + ( R^2-1) (dftotal/(df total-df model)

29
Q

How to determine how “economically” a model describe a data set

A
  1. Use adjusted r^2

2. Use prediction intervals (increases as you add insignificant explanatory variables

30
Q

What are possible pitfalls with automated methods

A

Temptation just to let the computer do the thinking and neglect other relevant info

Slightly different automated procedure can give different models

Don’t take overall p value of final model too literally

31
Q

What is a stepwise regression

A

An automated procedure for selecting a subset of variables in a model

Backwards stepwise regression

Forward stepwise regression

32
Q

What is a backward stepwise regression

A

Build full model and remove that variable that contributes that lease

Build new model and remove variable that contributes least

y~x1+ x2+x3

33
Q

What is forward stepwise regression

A

y~X1 y~x2 y~3

Y~x3+x1. Y~x3+x2

Stop when additional variable does not improve adjusted r2

34
Q

What is akaike information criterion (aic)

A

Alc= nln(rss/n) + 2k

Lower aic means better model

35
Q

What is the purpose of addingrandom effects

A

Random effects add a new type of variance to estimate

Estimate how the individual to individual variation compares to the variation due to other effects

36
Q

What does nested data allow us to quantify

A

Random effects

37
Q

What is population modeling?

A

The use of property of individual to predict future populations

38
Q

What is “r”

A

The net reproduction per individual per unit time

R= birth rate(f)- death rate (d)

39
Q

What is the Malthusian model

A

Change of p= r*p

P(t+1)= p(t) + r* p(t)

40
Q

In the Malthusian model what are the behaviors of r?

A

r> 0 deltaP>0 pop grows
R=o deltaP= constant
R

41
Q

What is the total fertility rate (tfr)

A

The average number of children born per women over her lifetime

42
Q

What is carrying capacity (k)

A

Maximum number of individual that can be sustained in a particular habitat

43
Q

What is logistic growth

A

This occurs when population size is limited by carrying capacity

44
Q

What is the logistic model equation

A
deltaP= rmax * p(1-p/k) this creates a parabola 
Where r= max pop growth rate 
K= carrying capacity 
P= number of individuals 
DeltaP= pop growth/ unit time 

P(t+1)= P(t) + rmax*P(t)(1-Pt/k)

45
Q

What is the behavior of K in a logistic model

A

When P> K then delta deltaP

46
Q

What are control structures

A

Manage how many times commands in a program are executed

47
Q

What are loops

A

Run a set of commands a specified number of times until some condition is true

48
Q

What are conditional

A

Run a set of commands not if some condition is true

49
Q

What is the “for” command used for

A

To repeat a set of commands a set number of times

Ex. For( I in 1:10) { print(i)}

50
Q

How to use a loop to add up a list of numbers

A

Use the counter command

Counter

51
Q

How to loop a vector

A

Vector

52
Q

How do we determine population model parameters

A

Fit the model to real data

53
Q

How automate the processing of optimizing the values of r and k

A

Define the fitness to be minimized

54
Q

What are equilibrium points

A

Occur where the values are unchanged between time steps

This can be determined by setting both the Malthusian and logistic model p or k=0

55
Q

What determine stability of equilibrium points

A

Perturbation analysis algebraically or graphically

Substitute Pt= P* + Pt

56
Q

When does equilibrium occurs

A

P(t+1)= F(Pt) = Pt

F(P) > 1 unstable

F(P)

57
Q

What is the stretching factor

A

(1+rmax) pt tells of theres shrinkage or growth

58
Q

What type of diagram will indicate whether the model converged to an equilibrium point

A

A cobweb diagram

59
Q

In the logistic model on perturbation analysis when is are the conditions when r> 0

A

0

60
Q

Perturbation analysis when r

A

-1

61
Q

What leads to chaotic behavior

A

Increasing r values leads to first oscillatory

The bifurcation diagram shows chaotic behavior

62
Q

What is the Ricker model

A

Pt+1= pt* e^rmax(1-pt/k)

Never produces negative populationd but is noiser than logistic model

63
Q

What are the four assumptions?

A

Independence
Normality of error
Homogeneity of variance
Linearity/additivity