Statistical Inference in Annotated Phylogenetic Trees