Statistical Tests interview question

StatisticsStatistical TestsHypothesis Testingbasic

When is a one-sample t-test the appropriate test?

  1. AWhen comparing the mean values of two independent groups whose population standard deviations are both unknown.
  2. BWhen checking whether the category proportions in one sample match a set of proportions fixed in advance.
  3. CWhen testing whether one sample's mean differs from a fixed reference value, with the population σ unknown.
  4. DWhen checking whether a single sample of numeric values comes from a normal or a skewed distribution.
Show the answer and explanation

Correct answer: C, When testing whether one sample's mean differs from a fixed reference value, with the population σ unknown.

Explanation Statistical Tests

A one-sample t-test asks whether the mean of one sample differs from a fixed, pre-specified value μ₀ when the population standard deviation is unknown and must be estimated by the sample SD s. Example: do bottles from a filling line average the labelled 500 ml?

Test statistic: t = (x̄ − μ₀) / (s / √n), compared with a t-distribution with n − 1 degrees of freedom.

Why the other uses belong to other tests:

  • Two independent group means: independent two-sample t-test (or Welch's t-test).
  • Category proportions against fixed expected proportions: chi-square goodness-of-fit test.
  • Checking normality of a sample: a normality test such as Shapiro–Wilk, or a Q-Q plot.

Assumptions: independent observations and approximately normal data (less critical for large n, thanks to the CLT).

Interview tip: name the three ingredients: one sample, one fixed reference value, σ estimated from the data.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. What is the correct interpretation of a 95% confidence interval for a population mean?
  2. What does Spearman's rank correlation coefficient measure?
  3. Which set of conditions is the standard list of assumptions behind classical linear regression inference?
  4. In information theory, what does the Shannon entropy H(X) of a discrete random variable measure?
  5. What is the difference between descriptive and inferential statistics?