1-Sample T-Test: The Steps For Calculating A Single-Sample T-Test "From Scratch" Are

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1-Sample t-test -- Analysis of the mean value for a single sample/population

Application: To test whether the mean of a sample is equivalent to the hypothesized mean of a particular population. Most folks are familiar with the t-test for comparing the means of two independent groups and the t-testfor comparing the means of two dependent groups. There is also a third type of t-test, called a Single-Sample t-test. The Single Sample version is used when you want to test whether the mean of a single sample is different from some specific "hypothesized" or "population" mean. This t-test is very useful to help determine if your sample represents the population of interest, by computing one or more single sample t-tests to see if the demographics of your sample are consistent with what you would expect of a representative sample. H0: The mean of the sample equals the hypothesized mean of the population -- symbolically expressed as H0: X = To reject H0 : is to say that the sample mean is different from (either larger or smaller) than the hypothesized population mean. The data: You have collected the age of each participant in your study. Research Hypothesis: You intend the sample to represent a population with a mean age of 20 years. The RH: and H0: are often the same for this analysis ! H0: for this analysis : The mean age of the sample is equivalent to (not significantly different from) 20 years.

The steps for calculating a Single-Sample t-test "from scratch" are:


1. Determine the "hypothesized" or "population" mean = 20

2. Compute the sample mean

_ X X

X / n

19+18+17+17+19+18+20+19+20 / 9

18.56

3. Compute X

19 +18 +17 +17 +19 +18 +20 +19 +20

3109

4. Compute SS (Sums of Squares)

SS =

X -

(X) ------n

3109

(167) -----9

10.22

5. Compute s (variance)

SS / (n-1)

10.22 / 8

1.28

6. Compute SEM (Standard Error of the Mean)

SEM

_________ s / n

_________ 1.28 / 9

.38

7. Compute t

( - X) /

SEM

(20 - 18.6) / .38

3.68

8. Determine degrees of freedom for t

df

n - 1

9 1

9. Determine critical value for t with that degrees of freedom and = .05

t(8) = 2.31

10. Compare the ABSOLUTE VALUE of your obtained t (3.68) to the critical value. a. If the absolute value of your obtained t is larger than the tabled value, then the sample is significantly different from the "hypothesized" or "population" mean. b. If the absolute value of your obtained t is smaller than the tabled value, then the sample is not significantly different from the "hypothesized" or "population" mean.

Our outcome conforms to Step 10(a), so we would conclude that our sample is younger than the population it was to represent. Thus, we should NOT use the results from this sample to represent the college population.
Reporting the Results of the single-sample t-test includes two parts, the verbal part and the report of the t-value, degrees of freedom (parenthetically) and the associated p-value. For these data that would be:

Statistical analysis revealed that the sample was younger than intended, with a mean age of 18.56 years,rather than the intended mean of 20 years (t(9) = 3.68, p<.05).

Other ways to calculate single-sample t-tests


Often, when you want to perform a 1-sample t-test, you will not have access to the raw data. For example, a researcher reports their interest in sampling from a population with a typical salary of $25,000, and that the mean salary of their sample was $17,500 with a standard error of the mean of $1,500. You might want to do the 1-sample t-test to see if their "wants" and "gots" agreed. But, you don't have the raw data, only the null mean ($25,000), sample mean ($17,500) and SEM ($1,500). _ The "basic" formula for a 1-sample t-test (as shown above) is: - X This is the one you would use, given the information you have t = ----------from the story. SEM Here are two other formulas for the single-sample t-test -- notice that they differ only in terms of the measure of variability (standard deviation "std" OR variance "var").

_ - X ----------___ std / n

_ - X -----------___________ var / n

So, there you have different 1-sample t-test formulas, depending upon whether you start with raw data, mean & SEM, mean & standard deviation, or mean & variance.

t-Table
df 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Critical values of t for = .05 & = .01


= .05 12.71 4.30 3.18 2.78 2.57 2.45 2.36 2.31 2.26 2.23 2.20 2.18 2.16 2.14 2.13 2.12 2.11 = .01 63.66 9.92 5.84 4.60 4.03 3.71 3.50 3.36 3.25 3 17 3.11 3.06 3.01 2.98 2.95 2.92 2.90 df 18 19 20 21 22 23 24 25 26 27 28 29 30 40 60 120 Infinity = .05 2.10 2.09 2.09 2.08 2.07 2.07 2.06 2.06 2.06 2.05 2.05 2.04 2.04 2.02 2.00 1.98 1.96 = .01 2.88 2.86 2.84 2.83 2.82 2.81 2.80 2.79 2.78 2.77 2.76 2.76 2.75 2.70 2.66 2.62 2.58

You might also like