← Back to course
1/6
Week 10 Β· Models and Simulations

Monday

A model of the repair bench
// Can a simple model predict what will happen next?
⏱ about 20 min

Monday: A Model of the Repair Bench

Keeper Ines pins a note to the front desk: "If we add a repair bench, will people have to wait?"

Comet waves the note at the crew. "Let's build a model of the bench! I will put in everything: every toolbox, every chair, the color of the walls."

Wren spreads out his log from last Saturday's trial bench, a borrowed table set up for one day. It shows when each person arrived, and nothing more.

"What do you notice?" he asks. "Does the wall color change how many people come?"

Comet pauses. "Probably not."

Nova hovers over the log and projects a grid of small boxes. "Would you like a hint?" she asks. "Keep only the details that change the answer to Keeper Ines's question."

Comet turns to you. "Data analyst, which details stay?"

This week's driving question

Can a simple model predict what will happen next?

This week you will build a model of the repair bench line. You will run it with a die, test it and make it better.

What is a model?

A computational model makes predictions about a process. It bases them on selected data and features.

The amount, quality and variety of the data, and the features chosen, affect how good the model is.

Predictions are tested to check a model. A model you never test is only a guess.

Abstraction: keep what matters

Abstraction reduces complexity by focusing on the main idea. It hides details that do not matter for the question at hand.

Keeper Ines asked about waiting, so the model needs to know when people arrive. The wall color can stay out.

Every detail you drop is also an assumption: you are treating it as if it does not matter. Write your assumptions down so you can test them later.

Detail on Comet's listKeep or drop?Why
When each person arrivesKeepArrivals decide how long the line gets
How long the bench is open (6 hours)KeepIt sets how many 10-minute slots to model
The color of the wallsDropIt does not change who arrives
The member ID of each personDropThe question is how many, not who
What each person brings to fixDrop for now (an assumption)Some repairs may take longer; test this later
KEEP OR DROP?
  • Read the question.
  • Tap your answer.
How many people arrive in each 10-minute slot.
The pattern painted on the toolbox lid.
Which hours the bench is open.
The name of each person who arrives.
StatementTrue or false?
A model makes predictions based on selected data and features.?
The features you choose have no effect on how good a model is.?
Abstraction hides details that do not matter for the question.?
A model is checked by testing its predictions.?
A good model includes every detail of the real world.?
WHY THIS EXERCISEKnowing what a model is, and what it leaves out, is the base for this whole week.

The first rule

Wren's log splits the 6 open hours into 10-minute slots. That is 6 slots an hour, or 36 slots in all.

The crew's first rule: roll one die for each slot. A roll of 1 or 2 means one person arrives. Any other roll means nobody arrives.

Two of the six faces mean an arrival. So the rule expects an arrival in about one slot out of three.

One third of 36 is 12, so the first rule expects about 12 arrivals.

COUNT THE SLOTS
  • Read the question.
  • Tap your answer.
How many 10-minute slots fit in one hour?
How many slots are in the 6 open hours?
About how many arrivals does the first rule expect in 36 slots?
BUILD A MODEL, STEP BY STEP
  • ?Test the prediction against what really happened.
  • ?Choose the data and features to keep.
  • ?Make a prediction with the rule.
  • ?Write the rule that turns the data into a prediction.
  • ?Write down the question the model must answer.
WHY THIS EXERCISEThese steps turn a guess into a model you can check.
Hiding details that do not matter for the question is called ____. Type one word.
WHY THIS EXERCISEAbstraction is the skill that keeps a model small enough to use.
On paper, draw the repair bench as a box. Write the details your model keeps inside the box and the dropped details outside it.

Nice thinking, data analyst. Tomorrow you will turn the rule into a simulation and run it.