Hypothesis Testing Flashcards

1
Q

What is type 1 error? What is it equal to? Give an example.

A

Type 1 error = reject H0 when it’s true
P(Type 1 error) = alpha - significance level
E.g. Convicting an innocent person

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a type 2 error? What is it equal to? Give an example

A

Type 2 error = accepting H0 when it’s false
P(Type 2 error) = 1 - Power

E.g. letting a guilt person go free

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does it mean if we have a smaller significant level?

A

Smaller alpha = smaller type 1 error

We want to minimise the chance of convicting an innocent person = more likely to accept H0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Normal CV for 10% in one tail

A

1.280

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Normal CV for 5% in one tail

A

1.645

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Normal CV for 2.5% in one tail

A

1.960

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Normal CV for 1% in one tail

A

2.320

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Normal CV for 0.5% in one tail

A

2.575

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If H0: M=70
H1: M<70
And alpha =5%, what is the CV if the underlying distribution is normal?

A

CV for 5% = 1.645

Since One sided alternative is less than:
CV = negative 1.645

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

For basic hypothesis test: what test do we use if X is NOT normal but n>25/30?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

For basic hypothesis test: is X is normal but sigma^2 unknown, what test do we do?

A

T test using S^2 (sample variance)

T= X bar - M0 / sqrt S^2/n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If the underlying series is a Bernoulli trial, and n>25/30, how is X bar distributed?

A

M = p and sigma^2 = p(1 - p)

X bar is approx normal with mean of p and p(1 - p) / n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Diff in means: expectation and variance of X1 bar - X2 bar

A

E(X1 bar - X2 bar) = 0

V(X1 bar - X2 bar) = (sigma1) ^2 / n1 + (sigma2) ^2 / n2

As independent random samples covariance = 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Diff in means: if X1 & X2 Normal but population variances unknown

A
  1. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What test do we do for equality of variance?

A

F test = S1 ^2 / S2 ^2 for S1 ^2 > S2 ^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What test do we do to test the variance of a distribution? What condition must hold for us to do this?

A

X MUST be normally distributed.

Chi-Squared test: Xn-1 = (n - 1) S^2 / sigma0 ^2

17
Q

What is matched pairs?

A

X1 & X2 are not independent - they are from the same sample.

18
Q

Variance of matched pairs vs random sample

A

Matched pairs: V(X1 - X2 all bar) = sigma1 ^2 + sigma2 ^2 - 2COV / n

Random sample: V(X1 bar - X2 bar) sigma1 ^2 / n1 + sigma2 ^2 / n2
As COV is positive, variance of matched pairs smaller so more efficient

19
Q

Matched pairs test statistic

A

Normal but sigma unknown –> t test

T = d bar - 0 / (sqrt Sd ^2 / n)

20
Q

What value of sigma do we assume if it is not given and we don’t have the sample variance either

A

0.5(0.5)

This gives the greatest value

21
Q

What is power?

A

Power = 1 - Type 2 error

Power = P( reject H0 given H0 false)
Probability of correctly rejected the null.

22
Q

3 stages to working out power

A
  1. What is our CV - what distribution? 2-sided = +- CV
  2. Convert CV to our null distribution = Xc
  3. Under MT, work out probability Z is > Xc if H1 is >
23
Q

Can power be in both tails? When?

A

If we have a 2 sided alternative, we use +- CV which gives us two Xc s for power.

24
Q

What values can power lie between?

A

Alpha = significant level and 100%

25
Q

When is power = significance level?

A

When the null distribution and true distributions are the same.

26
Q

What is ANOVA? Why use it?

A

ANOVA = analysis of variance

Allows us to test equality of means among > 2 groups instead of doing separate tests which makes it inevitable that we reject H0 at some point

27
Q

3 assumptions for ANOVA

A
  1. X normally distributed
  2. Variances of each group the same
  3. Independent random samples
28
Q

Test statistic for ANOVA

A

F = [BSS / (k - 1)] / [WSS / (n - k)]

29
Q

For ANOVA how do we calculate the overall sample mean X bar?

A

X bar = X1bar n1 + X2bar n2 + … + Xkbar nk / n

We weight the sample Mean for each group by the number in the group.

30
Q

DOF for BSS for ANOVA

A

K - 1 where k is the number of groups

31
Q

DOF for WSS for ANOVA

A

n - k where n is overall sample size and k is the number of groups

32
Q

Diff in means where we are looking at proportions, how do we work out variances?

A

S1^2 & S2^2 worked out using X1bar and X2 bar proportions success x proportion failure.

Since P1=P2 under H0, pool sample variances so find S0^2 & use this.

33
Q

If n>25/30 and are using sample PROPORTIONS, what distribution do we use for difference in means and if sigmas unknown, what variance?

A

Invoke CLT = approx normal.

Use a POOLED sample variance: (n1 - 1)proportion 1 + (n2 - 1)proportion 2 / n1 + n2 - 2