2026-03-22
Today
- Hypothesis Testing and Confidence Intervals
- Top Hat QuizNext Class
- Article Discussion: Shirani-Mehr, Houshmand, David Rothschild, Sharad Goel, and Andrew Gelman. 2018. “Disentangling bias and variance in election polls.” Journal of the American Statistical Association 113(522): 607–614. alternative hypothesis or H1
null hypothesis or H0
NO!!!!
How do we get from a sample with a correlation to talking about testing a hypothesis for a population?
The 68-95-99.7 Rule
68-95-99.7 rule
We can now bridge the gap between probability distributions and our sample data.
CLT ties our sample means to the normal distribution
Sample stats are unbiased estimators of population parameters
They are only point estimates, so we construct a confidence interval
- *confidence interval* a range of values around the *point estimate* that we are X% confident contains the true population parameterwe need three pieces of information:
point estimate = sample statistics
standard error = the standard deviation of the sampling distribution
critical value derived from our desired confidence level - for normal distribution this is a z-score
For 95% confidence, the critical z is 1.96
\[CI = \bar{x} \pm z \left( \frac{s}{\sqrt{n}} \right)\]
\[\frac{(n-1)s^2}{\chi^2_{\alpha/2}} \le \sigma^2 \le \frac{(n-1)s^2}{\chi^2_{1-\alpha/2}}\] - Because we have to use the Chi Square, \(\chi^2\) , distribution
- We will discuss \(\chi^2\) more in hypothesis testing
\[\sqrt{\frac{(n-1)s^2}{\chi^2_{\alpha/2}}} \le \sigma \le \sqrt{\frac{(n-1)s^2}{\chi^2_{1-\alpha/2}}}\] - Also uses the \(\chi^2\) distribution
What did we do the deviations from the mean, (\(x_i - \bar{x}\)) to compute variance?
When we square distances from the mean to get the variance, the distribution changes
By eliminating all negative numbers, the distribution becomes skewed and looks like this:
Stephen Moore code used to simulate the Law of Large Numbers
68-95-99 rule graphic Source:https://towardsdatascience.com/understanding-the-68-95-99-7-rule-for-a-normal-distribution-b7b7cbf760c2
Author: Tom Hanna
Website: tomhanna.me
- License: This work is licensed under a <a href= "http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.</>
<a href= "http://creativecommons.org/licenses/by-nc-sa/4.0/"></a>
POLS3312, Spring 2026, Instructor: Tom Hanna