# Hypothesis test for a difference between means

This document is prepared automatically using the following R command.

 library(interpretCI)x=meanCI.default(n1 = 100, n2 = 100, m1 = 200, s1 = 40, m2 = 190, s2 = 20, mu = 7, alpha = 0.05, alternative = "greater")interpret(x)

## Given Problem : One-Tailed Test

### 4. Interpret results.

Since the P-value (0.252) is greater than the significance level (0.05), we cannot reject the null hypothesis.

### Result of meanCI()


call: meanCI.default(n1 = 100, n2 = 100, m1 = 200, s1 = 40, m2 = 190,      s2 = 20, mu = 7, alpha = 0.05, alternative = "greater")
method: Welch Two Sample t-test
alternative hypothesis:
true unpaired differences in means is greater than  7

Results
# A tibble: 1 × 6
control test  DF     CI                     t       p
<chr>   <chr> <chr>  <chr>                  <chr>   <chr>
1 x       y     145.59 10.00 [95CI 2.60; Inf] 0.67082 0.2517

### Reference

The contents of this document are modified from StatTrek.com. Berman H.B., “AP Statistics Tutorial”, [online] Available at: https://stattrek.com/hypothesis-test/difference-in-means.aspx?tutorial=AP URL[Accessed Data: 1/23/2022].