10
Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree over the other. Test statistic: In Parsimony (or minimum evolution); d = Length A – Length B In Likelihood; d = lnL A lnL B

Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Embed Size (px)

Citation preview

Page 1: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Lecture 15 - Hypothesis Testing

A. Competing a priori hypotheses - Paired-Sites Tests

Null Hypothesis : There is no difference in support for one tree over the other.

Test statistic:

In Parsimony (or minimum evolution); d = LengthA – LengthB

In Likelihood; d = lnLA – lnLB

Page 2: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Early methods looked at the difference in optimality between the two trees on a site-by-site basis. Thus, these are called paired-sites method.

So we would accept the Ho that there is no difference in support for either tree.

KH-Test: Parsimony – normal distributionTree # 1 2Length 354 357 [So the test statistic is 3 steps] Kishino-Hasegawa test: Tree Length diff s.d.(diff) t P* --------------------------------------------------------------------- 1 354 (best) 2 357 3 9.65019 0.3109 0.7560   * Probability of getting a more extreme T-value under the null hypothesis

of no difference between the two trees (two-tailed test).

Example

Normal (mean = 0)

Page 3: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

KH-Test: Likelihood – normal distributionTree 1 2-ln L 2558.60898 2529.81009 [So the test statistic is 28.8 lnL units] Kishino-Hasegawa test: KH test using normal approximation, two-tailed test

KH-test Tree -ln L Diff -ln L P --------------------------------------------- 1 2558.60898 28.79889 0.000* 2 2529.81009 (best) * P < 0.05

Here, the same data and test lead to rejection of Ho under a different optimality criterion

Same data, but using ML as criterion.

KH-Test: Likelihood – RELL bootstrappingTree 1 2-ln L 2558.60898 2529.81009 Kishino-Hasegawa test: KH test using RELL bootstrap, two-tailed test Number of bootstrap replicates = 1000 KH-test Tree -ln L Diff -ln L P --------------------------------------------- 1 2558.60898 28.79889 0.396 2 2529.81009 (best)

Page 4: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Same Data, Same Two Trees, Different Inferences

Page 5: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Most applications of these tests have involved comparing a suboptimal tree to the best tree.

This results in use of a mismatched null distribution and the tests should not be used in this way.

SH Test - corrects for the a priori requirement.

Uses a collection of trees (rather than just ML v. Hypothesis).

Uses RELL bootstrap to generate an average lnL for the collection.

Uses this average to center the null distribution.

The test is very conservative, though, and very sensitive to the collection of trees used in centering the null distribution.

If there are only two trees in the collection, the ML tree and the tree we’re interested in testing, the SH test is identical to the KH test.

Shimodaira has applied multiscale bootstrapping to correct for this bias in the AU (almost unbiased) test

Page 6: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Parametric Bootstrap Tests

Generate the null distribution via simulation under the hypothesis being tested.

Assuming some hypothesis is true, what is the probability of an observed test statistic?

Ancient Fragmentation Hypothesis

Northern Dispersal HypothesisN. RockiesN. CascadesS. Cascades

Southern Dispersal Hypothesis

N. RockiesS. CascadesN. Cascades

PNW Biogeography

Page 7: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Parametric Bootstrap Tests

This tree has a likelihood score of lnL = -1593.01499

Page 8: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Parametric Bootstrap Tests

Can we reject an ancient fragmentation?

Force the tree to fit the predictions of our hypothesis, we get a much worse tree:lnL = -1612.50229

d = lnL(uconstrained) – lnL(constrained) = - 1593.01499 – ( - 1612.50229) = 19.487 lnL units.

If the true tee actually were the constrained tree (i.e., if the hypothesis being examined were actually true), what is the probability that we would see a tree that is

19.487 lnL units better, simply due to stochasticity?

So we simulate many replicate data sets under the hypothesis.

We first run an unconstrained search to find the ML tree for the replicate.

We then run a search constrained to find the best tree consistent with the hypothesis for each replicate.

Page 9: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Parametric Bootstrap Tests

Can we reject an ancient fragmentation?

We can reject a southern dispersal hypothesis as well and are left with the northern dispersal hypothesis that the tree suggests.

Page 10: Lecture 15 - Hypothesis Testing A. Competing a priori hypotheses - Paired-Sites Tests Null Hypothesis : There is no difference in support for one tree

Bayesian Hypothesis Testing

If we run a typical MCMC, we have sample of topologies that represent the posterior distribution of trees.

The proportion of the trees in the distribution that are consistent with the topological predictions of each hypothesis provide the posterior

probability of that hypothesis.

Remember the difference in Bayesian and frequentist perspectives, and the different interpretations of p-values this causes.