{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Topic 5: Hypothesis Testing Flashcards

(36 cards)

1
Q

What is the simple null vs composite null, and the composite one sided vs 2 sided alternative (2,2)

A

-H0: θ = θ0 is the simple null
-H0: θ ≤ or ≥ θ0 is the composite null

-H1: θ ≠ θ0 is the composite 2 sided alternative
-H1: θ < or > θ0 is the composite 1 sided alternative

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

What is a type one error (2)

A

-A type 1 error is when you reject a true H0 (finding innocent as guilty)
-P(T1 error) = a = significance level (how often you are willing to incorrectly reject the null hypothesis

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

What is a type 2 error (2)

A

-A type 2 error is the probability of accepting a false H0 (finding guilty as innocent)
-P(T2 error) = β

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

What is the power of a test (2)

A

-The power of a test is the probability of correctly rejecting a false H0
-This is 1 - β

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

What is the p value (1)

A

-The probability of getting the result you do with the null hypothesis

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

What is the decision rule (2)

A

-If the p value < a, you reject H0, but you don’t reject if the p value > a
-The higher a is, the more liberal you are

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

What are the 5 steps in a hypothesis test (5)

A

-Specify the null
-Specify the alternative
-Choose the significance level and corresponding critical region
-Calculate the test order null hypothesis
-Compare the test statistic with the critical value

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

What is the normal distribution of a sample n with known variance, and how do we standardise this (2)

A

-x̄ ~ N(µ, σ2/n)
-Z = (x̄ - µ)/√σ2/n

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

How would you set up the single mean hypothesis test if the distribution is not normal, n > 25 and with a known variance (3)

A

-Suppose there’s n observations from a non-normal distribution, with unknown mean µ and known variance σ2
-By the CLT (if n > 25) we can say x̄ ~a N(µ, σ2/n)
-We then do the 5 step procedure

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

How would you set up a single mean hypothesis test with an unknown distribution and unknown variance, and n > 25 (3)

A

-Suppose there’s n observations from a non-normal distribution, with unknown mean µ and unknown variance σ2, with sample variance estimator S2
-By the CLT (if n > 25) we can say x̄ ~a N(µ, S2/n)
-We then do the 5 step procedure

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

How do we set up a single mean hypothesis test with a bernoulli distribution and CLT (4)

A

-Take a bernoulli distribution, where P(X = 1) = π, P(X = 0) = 1 - π
-E(X) = π, V(X) = π(1-π), so E(x̄) = π, V(x̄) = π(1-π)/n (unknown mean and population variance)
-By the CLT with H0: µ = π0, x̄ ~a N(π0, π0(1 - π0)/n)
-Now, the 5 step procedure is the same as before

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

How do we set up a single mean hypothesis test with a normal distribution and unknown variance (5)

A

-Suppose n observations from a normal distribution, with unknown σ2 and sample variance estimator S2
-E(x̄) = µ, V(x̄) = σ2/n
-If we then divide the normal standardisation formula with the Chi-squared formula ((n-1)S22(n-1), this is equal to (X_ - µ)/(S2/√n)
-This approximates to a standard normal distribution/(chi squared with n-1 DoF/n-1) which is the t-ratio
-Hence, we run the five step procedure but with a tn-1 distribution

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

What is the standardisation process for a t distribution (1)

A

-(x̄ - µ)/(√S2/n) ~ tn-1

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

How can we apply the CLT to a t distribution (1)

A

-For n > 25, the t distribution is approximated by a standard normal distribution

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

What are the expected value’s and variance when testing for the difference in means (2)

A

-E(X̄1 - X̄2) = µ1 - µ2
-V(X̄1 - X̄2) = σ21/n1 + σ22/n2

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

What is the 5-step procedure for testing the difference of means with a normal underlying distribution and known population variances (1,5)

A

-X̄1 - X̄2 ~ N(µ1 - µ221/n1 + σ22/n2)

1: H0: µ1 - µ2 = D, so X̄1 - X̄2 ~ N(D,σ21/n1 + σ22/n2)
2: H1: µ1 - µ2 ≠ D
3: The critical values are ± za/2
4: The test statistic is Z = ((x̄1 - x̄2) - D)/√(σ21/n1 + σ22/n2)
5: Decision rule, compare test statistic and critical values

17
Q

How do we set up an equality of means hypothesis test with a non-normal underlying distribution, known population variance and n>25 (2)

A

-By the CLT, we can get X̄1 - X̄2 ~aN(µ1 - µ2, σ21/n1 + σ22/n2)
-Then, the 5 step procedure is as usual

18
Q

How do we set up an equality of means hypothesis test with a non-normal underlying distribution, unknown population variance and n>25 (2)

A

-By the CLT, we can get X̄1 - X̄2 ~aN(µ1 - µ2, S21/n1 + S22/n2)
-Then, the 5 step procedure is as usual

19
Q

How would we do an equality of means test coming from a bernoulli distribution where n > 25 (1,5)

A

-If X1 and X2 come from a bernoulli distribution, then x̄1 - x̄2 ~a N(µ1 - µ2, σ21/n1 + σ22/n2)

The 5 step procedure is hence:
-H0: π1 - π2 = 0 and so under H01 - x̄2 ~a N(0, π0(1-π0)/n1 + π0(1-π0)/n2)
-H1: π1 - π2 ≠ 0
-The critical values are +-za/2
-The test statistic is z = (x̄1 - x̄2 - 0)/√(p0(1-p0)(1/n1 + 1/n2), where p0 = (n11 + n22)/(n1 + n2)
-Make your decision rule

20
Q

How would we do an equality of means test if the underlying distribution is normal, and the population variances are unknown, but equal (5,1)

A

-H0: µ1 - µ2 = D0
-H1: µ1 - µ2 ≠ D0
-The critical values are from a t-distribution, denoted ±ta/2, (n1+n2-2)
-The test statistic is t = ((x̄1 - x̄2) - D0)/√s20(1/n1 + 1/n2), where s20 = ((n1 - 1)s21 + (n2 - 1)s22)/(n1 + n2 - 2)
-Make the decision rule

-Note to use this test you have to prove in a prior test that the population variances aren’t different

21
Q

How would we do an equality of means test if the underlying distribution is normal, and the population variances are unknown, but not equal (5,1)

A

-H0: µ1 - µ2 = D0
-H1: µ1 - µ2 ≠ D0
-The critical values are from a t-distribution, denoted ±ta/2, DoF, where DoF = [(s21/n1) + (s22/n2)]2/(((s21/n1)2/(n1-1)) + ((s22/n2)2/(n2-1)))
-The test statistic is t = ((x̄1 - x̄2) - D0)/√(s21/n1 + s22/n2
-Make the decision rule

-Note to use this test, you have had to have proven the population variances aren’t the same

22
Q

How do we test for a single variance (1,5)

A

-To formulate a hypothesis for testing the population variance, the distribution of the random variable X must be normally distributed

-H0: σ2 = σ20
-H1: σ2 > σ20
-The critical value is from a χ2 distribution, denoted χ2a, n-1
-The test statistic is (n-1)s220
-Make the decision rule (reject if TS > CV)

23
Q

How can we test for the equality of variance (1,5)

A

-To formulate this test, the distribution of random variables X1 and X2 must be normally distributed

-H0: σ21 = σ22
-H1: σ21 ≠ σ22
-The critical value is from the F distribution, denoted Fa/2n1-1, n2-1
-The test statistic is F = s21/s22 (always put the higher sample standard deviation on the top)
-Make the decision rule (reject if TS > CV)

24
Q

When do you use matched pairs (3)

A

-This is to test 2 events which aren’t independent
-Formulating about µ1 - µ2, when X1 and X2 are with the same sample
-Apart from artificial examples, if you can’t get matched pairs, you go as close as possible

25
What is the expected value + variance of matched pairs (2)
-E(D) = E(X1 - X2) = µ1 - µ2 = µd -V(X) = V(X1 - X2) = σ21 + σ22 - 2σ12 = σ2d
26
How do we normalise a matched pairs distribution (1,1,3,1)
-Assuming the underlying distribution of X1~N(µ1, σ21) and X2~N(µ2, σ22) -Đ = X̄1 - X̄2~N(µ1 - µ2, σ2d) -Define the difference as d1 = x11 - x12, ..., dn = xn1 - xn2 -Calculate đ = ∑di/n -Calculate s2d = (∑di - đ)2/(n-1) -Normalising the expression gives us ((X̄1 - X̄2) - (µ1 - µ2))/(√S2d/n) ~ tn-1
27
What is the five step procedure for an equality of means test (5)
-H01 - µ2 = µd = D0 -H11 - µ2 = µd ≠ D0 -The critical values are +-ta/2, n-1 -The test statistic is ((X̄1 - X̄2) - (µ1 - µ2))/(√S2d/n) ~ tn-1 -Make the decision rule (Reject if TS>CV)
28
What is the power of a test (1)
-Power = P(Reject H0|H0 false)
29
What is the 3 step procedure for calculating the power of a test (1,2,2)
-Define the critical value as the point at which you reject H0 -Find the sample mean x̄c which would give you the exact critical value -x̄c = +-za/2(√S2/n) + µd -Calculate the probability of rejecting that sample mean with your true mean -Calculate [P(X̄c|µ = µ1]
30
What do we use an ANOVA test for (1)
-ANOVA (ANalysis Of VAriance) to test for the equality of means across two or more groups
31
What do we assume for an ANOVA test (3)
-Random sample -Normal distribution -Variance for each group is the same
32
What does TSS, BSS and WSS and the relationship between them (3,1)
-TSS = the Total Sum of Squares (the overall amount of variation in the variable X) -WSS = the Within Sum of Squares (the amount of variation within each of the k groups) -BSS = the Between Sum of Squares (the amount of variation across the k groups) -TSS = BSS + WSS
33
How do you work out the TSS (2)
-TSS = ∑kj=1nji=1 (Xji - X̄)2 -TSS = variance x degrees of freedom
34
How do you work out the BSS (2)
-BSS = ∑kj=1 nj(X̄j - X̄)2 -BSS = n(mean of each category - overall mean)2 for each category
35
How do you work out the WSS (2,3)
-WSS =∑kj=1njI=1(Xij - X̄j)2 -WSS = (each data value - mean of that category)2 for each value -However, this is inefficient to work out -One method of working out WSS is (n-1)(variance of a group) then adding this for all groups -Another method is using the fact that TSS = WSS + BSS, and working out TSS and BSS
36
What is the five step procedure for an ANOVA test (5)
-H0: µ1 = µ2 = ... = µk -H1: µj ≠ µl for j ≠ l -The critical values are Fak-1, n-k (n is the number of values, k is the number of means) -The test statistic is F = ((BSS)/(k-1))/((WSS)/(n-k)) -Make the decision rule (Reject if TS > CV)