Hypothesis Testing Flashcards
What is type 1 error? What is it equal to? Give an example.
Type 1 error = reject H0 when it’s true
P(Type 1 error) = alpha - significance level
E.g. Convicting an innocent person
What is a type 2 error? What is it equal to? Give an example
Type 2 error = accepting H0 when it’s false
P(Type 2 error) = 1 - Power
E.g. letting a guilt person go free
What does it mean if we have a smaller significant level?
Smaller alpha = smaller type 1 error
We want to minimise the chance of convicting an innocent person = more likely to accept H0
Normal CV for 10% in one tail
1.280
Normal CV for 5% in one tail
1.645
Normal CV for 2.5% in one tail
1.960
Normal CV for 1% in one tail
2.320
Normal CV for 0.5% in one tail
2.575
If H0: M=70
H1: M<70
And alpha =5%, what is the CV if the underlying distribution is normal?
CV for 5% = 1.645
Since One sided alternative is less than:
CV = negative 1.645
For basic hypothesis test: what test do we use if X is NOT normal but n>25/30?
N>23/30 = can invoke CLT
X bar is approximately normal with a mean M and variance sigma^2/n or S^2/n. Whether sigma^2 is known or not, we still do Z test.
For basic hypothesis test: is X is normal but sigma^2 unknown, what test do we do?
T test using S^2 (sample variance)
T= X bar - M0 / sqrt S^2/n
If the underlying series is a Bernoulli trial, and n>25/30, how is X bar distributed?
M = p and sigma^2 = p(1 - p)
X bar is approx normal with mean of p and p(1 - p) / n
Diff in means: expectation and variance of X1 bar - X2 bar
E(X1 bar - X2 bar) = 0
V(X1 bar - X2 bar) = (sigma1) ^2 / n1 + (sigma2) ^2 / n2
As independent random samples covariance = 0
Diff in means: if X1 & X2 Normal but population variances unknown
- Test equality of variances
If can assume sigma1 squared = sigma2 squared, pool variances & dof = n1 + n2 - 2
If sigmas not equal, do not pool and use complicated dof formula.
What test do we do for equality of variance?
F test = S1 ^2 / S2 ^2 for S1 ^2 > S2 ^2