17 - Statistical Tests Flashcards

1
Q

Hypothesis Test

A
  • allows us to make a decision between 2 options
  • provides a measure of the weight of evidence against the null hypothesis ⇒ p-value
    • p-value adds more force to your conclusions
  • quantifies the 2 types of errors, Type 1 and Type 2, alpha and beta
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

null and alternative hypotheses

A

null (H0) = status quo

alternative (H1) = converse of the null

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

Type 1 Error

A

alpha

Reject H0 incorrectly

false positive

innocent, but declare guilty

null true, but go with alternative

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

Type 2 Error

A

beta, ß

Retain H0 even when Ha is true

false negative

guilty, but say innocent

alternative true, but go with null

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

test statistic

A

sample statistic that estimates the population parameter specified by the null and alternative hypotheses.

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

The test statistic determines…

A

whether we reject H0

“What is the chance of getting a test statistic this far from H0 if H0 is true?”

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

Normal model for the sampling distribution of p^

A

p^ ~ N[p, p(1-p)/n]

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

Significance Level

A

a; the chance of making a Type I error

Ex. if cut-off value for the test is 2, a=.05

if cut-off value for test is 1.645, a=.10

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

t-test statistic

A

test statistic for testing a single mean against a hypothesized value

t-stat = (Xbar-µ0)/(s/sqr(n))

n = sample size, s = sample SD

Xbar = sample mean

µ0 = hypothesized value under the Null

**calculating how far away what we see (Xbar) is away from what we expect (µ0), but on a standardized scale (the Empirical Rule scale)

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

Assumptions for t-test statistic

A
  1. SRS
  2. sample size small compared to pop size (less than 10%)
  3. sample size large enough for CLT to have kicked in
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

p-value

A

measures credibility of Null

small p-values give evidence against the Null

  • small p says it would be hard to replicate under Null → evidence against Null
    • since you should be able to replicate observed results if Null is true

also: the p-value is the smallest alpha-level at which H0 can be rejected

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

P-value mantra

A

If the p-value is less than 0.05, then reject H0 at the a=0.05 level of significance

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

Testing Process

A
  • Compare the test-statistic to the cut-off value or compare the p-value to a
  • If the test statistic exceeds the cut-off value or the p-value is less than a then reject H0.

**cut-off value comes from looking up the appropriate quantile in the t-tables, but value is rounded to 2 for simplicity when the test is two-sided and a = 0.05

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

Power of a test

A

1-ß (doing the right thing when the alternative is true)

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

Z-test for population proportion

A

Z = (p^-p0)/sqr[p0(1-p0)/n]

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

One/Two-sided alternatives

Ex. We are better than the competition

We are worse than the competition

(how to determine w/JMP Data)

A

Achieve this by looking at the appropriate one-sided p-value (match the sign in the JMP output to the sign in the alternative hypothesis)

Ex. H0 :p0 ≤0.45 v. H1 :p0 >0.45

use Prob > t

17
Q

Calculating Beta and Power

A
  1. given the alpha value → this is the area under the distrib
  2. use alpha to find z value
  3. convert z value to Xbar value
  4. convert back to z value when given alternate µ value
  5. calculate area under the curve w/z value; use standard normal table