Design a strategy to test the effectiveness of a new algorithm in fraud detection systems.

Instruction: Explain how you would structure the experiment, including the selection of metrics, control groups, and handling of imbalanced data.

Context: This question tests the candidate's ability to design an A/B testing strategy for critical systems like fraud detection, with a focus on experiment structure and data imbalance challenges.

Updated

Official answer

Start with offline evaluation on time-separated, mature labels at realistic prevalence. Compare fraud loss, detection, precision, false declines, review workload and latency at relevant thresholds. Accuracy alone can hide failure on rare fraud.

Shadow scoring can send the same transactions to both models while only the current policy acts. This tests predictions and operation, but does not estimate the full effect of changing actions: blocking a transaction changes which outcomes become observable.

For an approved live test, randomize an appropriate stable unit to one action policy, with existing required protections, bounded rollout, monitoring and rollback ownership. Account for linked accounts, adversary adaptation and shared review capacity. Each transaction should not receive two conflicting production decisions.

Prespecify outcomes and wait for chargeback or investigation labels to mature. Audit selective labels and unobserved outcomes for blocked transactions. If training is rebalanced, evaluate at deployment prevalence and check calibration. Report uncertainty and operational costs, and preserve guardrails throughout the experiment.

Related Questions