Bounds on the Probability of Rain on at Least One Weekend Day

Quick Overview

This question evaluates understanding of probability theory and dependence between events, specifically the ability to reason about bounds on the probability of a union given fixed marginals, which is a core competency for probabilistic modeling in Machine Learning and Data Scientist roles.

Bounds on the Probability of Rain on at Least One Weekend Day

Company: Jane Street

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Technical Screen

The probability that it rains on Saturday is $p$, and the probability that it rains on Sunday is $q$. Nothing is said about whether the two days are independent. ### Constraints & Assumptions - $p, q \in [0, 1]$ are the marginal probabilities of rain on Saturday and Sunday, respectively. - The joint behavior of the two days (independence, positive or negative dependence) is **not** specified in the base question. - "Bounds" means tight bounds: each endpoint of your range must be achievable by some valid joint distribution consistent with the marginals $p$ and $q$. ### Clarifying Questions to Ask - Are the two days independent, or is the dependence between them unspecified? - Does "at least one rainy day" mean the union of the two events (rain Saturday OR rain Sunday, including both)? - Should the bounds be tight — i.e., do you want me to exhibit dependence structures that actually attain each endpoint? - Are there any constraints relating $p$ and $q$ (for example $p + q \le 1$), or can they be any values in $[0,1]$? ### Part 1 Let $A$ = "it rains on Saturday" and $B$ = "it rains on Sunday," with $P(A) = p$ and $P(B) = q$. Find the full range of possible values of $P(\text{at least one rainy day}) = P(A \cup B)$, and show that both endpoints are attainable. ```hint Inclusion–exclusion Write $P(A \cup B) = p + q - P(A \cap B)$. The marginals are fixed, so the only free quantity is the overlap $P(A \cap B)$ — bound that instead. ``` ```hint Extreme overlaps How large can $P(A \cap B)$ possibly be, and how small? Think of one event nested inside the other at one extreme, and the two events made as close to disjoint as the marginals allow at the other (the Fréchet bounds). ``` #### What This Part Should Cover ```premium-lock What This Part Should Cover ``` ### Part 2 Now use real-world weather to reason about where in that range the true probability sits: 1. Suppose rain events typically last **only one day**. Is $P(A \cup B)$ closer to the upper or the lower end of your range? 2. Suppose instead that rain events typically last **at least two days**. How does $P(A \cup B)$ move? ```hint Correlation sign Rain persistence determines the sign of the dependence between the two days. Decide whether each scenario makes $P(A \cap B)$ larger or smaller than the independent value $pq$, then trace what that does to the union through the inclusion–exclusion identity. ``` #### What This Part Should Cover ```premium-lock What This Part Should Cover ``` ### What a Strong Answer Covers ```premium-lock What a Strong Answer Covers ``` ### Follow-up Questions - If you are additionally told that it rains on both days with probability $r$, what is $P(A \cup B)$ exactly, and what values of $r$ are even feasible given $p$ and $q$? - If the two days were exactly independent, where does $P(A \cup B) = p + q - pq$ fall within your range? Prove it never touches either endpoint when $0 < p, q < 1$. - Extend Part 1 to a three-day holiday weekend with marginal rain probabilities $p$, $q$, $r$: what is the range of $P(\text{at least one rainy day})$? - Given only $P(A \cup B)$, $p$, and $q$, what can you infer about $P(A \cap B)$ and about $P(B \mid A)$?

Quick Answer: This question evaluates understanding of probability theory and dependence between events, specifically the ability to reason about bounds on the probability of a union given fixed marginals, which is a core competency for probabilistic modeling in Machine Learning and Data Scientist roles.

|Home/Machine Learning/Jane Street
Jane Street logo
Jane Street
Sep 11, 2025, 12:00 AM
easyData ScientistTechnical ScreenMachine Learning
4
0

The probability that it rains on Saturday is pp, and the probability that it rains on Sunday is qq. Nothing is said about whether the two days are independent.

Constraints & Assumptions

  • p,q[0,1]p, q \in [0, 1] are the marginal probabilities of rain on Saturday and Sunday, respectively.
  • The joint behavior of the two days (independence, positive or negative dependence) is not specified in the base question.
  • "Bounds" means tight bounds: each endpoint of your range must be achievable by some valid joint distribution consistent with the marginals pp and qq .

Clarifying Questions to Ask Guidance

  • Are the two days independent, or is the dependence between them unspecified?
  • Does "at least one rainy day" mean the union of the two events (rain Saturday OR rain Sunday, including both)?
  • Should the bounds be tight — i.e., do you want me to exhibit dependence structures that actually attain each endpoint?
  • Are there any constraints relating pp and qq (for example p+q1p + q \le 1 ), or can they be any values in [0,1][0,1] ?

Part 1

Let AA = "it rains on Saturday" and BB = "it rains on Sunday," with P(A)=pP(A) = p and P(B)=qP(B) = q. Find the full range of possible values of P(at least one rainy day)=P(AB)P(\text{at least one rainy day}) = P(A \cup B), and show that both endpoints are attainable.

What This Part Should Cover Premium

Part 2

Now use real-world weather to reason about where in that range the true probability sits:

  1. Suppose rain events typically last only one day . Is P(AB)P(A \cup B) closer to the upper or the lower end of your range?
  2. Suppose instead that rain events typically last at least two days . How does P(AB)P(A \cup B) move?

What This Part Should Cover Premium

What a Strong Answer Covers Premium

Follow-up Questions Guidance

  • If you are additionally told that it rains on both days with probability rr , what is P(AB)P(A \cup B) exactly, and what values of rr are even feasible given pp and qq ?
  • If the two days were exactly independent, where does P(AB)=p+qpqP(A \cup B) = p + q - pq fall within your range? Prove it never touches either endpoint when 0<p,q<10 < p, q < 1 .
  • Extend Part 1 to a three-day holiday weekend with marginal rain probabilities pp , qq , rr : what is the range of P(at least one rainy day)P(\text{at least one rainy day}) ?
  • Given only P(AB)P(A \cup B) , pp , and qq , what can you infer about P(AB)P(A \cap B) and about P(BA)P(B \mid A) ?
Loading comments...