Lecture 6 - NHST and Assumptions Testing
Lecture 6 - NHST and Assumptions Testing
Lecture 6 - NHST and Assumptions Testing
Assumptions Testing
▪ NHST
▫ P-values
▪ Introduction to
assumptions
▫ Normality
NHST and p-values
▪ Inference
▪ Hypothesis Testing - NHST
▫ P-values
▫ Type I and II Error
▫ Caveats and considerations
3
What are Inferential Statistics?
Women have a mean (average) IQ of 140 and men have a mean IQ of 129.
Therefore women are more intelligent than men.
❑ What do you think might be the problem with the above conclusion?
5
Why Inferential Statistics?
❑ Confirmation bias
▪ We pay more attention to information that confirms our pre-existing beliefs
❑ Principle of falsifiability
We must be able to test for and find results that DO NOT support our claim
▪
▪ Must be able to specify what information will falsify our claim
❑ Example:
𝑯𝟏
▪ Your claim: There is a gender difference in intelligence
▪ Counter-claim: There is no gender difference in intelligence
❑ A framework that seeks to help answer questions like “Is the difference in
height between men and women genuine, or is it simply due to chance?”
▪ Follows the logic of reducio ad absurdum, or “reducing to an absurdity”
▪ You might have seen this logic in the form of proof by contradiction in your
high school math (*shiver*)
❑ Let’s take a look at an example on the next slide
NHST
❑ Let’s say you hypothesize that drinking milk will make you
taller (𝐻1 )
▪ The counter claim to this would be that drinking milk
would not make you taller (𝐻0 )
▪ We momentarily assume that 𝑯𝟎 is the “true state of
reality”
▪ We embark on a quest to refute/reject this counter
claim
❑ We collect our data, and find evidence that 96% people who
drink milk are very much taller than the national average
▪ Remember, we had assumed that 𝐻0 was true
▪ So our results are considered as very “surprising” if 𝐻0
were true
▪ Therefore, we conclude that 𝐻 can be rejected.
9
▪ In other words, in order to support our alternative hypothesis,
we actually collect data to see whether we can reject/refute the
null hypothesis; if the data is considered “surprising” under the
null hypothesis, we can then proceed to reject the null.
Okay cool, but how “surprising” does
my result have to be to reject the null?
p-value
❑ On a stats knowledge test, girls scored 98 and boys scored 88 on average. (Difference
in average: 10)
▪ Inferential stats test will calculate the probability that this would occur
given that the null hypothesis is true. (Null hypothesis, H₀: There is no
difference in statistical knowledge between girls and boys.)
❑ If the inferential stats test result of this difference of 10 is p = .031:
▪ There is a 3.1% chance that you have gotten this result when the H₀ is actually
true (actually no difference, but you found a difference due to
chance/alternative explanations).
▪ Compared to conventional threshold of 5%, you can have some confidence that
your observed difference is an actual difference and did not occur by chance
❑ What you would conclude: The difference is statistically significant. Girls have
significantly better statistical knowledge than boys (p = .031).
13
Wow! P-values seem all powerful
24
NHST: How does it work?
26
NHST: How does it work?
34
What is an assumption?
❑ Stacy: Oh. Mai. Gawwwwwd did you see that huge sombrero that Shia was
wearing?? She must work at Taco Bell or something
❑ Antuan: …She’s a singer-song writer.
❑ Stacy: Uhhh, same thing.
What is an assumption
Statistical Tests
37
Assumption of Normality
39
Assumption of Normality
Recap
Normality Test
❑ For my study on exam scores and exam anxiety, I ran a Shapiro-Wilk test
and got these results for exam anxiety:
▪ Shapiro-Wilk (45) = .78, p = .075
❑ What is the df?
A. 45
B. 47
C. 43
D. .78
Concept Test
❑ For my study on exam scores and exam anxiety, I ran a Shapiro-Wilk test
and got these results for exam anxiety:
▪ Shapiro-Wilk (45) = .78, p = .075
❑ Is the assumption of normality met?
A. We can’t tell from these results alone
B. It depends on the inferential test later
C. Yes
D. No
Concept Test
❑ For my study on exam scores and exam anxiety, I ran a Pearson’s r test and
got these results:
▪ r(18) = .42, p = .034
❑ Is normality assumed?
A. We can’t tell from these results
B. It depends on the inferential test later
C. Yes
D. No
Normality Testing Tutorial
❑ The assumption of normality was MET for the intelligence scores of men, Shapiro-
Wilk(10)=.93, p=.412, and women, Shapiro-Wilk(10)=.92, p=.345. Therefore, the
overall assumption of normality has been met.
52
Normality Testing Tutorial
❑ The assumption of normality was not met for the collective self-efficacy scores of
participants who were asked to recycle, Shapiro-Wilk(30)=.92, p=.021. However,
normality was assumed for participants who were asked to drive an electric vehicle,
Shapiro-Wilk(20)=.97, p=.646. Thus, the overall assumption of normality has been
53
violated.
One final note
▪ NHST
▪ Types of Errors
▪ Assumptions
▫ Normality
▫ Shapiro-Wilks
55