Thomas Piacentini
← Workshop

Guided lesson 03 / 10

Move between states.

Connect one robot’s transitions to the evolution of a population.

01 · Understand and consult

The idea before the settings.

A state summarizes the information used to predict the next step. The Markov assumption says that this state suffices: history adds no useful information to that prediction.

Each row of P distributes total probability 1 across next states. A row distribution p advances by p′ = pP. Simulated walkers produce frequencies that differ from exact probabilities for a finite population.

A worked example.

If 80% of robots in A stay and 70% of those leaving go to B, P(A→B) = (1 − 0.8) × 0.7 = 0.14. The remaining 6% go to C.

Read these passages from the authors.

Markov Chains · Explained Visually · Reading links open a new tab.

  1. Two-state diagram → transition matrix ↗

    In the first example, match each arrow to a matrix cell. Check the row sums.

  2. Rainy and sunny days → stickiness ↗

    In the weather example, observe why the same overall frequency does not describe state persistence.

If a resource fails to load, local explanations and trials remain available. You can continue and leave reading pending.

02 · Predict

Write before running.

At least 20 characters to document your hypothesis. A wrong prediction is useful: keep it and later explain what surprised you.

03 · Experiment and compare

Two trials, one question.

Each link loads prepared laboratory settings. Seeds match for randomized models. Record results and use “Keep this experiment” for each trial, then return here.

Trial A

Starting comparison.

Propagate 100 walkers for eight steps. Record the three calculated probabilities and observed frequencies.

Open trial A →

No notebook record yet.

Trial B

Change an assumption.

Use 3,000 walkers with the same transitions, initial state and seed. Compare differences, then try other seeds.

Open trial B →

No notebook record yet.

Opening a trial replaces this laboratory’s current settings. Saved experiments remain in the notebook. For a controlled comparison, record A and B as given before exploring freely.

04 · Solve

Calculate for yourself.

The laboratory’s numerical challenge checks a small calculation component. Use the hint after trying; this guide helps reconstruct the reasoning.

Solve the laboratory challenge →

Challenge pending.

Continue with the Python notebook ↗

05 · Explain and check

What my trials taught me.

At least 40 characters; cite measurements and one model limitation. Your text is kept in this browser and the notebook JSON export.

My success criteria · self-assessment

Convergence to a unique distribution depends on transitions and is not assured for every chain.

Next guide: Recover motion →

Original ATOMSH guide. Passages and links reviewed on 9 November 2026; external interfaces may change. External courses are not imported in full.

atomsh / lab