Poisson Deviations, Selection Bias, and Properties of Correlation
Statistics & ExperimentsModel answerLast updated
Evaluate distribution modeling anomalies, analyze survivorship bias in predictive ML models, and prove core algebraic properties of covariance and correlation.
Answer the following three independent conceptual questions regarding probability, statistical methodology, and linear association:
Scenario A: Arrival Rate Modeling
An online monitoring system tracks hourly incoming telemetry events. Under historical assumptions, the system receives an average of $\lambda = 3$ events per hour modeled by a Poisson process. During recent monitoring, you observe that the frequency of zero-event hours ($N = 0$) has dropped drastically below what the theoretical Poisson model predicts.
- What are two distinct statistical mechanisms that could explain this deficit of zeros?
- Which parameter or underlying property of the distribution is altered in each scenario, and how would you empirically distinguish between them?
Scenario B: Model Bias in User Retention
A data science team is tasked with building a user churn prediction engine. To construct the training dataset, they draw features exclusively from users who have maintained an active account for a minimum of 6 months.
- Identify the specific category of statistical bias introduced by this sampling strategy.
- Detail how this strategy affects both feature distributions and prediction calibration when the deployed model attempts to predict early-stage churn for newly registered users.
Scenario C: Linear Association and Dependence
Let $X$ and $Y$ be two scalar random variables.
- Does $\text{Cov}(X, Y) = 0$ guarantee that $X$ and $Y$ are independent random variables? Provide a concrete discrete counterexample with exact numerical probabilities to support your claim.
- Given the transformation $X_{\text{new}} = aX + b$, where $a < 0$ and $b \in \mathbb{R}$, derive how the Pearson correlation coefficient $\rho(X_{\text{new}}, Y)$ relates to the original correlation $\rho(X, Y)$. Show all intermediate algebraic steps using expectations.
Hints
Hint 1
For Scenario A, calculate P(N=0) for Poisson(3) and compare what happens if the mean increases vs. if variance drops relative to the mean.
Hint 2
For Scenario B, consider what happens to users who churned within the first 1-5 months and whether their feature profiles are present in the training set.
Hint 3
For Scenario C, remember that Pearson correlation uses standard deviation in its denominator, where standard deviation involves absolute values.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Scenario A: Arrival Rate Modeling
1. Baseline Evaluation
For a Poisson process with arrival rate $\lambda = 3$ events per hour, the theoretical probability of observing zero events in a given hour is: $$P(N = 0) = \frac{\lambda^0 e^{-\lambda}}{0!} = e^{-3} \approx 0.0498 \quad (\approx 5%)$$
If the empirical frequency of zero-event hours is significantly lower than $5%$, two main underlying mechanisms could be responsible:
2. Mechanistic Explanations & Empirical Diagnostics
-
Mechanism 1: Parameter Drift (Increased Rate $\lambda$)
- Explanation: The process remains a standard homogeneous Poisson process, but the rate parameter $\lambda$ has increased (e.g., system usage has grown). If $\lambda$ increases from $3$ to $6$, $P(N = 0) = e^{-6} \approx 0.0025$ ($0.25%$).
- Impact on Parameters: The intensity parameter $\lambda$ has shifted upward.
- Diagnostic: The empirical mean $\bar{N}$ will increase significantly alongside the decrease in zero counts. The variance-to-mean ratio (Fano factor, $\sigma^2 / \mu$) will remain close to $1$.
-
Mechanism 2: Violation of Poisson Assumptions (Underdispersion or Latency Floor)
- Explanation: The mean arrival count remains $\approx 3$, but events occur more regularly than a pure Poisson process allows (e.g., automated health checks, batch scheduling, or rate limiters preventing long idle times). Alternatively, a non-zero baseline floor is present.
- Impact on Parameters: The equal-variance-and-mean property of Poisson distributions ($\text{Var}(N) = \mathbb{E}[N]$) is violated. The distribution becomes underdispersed ($\text{Var}(N) < \mathbb{E}[N]$).
- Diagnostic: Calculate the sample mean $\bar{N}$ and sample variance $s^2$. If $\bar{N} \approx 3$ but $s^2 < \bar{N}$ (Fano factor $< 1$), the process exhibits underdispersion, ruling out a simple Poisson shift.
Scenario B: Model Bias in User Retention
1. Identification of Bias
This sampling methodology introduces survivorship bias (a specific form of selection bias). By filtering the training set to condition on survival up to $t \ge 6$ months, the outcome variable $Y$ (churn state in early tenure) directly influences inclusion in the dataset.
2. Impact on Model Performance on New Users
- Label Shift & Miscalibration: All historical users who churned during months $0$ to $5$ are completely absent from the training set. The observed base rate of early churn in the training sample is artificially zeroed out or drastically skewed. Consequently, the model's output probabilities will be poorly calibrated, significantly underestimating the absolute risk of early churn.
- Covariate Shift & Missing Modes: Users who churn early often exhibit distinct behavioral patterns during onboarding (e.g., failure to complete profile setup, single session drops, specific UI friction). Long-tenure survivors rarely show these extreme early-friction signals. The model will not learn feature weights for these critical indicators.
- Spurious Feature Relationships: Features that predict retention after 6 months (e.g., advanced feature utilization) may correlate differently with survival than onboarding features (e.g., initial email verification speed). The model will over-index on long-term signals that newly onboarded users have not had time to manifest.
Scenario C: Linear Association and Dependence
1. Zero Covariance vs. Independence
No, $\text{Cov}(X, Y) = 0$ does not imply that $X$ and $Y$ are independent. Covariance measures only linear dependence.
Counterexample: Let $X$ be a discrete random variable distributed uniformly over ${-1, 0, 1}$: $$P(X = -1) = \frac{1}{3}, \quad P(X = 0) = \frac{1}{3}, \quad P(X = 1) = \frac{1}{3}$$
Let $Y = X^2$. $Y$ is entirely deterministic given $X$, so $X$ and $Y$ are strongly dependent.
Compute expectations: $$\mathbb{E}[X] = \frac{-1 + 0 + 1}{3} = 0$$ $$\mathbb{E}[Y] = \mathbb{E}[X^2] = \frac{(-1)^2 + 0^2 + 1^2}{3} = \frac{2}{3}$$ $$\mathbb{E}[XY] = \mathbb{E}[X^3] = \frac{(-1)^3 + 0^3 + 1^3}{3} = 0$$
Compute Covariance: $$\text{Cov}(X, Y) = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y] = 0 - (0)\left(\frac{2}{3}\right) = 0$$
Despite $\text{Cov}(X, Y) = 0$, $X$ and $Y$ are dependent since $P(Y = 0 \mid X = 0) = 1 \neq P(Y = 0) = \frac{1}{3}$.
Note: Independence implies zero covariance unconditionally, but zero covariance implies independence only under specific joint distributions (e.g., multivariate Gaussian).
2. Effect of Linear Transformation with Negative Scale Factor
We evaluate $\rho(X_{\text{new}}, Y)$ where $X_{\text{new}} = aX + b$ and $a < 0$.
By definition: $$\rho(aX + b, Y) = \frac{\text{Cov}(aX + b, Y)}{\sigma_{aX + b} \cdot \sigma_Y}$$
Step 2a: Transform the Covariance Using covariance linearity properties: $$\text{Cov}(aX + b, Y) = \mathbb{E}[(aX + b - \mathbb{E}[aX + b])(Y - \mathbb{E}[Y])]$$ $$= \mathbb{E}[(aX + b - a\mathbb{E}[X] - b)(Y - \mathbb{E}[Y])]$$ $$= \mathbb{E}[a(X - \mathbb{E}[X])(Y - \mathbb{E}[Y])] = a \cdot \text{Cov}(X, Y)$$
Step 2b: Transform the Standard Deviation $$\text{Var}(aX + b) = a^2 \text{Var}(X) \implies \sigma_{aX + b} = \sqrt{a^2 \text{Var}(X)} = |a|\sigma_X$$
Step 2c: Combine and Simplify $$\rho(aX + b, Y) = \frac{a \cdot \text{Cov}(X, Y)}{|a|\sigma_X \cdot \sigma_Y} = \left(\frac{a}{|a|}\right) \frac{\text{Cov}(X, Y)}{\sigma_X \sigma_Y}$$
Since $a < 0$, $\frac{a}{|a|} = -1$: $$\rho(aX + b, Y) = -\rho(X, Y)$$
Conclusion: Scaling by a negative constant flips the sign of the Pearson correlation coefficient while preserving its magnitude. The additive constant $b$ has no effect.