MORE ABOUT HYPOTHESIS TESTING
Introduction to Hypothesis
Testing for μ
Research Problem:
Infant Touch Intervention
Designed to increase child growth/weight
Weight at age 2:
Known
population: μ = 26 σ = 4
Sample data: n = 16
[pic] = 30
Did intervention increase weight?
Hypothesis Testing:
1. Using sample data to evaluate an hypothesis about a population parameter.
2. Usually in the context of a research study ⋄ evaluate effect of a “treatment”
3. Compare [pic] to known μ
4. Can’t take difference at face value
5. Differences between [pic] and μ expected simply on the basis of chance
sampling variability
6. How do we know if it’s just chance?
Sampling distributions!
Research Problem:
Infant Touch Intervention
Known population: μ = 26 σ = 4
7. Assume intervention does NOT affect weight
8. Sample means ([pic]) should be close to population μ
Compare Sample Data to know population:
z-test = [pic]
How much does [pic] deviate from μ?
What is the probability of this occurrence?
How do we determine this probability?
Distribution of Sample Means (DSM)!
[pic] in the tails are low probability
How do we judge “low” probability of occurrence?
Widely accepted convention.....
≤ 5 in a 100 p ≤ .05
Logic of Hypothesis Testing
9. Rules for deciding how to decide!
10. Easier to prove something is false
Assume opposite of what you believe…
try to discredit this assumption….
Two competing hypotheses:
(1) Null Hypothesis ( H0 )
The one you assume is true
The one you hope to discredit
(2) Alternative Hypothesis ( H1 )
The one you think is true
Inferential statistics:
Procedures revolve around H0
Rules for deciding when to reject or retain H0
Test statistics or significance tests:
11. Many types ⋄ z-test t-test F-test
12. Depends on type of data and research design
13. Based on sampling distributions, assumes H0 is true
14. If observed statistic is improbable given H0,
then H0 is rejected
Hypothesis Testing Steps:
(1) State the Research Problem
Derived from theory
example:
Does touch increase child growth/weight?
(2) State statistical hypotheses
Two contradictory hypotheses:
(a) Null Hypothesis: H0
There is no effect
(b) Scientific Hypothesis: H1
There is an effect
Also called alternative hypothesis
Form of Ho and H1 for one-sample mean:
H0: μ = 26
H1: μ ≠ 26
15. Always about a population parameter, not a statistic
H0: μ = population value
H1: μ ≠ population value
16. non-directional (two-tailed) hypothesis
17. mutually exclusive ⋄ cannot both be true
Example:
Infant Touch Intervention
Known population: μ = 26 σ = 4
Did intervention affect child weight?
Statistical Hypotheses:
H0: μ = 26
H1: μ ≠ 26
(3) Create decision rule
18. Decision rule revolves around H0, not H1
19. When will you reject Ho?
…when values of [pic] are unlikely given H0
20. Look in tails of sampling distribution
21. Divide distribution into two parts:
Values that are likely if H0 is true
Values close to H0
Values that are very unlikely if H0 is true
Values far from H0
Values in the tails
How do we decide what is likely and unlikely?
[pic]
Level of significance = alpha level = α
Probability chosen as criteria for “unlikely”
Common convention: α = .05 (5%)
Critical value = boundary between likely/unlikely outcomes
Critical region = area beyond the critical value
[pic]
Decision rule:
Reject H0 when observed test-statistic (z) equals or exceeds the Critical Value (when z falls within the Critical Region)
Otherwise, Retain H0
(4) Collect data and Calculate “observed” test statistic
z-test for one sample mean:
[pic]
where, σ[pic] = [pic]
A closer look at z:
z = sample mean – hypothesized population μ
standard error
z = observed difference
difference due to chance
(5) Make a decision
Two possible decisions:
Reject H0
Retain (Fail to Reject) H0
Does observed z equal or exceed CV?
(Does it fall in the critical region?)
If YES,
Reject H0 = “statistically significant” finding
If NO,
Fail to Reject H0 = “non-significant” finding
(6) Interpret results
Return to research question
statistical significance = not likely to be due to chance
Never “prove” H0 or H1
Example
(1) Does touch increase weight?
Population: μ = 26 σ = 4
(2) Statistical Hypotheses:
H0:
H1:
(3) Decision Rule:
α = .05
Critical value:
(4) Collect sample data: n = 16 [pic] = 30
Compute z-statistic:
z = [pic] σ[pic] = z =
(5) Make a decision:
(6) Interpret results:
Reporting Results of an Hypothesis Test
If you reject H0:
“There was a statistically significant difference in weight between children in the intervention sample (M = 30 lbs) and the general population (M = 26 lbs), z = 4.0, p < .05, two-tailed.”
If you fail to reject H0:
“There was no significant difference in weight between children in the intervention sample (M = 30 lbs) and the general population (M = 26 lbs), z = 1.0, p > .05, two-tailed.”
A closer look…
z = 4.0, p < .05
Alternative statistical findings:
Significant α ’ .01 z = 4.0, p < .01
Significant α ’ .001 z = 4.0, p < .001
Non-significant α ’ .05 z = 4.0, p > .05
Non-significant α ’ .01 z = 4.0, p > .01
More about alpha (α) levels:
most common ⋄ α = .05
more stringent ⋄ α = .01
α = .001
Critical values for two-tailed z-test:
|α = .05 |α=.01 |α=.001 |
| | | |
|± 1.96 |± 2.58 |± 3.30 |
More About Hypothesis Testing
I. Two-tailed vs. One-tailed hypotheses
A. Two-tailed (non-directional):
H0: ( = 26
H1: ( ( 26
Region of rejection in both tails:
Divide α in half:
probability in each tail = α / 2
B. One-tailed (directional):
H0: ( ( 26
H1: ( > 26
Upper tail critical:
H0: ( ( 26
H1: ( < 26
Lower tail critical:
Examples:
Research hypotheses regarding IQ, where (hyp= 100
(1) Living next to a power station will lower IQ?
H0:
H1:
(2) Living next to a power station will increase IQ?
H0:
H1:
(3) Living next to a power station will affect IQ?
H0:
H1:
When in doubt, choose two-tailed!
II. Selecting a critical value
Will be based on two pieces of information:
(a) Desired level of significance (α)?
α = alpha level
.05 .01 .001
(b) Is H0 one-tailed or two-tailed?
If one-tailed: find CV for α
CV will be either + or -
If two-tailed: find CV for α/2
CV will be both +/ -
Most Common choices:
• α = .05
• two-tailed test
Commonly used Critical Values
for the z-statistic
______________________________________________
Hypothesis α = .05 α=.01
______________________________________________
Two-tailed ( 1.96 ( 2.58
Η0: ( ’ x
Η1: ( ( x
One-tailed upper + 1.65 + 2.33
Η0: ( ( x
Η1: ( > x
One-tailed lower ( 1.65 ( 2.33
Η0: ( ( x
Η1: ( < x
______________________________________________
Where x = any hypothesized value of ( under H0
Note: critical values are larger when:
• α more stringent (.01 vs. .05)
• test is two-tailed vs. one-tailed
III. Outcomes of Hypothesis Testing
Four possible outcomes:
True status of H0
H0 true H0 false
Reject H0
Decision
Retain H0
Type I Error: Rejecting H0 when it’s actually true
Type II Error: Retaining H0 when it’s actually false
We never know the “truth”
Try to minimize probability of making a mistake
A. Assume Ho is true
Only one mistake is relevant ( Type I error
α ’ level of significance
p (Type I error)
1-α ’ level of confidence
p(correct decision), when H0 true
if α = .05, confidence = .95
if α = .01, confidence = .99
So, mistakes will be rare when H0 is true!
How do we minimize Type I error?
WE control error by choosing level of significance (α)
Choose α = .01 or .001 if error would be very serious
Otherwise, α = .05 is small but reasonable risk
B. Assume Ho is false
Only one mistake is relevant ( Type II error
( ’ probability of Type II error
1-( ’ ”Power”
p(correct decision), when H0 false
How big is the “treatment effect”?
When “effect size” is big:
Effect is easy to detect
( is small (power is high)
When “effect size” is small:
Effect is easy to “miss”
( is large (power is low)
How do you determine ( and power (1-()
• No single value for any hypothesis test
• Requires us to guess how big the “effect” is
Power = probability of making a correct decision
when H0 is FALSE
C. How do we increase POWER?
Power will be greater (and Type II error smaller):
• Larger sample size (n)
Single best way to increase power!
• Larger treatment effect
• Less stringent α level
e.g., choose .05 vs. .01
• One-tailed vs. two-tailed tests
Caution – don’t choose this after the fact
Four Possible Outcomes of an Hypothesis Test
True status of H0
H0 true H0 false
Reject H0
Decision
Retain H0
α = level of significance
probability of Type I Error
risk of rejecting a true H0
1-α = level of confidence
p (making correct decision), if H0 true
( = probability of Type II Error
risk of retaining a false H0
1-( = power
p(making correct decision), if H0 false
ability to detect true effect
-----------------------
α 1- (
Type I Error Power
1-α (
Confidence Type II Error
p=.025
p=.025
(1.96 +1.96
+1.65
(1.65
p=.05
p=.05
z
z
z
( = .05
No Effect Effect
test statistic
level of significance
observed value
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- hypothesis testing for regression
- hypothesis testing for linear regression
- p value hypothesis testing calculator
- hypothesis testing p value calculator
- hypothesis testing examples
- real world hypothesis testing examples
- hypothesis testing in nursing example
- t test hypothesis testing example
- hypothesis testing examples and solutions
- hypothesis testing in daily life
- hypothesis testing questions and answers
- hypothesis testing statistics pdf