What is a confidence interval?
What are the 3 elements needed to create one?
So we can say that confidence interval = …
C.I. = Sample estimate +- Margin of Error
What does the confidence level represents?
What does its complement (1-alfa) represents?
Margin of error MOE:
- how is it calculated? MOE = … x …
- what does the first … represent? the second …?
- How does the confidence level influence MOE?
The bigger the confidence lvl, the bigger the MOE.
Sample Mean:
- if we know the variance of the pop than the confidence interval CI = … x …
-if we don’t know the variance of the pop than the confidence interval CI = … x …
Sample proportion: CI = … x …
What is a hypothesis?
What does the null hypothesis Ho represent? What do we have to decide? What does it contain?
What does the alternative hypothesis H1 represent?
P-Value:
- what probability is it?
- how do you calculate it?
Type 1 and 2 errors:
- example scenario, H0, H1.
- what 2 possibilities do we have in a test?
Type 1 Error:
- when does it happen?
- example
- what is the significance level?
Type 2 error:
- when does it happen?
-example
Type I:
-when we wrongly reject H0 even if it is actually true.
- positive test even if no disease (false positive).
- the risk of making a type I error.
Type II:
- when we wrongly don’t reject H0 even if it is actually false.
- negative test even if yes disease (false negative).
Hypothesis tests:
- 3 types
- 2 possibilities
Two-tailed:
H0: mu = muo
H1: mu != muo
1. reject H0 if xtrattino not inside muo+-z alfa/2 * stddev o / sqrt(n).
2. reject H0 if p value < alfa.
Right-tailed:
H0: mu <= muo
H1: mu > muo
1. reject H0 if xtrattino > muo+z alfa * stddev o / sqrt(n).
2. reject H0 if p value < alfa.
Left-tailed:
H0: mu >= muo
H1: mu < muo
1. reject H0 if xtrattino < muo-z alfa * stddev o / sqrt(n).
2. reject H0 if p value < alfa.
At the end of an hypothesi test we can say… 2 things