Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Causes, Counterexamples and Internet Routes: Three Labs to Try

· in Learning

Cover picture: Causes, Counterexamples and Internet Routes: Three Labs to Try

Find out what really causes what, hunt for counterexamples to famous claims, and watch routers find their way round a broken link.

Three new labs share one lesson: a pattern you can see is not yet something you know. Each lets you test an idea the way researchers do.

What causes what?

Ice cream sales and sunburn rise together, but ice cream does not cause sunburn: sunny days cause both. That common cause is a confounder. The Causal inference lab lets you draw such stories as arrows, like Sun -> IceCream and Sun -> Sunburn, and asks two questions:

  • Are two things linked once you know a third? The lab lists every path between them and marks it open or blocked.
  • What must you adjust for to measure a real effect? It finds the smallest sets using the back-door criterion.

The surprise is that adjusting for more is not always better. If two causes share an effect, adjusting for that effect (a collider) creates a false link. The lab's simulation shows it: make data from your diagram and watch the naive estimate miss while the right adjustment hits the true effect. The Simpson's paradox tab shows a treatment that wins in every group and loses overall.

Is it always true?

The formula n² + n + 41 gives a prime for n = 0, 1, 2 ... all the way to 39. Then at n = 40 it gives 1681, which is 41 x 41. Forty checks were not a proof.

The Experimental mathematics lab has a counterexample hunter for eight famous claims. Some fail early, some fail late, and two (Goldbach's and Collatz's) have never failed but are still unproved. Its sequence tab finds a rule behind your numbers and continues it, and its equation tab solves puzzles like Pell's equation, where the smallest answer for D = 61 is over a billion.

How does the internet route around a break?

Every router keeps a table of where to send traffic next. The Network simulator shows two ways to build it:

  1. Link state: every router learns the whole map and works out the cheapest paths.
  2. Distance vector: routers only tell their neighbours what they know, round after round.

Cut a link in a chain of routers and the second way can go wrong: routers keep offering each other old routes, and the costs creep up until they hit 16, meaning unreachable. This is called counting to infinity. Turn on split horizon and it settles quickly. The timing tab shows why the internet sends packets instead of whole messages.

Try it yourself

Pick one lab, change one thing, and predict what will happen before you press the button. That is the whole method of science and mathematics in one habit.

Tags:

All blog posts

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product