Use Bootstrapping for 2-Sample Means to explore the sampling distribution of the difference between two population means of two independent groups and to estimate a confidence interval for the difference. For observations to be independent, the value of a particular observation does not depend on any previous observation. If your observations are not independent, your results may not be valid. For more information, go to How are dependent and independent samples different?.
For example, a healthcare consultant wants to estimate the difference in patient satisfaction ratings of two hospitals. The consultant uses a bootstrap for 2-sample mean to examine the sampling distribution of the difference and to estimate a confidence interval for the difference in satisfaction ratings.
To determine whether the population means of two independent groups differ, use Randomization Test for 2-Sample Means.