<P> A typical example of the repeated measures t - test would be where subjects are tested prior to a treatment, say for high blood pressure, and the same subjects are tested again after treatment with a blood - pressure lowering medication . By comparing the same patient's numbers before and after treatment, we are effectively using each patient as their own control . That way the correct rejection of the null hypothesis (here: of no difference made by the treatment) can become much more likely, with statistical power increasing simply because the random between - patient variation has now been eliminated . Note however that an increase of statistical power comes at a price: more tests are required, each subject having to be tested twice . Because half of the sample now depends on the other half, the paired version of Student's t - test has only n / 2 − 1 degrees of freedom (with n being the total number of observations). Pairs become individual test units, and the sample has to be doubled to achieve the same number of degrees of freedom . Normally, there are n − 1 degrees of freedom (with n being the total number of observations). </P> <P> A paired samples t - test based on a "matched - pairs sample" results from an unpaired sample that is subsequently used to form a paired sample, by using additional variables that were measured along with the variable of interest . The matching is carried out by identifying pairs of values consisting of one observation from each of the two samples, where the pair is similar in terms of other measured variables . This approach is sometimes used in observational studies to reduce or eliminate the effects of confounding factors . </P> <P> Paired samples t - tests are often referred to as "dependent samples t - tests". </P> <P> Explicit expressions that can be used to carry out various t - tests are given below . In each case, the formula for a test statistic that either exactly follows or closely approximates a t - distribution under the null hypothesis is given . Also, the appropriate degrees of freedom are given in each case . Each of these statistics can be used to carry out either a one - tailed or two - tailed test . </P>

Do sample sizes need to be equal for t test