Psychology 320: Psychological Statistics

Professor: Howard B. Lee

Lecture Notes

Week 8 : Chapter 8

Review of sampling distribution

One sampling distribution is one of sample means. From the Central Limit Theorem we know that regardless of the shape of the population distribution, if all samples of size n are drawn from the population, the sample means will be approximately normal in their distribution. Also the mean of the sample means is equal to the population mean. hypothesis test2
Lecture 18

Student 's T-Test

T-test
A hypothesis test based on a small sample, leading to a t-score and examination of a critical value of the t distribution.
The student's t-test is a test between means. It is used to find out if one group is different than another group.

Ex. Is therapy A better than therapy B?
Is teaching method 1 better than teaching method 2?
Is the lot acceptable ( in quality control ) ?

Ex. Manufacturer of televisions warranty is 3 years (population mean is 3 years).
7 owners found their set to fail before 3 years.
The sample = the number of years until the set failed: 2.5, 1.9, 1.7, 2.8, 2.9, 2.7., 2.1
Question:
1) Is this a chance occurrence - meaning there is nothing wrong with the manufacturing process?
2) Does the manufacturer have production problems?

Pre-established information, such as a manufacturer's claim, should be taken as the null hypothesis.
ho: manufacturer's claim is correct.
h1: manufacturer's claim is incorrect/wrong.
hypothesis test

* In this class, the null hypothesis is the only one that will contain an equal sign.

Steps to hypothesis testing:

  1. Null hypothesis statement
  2. Alternative hypothesis statement
  3. Compute something; "the test statistic"
  4. Decision rule
  5. Conclusion

3) Student's t-test
hypothesis test2

( use N to calculate SD on your calculator, not n-1! )
M = 2.371
SD = .4366
hypothesis test

-3.529 = "the test statistic"

Use the t-table on p. 405


Lecture 19

4) The Decision rule:

hypothesis test

"5% of the time I will reject ho when ho is true."
Combine this with the h1 and the table on p. 405.
Note: in some places, the symbol "u" is used to designate the population mean.
ho: u = 3
h1: u < 3
t = -3.53

Reject ho if the test statistic is less than the value given on p. 405.
degrees of freedom (df) = n -1 or 7 -1 = 6.
on top of page; probability alpha values are for two-tailed tests.
h1: u < 3 = one tailed (left) hypothesis test
hypothesis test

With the table, look under one-tailed values, .05
hypothesis test

h1 tells whether it is a one-tailed (directional) or a two-tailed ( non-directional ) test.
h1: u < 3 one-tailed ( left )
h1: u > 36 one-tailed ( right )
Stated in the problem is some kind of specific direction.
Ex. Is there a problem with the TV manufacturer's claim?
"TVs fail before 3 years" tells some kind of direction.
hypothesis test

The coin is not fair.

Use table p. 405 for decision rule.
"Left-tailed test"
hypothesis test

Anything less than the value found in table you reject ho.
degrees of freedom = n - 1 where n = sample size. hypothesis test

Any value greater than t (critical value) or less than -t(critical value) reject ho.

T critical value found in Table on Page 405. hypothesis test
df = n-1 = 7-1 = 6

Student t-value Table from page 405 of text.

alpha.50.10.05.02.01two-tailed
.25.05.025.01.005one-tailed
df------
11.006.3412.7131.8263.66-
2.8162.924.306.969.92-
3.7652.353.184.545.84-
4.7412.132.783.754.60-
5.7272.022.573.364.03-
6.7181.942.453.143.71-
Italized value is the critical value sought.


Ex. Given:
ho: u > or = 3
h1: u < 3
t = -3.53
n = 7
alpha = .05

Your decision will be:
a) reject ho
b) do not reject ho
c) accept ho
d) reject h1
e) none of these or not enough information

The correct answer is choice "a".
Stay away from "c" and "d".
Choice "c", accept ho, could only happen if you know the probability of type II error!
All you have to do is look at the table and find df.
* For left-tailed tests look at h1 and use < as an arrowhead pointing to the left.
* You must change the sign for left-tailed tests. If Alpha = .05 and Beta = .25, you could possibly accept ho. However without knowledge of Beta, the best one can do is either reject ho or do not reject ho.

Is Alpha = .05 that good?
It depends on the case.

There is no scientific basis for using Alpha =.05 or .01.
It is a convention used in psychology where if you get it a paper is publishable.

Decision = reject ho

5) Conclusion = There is evidence that the manufacturer's claim is wrong.

T-tests

1. one sample vs. population
2. difference between two samples ( 2 versions ):

  • independent samples
  • dependent samples

Data Sample 1Data Sample 2
Treatment ATreatment B

Two types of teaching methods where you want to know which one is better.
Two types of drug therapies.
Sex differences, males compared to females.

3) Correlation

Independent groups

The two groups are not related or connected in any meaningful way.
The 4 people in group 1 are different from the 4 people in group 2.
The total number of people is 8.

Dependent groups hypothesis test

The two groups are related.
One person in group 1 is matched or paired with a person in group 2.
You can use the same person in group 1 and group 2.

Ex. Two different word processors with five support staff members.
ho: u1 = u2
h1: u1 is not = u2 ( a two-tailed test )
* You can't tell if they are independent or dependent groups by looking at ho and h1.
ho: u1 = u2
h1: u1 > u2
Where u1 - u2 = 0 and u1 - u2 > 0
This is a one-tailed test ( right ).

ho: u1 = u2
h1: u1 < u2
Where u1 - u2 = 0 and u1 - u2 < 0
This is a one-tailed test ( left ).

The test statistic for 2 independent group test:
hypothesis test

Decision rule: hypothesis test

Look at h1 to determine if it is a one or two tailed tests.
Using table p. 405, find the critical value. If ho is rejected the conclusion would be something like; " There is sufficient evidence that treatment A is better than treatment B".


Lecture 20

Two independent samples

T-test: Example
Experiment between two groups of students. Measure and compare students who only attend lecture and students who attend lecture and read their books.

The two groups are similar to begin with, give different treatment, take sample, measure.

Lecture OnlyRead and Lecture
15,20,13,14,25 26,22,35,18,33
hypothesis test
4) Decision Rule

Need alpha, two tailed test, degreees of freedom=n1 + n2 - 2
For this problem alpha = .05, df = 5+5-2 = 8
look at Table C on Page 405 of text. For 8 df, .05 two-tailed, the critical value is 2.31.

Decision rule: reject ho if test statistic is > 2.31 or <-2.31, otherwise do not reject ho.
Decision: Since t = -240 and -2.40 is less than -2.31, reject ho.


Some previous test items...

A health educator wants to evaluate the effect of a dental film on the frequency with which children brush their teeth. Eight randomly chosen kids are measured on the number of times they brushed their teeth for one month before viewing the dental film and again for a month after the film. The data are given below:

Kids        1        2        3        4        5        6        7        8
Before      25       28       22       30       26       24       25       22
After       28       29       25       30       25       28       28       24
1. The null hypothesis would be:
a) u (before) < u (after)
b) M (before) = M (after)
c) u (before) < or = u (after)
d) u (before) > or = u (after)
e) none of these
The answer is u (before) = u (after)

2. The value of the test statistic is:
a) 3.074
b) 3.071
c) 3.069
d) 2.873
e) 2.871

3. The critical value if alpha = .05 is:
a) +2.36
b) + or - 2.36
c) + or - 1.90
d) -2.36
e) - 1.90

4. The appropriate decision is:
a) reject ho
b) retain ho
c) accept ho
d) do not reject ho
e) b and c

5. The coefficient of determination is 0.217 based on eighteen pairs of scores. The corresponding correlation coefficient is:
a) significant at the .05 level, one-tailed
b) significant at the .05 level, two-tailed
c) significant at the .01 level, one-tailed
d) a and b
e) not statistically significant

6. The mean in the t-distribution equals:
a) M
b) u
c) 0
d) 1
e) r

7. A research psychologist found one sample mean of 13 based on a n of 12. The second sample mean was 18 based on a n of 10. The design of this study should be analyzed with:
a) independent samples t-test
b) dependent samples t-test
c) one sample t-test
d) a or b
e) none of these

8. According to the textbook, the most cost effective design analyzed by the dependent samples t-test is:
a) matched subjects
b) independent samples
c) within-subjects
d) random samples
e) experimental and control group


Go Home Sign