Title: tTest for OneSample
1Chapter 18
2Problem with z-test
- When can the z-test be used?
- Single Sample Comparisons
- Hypothesis test about a single population.
- Comparing a single sample to constant value.
- s (or s?) is known
- Requirement in order to use the z-test
- n is large enough to satisfy the central limit
theorem
3Problem with the z-test
s, s?, and Significant Differences
Large Standard Error
Small Standard Error
4Problem with the z-test
s, s?, and Significant Differences
5Problem with the z-test
- Hypothesis test dependent on
- Must know s, to know s?, so we can assign
significance. - or
- have values to approximate s s?
- Estimated population standard deviation s
- Estimated standard error s?
6Estimating the Population Standard Deviation
- will allow us to complete the hypothesis test!
7Coffee and Drunkenness (no s)
There has been the suggestion that drinking
coffee makes a person less drunk. There is also a
good reason to suspect that it might make a
person less drunk since caffeine is a stimulant
(it wont make them more drunk). This issue is
important because the legislature is debating a
policy that would allow people to drive home from
bars if they have a few cups of coffee. To test
whether people who drink coffee have the same
drunkenness score or a lower drunkenness score, a
researcher decided to give caffeine pills to a
group of 9 randomly selected people who had had 3
drinks. They gave the following ratings What
will this researcher conclude about the
drunkenness of people who drink coffee (level of
significance is .05).
8Coffee and Drunkenness (no s)
There has been the suggestion that drinking
coffee makes a person less drunk. There is also a
good reason to suspect that it might make a
person less drunk since caffeine is a stimulant
(it wont make them more drunk). This issue is
important because the legislature is debating a
policy that would allow people to drive home from
bars if they have a few cups of coffee. To test
whether people who drink coffee have the same
drunkenness score or a lower drunkenness score, a
researcher decided to give caffeine pills to a
group of 9 randomly selected people who had had 3
drinks. They gave the following ratings What
will this researcher conclude about the
drunkenness of people who drink coffee (level of
significance is .05).
m3drinks30 s3drinks??? mhyp-caf30 scaf??? n
9 a .05
9Coffee and Drunkenness (no s)
There has been the suggestion that drinking
coffee makes a person less drunk. There is also a
good reason to suspect that it might make a
person less drunk since caffeine is a stimulant
(it wont make them more drunk). This issue is
important because the legislature is debating a
policy that would allow people to drive home from
bars if they have a few cups of coffee. To test
whether people who drink coffee have the same
drunkenness score or a lower drunkenness score, a
researcher decided to give caffeine pills to a
group of 9 randomly selected people who had had 3
drinks. They gave the following ratings What
will this researcher conclude about the
drunkenness of people who drink coffee (level of
significance is .05).
m3drinks30 s3drinks??? mhyp-caf30 scaf??? n
9 a .05
10Using Samples to Estimate the Population
- ? as m
- S(descriptive) as s
11Sample Sampling Distributions
5
2
3
4
Shape Rectangular m 3.5 s 1.12
12Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
5
? 4.5
Sample
Sample
Sample
Sample
13Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
5
? 3.5
Sample
Sample
Sample
Sample
14Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
4
? 3.5
Sample
Sample
Sample
Sample
15Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
3
? 2.5
Sample
Sample
Sample
Sample
16Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
4
? 3
Sample
Sample
Sample
Sample
17Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
2
? 2
Sample
Sample
Sample
Sample
18Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
2
? 2.5
Sample
Sample
Sample
Sample
19Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
3
? 3
Sample
Sample
Sample
Sample
20Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
4
? 3.5
Sample
Sample
Sample
Sample
21Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
5
? 4
Sample
Sample
Sample
Sample
22Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
2
? 2
Sample
Sample
Sample
Sample
23Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
3
? 3.5
Sample
Sample
Sample
Sample
24Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
4
? 4
Sample
Sample
Sample
Sample
25Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
2
? 3.5
Sample
Sample
Sample
Sample
26Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
3
? 4
Sample
Sample
Sample
Sample
27Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
5
? 5
Sample
Sample
Sample
Sample
28Sample Sampling Distribution
3
5
2
4
The Sampling Distribution of the (Sample)
Mean(s) n2
Sample
Sample
Sample
Sample
29Sample Sampling Distribution
Shape Normal m? 3.5 s? .79
30Sample Sampling Distributions
Sampling Distribution of the Sample
Means Parameters
Population Parameters
Shape Rectangular m 3.5 s 1.12
Shape Normal m? 3.5 s? .79
? is an unbiased estimate of m
31Sample Sampling Distributions
5
2
3
4
Shape Rectangular m 3.5 s 1.12
32Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
5
S .5
Sample
Sample
Sample
Sample
33Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
5
S 1.18
Sample
Sample
Sample
Sample
34Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
4
S .5
Sample
Sample
Sample
Sample
35Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
3
S .5
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
36Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
4
S 1
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
37Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
2
2
S 0
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
38Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
2
S .5
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
39Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
3
S 0
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
40Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
4
S .5
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
41Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
3
5
S 1
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
42Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
2
S 1
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
43Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
3
S .5
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
44Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
4
4
S 0
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
45Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
2
S 1.18
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
46Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
3
S 1
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
47Sample Sampling Distribution
3
5
Lets Go Sampling n2
2
4
5
5
S 0
Sample
Sample
Sample
Sample
Sample
Sample
Sample
Sample
48Sample Sampling Distribution
3
5
2
4
The Sampling Distribution of the (Sample)
Standard Deviations (Descriptive) n2
Sample
Sample
Sample
Sample
49Sample Sampling Distribution
Shape Positively Skewed mS .66
50Sample Sampling Distributions
Sampling Distribution of the Sample
Standard Deviations (Descriptive) Parameters
Population Parameters
s 1.12
mS .66
S is an biased estimate of s (consistently
underestimates)
51Why Biased? Degrees of Freedom
- S divides by too many.
- Not all sample values actually vary.
52Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
53Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
54Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
55Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
56Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
57Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
58Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
59Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
60Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
61Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
Must be
62Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
Do all of the scores in the sample freely vary?
Must be
Must be
63Degrees of Freedom
- Attempt to estimate s
- how much the scores freely vary
- by observing how much the scores in the sample
freely vary.
3 scores freely vary?
Degrees of Freedom df (n - 1)
Must be
1 did not (had to make up slack)
64Sample Sampling Distribution
3
5
2
4
The Sampling Distribution of the (Sample)
Standard Deviations (Inferential) n2
Sample
Sample
Sample
Sample
65Sample Sampling Distribution
Shape Positively Skewed mS .66
66Sample Sampling Distributions
Sampling Distribution of the Sample
Standard Deviations (Descriptive) Parameters
Population Parameters
s 1.12
mS .66
S is an biased estimate of s (consistently
underestimates)
67Better Estimate of s
- Sample standard deviation (inferential) s
(little)
68Better Estimate of s
- Attempt to estimate s
- how much the scores freely vary
Divide by true degrees of freedom.
69Better Estimate of s
Sample Standard Deviation (Inferential)
Computational Formula
Definition Formula
70The new hypothesis test
- t-test for One-Sample
- (What Changes?)
71t-test for One Sample
- Steps of a one sample t-test
- Step 0) Rewrite every number from the story
problem next to its symbol. - Step 1) Rewrite the research problem
- Same as z
- Same basic question
- Step 2) Write Statistical Hypotheses
- Same as z
- Same basic question
72t-test for One Sample
- Step 3) Write Decision Rule
- Shading
- same as z
- Same logic
- Determine critical score
- Use a t-table to determine tcrit
- Takes into account that the estimated standard
deviation changes from sample to sample - Write down conditions under which you will reject
H0 or fail to reject H0 - Same as z
73t-test for One Sample
- Step 4) Calculate test statistic
- Obtained Score
- tobt
- Based on samplig distribution with mhyp s?
- Step 5) Make Decision
- Compare tobt to tcrit
- Step 6) Interpret Decision
- Write in terms of the problem
- How you would tell your boss.
74Hypothesis Test 7
- Coffee and Drunkenness (no s)
75Coffee and Drunkenness (no s)
There has been the suggestion that drinking
coffee makes a person less drunk. There is also a
good reason to suspect that it might make a
person less drunk since caffeine is a stimulant
(it wont make them more drunk). This issue is
important because the legislature is debating a
policy that would allow people to drive home from
bars if they have a few cups of coffee. To test
whether people who drink coffee have the same
drunkenness score or a lower drunkenness score, a
researcher decided to give caffeine pills to a
group of 9 randomly selected people who had had 3
drinks. They gave the following ratings What
will this researcher conclude about the
drunkenness of people who drink coffee (level of
significance is .05).
76Coffee and Drunkenness (no s)
There has been the suggestion that drinking
coffee makes a person less drunk. There is also a
good reason to suspect that it might make a
person less drunk since caffeine is a stimulant
(it wont make them more drunk). This issue is
important because the legislature is debating a
policy that would allow people to drive home from
bars if they have a few cups of coffee. To test
whether people who drink coffee have the same
drunkenness score or a lower drunkenness score, a
researcher decided to give caffeine pills to a
group of 9 randomly selected people who had had 3
drinks. They gave the following ratings What
will this researcher conclude about the
drunkenness of people who drink coffee (level of
significance is .05).
m3drinks30 s3drinks??? mhyp-caf30 scaf??? n
9 a .05
77Coffee and Drunkenness (no s)
- Step 1) Rewrite Research Question
- Is the mean of the caffeine population 30?
mhyp-caf30 scaf??? n 9 ? ??? a .05
? 256/9 28.44
(256)2
7392 -
9
9 -1
3.71
78Coffee and Drunkenness (no s)
Step 2) Write the statistical hypotheses
H0 m 30
H1 m lt 30
lt mhyp mhyp gt mhyp
79Coffee and Drunkenness (no s)
- Step 3) Form Decision Rule
- Draw Normal Curve
- Shade in a
- Mark Rejection Region(s)
- Determine Critical Scores
- Write conditions for rejection H0
- Hypothesis
- H0 mconv ? 30
- H1 mconvlt 30
t(8)crit -1.86
80Coffee and Drunkenness (no s)
m? m
mhyp
30
- Hypothesis
- H0 mconv ? 30
- H1 mconvlt 30
- Decision Rule
- Reject H0
- tobt lt -1.86
1.24
81Coffee and Drunkenness (no s)
Step 4) Calculate Test Statistic
zobt (? - mhyp) / s?
tobt (? - mhyp) / s?
tobt (28.44 - 30) / 1.24
tobt -1.56 / 1.24
- Hypothesis
- H0 mconv ? 30
- H1 mconvlt 30
tobt -1.26
- Decision Rule
- Reject H0
- tobt lt -1.86
Based upon a sampling distribution with m? 30
s? 1.24
.3
82Coffee and Drunkenness (no s)
Step 5) Make Decision
Step 6) Interpret Decision
- We have no reason to believe that caffeine makes
a person less drunk.
- Hypothesis
- H0 mconv ? 30
- H1 mconvlt 30
- Decision Rule
- Reject H0
- tobt lt -1.86
Test Statistic tobt -1.26
Based upon a sampling distribution with m? 30
s? 1.24
.3