How would you compute the expected number of trials until the first success?

Quick Overview

Asks how to compute the expected number of independent trials needed before the first success, using a fair die as the example. Tests knowledge of the geometric distribution, conditioning arguments for expectations, counting conventions, and when the standard assumptions fail.

How would you compute the expected number of trials until the first success?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

How would you compute the expected number of trials until the first success? Use rolling a fair die until the first 6 as a running example, and say what the answer depends on. ```hint Condition on the first trial Look at what can happen on trial one. If it fails, how does the remaining process compare with the one you started with? ``` ### What a Strong Answer Covers - The distribution that models the count and the assumptions it relies on - A derivation of the expected value along with the result - A worked number for the die example - The counting convention in use (trials or failures) and how the answer shifts between them - What happens when the assumptions do not hold ### Follow-up Questions - What is the variance of the number of trials, and why is the median below the mean? - How many rolls of a fair die do you expect before you have seen every face at least once? - How many fair coin flips do you expect until you see two heads in a row? - You draw cards without replacement until the first ace. Does the same formula apply?

Overview: Asks how to compute the expected number of independent trials needed before the first success, using a fair die as the example. Tests knowledge of the geometric distribution, conditioning arguments for expectations, counting conventions, and when the standard assumptions fail.

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

How would you compute the expected number of trials until the first success? Use rolling a fair die until the first 6 as a running example, and say what the answer depends on.

What a Strong Answer Covers Guidance

  • The distribution that models the count and the assumptions it relies on
  • A derivation of the expected value along with the result
  • A worked number for the die example
  • The counting convention in use (trials or failures) and how the answer shifts between them
  • What happens when the assumptions do not hold

Follow-up Questions Guidance

  • What is the variance of the number of trials, and why is the median below the mean?
  • How many rolls of a fair die do you expect before you have seen every face at least once?
  • How many fair coin flips do you expect until you see two heads in a row?
  • You draw cards without replacement until the first ace. Does the same formula apply?