Download Understanding Hypothesis Testing: The Alternative Hypothesis and Type I & II Errors - Prof and more Study notes Economics in PDF only on Docsity!
Chapter 9
Hypothesis Testing
Testing vs. Estimation
^
Confidence Intervals are used to estimate anunknown population parameter using sampledata.
^
A Hypothesis test is used when theorysuggests a particular value for an unknownpopulation parameter. The question thenbecomes whether the sample data isconsistent with the theory or not.
The Rhine Deck and ESP
^
The population parameter you areinvestigating is the proportion of correctanswers in an infinitely long sequence ofguesses.
^
The sample statistic is the sample proportionof correct answers in a fixed number ofguesses
The Theory
^
There is one obvious theory here: Nothing is goingon and the person is just guessing. By guessing theperson should get 20% correct. This is the value ofthe population parameter we wish to test.
^
Given sample data, such as 25 correct in 100 trials,the question becomes: Is this sample evidenceenough to disprove the theory that the person is justguessing?
The Alternative Hypothesis
^
The alternative hypothesis comesin three flavors^ ^
Less than Not equal to (two-sided) Greater than ^
H-sub-A signifies the alternativehypothesis ^
Which flavor is a matter ofjudgment: What do you expect tobe true if the null is false?
0 0 0
A A A
H
p
p
H
p
p
H
p
p
ESP and the Alternative
Hypothesis
^
If you believe that ESP (if itexists) will manifest itself in theperson getting more than 20%correct, you’d do a greater thantest.
^
This leaves the possibility p < .20hanging, so generally it is tossedinto the null hypothesis.
: 0 0
. :^
.
:^
. :^
.
A A H
p H
p H
p H
= p
≤ >
Isn’t this nitpicking?
^
Confusing sample statistics and populationparameters leads to complete nonsense. ^
The statement is a perfect example.^ ^
Before the sample is drawn, a sample statistic isa random variable, and therefore can’t be equalto a constant. After the sample is drawn, the sample mean isjust a number. No fancy statistical theory isrequired to compare two known numbers.
: 0
10
H^
X^
=
Another Hypothesis Test
Mendel’s Carnations
^
One of Mendel’sexperiments involvedcrossing pink carnations. ^
These pink carnationsproduce red, white, andpink offspring. ^
Mendel believed each pinkcarnation had one red geneand one white gene, andthat the pink offspring gotone of each.
WW
WR
W
RW
RR
R
W
R
Gene taken from the otherparent Gene taken from one parent
The Alternative Hypothesis
^
Suppose we test a hypothesis aboutthe proportion of pink carnations.Our null is that the proportion isone half. ^
If the null is false, do we expect pbigger than .5, smaller than .5, orcould either be plausible? ^
Both are plausible, so a NotEquals, or two-sided test, isappropriate.
0
:^
.
:^
.
A H
p
H
p
=^ ≠
A Less-than test
^
Advertising claims are sometimes takenas the basis for a null hypothesis. ^
Suppose Duracell says their batterieswill power a flashlight for at least 4hours. ^
If we wish to test this claim by testing arandom sample of their batteries, thesewould be the null and alternativehypotheses. (Mu is pop mean lifetime)
: 0
4
:^
4
A
H H
μ^ μ
≥ <
Selecting the alternative
hypothesis
^
A question such as “Does the statisticalevidence suggest Duracell’s advertised claimis incorrect, and their batteries are in fact
less
durable?” is signaling a less-than test.
^
In real-world applications, deciding on thealternative is sometimes difficult; ambiguouscases ought to be treated as two-sided.
Picking the alternative: aproblem even in fiction
^
In the movie “Man on a Swing” CliffRobertson plays a small town sheriff.
^
A woman is brutally murdered, and hehas no suspects.
^
Joel Grey appears, says he is psychic,and offers to help; he then describesdetails of the crime scene only a truepsychic or the true killer would know.
We discover Joel Grey is
creepy.
^
Grey knows he is the prime suspect, and enjoys it.Grey’s smug satisfaction suggests he is gettingaway with murder. Robertson desperately wants tonail Grey for the killing, but lacks evidence.
^
Voila! In comes a statistics professor, who arriveswith a Rhine deck to test Grey. Cliff Robertson,who arranged the test, paces nervously outside thedoor, fingering his handcuffs.
The professor emerges...
^
“I have good news and bad news,” he says.
^
“Give me the good news,” Robertson replies.
^
“He didn’t do as well as the law of odds,”says the professor. [Robertson pulls out hishandcuffs.] “The bad news is.. .”
^
“he did much worse than can be explained bychance.. .”