230 likes | 354 Views
New Methods in Ecology. Complex statistical tests, and why we should be cautious!. Complex tests. Logistic Regression Principal Components Analysis Cluster Analysis. Multivariate. Multi variate tests mean you have a single explanatory variable, but multiple response variables.
E N D
New Methods in Ecology Complexstatistical tests, and why we should be cautious!
Complextests • Logistic Regression • Principal Components Analysis • Cluster Analysis Multivariate • Multivariatetests mean you have a single explanatory variable, but multiple response variables.
Logistic Regression Insects were exposed to a pesticide to determine the effectiveness of the treatment. The response is dead individuals from a sample
Linear regression on the proportions killed vs dose P(kill) = ax + b dose At dose 0, Proportion killed is less than 0 (negative deaths?) and greater than dose 4, get > 100% mortality!
Need to ensure the model is bounded by 0 and 1, build a new equation P(kill) dose No longer have impossible predictions, and the model fits better
Can now look at what proportion would be killed at a particular dosage P(kill) dose
Logistic regression issues… • Implementing and coding the model can be difficult • Can be tough to work through the equation • Is it easier to design around the issue? • Use the same number in each batch, use “number dead” as the response variable?
Multivariate Statistics • Single explanatory variable, multiple response variables • Multivariate tests can be useful and insightful • Can be deeply confusing • Very often misused • Difficult to explain the results • Used to mask bad designs, confuse/impress stupid people.
Parrots in Bonaire Sam Williams www.parrotwatch.org Sam collected a load of data on different aspects of the birds’ biology
Parrots in Bonaire • What to do with all this? • 1 descriptive variable (nest) • Multiple response variables • Principal component analysis…
Principal Component Analysis • Obtains values for as many principle components as there are response variables • Each PC accounts for some more of the total variation • Each nest has a PC value for each PC • Each response variable has a rotation value for each PC • What do these PC values and rotation values relate to? • God knows
Principal Component Output Principle Component Scree plot, first few Principal components account for much of the variation
Principal Component Output Biplot of the first 2 principle components Can be used to look for correlations Some significance tests(redundancy analysis) Lots of noise!
Other use of PCA • each nest/individual/replicate has a value of each Principal component • Can use these values as a response variable, and subject to other tests • Called “Dimensionality Reduction”
Salmon Genomics and Survival • Gene expression data for ~16000 genes, from ~300 fish. • Each fish is a replicate, each gene is a response variable
Salmon Genomics and Survival • 16000 genes is lot of data, and a lot of variation. • Do a PCA on the genes, use the PC values as a response variable • Reduces the dimension of the data, rather than 16000 response variables, now have 1 (PC1, or PC2) • Can then use this in other tests.
Salmon Genomics and Survival Principle component • Related value of PC1 to survival of the fish, showed a correlation for one stock
Salmon Genomics and Survival Scotch Chilko Adams Proportion surviving days • Condensed the gene expression data into something useable • Method insanely complex and computer intensive • Still don’t really know what PC1 is!
Cluster Analysis • Like PCA, a multivariate method • Unlike PCA, looks for patterns within the data • Produces a hierarchical cluster • Groups similar individuals together • Unsupervised • Have to then decide where groups lie • Try and relate the grouping to something else?
Multivariate Summary • Multivariate statistics are useful for data mining • Often used when data collection was done improperly/you’ve been given data sets • Can indicate how to proceed • Can be very messy • Totally opposite to the a priori “carry out an experiment to test a hypothesis” idea.
Complex stats Summary • Can be very useful and insightful if used properly • More complex doesn’t necessarily mean better • Can be difficult to interpret • Remember the golden rule – know how to analyse the type of data you will collect, before you collect it!