Really have no idea where to start :(
In an experiment comparing two weight-loss regimes A and B 20 test subjects were matched into 10 pairs so that within each pair the subjects were as similar as possible. Then A was randomly allocated to one of the subjects in each pair, and then B allocated to the other. The number of kilograms lost for each person is obtained and then the ordered A−B differences for each pair (in kg) are given below in the object d, together with some summary statistics:
sort(d) [1] -0.9 -0.3 0.2 0.4 0.6 1.2 1.4 3.3 3.5 4.3
mean(d) [1] 1.37
sd(d) [1] 1.755025
By specifying and checking (with a boxplot) an appropriate normality assumption perform a formal hypothesis test of H0:“regimes the same” against H1:“regimes not the same”.
Any help is appreciated!
Here's some steps and rationale:
If your |T|>|K|, reject the null.