I have two samples of size 20 and I want to see if the difference between the geometric means is significant using two-sample t-statistic and bootstrap sampling.
Here is what I'm doing
# assume we have sample_A and sample_B and number of repetitions for bootstrap sampling is 100
num_repetitions = 100
# sample_A
sample_A_geometric_means = []
for i in range(num_repetitions):
# randomly sample from sample_A with replacement and the same size
s = np.random.choice(sample_A, size=len(sample_A))
# calculate geometric mean
geom_mean = geometric_mean(s)
sample_A_geometric_means.append(geom_mean)
# do the same for sample_B and get sample_B_geometric_means
# calculate the two-sample t-statistic with sample_A_geometric_means and sample_B_geometric_means
t_stat = two_sample_t_test(sample_A_geometric_means, sample_B_geometric_means)
If I run this multiple times with different random seeds, geometric means vary a lot as I'm using bootstrap sampling. This in turn makes t-stat vary quite widely. Sometimes it is less than 2 but other times is greater than 4.
How should I reconcile this? What t-stat value should I be reporting? If every time I run this and get a very different t-stat value, what does it say about the process?
Is there another method to show if the difference between the geometric means of the two samples significant?