Add Statistical Significance Annotations on Seaborn Plots

Add Statistical Significance Annotations on Seaborn Plots

Have you ever looked at two box plots and wondered if there is a significant difference between the means of the two groups? statannotations makes it easy for you to add statistical significance annotations on seaborn plots.

In the code above, we use an independent t-test to compare the means of two independent groups.

From the plot, we can see that there is statistical evidence that the mean taxi fare in Manhattan is significantly different from the mean taxi fare in Brooklyn or Bronx, or Queens.

Full code.

Link to statsannotations.

Search

Related Posts

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran