Statistics, Machine Learning, Data Science, Financial Planning, Python.
not the best post-hoc test to use if you have groups with unequal sample sizes. import numpy as np import pandas as pd import statsmodels.api as sm from statsmodels.stats.multicomp import pairwise_tukeyhsd # Sample data for three groups (replace these with your actual data) group1 = [23, 25, 28,