Download presentation
Presentation is loading. Please wait.
Published byShanna Haynes Modified over 9 years ago
1
Hypothesis testing
2
Want to know something about a population Take a sample from that population Measure the sample What would you expect the sample to look like under the null hypothesis? Compare the actual sample to this expectation
3
population sample Y = 2675.4
4
Hypothesis testing Hypotheses are about populations Tested with data from samples Usually assume that sampling is random
5
Types of hypotheses Null hypothesis - a specific statement about a population parameter made for the purposes of argument Alternate hypothesis - includes other possible values for the population parameter besides the value states in the null hypothesis
6
The null hypothesis is usually the simplest statement, whereas the alternative hypothesis is usually the statement of greatest interest.
7
A good null hypothesis would be interesting if proven wrong.
8
A null hypothesis is specific; an alternate hypothesis is not.
9
Hypothesis testing: example Can sheep recognize each other?
10
The experiment and the results Sheep were trained to get a reward near a certain other sheep’s picture Then placed in a Y-shaped maze You must choose…
11
Stating the hypotheses H 0 : Sheep go to each face with equal probability (p = 0.5). H A : Sheep choose one face over the other (p ≠ 0.5).
12
Estimating the value 16 of 20 is a proportion of p = 0.8 This is a discrepancy of 0.3 from the proportion proposed by the null hypothesis, p =0.5
13
Null distribution The null distribution is the sampling distribution of outcomes for a test statistic under the assumption that the null hypothesis is true
14
Proportion of correct choices Probability 00.000001 10.00002 20.00018 30.0011 40.0046 50.015 60.037 70.074 80.12 90.16 100.18 110.16 120.12 130.074 140.037 150.015 160.0046 170.0011 180.00018 190.00002 200.000001
15
Test statistic = a quantity calculated from the data that is used to evaluate how compatable the data are with the expectation under the null hypothesis
16
The null distribution of p Test statistic = 16
17
The null distribution of p Values at least as extreme as the test statistic
18
P-value - the probability of obtaining the data* if the null hypothesis were true *as great or greater difference from the null hypothesis
20
P = 0.012 P-value
21
P-value calculation P =2*(Pr[16]+Pr[17]+Pr[18]+Pr[19]+Pr[20]) =2*(0.005+0.001+0.0002+0.00002+0.000001) = 0.012
22
How to find P-values Get test statistic Compare with null distribution from: –Simulation –Parametric tests –Non-parametric tests –Re-sampling
23
Statistical significance
24
is often 0.05
25
Significance for the sheep example P = 0.012 P < , so we can reject the null hypothesis
26
Larger samples give more information A larger sample will tend to give and estimate with a smaller confidence interval A larger sample will give more power to reject a false null hypothesis
27
Hypothesis testing: another example The genetics of symmetry in flowers Heteranthera - Mud plantain
28
Stigma and anthers are asymmetric in different genotypes
29
Can the pattern of inheritance be explained by a single locus with simple dominance? Model predicts a 3:1 ratio of right-handed flowers H 0 : Right- and left-handed offspring occur at a 3:1 ratio (the proportion of right-handed individuals in the offspring population is p = 3/4) H A : Right- and left-handed offspring do not occur at a 3:1 ratio (p ≠ 3/4)
30
Data Of 27 offspring, 21 were “right- handed” and 6 were “left-handed.”
31
Estimating the proportion * The “hat” notation denotes an estimate for a population parameter from a sample
32
Sampling distribution of null hypothesis
34
P = 0.83. The P-value:
35
Rock-paper-scissors battle
36
Jargon
37
Significance level A probability used as a criterion for rejecting the null hypothesis Called If p < , reject the null hypothesis For most purposes, = 0.05 is acceptable
38
Type I error Rejecting a true null hypothesis Probability of Type I error is (the significance level)
39
Type II error Not rejecting a false null hypothesis The probability of a Type II error is The smaller , the more power a test has
40
Power The probability that a random sample of a particular size will lead to rejection of a false null hypothesis Power = 1-
42
Reality Result H o trueH o false Reject H o Do not reject H o correct Type I error Type II error
43
One- and two-tailed tests Most tests are two-tailed tests This means that a deviation in either direction would reject the null hypothesis Normally is divided into /2 on one side and /2 on the other
44
Test statistic
45
One-sided tests Also called one-tailed tests Only used when one side of the null distribution is nonsensical For example, comparing grades on a multiple choice test to that expected by random guessing
46
Critical value The value of a test statistic beyond which the null hypothesis can be rejected
47
“Statistically significant” P < We can “reject the null hypothesis”
48
We never “accept the null hypothesis”
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.