Qm

How long between green days?

A stock closes either green (up) or red (down) each day, and the next day depends only on today:

  • If green today, it is red tomorrow with probability 0.60.6 (and green with probability 0.40.4).
  • If red today, it is green tomorrow with probability 0.20.2 (and red with probability 0.80.8).

Today the stock closed green.

On average, how many days until the stock closes green again (its expected return time to a green day)?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Gas molecules shuffling between two chambersHow long until the machine restocks?How long until the server is back up?How long between charging sessions?How long until the inbox is empty again?
All questions →