AiTeky Original Interactive Learning & Practice Intermediate
Experiments and causal inference: did it really work?
Correlation versus cause, confounders, randomised tests, adjusting observational data, Simpson's paradox and difference-in-differences, on coupon and store data.
"Customers who got our coupon spent much more. So the coupon works!" Does it? Maybe the coupon went to people who were already big spenders. Telling what causes what, not just what goes together, is one of the most valuable skills in data work, and one of the most often got wrong. Wrong answers here lead to wasted budgets, failed products and bad policy.
You need statistics basics and Python with NumPy and pandas. We use everyday cases: coupons, new menus, hospitals and shops, and simulations where we know the truth, so you can see how each method lands on it.
- Learn lessons build one idea at a time, with exercises you can repeat.
- Industry ready lessons use two real files (a coupon campaign and a store menu roll-out) and end with the interview questions that go with them.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 20 min Free sample 🔒 AiTeky Pass Correlation is not cause: the hidden third factor See how a hidden third factor (a confounder) can make a useless treatment look powerful, using a simulated world where we know the truth.
- 02 25 min 🔒 AiTeky Pass Randomisation: the fair coin that fixes confounding Assign treatment by a coin toss so the groups are alike, see the true effect appear, and work out how many people a test needs.
- 03 20 min 🔒 AiTeky Pass Simpson's paradox: when the totals tell the wrong story See a table where one hospital looks better overall and worse in every group, understand why, and learn which view to trust.
- 04 30 min 🔒 AiTeky Pass Adjusting for confounders when you cannot randomise Use regression to compare like with like on measured factors, see it recover the true effect in a simulated world, and see what an unmeasured factor does to it.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 40 min 🔒 AiTeky Pass On the job: did the coupon campaign pay for itself? Review a coupon campaign from observational data: show the naive answer is far too big, adjust with regression and matching, give a confidence interval, turn the effect into rupees of profit, and answer the interview questions.
- 06 40 min 🔒 AiTeky Pass On the job: did the new menu lift sales? Difference-in-differences Measure the effect of a menu roll-out at 20 of 40 cafés with before-and-after data, see why simple comparisons fail, check the parallel-trends assumption, run a placebo test and give a confidence interval.

