320 Andrew Ainsworth PhD Hypothesis Tests One Sample Mean Major Points Sampling distribution of the mean revisited Testing hypotheses sigma known An example Testing hypotheses sigma unknown ID: 655505
Download Presentation The PPT/PDF document "Cal State Northridge " is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Cal State Northridge320Andrew Ainsworth PhD
Hypothesis Tests: One Sample MeanSlide2
Major PointsSampling distribution of the mean revisitedTesting hypotheses: sigma knownAn exampleTesting hypotheses: sigma unknownAn exampleFactors affecting the testMeasuring the size of the effectConfidence intervals
2
Psy 320 - Cal State NorthridgeSlide3
Review: Hypothesis Testing StepsState Null HypothesisAlternative Hypothesis
Decide on
(usually .05)
Decide on type of test (distribution;
z
,
t
, etc.)Find critical value & state decision ruleCalculate testApply decision rule
3
Psy 320 - Cal State NorthridgeSlide4
Sampling DistributionsIn reality, we take only one sample of a specific size (N) from a population and calculate a statistic of interest.Based upon this single statistic from a single sample, we want to know:“How likely is it that I could get a sample statistic of this value from a population if the corresponding population parameter was ___”
4
Psy 320 - Cal State NorthridgeSlide5
Sampling DistributionsBUT, in order to answer that question, we need to know what the entire range of values this statistic could be.How can we find this out?Draw all possible samples of size N
from the population and calculate a sample statistic on
each of these samples (Chapter 8)
Or
we can calculate it
5
Psy 320 - Cal State NorthridgeSlide6
Sampling DistributionsA distribution of all possible statistics calculated from all possible samples of size N drawn from a population is called a Sampling Distribution.Three things we want to know about any distribution?
– Central Tendency, Dispersion, Shape
6
Psy 320 - Cal State NorthridgeSlide7
An Example – Back to IQPLUSReturning to our study of IQPLUS and its affect on IQA group of 25 participants are given 30mg of IQPLUS everyday for ten daysAt the end of 10 days the 25 participants are given the Stanford-Binet intelligence test.
7
Psy 320 - Cal State NorthridgeSlide8
IQPLUSThe mean IQ score of the 25 participants is 106 = 100, = 10Is this increase large enough to conclude that IQPLUS was affective in increasing the participants IQ?
8
Psy 320 - Cal State NorthridgeSlide9
Sampling Distribution of the MeanFormal solution to example given in Chapter 8.We need to know what kinds of sample means to expect if IQPLUS has no effect.i. e. What kinds of means if m = 100 and
s
= 10?
This is the sampling distribution of the mean (Why?)
9
Psy 320 - Cal State NorthridgeSlide10
Psy 320 - Cal State Northridge
What is the relationship between
and the SD above?
10Slide11
Sampling Distribution of the MeanThe sampling distribution of the mean depends onMean of sampled populationWhy?St. dev. of sampled populationWhy?Size of sampleWhy?
11
Psy 320 - Cal State NorthridgeSlide12
Sampling Distribution of the meanShape of the sampling distributionApproaches normalWhy?Rate of approach depends on sample sizeWhy?Basic theorem
Central limit theorem
12
Psy 320 - Cal State NorthridgeSlide13
Central Limit TheoremCentral TendencyThe mean of the Sampling Distribution of the mean is denoted as DispersionThe Standard Deviation of the Sampling Distribution of the mean is called the Standard Error of the Mean
and is denoted as
13
Psy 320 - Cal State NorthridgeSlide14
Central Limit TheoremStandard Error of the MeanWe defined this manually in Chapter 8And it can be calculated as:ShapeThe shape of the sampling distribution of the mean will be normal if the original population is normally distributed
OR
if the sample size is “reasonably large.”
14
Psy 320 - Cal State NorthridgeSlide15
DemonstrationLet a population be very skewedDraw samples of size 3 and calculate meansDraw samples of size 10 and calculate meansPlot meansNote changes in means, standard deviations, and shapes
15
Psy 320 - Cal State NorthridgeSlide16
Parent Population16Psy 320 - Cal State NorthridgeSlide17Slide18
DemonstrationMeans have stayed at 3.00 throughoutExcept for minor sampling errorStandard deviations have decreased appropriatelyShape has become more normal as we move from n = 3 to n = 10See superimposed normal distribution for reference
18
Psy 320 - Cal State NorthridgeSlide19
Testing Hypotheses: and knownCalled a 1-sample Z-testH
0
:
m
= 100H1:
m
100
(Two-tailed)Calculate p (sample mean) = 106 if m = 100Use z from normal distributionSampling distribution would be normal
19
Psy 320 - Cal State NorthridgeSlide20
Using z to Test H0 2-tailed = .05 Calculate
z
If
z
>
+
1.96, reject H0 (Why 1.96?)____ > 1.96 The difference is significant.20Psy 320 - Cal State NorthridgeSlide21
Using z to Test H0 1-tailed = .05 Calculate
z
(from last slide)
If
z >
+
1.64, reject
H0 (Why 1.64?)____ > 1.64 The difference is significant.21Psy 320 - Cal State NorthridgeSlide22
Z-testCompare computed z to histogram of sampling distributionThe results should look consistent.Logic of testCalculate probability of getting this mean if null true.Reject if that probability is too small.
22
Psy 320 - Cal State NorthridgeSlide23
Testing Hypotheses: known not knownAssume same example, but
s
not known
We can make a guess at
s with s
But, unless we have a large sample,
s
is likely to underestimate s (see next slide)So, a test based on the normal distribution will lead to biased results (e.g. more Type 1 errors)23Psy 320 - Cal State NorthridgeSlide24
Sampling Distribution of the Variance24Psy 320 - Cal State Northridge
138.89
Let’s say you have a population variance = 138.89
If
n
= 5 and you take 10,000 samples
58.94% < 138.89Slide25
Testing Hypotheses: known not knownSince
s
is the best estimate of
s;
is the best estimate of Since Z does not work in this case we need a different distribution
One that is based on
s
Adjusts for the underestimationAnd takes sample size (i.e. degrees of freedom) into account25Psy 320 - Cal State NorthridgeSlide26
The t DistributionSymmetric, mean = median = mode = 0.Asymptotic tailsInfinite family of t distributions, one for every possible df
.
For low
df
, the t distribution is more leptokurtic (e.g. spiked, thin, w/ fat tails)For high
df
,
the t distribution is more normalWith df = ∞, the t distribution and the z distribution are equivalent.26Psy 320 - Cal State NorthridgeSlide27
The t Distribution27Psy 320 - Cal State NorthridgeSlide28
Degrees of FreedomSkewness of sampling distribution of variance decreases as n increasest will differ from z less as sample size increasesTherefore need to adjust
t
accordingly
Degrees of Freedom:
df =
n
- 1
t based on df28Psy 320 - Cal State NorthridgeSlide29
Testing Hypotheses: known not known
Called a 1-sample
t
-test
H
0
:
m = 100H1: m 100 (Two-tailed)Calculate p (sample mean) = 106 if
m = 100Use
t
-table to look up critical value using
degrees of freedom
Compare
t
observed
to
t
critical
and make decision
29
Psy 320 - Cal State NorthridgeSlide30
Using t to Test H0 2-tailed = .05
Same as
z
except for
s in place of
s
.
In our sample of 25, s = 7.78 With = .05, df=24, 2-tailed
tcritical = _____
(Table
D.6
; see next slide)
Since
____
>
____
reject
H
0
Psy 320 - Cal State Northridge
30Slide31
t Distribution31
Psy 320 - Cal State NorthridgeSlide32
Using t to Test H0 1-tailed = .
05
H
0
:
m
≤ 100H1: m > 100 (One-tailed)The
tobserved value is the same
_____
With
=
.05,
df
=24,
1-tailed
t
critical
=
____
(Table
D.6
; see next slide)
Since
_____
>
_____ reject
H
0
32
Psy
320 - Cal State NorthridgeSlide33
t Distribution33
Psy 320 - Cal State NorthridgeSlide34
ConclusionsWith n = 25, tobserved(24) = _____Because _____
is larger than both
_____
(1-tailed) and _____
(
2-tailed)
we reject H0 under both 1- and 2-tailed hypothesesConclude that taking IQPLUS leads to a higher IQ than normal.34Psy 320 - Cal State NorthridgeSlide35
Factors Affecting…t testDifference between sample and population meansMagnitude of sample varianceSample sizeDecisionSignificance level a
One-tailed versus two-tailed test
35
Psy 320 - Cal State NorthridgeSlide36
Size of the EffectWe know that the difference is significant.That doesn’t mean that it is important.Population mean = 100, Sample mean = 106Difference is 6 words or roughly a 6% increase.Is this large?
36
Psy 320 - Cal State NorthridgeSlide37
Effect SizeLater we develop this more in terms of standard deviations.For Example:In our sample s = 7.78over 3/4 of a standard deviation
37
Psy 320 - Cal State NorthridgeSlide38
Confidence Intervals on MeanSample mean is a point estimateWe want interval estimateGiven the sample mean we can calculate an interval that has a probability of containing the population mean This can be done if is known or not
38
Psy 320 - Cal State NorthridgeSlide39
Confidence Intervals on MeanIf is known than the 95% CI isIf is
not
known than the 95% CI is
39
Psy 320 - Cal State NorthridgeSlide40
For Our Data Assuming known
40
Psy 320 - Cal State NorthridgeSlide41
For Our Data Assuming not known
41
Psy 320 - Cal State NorthridgeSlide42
Confidence IntervalNeither interval includes 100 - the population mean of IQConsistent with result of t test.Confidence interval and effect size tell us about the magnitude of the effect.What else can we conclude from confidence interval?
42
Psy 320 - Cal State Northridge