# interpretation of beta-diversity-group-significance box plots

**URL:** https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550
**Category:** User Support
**Created:** [November 19, 2019, 2:40pm UTC](https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550 "2019-11-19T14:40:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Archana](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@Archana](https://forum.qiime2.org/u/Archana)
#### Post date: [November 19, 2019, 2:40pm UTC](https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550/1 "2019-11-19T14:40:25Z")

</div>

Hello all,  
Can anyone pls help me to interpret my beta-diversity-group-significance results?  
I have 4 groups each containing 2 samples. total number of sample is 8. I am unable to understand why in all the four plots, the first box has appeared to be a line only. Did I make any mistake?

 ![excreta-boxplots](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/0/01653747b36921669b9d1627345624b00e4991ca.png)  
 ![gut-boxplots](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/a/aec93024fd38359a7067a3c91d366c48039ff33b.png)  
 ![leaf-boxplots](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/fadead44f70e38a30399289a6f1bbad222dc12bd.png)  
 ![soil-boxplots](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/f/f3f1734d33f182b941197fb1f2e8619ace5c9b40.png)

Any kind of help is highly appreciated.  
Best regards,

---

<div class="post-metadata">

### Author: ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)
#### Post date: [November 19, 2019, 3:37pm UTC](https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550/2 "2019-11-19T15:37:44Z")

</div>

Hi @Archana,

Welcome to the :qiime2: forum!

There aren't any glaring beta-diversity related mistakes, but, let's step back and start talking about beta diversity. So, when we measure beta diversity, we measure a distance. A distance always has to be between two points. (The distance from 💻 -\> 🍵; the distance from 🏠 -\> 🏥; the distance from 🇺🇸 -\> 🇸🇪 as a few examples.) For this discussion it doesn't really matter how you measured your distance (although check out the post at the bottom for more about the metrics.)

When you make your beta diversity boxplots, you're plotting the distribution of _distances_, and the n is the number of distances in the boxplot. So, then, if you have 💩\_{1} and 💩\_{2}, and 🍀\_{1} and 🍀\_{2}, you get the following distances:

- d(💩\_{1}, 💩\_{2})
- d(💩\_{1}, 🍀\_{1})
- d(💩\_{1}, 🍀\_{2})
- d(💩\_{2}, 🍀\_{1})
- d(💩\_{2}, 🍀\_{2})
- d(🍀\_{1}, 🍀\_{2})

If we group the distances, we have one distance that's d(🍀, 🍀), one distance that d(💩,💩), and four distances that are d(💩, 🍀).... which are exactly the numbers in your boxplot.

The place I might argue you have an issue is therefore not in the math, but in the sample size. A permutative test or kruskal-wallis won't work well with these sample numbers. They're just too small for statistics.

Best,  
Justine

* * *

> [@Alpha and Beta Diversity Explanations and Commands](https://forum.qiime2.org/t/alpha-and-beta-diversity-explanations-and-commands/2282):
>
> About the Alpha and Beta Diversity Analysis Tutorial This Alpha and Beta Diversity Community Tutorial (run using QIIME 2017.12) walks you through analyzing the alpha and beta diversity of a sample dataset. Below you will find a link to a small test dataset to download and use in this tutorial. Files used in tutorial The following files, derived from the [Moving Pictures tutorial](https://docs.qiime2.org/2017.12/tutorials/moving-pictures/), are used in this document. [table.qza](https://docs.qiime2.org/2017.12/data/tutorials/moving-pictures/table.qza)[rooted-tree.qza](https://docs.qiime2.org/2017.12/data/tutorials/moving-pictures/rooted-tree.qza)Alpha Diversity Analysis The alpha and alpha-phylogenetic met…

---

<div class="post-metadata">

### Author: ![Archana](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@Archana](https://forum.qiime2.org/u/Archana)
#### Post date: [November 19, 2019, 5:26pm UTC](https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550/3 "2019-11-19T17:26:28Z")

</div>

Hi Justine,  
The way you've explained it is just wow! Thanks a lot. 😇

---

<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: [December 20, 2019, 11:26pm UTC](https://forum.qiime2.org/t/interpretation-of-beta-diversity-group-significance-box-plots/12550/4 "2019-12-20T23:26:30Z")

</div>

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