Chapter 9: Inferences from Two Samples

Section 9.2 Two Means: Independent Samples

Two Independent / Dependent Samples

Independent Samples: when the sample values from one population are not related to or somehow naturally paired or matched with the sample values from the other population

Dependent Samples (matched pairs): when the samples are somehow matched, where the matching is based on some inherent relationship

  • Each pair of sample values consists of two measurements from the same subject, such as…

    • before/after data

    • …or each pair of sample values consists of matched pairs (such as husband/wife data) where the matching is based on some meaningful relationship


Assumptions

  1. The two samples are independent

  2. Both samples are simple random samples

  3. Either or both of these conditions is satisfied: The two sample sizes are both large (n1 > 30) and from (n2 > 30) or both samples come from populations having normal distributions


Comments:

  • Do not pool variances

  • df = smaller of n1 - 1 and n2 - 1


Hypothesis Test Statistic for Two Mean: Independent Samples

  • μ\mu= claimed population mean

    • Very often, the two claimed population means will be equal to each other


Confidence Variable

and the degrees of freedom is determined as the smaller of (n1 - 1) and (n2 - 1)


Example 1

Many studies have been conducted to test the effects of marijuana use on mental abilities. In one such study, groups of light and heavy users of marijuana in college were tested for memory recall, with the results given in the following table.

  • The light users had a mean of 53.3

  • The heavy users had a mean of 51.3


Is this difference significant?

  • Take into account:

    • The sample sizes

    • The magnitude of the difference

    • etc.

  • Since we can’t do all of this in our minds, we use a formal structure of a hypothesis test


Use a 0.01 significance level to test the claim that the population of heavy marijuana users has a lower mean than the light users. Should marijuana use be of concern to college students?

  • Is μ\mu1 greater than μ\mu2

  • We know that 53.3 is a number greater than 51.3 BUT does this suggest that the light marijuana users greater than the heavy marijuana users?


  • The picture above contains the key components needed to procede


Steps for Testing Hypotheses:

  1. Identify the claim and put it into symbolic form (\mu_1>\mu_2) 

  2. Put the opposite of the claim in symbolic form (μ1μ2\mu_1\le\mu_2)

  3. Look at the previous steps and identify the alternative hypothesis
    H1: \mu_1>\mu_2 (alternative hypothesis)
    H0μ1=μ2\mu_1=\mu_2 (null hypothesis)


=(53.351.3)036264+4.5265=\frac{\left(53.3-51.3\right)-0}{\sqrt{\frac{36^2}{64}+\frac{4.5^2}{65}}}

t = 2.790


P-value

for t = 2.79 and df = 63:

  • The table is a right-tailed test

  • “df” is found through finding the degrees of freedom of both samples and choosing the smallest number

  • 2.79 is father off to the left (bigger than any of the bolded values) on the table

    • Based on this, we can include the P-value is less than 0.005


  • When using the traditional approach…

  • The critical value could be looked up from the table above the bell-curve

    • Look at .01 under “Area in One Tail” since the significance level is .01

    • Picking either 2.390 OR 2.385 will leave the same conclusion, which is…

  • To therefore REJECT the null hypothesis (H0) because the t-score falls in the critical region

    • There is sufficient evidence to support the original claim that heavy marijuana users scored lower than light marijuana users


98% Confidence Interval (if we were to proceed with this)

and the degrees of freedom is determined as the smaller of (n1 - 1) and (n2 - 1)

=2.393.6264+4.5265=1.71=2.39\sqrt{\frac{3.6^2}{64}+\frac{4.5^2}{65}}=1.71

This provides the confidence interval
(53.351.3)±1.71=(0.3,3.7)\left(53.3-51.3\right)\pm1.71=\left(0.3,3.7\right)

Since this interval excludes zero, we REJECT the null hypothesis




Section 9.3 Two Dependent Samples (Matched Pairs)

Two Independent / Dependent Samples

Independent Samples: when the sample values from one population are not related to or somehow naturally paired or matched with the sample values from the other population

Dependent Samples (matched pairs): when the samples are somehow matched, where the matching is based on some inherent relationship

  • Each pair of sample values consists of two measurements from the same subject, such as…

    • before/after data

    • …or each pair of sample values consists of matched pairs (such as husband/wife data) where the matching is based on some meaningful relationship


Assumptions

  1. The two samples are dependent (Matched pairs)

  2. Both samples are simple random samples

  3. Either or both of these conditions is satisfied: The two sample sizes are both large (n1 > 30) and from (n2 > 30) or both samples come from populations having normal distributions


Hypothesis Test Statistic for Matched Pairs of Sample Data

t=dμdSdnt=\frac{\overline{d}-\mu_{d}}{\frac{S^{d}}{\sqrt{n}}}

where degrees of freedom = n - 1

  • d = individual difference between the two values in a single matched pair

  • μd\mu_{d}= The mean of the differences from the population of matched data // mean value of the differences d for the population of all matched pairs of data

  • d\overline{d} = mean value of the differences d for the paired sample data

  • sd = standard deviation of the differences d for the paired sample data

  • n = number of pairs of sample data


Confidence Intervals for Matched Pairs

\overline{d}-E<\mu_{d}<\overline{d}+E

where

E=ta2sdnE=t_{\frac{a}{2}}\frac{s_{d}}{\sqrt{n}}

Here ta/2 is the critical value obtained using Table A-3 with n - 1 degrees of freedom


Example 1

The following table consists of five actual low temperatures and the corresponding low temperatures that were predicted five days earlier

Actual low

1

-5

-5

23

9

Forecast low

16

16

20

22

15

Difference d

-15

-21

-25

1

-6

Use a 0.05 significance level to test the claim that there is a difference between the actual low temperatures and the low temperatures that were forecast five days earlier.


t=dμdSdnt=\frac{\overline{d}-\mu_{d}}{\frac{S^{d}}{\sqrt{n}}}


=13.2010.75=\frac{-13.2-0}{\frac{10.7}{\sqrt5}}  

  • We’re saying that μd=0\mu_{d}=0 because we’re operating under the assumption that the mean difference is equal to 0


  • Since the claim was that there is a difference between the actual low and the forecast low…

    • That’s really the claim that μd0\mu_{d}\ne0  

    • If we’re saying that that is NO difference between the actual low and the forecast low, the claim would be μd=0\mu_{d}=0

  • Therefore…

    • H1 (alternative hypothesis) : μd0\mu_{d}\ne0  

    • H2 (null hypothesis) : μd=0\mu_{d}=0


=13.24.785=\frac{-13.2}{4.785}


=2.759=-2.759


H1 : μd0\mu_{d}\ne0 (claim)

    d13.2\overline{d}-13.2

    sd=10.7s_{d}=10.7

    α=0.5\alpha=0.5

H0 : μd=0\mu_{d}=0

    t = -2.759


  • Because t is not in the critical region, we fail to reject the null hypothesis

  • “I don’t have sufficient evidence to support the claim that the mean difference is different than 0”


For the Confidence Interval…

We use

d=13.2\overline{d}=-13.2              sd=10.7s_{d}=10.7               n = 5                        

ta2=2.776t_{\frac{a}{2}}=2.776

E=ta2sdn=2.77610.75=13.3E=t_{\frac{a}{2}}\frac{s_{d}}{\sqrt{n}}=2.776\cdot\frac{10.7}{\sqrt5}=13.3


\overline{d}-E<\mu_{d}<\overline{d}+E

-13.2-13.3<\mu_{d}<-13.2+13.3

-26.5<\mu_{d}<0.1

  • We end up with this 95% confidence interval

    • 95% confident that the limits of -26.5 and 0.1 contain the true population mean difference

  • The confidence interval limits do contain 0, suggesting that it might well be that the population mean difference is the value of 0

    • Indicating that there is not a significant difference between actual temperature and forecast temperatures

  • If the


What design principle is stressed for experiments or observational​ studies?

A. When using paired​ data, keep the sample very small in order to keep the data manageable.

B. The methods for dependent samples can be used for any matched pairs.

C. Using two independent samples is the best choice for accurate results.

D. Using dependent samples with paired data is generally better than using two independent samples.