---
title: "Using Propensity Score Matching to Uncover Shopify Capital’s Effect on Business Growth"
description: "Shopify estimated the causal effect of Shopify Capital on merchant sales using propensity score matching, treating US first-time Capital adopters in January 2019 as the treatment group and Canadian shops that later pre-qualified (when Capital wasn't yet available in Canada) as the control."
url: "https://swe.quest/articles/using-propensity-score-matching-to-uncover-shopify-capital-s-effect-on-business-8bb147b3b69bd1fb"
canonical: "https://shopify.engineering/propensity-score-matching-shopify-capital"
source: "Shopify Engineering"
published: "2021-11-11"
difficulty: "hard"
kind: "Research"
reading_minutes: 10
tags: ["machine-learning","analytics","payments"]
---

# Using Propensity Score Matching to Uncover Shopify Capital’s Effect on Business Growth

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-11-11, 10 min read, Research. Original: [https://shopify.engineering/propensity-score-matching-shopify-capital](https://shopify.engineering/propensity-score-matching-shopify-capital)

## Summary

Shopify estimated the causal effect of Shopify Capital on merchant sales using propensity score matching, treating US first-time Capital adopters in January 2019 as the treatment group and Canadian shops that later pre-qualified (when Capital wasn't yet available in Canada) as the control. Log-transformed shop covariates fed propensity scores, followed by greedy nearest-neighbour caliper matching, with balance checked via standardized mean differences, love plots, eCDF/density plots and variance ratios. A simple regression on log1p six-month GMV found a +36% geometric-mean sales lift, with a bootstrapped 95% confidence interval of 13% to 65%.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)

## Prerequisites

- causal inference basics ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- linear regression
- confidence intervals and bootstrapping

## Keywords

Shopify Capital, propensity score matching, caliper matching, gross merchandise value

## Related posts

- [The generative recommender behind Shopify's commerce engine](https://swe.quest/articles/the-generative-recommender-behind-shopify-s-commerce-engine-f5ed1bac0cf956d4.md): Shopify Engineering · 2026-02-25 · Hard · 8 min read · Recommendations & ranking, Model training, Machine learning, E-commerce
  Shopify built a foundational generative recommender on HSTU that treats buyer journeys as raw event sequences and trains an autoregressive, causally masked model to predict the next product.
- [Shopify's Playbook for Scaling Machine Learning](https://swe.quest/articles/shopify-s-playbook-for-scaling-machine-learning-01ef31091481dd96.md): Shopify Engineering · 2022-02-11 · Easy · 12 min read · ML platforms, Machine learning, Threat detection, E-commerce
  Shopify's approach to scaling machine learning grew out of its first ML product, an order fraud detector that replaced a rule-based system with a high false-positive rate.
- [Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding](https://swe.quest/articles/evolution-of-product-classification-at-shopify-from-categories-to-comprehensive-f7af0d3e764e6a0d.md): Shopify Engineering · 2025-05-08 · Medium · 8 min read · Inference & serving, Machine learning, E-commerce, LLMs, ML platforms
  Shopify's product classification evolved from a 2018 TF-IDF logistic regression model through a 2020 multi-modal classifier to a Vision Language Model system built on the Shopify Product Taxonomy, which covers over 10,000 categories and 1,000+ attributes.
- [5 Steps for Building Machine Learning Models for Business](https://swe.quest/articles/5-steps-for-building-machine-learning-models-for-business-9d6ce609a5ab2c3d.md): Shopify Engineering · 2021-08-25 · Medium · 15 min read · Machine learning, ML platforms, Evaluation
  A five-step workflow for building ML models in a business context: confirm ML is warranted (defer it for brand-new products and beat a heuristic baseline first), start with simple models and basic features or off-the-shelf pretrained components, and pick a metric tied to business impact before optimizing.
- [Test Budget: Time Constrained CI Feedback](https://swe.quest/articles/test-budget-time-constrained-ci-feedback-1e3be31297da77ec.md): Shopify Engineering · 2022-03-07 · Medium · 10 min read · Testing, CI/CD, Developer productivity
  Shopify's Test Infrastructure team evaluated a "test budget" for its 170,000-test Rails monolith: tests chosen by call-graph test selection are reordered with prioritization heuristics so failures surface early, and execution stops at a fixed time limit.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
