Question

In: Statistics and Probability

2. Suppose that we want to test for the difference between two population means. Explain under...

2. Suppose that we want to test for the difference between two population means. Explain under what conditions we would use the t-test and under what conditions we would use the z-test. Explain the differences between the two tests.

Type all your answers. Try to write at least one page

Solutions

Expert Solution

Parametric t and z tests are used to compare the means of two samples. The calculation method differs according to the nature of the samples. A distinction is made between independent samples or paired samples. The t and z tests are known as parametric because the assumption is made that the samples are normally distributed.

Take a sample S1 comprising n1 observations, of mean µ1 and variance s1². Take a second sample S2, independent of S1 comprising n2 observations, of mean µ2 and variance s2². Let D be the assumed difference between the means (D is 0 when equality is assumed).

As for the z and t tests on a sample, we use:

  1. Student's t test if the true variance of the populations from which the samples are extracted is unknown;
  2. The z test if the true variance s² of the population is known.

Student's t Test :-

If we consider that the two samples have the same variance, the common variance is estimated by:

s² = [(n1-1)s1² + (n2-1)s2²] / (n1 + n2 - 2)

The test statistic is therefore given by:

t = (µ1 - µ2 -D) / (s √1/n1 + 1/n2)

The t statistic follows a Student distribution with n1 + n2 - 2 degrees of freedom.

If we consider that the variances are different, the statistic is given by:

t = (µ1 - µ2 -D) / (√s1²/n1 + s2²/n2)

z-Test

For the z-test, the variance s² of the population is presumed to be known. The user can enter this value or estimate it from the data (this is offered for teaching purposes only). The test statistic is given by:

z = (µ1 - µ2 -D) / (σ √1/n1 + 1/n2)

The z statistic follows a normal distribution.

Comparison of the means of two paired samples

If two samples are paired, they have to be of the same size. Where values are missing from certain observations, either the observation is removed from both samples or the missing values are estimated.

We study the mean of the calculated differences for the n observations. If d is the mean of the differences, s² the variance of the differences and D the supposed difference, the statistic of the t test is given by:

T= (d-D) ⁄ (s/√n)

The t statistic follows a Student distribution with n-1 degrees of freedom.

For the z test, the statistic is as follows where σ² is the variance

z= (d-D) ⁄ (σ/√n)

The z statistic follows a normal distribution.

Alternative hypotheses

Three types of test are possible depending on the alternative hypothesis chosen:

  • two-tailed test,
  • left-tailed test,
  • right-tailed test.

Related Solutions

Suppose we are interested in testing null hypothesis that difference of two population means is the...
Suppose we are interested in testing null hypothesis that difference of two population means is the same. Consider two samples collected from a normal population. x 4.2 4.5 4.9 5.6 5.7 5.9 6.1 6.3 6.8 7.1 7.3 7.8 8.4 8.6 9.1 9.7 10.2 y 5.6 5.9 6.5 7.8 8.5 9.3 We need to testH0:x=yvsHa:x̸=yWe can use R-command t.test to compute the p-value and the confidence interval.> x = c ( 4.2 ,4.5,4.9,5.6,5.7 ,5.9, 6.1, 6.3 , 6.8 , 7.1 ,...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 10% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 10% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 2% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 2% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
Suppose we want to test whether or not three means are equal. We want to perform...
Suppose we want to test whether or not three means are equal. We want to perform this test with a 7% significance level. If we perform an ANOVA test, what is the probability of the test producing accurate results (avoiding a Type I error)? Suppose we, instead, run three separate hypothesis tests (t-tests), each with 7% significance level. Mean 1 = Mean 2 Mean 1 = Mean 3 Mean 2 = Mean 3 What is the probability that all three...
10.4 Comparing two means: Paired samples "We want to know if there is a difference between...
10.4 Comparing two means: Paired samples "We want to know if there is a difference between the size of the shoe between mother and daughter, for which a sample of 10 pairs of mother and daughter is taken and a hypothesis test is performed." Mother 7   7   8   8   6   9   8   6   7   9   Daughter 7 6 8 6 9 8 8 7 8 7 1. State the hypotheses 2. what is the average value of the paired differences...
Test the claim about the difference between two population means μ1 and μ2 at the level...
Test the claim about the difference between two population means μ1 and μ2 at the level of significance alpha α. Assume the samples are random and​ independent, and the populations are normally distributed. ​Claim:  1μ1=2μ2​  alphaα=0.01 Population​ statistics 1σ1=3.33.3​, 2σ2=1.61.6 Sample​ statistics:x overbar 1x1=14, n1=29​, 2x2=16​, n2=28 Determine the standardized test statistic. Determine P value
Suppose independent random samples that are taken to test the difference between the means of two...
Suppose independent random samples that are taken to test the difference between the means of two populations (n1 = 66 and n2 =46). The variances of the populations are unknown but are assumed to be unequal. The sample standard deviations are s1=82 and s2=68. The appropriate distribution to use is the: A) t distribution with df = 110 B ) t distribution with df = 107 C) t distribution with df = 106 D) F distribution with numerator df =...
Consider the following statements. (i). If we are testing for the difference between two population means,...
Consider the following statements. (i). If we are testing for the difference between two population means, it is assumed that the sample observations from one population are independent of the sample observations from the other population. (ii). If we are testing for the difference between two population means, it is assumed that the two populations are approximately normal and have equal variances. (iii). The critical value of t for a two-tail test of the difference of two means, a level...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT