Example of 2-Sample t

A healthcare consultant wants to compare the patient satisfaction ratings of two hospitals.

The consultant performs a 2-sample t-test to determine whether there is a difference in the patient ratings between the hospitals.

  1. Open the sample data, HospitalComparison.MTW.
  2. Open the 2-Sample t dialog box.
    • Mac: Statistics > 2-Sample Inference > t
    • PC: STATISTICS > Two Samples > t
  3. From the drop-down list, select Both samples are in one column.
  4. In Samples, enter Rating.
  5. In Sample IDs, enter Hospital.
  6. Click OK.

Interpret the results

The null hypothesis states that the difference between ratings for the two hospitals is 0. Because the p-value is less than 0.0001, which is less than the significance level of 0.05, the consultant rejects the null hypothesis and concludes that the ratings for the two hospitals differ.

Method
μ₁: mean of Rating when Hospital = A
μ₂: mean of Rating when Hospital = B
Difference: μ₁ - μ₂
Equal variances are not assumed for this analysis.
Descriptive Statistics: Rating
Hospital
N
Mean
StDev
SE Mean
Estimation for Difference
Difference
Test
H₀: μ₁ - μ₂ = 0
H₁: μ₁ - μ₂ ≠ 0
T-Value
DF
P-Value
By using this site you agree to the use of cookies for analytics and personalized content.  Read our policy