Now do a two sample Welch t test of $H_0: \mu_1=\mu_2$
against $H_a: \mu_1 > \mu_2,$H_a: \mu_1 > \mu_2,$ using t.test
in R:
If you do a 2-sided t test, then the P-value is calculated
by looking both in the lower tail below $-2.6864$ and in the upper tail above $2.6864.$ [By using $
-notation, we show only the P-value.]
ComputedThis P-value for a 2-sided test is computed as follows:
Alternatively, byusing the symmetry of the t distribution:
Note: Quantities in the output toof the test are rounded slightly
to save space, so there is a tiny discrepancy with the P-values shown just above.