Metrics and diagnostics

Backtest Shopify Risk Ratings Against Later Disputes

Checking sales data.
Photo: Shopify Partners / Burst

A historical risk-rating backtest should ask what happened to purchases carrying each rating at the moment the merchant made its decision. It should also show which purchases were canceled or otherwise prevented from producing an observable fulfilled-order outcome. Without that second step, a rating can appear unusually accurate or inaccurate simply because staff acted on it.

Treat the rating as a signal to evaluate, not proof that a buyer committed fraud. Shopify describes ratings within its fraud-analysis workflow; your backtest is a separate analysis of the outcomes your store could actually observe.

Preserve the original decision context

Create a purchase-level record with the rating available before the merchant decision, rating timestamp, decision timestamp, decision type, fulfillment outcome, and linked dispute episode. Keep a separate field for later rating changes if they exist. Do not overwrite the historical predictor with its latest value.

Define missing ratings explicitly. A purchase without an available rating is not equivalent to a low-risk rating. Separate unsupported payment contexts and incomplete historical records, and state whether they are excluded or shown as an additional group.

Record the policy version used when the order was reviewed. If staff began canceling more high-rated orders midway through the study, the later fulfilled population was selected under a different process. Combining both periods can hide the effect of the merchant's own decisions.

Use purchase cohorts with equal follow-up. A recent high-rating cohort cannot be compared fairly with older low-rating purchases that have had much longer to develop disputes.

Make the unobservable outcomes visible

A canceled purchase does not reveal whether it would have produced a chargeback if fulfilled. Mark its fulfilled-order outcome as unobserved, not “prevented fraud” and not “safe.” The merchant knows what action occurred, but the alternative outcome remains unknown.

This creates selection bias when rating and merchant action are related. If nearly all high-rated purchases are canceled, the few that remain may have been manually reviewed and found unusually well supported. Their results describe that selected subset, not all high-rated purchases.

Similarly, a low disputed proportion among fulfilled orders cannot estimate how many legitimate purchases were rejected. A backtest needs additional evidence to evaluate that commercial tradeoff, and it should not invent a counterfactual outcome for each cancellation.

Keep the official case population and monitoring interpretation separate, using Shopify's monitoring reference where needed. An internal fulfilled-order comparison is not a replacement for the provider's account metric.

Read a hypothetical selection table

Suppose a hypothetical merchant has the following equally aged purchases:

Original rating Reviewed purchases Fulfilled Canceled before fulfillment Disputed fulfilled purchases
Low 8,000 7,920 80 24
Medium 1,500 1,200 300 12
High 500 50 450 2

Among fulfilled purchases, the observed dispute proportions are approximately 0.30%, 1%, and 4%. These figures show an ordering within the selected fulfilled population. They do not prove that the 450 canceled high-rated purchases would have disputed.

The high-rating estimate is also based on just fifty fulfilled purchases and two observed disputes. Present the count and uncertainty rather than treating 4% as a stable property of every future high-rated purchase.

Now examine cancellation share: 1% for low, 20% for medium, and 90% for high. This shows how strongly the decision policy filtered each group. A report that omitted this column would leave readers unable to judge the selection effect.

Separate dispute reasons if the question concerns fraud prediction. A product-quality dispute may matter commercially but does not establish that a payment-risk rating failed to identify unauthorized use. Keep an all-dispute view alongside the reason-specific view so the analysis does not discard operational harm.

Publish what the backtest can support

Use a conclusion such as: “Within purchases fulfilled under policy version [version], higher original ratings were associated with [observed pattern]. Fulfillment selection differed substantially by rating. Outcomes for canceled purchases are unobserved, and the study does not estimate the number of legitimate orders rejected.”

Review whether findings persist within product and basket groups. A rating group concentrated in expensive made-to-order items may face different nonfraud dispute exposure. Do not overfit tiny cells; document where comparable exposure is absent.

Before recommending a policy change, identify which missing evidence would matter. That could include the reasons for manual overrides, an independently reviewed sample of cancellation decisions, or a carefully designed prospective evaluation of an optional process. It should not include simply labeling every canceled order a success.

Archive the original rating snapshot and decision-policy version with the report. The value of a backtest lies in showing how a signal behaved within a real merchant process, including the decisions that made some outcomes impossible to observe.

Use Lower Chargeback for order-risk review before carrying out your historical backtest separately.

Review your disputes

Related reading in this collection: