How do you test whether an observed proportion differs from a hypothesized value, and which statistic do you use?

Quick Overview

Asks how to test whether an observed proportion differs from a hypothesized value and which test statistic to use. Tests the one-proportion z-test, the choice of standard error under the null, and when an exact binomial test should replace the normal approximation.

How do you test whether an observed proportion differs from a hypothesized value, and which statistic do you use?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

How would you test whether an observed proportion differs from a hypothesized value, and what test statistic would you use? For example, a coin lands heads 62 times in 100 flips. Is that different from a fair coin? ```hint Work under the null Think about what the null hypothesis says the variance of the sample proportion is, and when the normal approximation to the binomial stops being safe. ``` ### What a Strong Answer Covers - The null and alternative hypotheses, with one-sided or two-sided chosen before looking at the data - The z statistic and which value goes into its standard error - When the normal approximation holds and what to use when it does not - A worked example with the p-value and the conclusion ### Follow-up Questions - How would you build a confidence interval for the proportion, and why is the Wilson interval often preferred over the Wald interval? - How does the test change when you compare two observed proportions, such as conversion in two A/B test arms? - What happens to this test if each user contributes many trials, for example several sessions each? - How large a sample would you need to detect a true rate of 0.55 against 0.5 with 80% power?

Overview: Asks how to test whether an observed proportion differs from a hypothesized value and which test statistic to use. Tests the one-proportion z-test, the choice of standard error under the null, and when an exact binomial test should replace the normal approximation.

PracHub logo
General
Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

How would you test whether an observed proportion differs from a hypothesized value, and what test statistic would you use?

For example, a coin lands heads 62 times in 100 flips. Is that different from a fair coin?

What a Strong Answer Covers Guidance

  • The null and alternative hypotheses, with one-sided or two-sided chosen before looking at the data
  • The z statistic and which value goes into its standard error
  • When the normal approximation holds and what to use when it does not
  • A worked example with the p-value and the conclusion

Follow-up Questions Guidance

  • How would you build a confidence interval for the proportion, and why is the Wilson interval often preferred over the Wald interval?
  • How does the test change when you compare two observed proportions, such as conversion in two A/B test arms?
  • What happens to this test if each user contributes many trials, for example several sessions each?
  • How large a sample would you need to detect a true rate of 0.55 against 0.5 with 80% power?