Agentic Coding · Workshop · Statistics & data analysis

Probability Simulations in Python: A Workshop for Maths Teachers with a Coding Agent

Run random experiments thousands of times where dice and coins in the classroom reach their limits, with short Python programs that a coding agent writes and you understand.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Workshop
Duration
Half day (3.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
6–16 participants
Level
Beginner
Language
German or English

Tools: Claude Code · Python · Jupyter · NumPy · Matplotlib

Real dice can only hint at the law of large numbers, because even a whole class manages just a few hundred throws in a lesson. Simulations close that gap: a short program throws ten thousand times, plots the relative frequency and shows how it settles. In this workshop on probability simulations in Python you have a coding agent write such programs, read the code line by line and change parameters yourself. After half a day you have simulations of dice, the Monty Hall problem, the birthday paradox and the Galton board that you can demonstrate in class or let students extend.

Who the probability simulation workshop is for

Secondary maths teachers who want to make probability more tangible and have little or no programming experience so far.

What you'll walk away with

  • Ask a coding agent to implement a random experiment as a short, commented Python program
  • Compare simulated relative frequencies with theoretical probabilities and explain the differences
  • Prepare reproducible demonstrations by fixing the random seed
  • Simplify programs so that students can read them and change marked sections
  • Spot errors in simulations, such as wrong range limits or draws that are not independent

Typical scenarios

  1. Before introducing the Monty Hall problem, a teacher simulates both strategies ten thousand times so that the class can test its guesses against data.
  2. For a lesson on the birthday paradox, a program plots the probability of a shared birthday as a curve over growing group sizes.
  3. An upper secondary class receives a prepared Galton board program and investigates how the distribution approaches the normal distribution as rows are added.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the probability simulation workshop covers

  1. Why simulate?The limits of real random experiments in class, and what simulations can and cannot show.
  2. A first simulation with the agentA dice program takes shape in dialogue; you learn to read the code and change parameters yourself.
  3. Classics of probabilityMonty Hall, the birthday paradox and the Galton board as short programs with charts.
  4. Check, don't trustComparing simulation with theory, setting seeds and finding typical programming errors in random experiments.
  5. Preparing it for studentsGap-fill programs, guiding questions and variants for different levels of prior knowledge in the class.

Before the probability simulation workshop: prerequisites

  • A laptop with internet access; we set up Python and Jupyter together or use a browser-based environment
  • Basic knowledge of probability; no programming skills needed

Materials you keep

  • A collection of commented simulations of classic random experiments
  • Gap-fill programs and guiding questions for use with students
  • Prompt templates that help the agent implement new experiments clearly

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the probability simulation workshop

Is half a day enough without programming experience?

To get started, yes. You do not write the code yourself; you learn to develop it with the agent, read it and change it deliberately. If you want to take on your own projects afterwards, the catalogue has longer formats on Python in maths lessons and on data analysis.

Can students use the simulations themselves?

Yes. The programs run in Jupyter or in browser-based environments that need no installation. Whether students may also work with a coding agent depends on age limits and school rules; the prepared gap-fill programs work without agent access in any case.

How is this different from GeoGebra?

GeoGebra has its own options for random experiments and remains a sensible choice. Python gives more freedom for unusual experiments, very large numbers of repetitions and your own analyses. In the workshop we show when each tool fits and combine them where that helps.

Is the workshop held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.