1. Home
  2. Explore
  3. Mathematics
  4. Hypothesis Testing Framework

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Hypothesis Testing Framework

  • 28Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Hypothesis Testing Fundamentals

What is the null hypothesis (H₀) in hypothesis testing?

28 questions

  1. 1

    What is the null hypothesis (H₀) in hypothesis testing?

    1. A

      The default reality or status quo

    2. B

      The probability of seeing your data if the alternative is true

    3. C

      The maximum risk you're willing to take of being wrong

    4. D

      The exciting new theory you want to prove

    Correct answer
    A

    The default reality or status quo

    Explanation

    The null hypothesis represents the boring status quo, the default reality that we assume until evidence suggests otherwise.

  2. 2

    What does the significance level (α\alphaα) represent?

    1. A

      The probability of seeing your data if the null is true

    2. B

      The probability of rejecting the null when it is true

    3. C

      The maximum risk you are willing to take of being wrong

    4. D

      The threshold for accepting the alternative hypothesis

    Correct answer
    C

    The maximum risk you are willing to take of being wrong

    Explanation

    Alpha is the BS threshold, the maximum risk of making a Type I error that you are willing to accept, typically set at 0.05.

  3. 3

    What is the correct order of steps in the universal hypothesis testing algorithm?

    1. A

      Formulate, Compute, Calibrate, Decide

    2. B

      Formulate, Calibrate, Compute, Decide

    3. C

      Compute, Formulate, Calibrate, Decide

    4. D

      Calibrate, Formulate, Compute, Decide

    Correct answer
    B

    Formulate, Calibrate, Compute, Decide

    Explanation

    The four steps are: (1) Formulate H₀ and H₁, (2) Calibrate alpha, (3) Compute the test statistic, (4) Decide based on p-value vs alpha.

  4. 4

    When do you reject the null hypothesis?

    1. A

      When the ppp-value is greater than α\alphaα

    2. B

      When the ppp-value is greater than 0.050.050.05

    3. C

      When the ppp-value is less than α\alphaα

    4. D

      When the ppp-value equals α\alphaα

    Correct answer
    C

    When the ppp-value is less than α\alphaα

    Explanation

    If the p-value is less than the significance level alpha, we reject the null hypothesis because the result is too unlikely to be due to chance.

  5. 5

    What does a ppp-value represent?

    1. A

      The maximum acceptable risk of a Type I error

    2. B

      The probability of observing your data or more extreme if the null hypothesis is true

    3. C

      The probability that the alternative hypothesis is true

    4. D

      The probability that the null hypothesis is true

    Correct answer
    B

    The probability of observing your data or more extreme if the null hypothesis is true

    Explanation

    The p-value is the probability of getting results as extreme as the observed data, assuming the null hypothesis is correct.

  6. 6

    In the coin flip example, with 9 heads out of 10 flips and assuming a fair coin, what was the calculated ppp-value?

    1. A

      0.00100.00100.0010

    2. B

      0.09760.09760.0976

    3. C

      0.050.050.05

    4. D

      0.01070.01070.0107

    Correct answer
    D

    0.01070.01070.0107

    Explanation

    The probability of 10 heads is 0.510≈0.00097660.5^{10} \approx 0.00097660.510≈0.0009766, and 9 heads is 10×0.510≈0.009765610 \times 0.5^{10} \approx 0.009765610×0.510≈0.0097656. Summing gives 0.01070.01070.0107.

  7. 7

    In the coin flip example, if the ppp-value is 0.01070.01070.0107 and α=0.05\alpha = 0.05α=0.05, what is the conclusion?

    1. A

      The test is inconclusive

    2. B

      Accept H1H_1H1​; the coin is fair

    3. C

      Fail to reject H0H_0H0​; the coin is fair

    4. D

      Reject H0H_0H0​; the coin is rigged

    Correct answer
    D

    Reject H0H_0H0​; the coin is rigged

    Explanation

    Since 0.0107<0.050.0107 < 0.050.0107<0.05, we reject the null hypothesis that the coin is fair. The result is statistically significant.

  8. 8

    What does the Central Limit Theorem guarantee?

    1. A

      The raw data will always be normally distributed

    2. B

      The sample mean will be normally distributed for large sample sizes regardless of the population distribution

    3. C

      The population standard deviation is known

    4. D

      The sample mean equals the population mean

    Correct answer
    B

    The sample mean will be normally distributed for large sample sizes regardless of the population distribution

    Explanation

    The Central Limit Theorem states that the sampling distribution of the sample mean approaches a normal distribution as sample size increases, even if the population distribution is not normal.

  9. 9

    In the ZZZ-test formula, what does the denominator represent?

    1. A

      The noise, or standard error

    2. B

      The signal

    3. C

      The effect size

    4. D

      The ppp-value

    Correct answer
    A

    The noise, or standard error

    Explanation

    The denominator σ/n\sigma / \sqrt{n}σ/n​ is the standard error, which measures the natural variation in the sample mean.

  10. 10

    In the chip factory example, what was the calculated ZZZ-score?

    1. A

      0.710.710.71

    2. B

      1.491.491.49

    3. C

      2.002.002.00

    4. D

      2.832.832.83

    Correct answer
    D

    2.832.832.83

    Explanation

    Z=102−1005/50=20.7071≈2.83Z = \frac{102 - 100}{5 / \sqrt{50}} = \frac{2}{0.7071} \approx 2.83Z=5/50​102−100​=0.70712​≈2.83.

  11. 11

    In the ZZZ-test for the chip factory, why was the test two-tailed?

    1. A

      Because the alternative hypothesis was that the mean is not equal to 100

    2. B

      Because the sample size was 50

    3. C

      Because the sample mean was greater than 100

    4. D

      Because the population standard deviation was known

    Correct answer
    A

    Because the alternative hypothesis was that the mean is not equal to 100

    Explanation

    The alternative hypothesis H1H_1H1​ was that the machine is broken (μ≠100\mu \neq 100μ=100), so we consider deviations in both directions.

  12. 12

    When is a ttt-test preferred over a ZZZ-test?

    1. A

      When the sample size is small and the population standard deviation is unknown

    2. B

      When the data is categorical

    3. C

      When the sample size is large

    4. D

      When the population standard deviation is known

    Correct answer
    A

    When the sample size is small and the population standard deviation is unknown

    Explanation

    The t-test is used when the population standard deviation is unknown and must be estimated from the sample, which introduces extra uncertainty, especially with small samples.

  13. 13

    In the new button A/B test example, why did the ttt-test fail to reject the null hypothesis?

    1. A

      The sample standard deviations were unequal

    2. B

      The signal was too small

    3. C

      The noise was too large relative to the signal

    4. D

      The ppp-value was exactly 0.050.050.05

    Correct answer
    C

    The noise was too large relative to the signal

    Explanation

    With small sample sizes (n=10n=10n=10 per group), the noise (standard error) was large, giving a ttt-score of only 1.491.491.49 and a ppp-value of 0.150.150.15, which is above α=0.05\alpha=0.05α=0.05.

  14. 14

    What are the two ways to increase the power of a ttt-test?

    1. A

      Increase sample size or increase effect size

    2. B

      Decrease alpha or increase sigma

    3. C

      Use a one-tailed test

    4. D

      Decrease sample size or increase effect size

    Correct answer
    A

    Increase sample size or increase effect size

    Explanation

    To increase power, you can either increase the effect size (signal) or increase the sample size to reduce noise. Both make it easier to detect a true effect.

  15. 15

    What type of data is the chi-square test used for?

    1. A

      Categorical data like clicks or conversion

    2. B

      Binary data only

    3. C

      Continuous data like time and revenue

    4. D

      Ordinal data like rankings

    Correct answer
    A

    Categorical data like clicks or conversion

    Explanation

    The chi-square test is designed for categorical (discrete) data, such as counts or proportions in categories.

  16. 16

    In the chi-square test, what does the expected table represent?

    1. A

      The minimum expected counts for validity

    2. B

      The maximum possible values

    3. C

      What would be observed if the null hypothesis were true

    4. D

      The observed data from the experiment

    Correct answer
    C

    What would be observed if the null hypothesis were true

    Explanation

    The expected table shows what we would expect to see if the null hypothesis (no difference between groups) were true, based on the overall averages.

  17. 17

    In the red button test, what was the calculated chi-square statistic?

    1. A

      1.671.671.67

    2. B

      0.04770.04770.0477

    3. C

      2.832.832.83

    4. D

      3.923.923.92

    Correct answer
    D

    3.923.923.92

    Explanation

    χ2=(10−15)215+(20−15)215+(90−85)285+(80−85)285=1.67+1.67+0.294+0.294=3.92\chi^2 = \frac{(10-15)^2}{15} + \frac{(20-15)^2}{15} + \frac{(90-85)^2}{85} + \frac{(80-85)^2}{85} = 1.67 + 1.67 + 0.294 + 0.294 = 3.92χ2=15(10−15)2​+15(20−15)2​+85(90−85)2​+85(80−85)2​=1.67+1.67+0.294+0.294=3.92.

  18. 18

    What is ppp-hacking?

    1. A

      Repeatedly checking the ppp-value during an experiment and stopping early when it becomes significant

    2. B

      Failing to set a significance level

    3. C

      Using a ppp-value greater than 0.050.050.05

    4. D

      Using a chi-square test on continuous data

    Correct answer
    A

    Repeatedly checking the ppp-value during an experiment and stopping early when it becomes significant

    Explanation

    P-hacking involves peeking at the p-value during the experiment and stopping as soon as it falls below the threshold, which invalidates the test's assumptions.

  19. 19

    What is the recommended practice to avoid ppp-hacking?

    1. A

      Pre-commit to a sample size and do not peek until the experiment ends

    2. B

      Always use a one-tailed test

    3. C

      Run the experiment for at least one week

    4. D

      Use a higher alpha like 0.100.100.10

    Correct answer
    A

    Pre-commit to a sample size and do not peek until the experiment ends

    Explanation

    The professional approach is to pre-commit to a sample size, run the test without peeking, and check the p-value only once at the end.

  20. 20

    In the Google problem, why was the change not launched despite a very low ppp-value?

    1. A

      The effect was not statistically significant

    2. B

      The ppp-value was incorrectly calculated

    3. C

      The effect was not practically significant

    4. D

      The sample size was too small

    Correct answer
    C

    The effect was not practically significant

    Explanation

    A 0.001-second improvement is statistically significant due to large sample size, but it is practically insignificant because it provides no real-world value.

  21. 21

    What should you always check before making a decision based on a hypothesis test?

    1. A

      Only the effect size

    2. B

      Both the ppp-value and the effect size

    3. C

      Only the ppp-value

    4. D

      The sample size and the standard deviation

    Correct answer
    B

    Both the ppp-value and the effect size

    Explanation

    Statistical significance (p-value) tells you if the effect is real; practical significance (effect size) tells you if it matters. Both are necessary for a good decision.

  22. 22

    What does practical significance refer to?

    1. A

      The sample size required

    2. B

      The statistical significance of the result

    3. C

      The ppp-value threshold

    4. D

      The magnitude of the effect and whether it matters in the real world

    Correct answer
    D

    The magnitude of the effect and whether it matters in the real world

    Explanation

    Practical significance asks whether the effect is large enough to be meaningful, regardless of whether it is statistically significant.

  23. 23

    In the Google problem, why was the ppp-value extremely small despite a tiny effect?

    1. A

      Because the test was misapplied

    2. B

      Because the sample size was huge

    3. C

      Because the alternative hypothesis was one-tailed

    4. D

      Because the effect size was large

    Correct answer
    B

    Because the sample size was huge

    Explanation

    With a very large sample size (e.g., 50 million), even a minuscule difference becomes statistically significant because the test has high power.

  24. 24

    According to the decision matrix, which test should be used for continuous data when asking if the average differs from a target, and the population standard deviation is known?

    1. A

      Two-sample ttt-test

    2. B

      Paired ttt-test

    3. C

      Chi-square test

    4. D

      One-sample ZZZ-test

    Correct answer
    D

    One-sample ZZZ-test

    Explanation

    When the population standard deviation is known, the one-sample Z-test is appropriate for testing whether the mean differs from a target value.

  25. 25

    According to the decision matrix, which test should be used for categorical data when asking if conversion rates differ between groups?

    1. A

      ANOVA

    2. B

      Chi-square test

    3. C

      ZZZ-test

    4. D

      ttt-test

    Correct answer
    B

    Chi-square test

    Explanation

    For categorical data like conversion rates, the chi-square test of independence is the correct tool to compare observed frequencies across groups.

  26. 26

    In the binom.test function in Python's scipy.stats, what does the parameter alternative='greater' represent?

    1. A

      The test is two-tailed

    2. B

      The test is one-tailed (greater side)

    3. C

      The test is for greater sample sizes

    4. D

      The alternative hypothesis is that the proportion is less than null

    Correct answer
    B

    The test is one-tailed (greater side)

    Explanation

    Setting alternative='greater' specifies a one-tailed test for the alternative that the true proportion is greater than the null value, used here to compute the probability of 9 or more heads.

  27. 27

    In Python's scipy.stats, which function is used to perform a two-sample ttt-test?

    1. A

      ttest_ind

    2. B

      binom.test

    3. C

      ttest_1samp

    4. D

      ttest_rel

    Correct answer
    A

    ttest_ind

    Explanation

    ttest_ind is the independent two-sample t-test, used to compare means of two independent groups.

  28. 28

    In Python's scipy.stats, which function is used for a chi-square test of independence?

    1. A

      chisquare

    2. B

      contingency.chi2

    3. C

      chi2_test

    4. D

      chi2_contingency

    Correct answer
    D

    chi2_contingency

    Explanation

    chi2_contingency performs a chi-square test of independence on a contingency table of observed counts.

Question 1 of 28
Question 1 of 28

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent