Example of Bootstrapping for 2-sample means

A healthcare consultant wants to determine the difference in patient satisfaction ratings of two hospitals.

  1. Open the sample data, HospitalComparison.MTW.
  2. Choose Calc > Resampling > Bootstrapping for 2-Sample Means.
  3. In Samples, enter Rating.
  4. In Sample IDs, enter Hospital.
  5. Click Options. Enter 1 in Base for random number generator.
    Note

    Using Base for random number generator ensures that your results match the example.

  6. Click OK in each dialog box.

Interpret the results

The 95% CI indicates that the consultant can be 95% confident that the difference in population means of the patient satisfaction ratings of two hospitals is between 14.4 and 27.6. The histogram shows that the bootstrap distribution appears to be normal, so the consultant can trust the results.

Observed Samples

HospitalNMeanStDevVarianceMinimumMedianMaximum
A2080.308.1866.9662.0079.0098.00
B2059.3012.43154.5435.0058.5089.00

Difference in Observed Means

Mean of A - Mean of B = 21

Bootstrap Samples for Difference in Means

Number of
Resamples
AverageStDev95% CI for
Difference
100020.9603.279(14.400, 27.600)