Skip to content

We use analytics and advertising cookies to understand how the site is used and to measure our ads. They stay off until you accept, and you can change your choice any time. Cookie details

Guides

Did the scheduling change reduce late shipments?

Use a causal graph, an overlap check, a placebo date, and a synthetic stress test to see how much an observational estimate depends on its assumptions.

StellarFirm team3 min read

View as Markdown
On this page

Suppose ten warehouses switch to a new scheduling policy. Late shipments fall at those sites. The operations lead wants to know whether the policy would help the remaining warehouses. The first ten may have volunteered because they had better staffing, newer equipment or more predictable routes. Those differences belong in the study design.

Define the comparison#

Write down the target before reading the outcomes. For example, estimate the change in the late-shipment rate over four weeks for warehouses that could reasonably have used either scheduling policy. Define when each warehouse becomes eligible and what counts as late. Follow the same clock for sites that stay on the old schedule.

Draw a simple causal graph. Staffing and the mix of routes before adoption might influence both adoption and late shipments. A change in routing after adoption could be part of how the policy works. Adjusting for that later change may remove part of the effect you intended to estimate. The DoWhy workflow makes you write down those assumptions before estimating the effect and then asks you to try to refute the estimate. PyWhy, estimating causal effects

PromptWrite the comparison before estimating effects

Define the eligible warehouses, adoption date, outcome, and follow-up. Draw a causal graph for the supplied fields and identify the assumptions needed to compare early adopters with the other warehouses. Set aside any variables recorded after adoption.

Check whether the groups are comparable#

Look for warehouses with similar pre-rollout delivery volume, route complexity and staffing that used different scheduling policies. If virtually every high-volume warehouse adopted first, the data support few comparisons at that end of the range. Show where the groups overlap and name the warehouses the estimate represents. If you drop sites with poor overlap, state the narrower population the result now describes.

Pick a placebo check before scoring the result. For this example, repeat the comparison using an earlier date when every warehouse still used the old schedule, and keep the real early-adopter labels. A large apparent improvement there would raise questions about trends or selection that predate the rollout. A small or imprecise placebo result leaves other sources of bias possible.

PromptLook for an effect before the policy started

Choose a placebo date before any warehouse switched and explain which bias the check can reveal. Keep the actual groups, show their pre-policy overlap and report the placebo estimate and its uncertainty.

See how the estimate behaves when a factor is missing#

For a classroom or internal workshop, start with a synthetic dataset. Simulate warehouse capacity so it affects both the chance of adopting and the chance of late shipments. Hide capacity from the analysis and run two versions of the exercise. In the first, the policy has zero effect. In the second, give the policy a known effect. Change the strength of the capacity relationship and record when your estimator begins to report improvements in the zero-effect runs. Parikh and colleagues use this idea of known effects under simulated assumptions to evaluate causal estimators. Validating Causal Inference Models

For the real study, show the estimate and its uncertainty alongside the overlap, placebo result and sensitivity analysis. If a modest difference in unmeasured staffing could explain the result, the operations lead has a concrete reason to collect staffing records or use a staggered, randomized rollout. The estimate becomes easier to act on when the reader can see which assumption would change the decision.

PromptStress-test the estimator with a known answer

Create a seeded synthetic warehouse dataset with adoption and late shipment rates driven by an unmeasured capacity factor. Compare a true null with a stated effect as you vary confounding and overlap. Save the simulation assumptions, bias and interval coverage for each estimator.

Frequently asked questions

Why compare warehouses before the rollout?

Early adopters may have had better staffing or equipment already. Pre-rollout data help identify which differences to account for and whether overlap is sufficient.

Can a successful placebo check establish causation?

A placebo tests a specific threat, such as an apparent effect before the policy existed. The causal interpretation still depends on the design and its assumptions.

Sources