SOLUTION: Two-Sample T-Test We want to know whether the means of two populations on some outcome differ. For example, we want to compare two categories of males and females two populations’

Algebra ->  Probability-and-statistics -> SOLUTION: Two-Sample T-Test We want to know whether the means of two populations on some outcome differ. For example, we want to compare two categories of males and females two populations’      Log On


   



Question 140488: Two-Sample T-Test
We want to know whether the means of two populations on some outcome differ. For example, we want to compare two categories of males and females two populations’ age difference in purchasing concert tickets. The two-sample t-test is a hypothesis test for answering questions about the mean where the data are collected from two random samples of independent observations, each from an underlying normal distribution:
The steps of conducting a two-sample t-test are quite similar to those of the one-sample test. And for the sake of consistency, we will focus on another example dealing with ages of ticket purchase.
Returning to the two-sample t-test, the steps to conduct the test are similar to those of the one- sample test.
Establish hypotheses
The first step to examining this question is to establish the specific hypotheses we wish to examine. Specifically, we want to establish a null hypothesis and an alternative hypothesis to be evaluated with data.
In this case:
• Null hypothesis is that the difference between the two groups is 0. Another way of stating the null hypothesis is that the difference between the mean of the treatment group of ages for ticket purchasers and the mean of the men and women who purchase tickets is zero.
Calculate test statistic
Calculation of the test statistic requires three components:
1. The average of both sample (observed averages)
Statistically, we represent these as

2. The standard deviation (SD) of both averages
Statistically, we represent these as

3. The number of observations in both populations, represented as

From hospital records, we obtain the following values for these components:
men women
Average age 29.87 31.67
SD 8.45 8.10
n 15 15
With these pieces of information, we calculate the following statistic, t:

Use this value to determine p-value
Having calculated the t-statistic, compare the t-value with a standard table of t-values to determine whether the t-statistic reaches the threshold of statistical significance.
With a t-score -1.80 not significant, the p-value is 0.7218, a score that forms our basis to reject the null hypothesis and conclude that the age data for both male and female who purchase tickets are not 34.

Answer by stanbon(75887) About Me  (Show Source):
You can put this solution on YOUR website!
Calculation of the test statistic requires three components:
1. The average of both sample (observed averages)
Statistically, we represent these as
Ans: u1 and u2
--------------------
2. The standard deviation (SD) of both averages
Statistically, we represent these as
s1 and s2
--------------------------
3. The number of observations in both populations, represented as
n1 and n2
---------------------
From hospital records, we obtain the following values for these components:
men women
Average age 29.87 31.67
SD 8.45 8.10
n 15 15
With these pieces of information, we calculate the following statistic, t:
t(29.87-31.67) = (-1.8 - 0)/[8.45^2/15 + 8.10^2/15] = -1.8/3.0222 = -0.5956
-----------------------
Use this value to determine p-value
p-value = p(-0.5956 < z < 10) = 0.7243...
-------------------------
Having calculated the t-statistic, compare the t-value with a standard table of t-values to determine whether the t-statistic reaches the threshold of statistical significance.
Critical value of one-tail t-test with df = 29 and alpha=5%: t=-1.645
-------------------------
With a t-score -1.80 not significant, the p-value is 0.7218, a score that forms our basis to reject the null hypothesis and conclude that the age data for both male and female who purchase tickets are not 34.
Is this a statement or a question?
====================
Cheers,
Stan H.