Docsity

Inference on Two Samples - Notes | STAT 104, Study notes of Statistics

Toggle sidebar
bg1
Chapter 10
Inference on Two Samples
Section 10.1
Inference about Two Means
Dependent Samples
Independent versus Dependent Sampling
In order to perform inference on the difference of two population means, we
must first determine whether the data come from an independent or
dependent sample.
A sampling method is independent when the individuals selected for one
sample do not dictate which individuals are to be in a second sample.
A sampling method is dependent when the individuals selected to be in one
sample are used to determine the individuals to be in the second sample.
Dependent samples are often referred to as matched-pairs samples.
Example:
Determine whether the following are independent or dependent
samples.
1) A sociologist wishes to compare the annual salaries of married
couples. She obtains a random sample of 50 married couples in
which both spouses work and determines each spouse’s annual
salary.
2) A study was conducted by researchers designed “to determine
the genetic and nongenetic factors to structural brain
abnormalities on schizophrenia.” The researchers examined the
brains of 29 twin patients diagnosed with schizophrenia and
compared them with 29 healthy twins. The whole brain
volumes of the two groups were compared.
147
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Inference on Two Samples - Notes | STAT 104 and more Study notes Statistics in PDF only on Docsity!

Chapter 10

Inference on Two Samples

Section 10.

Inference about Two Means

Dependent Samples

Independent versus Dependent Sampling In order to perform inference on the difference of two population means, we must first determine whether the data come from an independent or dependent sample. A sampling method is independent when the individuals selected for one sample do not dictate which individuals are to be in a second sample. A sampling method is dependent when the individuals selected to be in one sample are used to determine the individuals to be in the second sample. Dependent samples are often referred to as matched-pairs samples. Example: Determine whether the following are independent or dependent samples.

  1. A sociologist wishes to compare the annual salaries of married couples. She obtains a random sample of 50 married couples in which both spouses work and determines each spouse’s annual salary.
  2. A study was conducted by researchers designed “to determine the genetic and nongenetic factors to structural brain abnormalities on schizophrenia.” The researchers examined the brains of 29 twin patients diagnosed with schizophrenia and compared them with 29 healthy twins. The whole brain volumes of the two groups were compared.

Hypothesis Tests When analyzing matched-pairs data, we compute the difference in each matched pair and then perform inference on the differenced data in the same manner we learned early. Paired Difference: d = x 1 – x 2 If we are going to make inferences on this new data, we need statistics dealing with this type of data. Sample Mean of the Differences: d n d d

 Sample Standard Deviation of the Differences: s d   1 2 2 

  n n d d sd d (^) is a new statistic that has a sampling distribution. E( d^ ) = d and Var( d^ ) = n d 2  To perform any sort of analysis on d , we need to make sure that d^ comes from a normal distribution When will d be normal?

  1. When the original populations are normal.
  2. When we obtain a sample greater than or equal to 30.

A (1 - )*100% Confidence Interval for d is given by Lower Limit: n s dt / 2 d Upper Limit: n s dt / 2 d Use the above example to construct a 99% confidence interval.

Section 10.

Inference about Two Means

Independent Samples

We will now turn our attention to inferential methods for comparing means from two independent samples. We will discuss only the case where the population standard deviations are unknown. Sampling Distribution of the Difference of Two Means: Independent Samples with Population Standard Deviations Unknown. Suppose a simple random sample of size n 1 is taken from a population with unknown mean  1 and unknown standard deviation  1. In addition, a simple random sample of size n 2 is taken from a population with unknown mean  2 and unknown standard deviation  2. If the two populations are normally distributed or the sample sizes are sufficiently large, then

2 2 2 1 2 1 (^1212) n s n s x x t        approximately follows a t-distribution with the smaller of n 1 – 1 or n 2 – 1 degrees of freedom. The hypothesis testing procedure will again be similar to what we have already done. However, now the null and alternative hypotheses will take one of the following forms: H 0 :  1 -  2 = 0 vs H 1 :  1 -  2  0 H 0 :  1 -  2 = 0 vs H 1 :  1 -  2 > 0 H 0 :  1 -  2 = 0 vs H 1 :  1 -  2 < 0

Section 10.

Inference about

Two Population Proportions

We will now discuss inferential methods for comparing two population proportions. Sampling Distribution of the Difference between Two Proportions. Suppose a simple random sample of size n 1 is taken from a population where x 1 of the individuals have a specified characteristic and a simple random sample of size n 2 is independently taken from a different population where x 2 of the individuals have a specified characteristic. The sampling distribution of p ˆ^1^ ^ p ˆ 2 is approximately normal with mean p 1 – p 2 and standard deviation 2 2 2 1 1 1 n p q n p q  (^) provided that n 1 p 1 ≥ 10, n 1 q 1 ≥ 10, n 2 p 2 ≥ 10 and n 2 q 2 ≥ 10. Now that we know the approximate sampling distribution of p ˆ 1^ ^ p ˆ 2 , we can introduce a procedure that can used to test claims regarding two population proportions. Let us first consider the test statistic. It would seem logical that the test statistic would be   2 2 2 1 1 1 ˆ 1 ˆ 2 ( 1 2 ) n p q n p q p p p p Z      However , when we test a hypothesis, the null hypothesis is assumed true. When comparing two population proportions, the null hypothesis will always be H 0 : p 1 – p 2 = 0. This null hypothesis is assuming that the value of p 1 equals the value of p 2. Since the null hypothesis is assumed to be true, we are assuming p 1 = p 2 = p , where p is the common population proportion.

Substituting the value of p into the equation for the test statistic, we obtain a new test statistic

1 2 1 2 1 1 ˆ ˆ n n pq p p Z    We need a point estimate of p because it is unknown. The best point estimate of p is called the pooled estimate of p , denoted p ˆ^. Pooled Estimate of p 1 2 ˆ 1 2 n n x x p    Hence, the test statistic we will use in hypothesis testing is

1 2 1 2 1 1 ˆ ˆ ˆ ˆ n n p q p p Z    Confidence Intervals for the Difference between Two Population Proportions

Lower Limit: ^ ^

2 2 2 1 1 1 1 2 / 2 ˆ ˆ ˆ ˆ ˆ ˆ n p q n p q ppz  

Upper Limit: ^ ^

2 2 2 1 1 1 1 2 / 2 ˆ ˆ ˆ ˆ ˆ ˆ n p q n p q ppz   Notice that we do not pool the sample proportions. This is because we are not making any assumptions regarding their equality as we did in hypothesis testing. Example: On April 12, 1955, Dr. Jonas Salk released the results of clinical trials for his vaccine to prevent polio. In these clinical trials, 400,