# Confidence values - taxonomic assignment

**URL:** https://forum.qiime2.org/t/confidence-values-taxonomic-assignment/13199
**Category:** User Support
**Created:** [January 14, 2020, 9:45pm UTC](https://forum.qiime2.org/t/confidence-values-taxonomic-assignment/13199 "2020-01-14T21:45:06Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [January 14, 2020, 11:29pm UTC](https://forum.qiime2.org/t/confidence-values-taxonomic-assignment/13199/2 "2020-01-14T23:29:48Z")

</div>

Welcome to the forum @uschuette!

This topic describes how the confidence score is calculated:

> [@How is the "Confidence" calculated with taxa assignments?](https://forum.qiime2.org/t/how-is-the-confidence-calculated-with-taxa-assignments/179/3):
>
> Thanks @John_Chase, the Confidence column isn't documented yet, sorry. It is not yet a stable feature. For the current release, I have tried to mimic the way that RDP classifier calculates confidence values. Also, confidence is only calculated and used if the confidence parameter is set to a non-negative value when calling the classify method. The basic classification method is to decompose the read into a bag of overlapping 8-mers, then feed that as input to the machine learning (Naive Bayes …

> [@uschuette](#):
>
> I cannot just infer from the confidence value which taxonomic level the ASV can be assigned to. Is that correct? For example, if we have an ASV that is assigned to the genus _Polynucelobacter_ with a value of 0.94, I cannot just assign the ASV to the corresponding family (Burkholderiaceae), correct?

The confidence values reported are for the level that is reported... so e.g., the 0.94 confidence is for the genus that is reported and you cannot infer from that what confidence you will have for family-level classification from that score.

> [@uschuette](#):
>
> Can we set the cutoff for the confidence level to e.g. 0.95 prior to analysis so that ASVs are only assigned down to a taxonomic level where I have a confidence value of \>0.95, or am I missing something about what the confidence value actually means?

Yes, that's what the confidence parameter in this method will do for you. In practice, you should just stick with the default (c=0.7), as it strikes the correct balance between precision/recall — c=0.95 is likely to be way too strict and result in quite poor classification. See the benchmarks here for the evidence, and how the default setting was chosen:

> **[Optimizing taxonomic classification of marker-gene amplicon sequences with...](https://microbiomejournal.biomedcentral.com/articles/10.1186/s40168-018-0470-z)**
>
> Background Taxonomic classification of marker-gene sequences is an important step in microbiome analysis. Results We present q2-feature-classifier ( https://github.com/qiime2/q2-feature-classifier ), a QIIME 2 plugin containing several novel...

---

_[View the full topic](https://forum.qiime2.org/t/confidence-values-taxonomic-assignment/13199)._
