Causal Inference, Hypothesis Testing, Z-scores
POLS 3316: Statistics for Political Scientists
2023-10-28
Standard Errors - distance between sample and population data
Z-scores - probability that sample represents the true population data
+ Z- Score tables
Except…
These are easy compared to the big issue…
That’s aspirational
SE = \(\frac{\sigma}{\sqrt{n}}\)
\(Z = \frac{\bar{x}-\mu}{SE}\) or Z = \(\frac{\bar{x} - \my}{\sigma_{\bar{x}}}\)
Z-table
Is the sample mean height shorter than the population mean height?
p < .05
SE = \(\frac{\sigma}{\sqrt{n}}\)
SE = \(\frac{\sigma}{\sqrt{n}}\)
\(\frac{3}{\sqrt{100}} = 0.3\)
\(Z = \frac{\bar{x}-\mu}{SE}\) or Z = \(\frac{\bar{x} - \my}{\sigma_{\bar{x}}}\)
\(Z = \frac{\bar{x}-\mu}{SE}\) or Z = \(\frac{\bar{x} - \my}{\sigma_{\bar{x}}}\)
\(Z = \frac{5'9"-5'10"}{0.3} = -3.33\)
Critical z-Values for a 95% confidence interval:
Z < 1.96: “the null hypothesis is retained”
- The Theory is Wrong
Z < 1.96: “the null hypothesis is retained”
- The Theory is Wrong
- As written
Z < 1.96: “the null hypothesis is retained”
- The Theory is Wrong
- As written
- In some way
Possible: “the null hypothesis is retained”
- The Theory is Wrong
- As written
- In some way
Z > 1.96:
Possible: “the null hypothesis is retained”
- The Theory is Wrong
- As written
- In some way
Z > 1.96: “the null hypothesis is rejected”
Possible: “the null hypothesis is retained”
- The Theory is Wrong
- As written
- In some way
Z > 1.96: “the null hypothesis is rejected”
- The Theory is Right??
Possible: “the null hypothesis is retained”
- The Theory is Wrong
- As written
- In some way
Z > 1.96: “the null hypothesis is rejected”
- The Theory is Right??
NO!!!!!!
The evidence supports the hypothesis.
The evidence supports the hypothesis.
The evidence is consistent with the theory.
The evidence supports the hypothesis.
The evidence is consistent with the theory.
The null hypothesis is rejected and the evidence is consistent with the hypothesized effect.
The evidence supports the hypothesis.
The evidence is consistent with the theory.
The null hypothesis is rejected and the evidence is consistent with the hypothesized effect.
What about certainty and proof?
Bayes Rule
We need to be precise about what we mean by a cause
We need to understand what statistics can tell us about causation and what it can’t
- Correlation does not *prove* causation
- but correlation can *help establish* causation
- We need to understand the limits of data and statistics
- We also need to understand the capabilities of data and statistics
Some of the things in these notes are from courses I took, some are from assorted books, some are from these two sources which are at least somewhat readable and free:
https://egap.org/resource/10-things-to-know-about-hypothesis-testing/
https://egap.org/resource/10-things-to-know-about-causal-inference/
If we say X caused Y, we mean: If X didn’t happen, Y would not happen, everything else being held the same.
Statistics are about average causal effects, not single data points or individual effects. The average effects may conflict with anecdotal evidence. This is partially because…
The technical phrase here is: Causes are non-rival.
and still be causes
It’s a lot easier to measure effects than to find causes.
The Null Hypothesis and counterfactuals
+ We can measure the probability an effect is due to random chance (the null hypothesis)
+ Formal hypothesis tests give us this value, the *p-value*
+ Theory provides an *alternative hypothesis* which we believe to be true based on the theory
+ Well designed hypotheses can help with the unobserved counterfactual
+ When we reject the null, we can determine that "the evidence is consistent with the alternative hypothesis" and the theory
Author: Tom Hanna
Website: tomhanna.me
License: This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.</>
Z-Table image from: https://byjus.com/maths/z-score-table/
Full Z-Table from unknown course I took sometime in the last 8 years
Other images referenced in previous lectures
GOVT2306, Fall 2023, Instructor: Tom Hanna