# ANCOM, testing assumptions, filtering

**URL:** <https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752>\
**Category:** User Support\
**Tags:** ancom\
**Created:** [January 26, 2018, 11:30pm UTC](https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752 "2018-01-26T23:30:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessicalmetcalf](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jessicalmetcalf/32/7328_2.png) [@jessicalmetcalf](https://forum.qiime2.org/u/jessicalmetcalf)\
**Post date:** [January 26, 2018, 11:30pm UTC](https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752/1 "2018-01-26T23:30:03Z")

</div>

Hi, I was wondering whether you can recommend a way to test the ANCOM assumption that most taxa are shared/not-changing between groups? I was thinking something like the qiime1 shared\_phylotypes. I am assuming that there is a better chance of meeting the assumption at collapsed taxa levels vs sequence variants. Also, do you recommend filtering rare taxa/features before running ANCOM to help meet assumptions?

Thank you!

---

<div class="post-metadata">

**Author:** ![Mehrbod\_Estaki](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mehrbod_estaki/32/4001_2.png) [@Mehrbod\_Estaki](https://forum.qiime2.org/u/Mehrbod_Estaki)\
**Post date:** [January 29, 2018, 8:55pm UTC](https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752/3 "2018-01-29T20:55:56Z")

</div>

Great question! I'm also curious as to how to test the [assumptions](https://docs.qiime2.org/2017.12/tutorials/moving-pictures/#differential-abundance-testing-with-ancom) for ANCOM (i.e less than 25% of features changing between groups). An extension to the question, how does this exactly work across multiple groups? 25% change across pairs or overall?

@jessicalmetcalf, from this [thread](https://forum.qiime2.org/t/ancom-giving-strange-w-values/1002/3) it sounds like too many zeros or low counts are better off removed:

> Low counts / zeros could cause false positives in ANCOM

---

<div class="post-metadata">

**Author:** ![mortonjt](https://forum.qiime2.org/user_avatar/forum.qiime2.org/mortonjt/32/3488_2.png) [@mortonjt](https://forum.qiime2.org/u/mortonjt)\
**Post date:** [January 30, 2018, 2:21am UTC](https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752/4 "2018-01-30T02:21:43Z")

</div>

To add to @Mehrbod_Estaki's links, this is part of the problem when dealing with these sorts of data types. You can't really evaluate the resulting test statistic to see if the statistical test is appropriate. This ultimately boils down to the number of actual dimensions that we can actually observe. If there are D species, we can only observe D-1 dimensions, since we are dealing with data of proportions.

It boils down to how proportions work. If you have variables x\_1 + x\_2 + x\_3 = 1. And you happen to know the quantities for x\_1 and x\_2, you have already figured out the quantity of x\_3 because you already know that they add up to 1. Hence you can solve all 3 of these variables only knowing two of the variables (hence it is two dimensional).

The plot thickens when you have multiple measurements for x\_1, x\_2 and x\_3. And you are trying to figure out which of the underlying quantities actually changed across the samples. It turns out that this is actually not possible due to compositionality (which is also known as [identifiabilty](https://en.wikipedia.org/wiki/Identifiability)). The only think that we can do is make simplifying assumptions to obtain a guess. Rather or not that this assumption holds is beyond what we can do at the moment.

Concerning how ANCOM deals with multiple groups is just defining how the subhypothesis test is defined. As explained [here](https://forum.qiime2.org/t/specify-w-cutoff-for-anacom/1844/10) you can define the hypothesis to be the difference between means. If you instead use an ANOVA to handle multiple groups, you are testing for the hypothesis that all of the groups have the same mean (here is a fairly intuitive explanation behind [ANOVA](https://stats.stackexchange.com/questions/183559/what-question-does-anova-answer?rq=1))

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [March 2, 2018, 8:25am UTC](https://forum.qiime2.org/t/ancom-testing-assumptions-filtering/2752/6 "2018-03-02T08:25:28Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
