🎓 Classroom Equilibrium Simulator

Projected Dice Rolls, Movement Directions, and Live Tallies for the Equilibrium Laboratory

by Professor Stephen T. Abedon Steve Abedon, Ph.D., has taught well over 100 individual classes and ~10 individual courses (including introductory biology, microbiology, physiology, biochemistry, etc.) over his 30+ years as a college professor. He has over 150 publications, including multiple monographs, and is ranked in the top 1 or 2 percent among researchers of all disciplines worldwide. His research focuses on bacteriophage biology and phage therapy. (abedon.1@osu.edu)

phage.org | phage-therapy.org | biologyaspoetry.org | abedon.phage.org | google scholar | publications

Jump to:   📖 Definitions  |  ⚖️ Theory  |  ➗ Practice  |  ⚙️ Setup & Roster  |  🎲 Run the Exercise  |  📊 Data & Table  |  ✏️ How to Graph  |  📈 Graphing the Results  |  ❓ Do You Understand?  |  🧮 More Calculators

What Is the Classroom Equilibrium Simulator? In the equilibrium laboratory exercise, students act as molecules moving back and forth across an imaginary membrane that divides the room, with dice supplying the per capita probabilities — the rate constants — that govern each crossing. Traditionally students work in pairs, one rolling and signaling while the other moves, which halves the number of participants. This page takes over the rolling and the signaling: it rolls for every student at once, displays each student's name together with the direction that student should end up facing, and tallies both sides of the room as the rounds proceed. Every student can therefore be a molecule.

Three standard approaches are built in, and any number of additional approaches can be defined by assigning dice outcomes to sides yourself. Because part of the exercise is graphing the result, the page also carries an interactive tutorial on how, and how not, to build a graph.

The roster, the settings, and every completed round are saved in this browser as you go, so a crash, a reload, or an accidentally closed tab will not cost you the class list or the data collected so far. Nothing is transmitted anywhere: all of the work happens in the browser on the machine in front of you.

📄 The Laboratory Exercise (PDF) Your answers to Spot the Problems are kept in your browser as you go, and the Definitions tab has a button to download a summary of your work. To share a particular section, use the 🔗 link beside its heading, which copies a web address that opens the page right there. To cite this tool: Abedon, S.T. (2026). Classroom Equilibrium Simulator. biologyaspoetry.org/laboratories/equilibrium/.

biologyaspoetry.org/laboratories/equilibrium/  ·  Abedon’s Books

How can I improve this page?  contact: equilibrium@biologyaspoetry.org

📖 The Words You Will Need

Everything in this laboratory is built out of eight or nine ideas, and none of them is difficult on its own. What makes the exercise worth doing is watching how few of them are required before a room full of people starts behaving like a chemical system. Read this page before the exercise; return to it during, if a term stops making sense.

Terms carrying a dotted underline link to their entries in Biology as Poetry, where each is defined independently of this exercise.

🎲 Rate Constant (k)

A rate constant is the likelihood that a specified event happens to a given individual, counted on a per capita basis — that is, per individual, per opportunity. For the interconversion of A and B, written A → B with constant k1 and B → A with constant k2, the constant k1 is the chance that any particular A becomes a B during one round.

Rolling a die supplies such probabilities directly. Any single face turns up one time in six, so a rule keyed to two faces carries a probability of one third, and a rule keyed to three faces carries a probability of one half. The die is not a metaphor here. It is doing exactly the job that thermal jostling does for a real molecule: supplying, at random and without reference to anything else, the occasional kick that changes that individual's state.

The word “constant” is doing real work. A rate constant does not change when the population changes. Move ten students from one side of the room to the other and every individual's chance of crossing next round is exactly what it was. This is the property that makes equilibrium possible, and it is the property students most often forget.

🧪 Concentration ([A] and [B])

Concentration is number per volume. Hold the volume fixed and concentration varies with number alone, which is why counting students works as a stand-in for measuring a concentration. Square brackets denote concentration: [A] is the number of students on house left, [B] is the number on house right.

The room, in other words, is a container divided into two compartments by an imaginary membrane that individuals cross at rates set by the dice. Each side has a fixed volume, so the count on a side is that side's concentration in every sense that matters to the arithmetic.

🎭 House Left, House Right, and the Rest of the Theater

The exercise borrows its directions from the theater, because the theater had to solve this problem first: two people facing each other disagree about which way is left (which, by the way, is also true for anatomy). The convention fixes the disagreement by naming a point of view.

  • House left and house right are named from the audience's point of view — the house is where the audience sits. Sitting in your seat looking forward, house right is on your right.
  • Stage left and stage right are named from the performer's point of view, looking out at the audience. Because the performer faces the other way, the two systems are mirror images: house right is stage left, and house left is stage right.
  • Audience left and audience right mean the same thing as house left and house right. The theater kept both phrasings; either is correct.

In a classroom the front of the room is the stage and the seats are the house. So a student sitting at a desk and looking toward the board sees house right on the right. A student who has walked to the front and turned around to face the class is standing on the stage, and now house right is on that student's left.

The Same Problem in Anatomy

Anatomy solves this exactly as the theater does, and for the same reason. Directions are named from the body's own point of view, never the observer's. A patient's left arm is on your right when the patient faces you, which is why a radiograph is labeled rather than trusted to look right, and why surgical sites are marked before anyone picks anything up.

Because left and right alone are not enough to locate anything, anatomy adds paired terms for the other axes. Each pair names two opposite directions, and each is relative rather than absolute — the elbow is proximal to the wrist and distal to the shoulder at the same time.

All of these presume the anatomical position: standing, facing forward, arms at the sides with the palms turned forward. Fixing the starting posture is what stops the terms from drifting, in the same way that naming the audience is what stops house left from drifting. Note also that anterior and posterior in a four-legged animal do not point where they point in a standing human, which is why comparative anatomy prefers ventral and dorsal.

The practical rule for this exercise. The projected screen is read like a seat in the house. A student facing the screen who sees an arrow pointing right should end up on the screen's right, which is house right, which is [B]. If your room is arranged so that this comes out backwards, the Swap sides on screen option on the Setup tab reverses the two panels and nothing else changes.

📈 Rate of Change

The rate at which the population of A converts to B is [A] × k1: the chance that any one individual changes, multiplied by how many such individuals there are. The corresponding reverse rate is [B] × k2.

Note what varies and what does not. The constants never change. The rates change constantly, because the concentrations do. This one asymmetry — fixed per capita probabilities driving variable population rates — is the entire engine of the exercise, and of chemical kinetics generally.

⚖️ Equilibrium

Equilibrium is the condition [A] × k1 = [B] × k2: A is converting to B exactly as fast as B is converting back to A. Rearranged with a little algebra,

[A] / [B] = k2 / k1

The equal sign is the whole definition. Equilibrium is not a place, a time, or an amount. It is the statement that two quantities happen to be equal. When [A] × k1 and [B] × k2 are not equal, the system is by definition not at equilibrium, and it is said to be perturbed away from equilibrium.

That is exactly the situation at the start of this exercise. Every student begins on one side of the room, so one of the two products is zero and the other is not. The room could hardly be further from equality than that, which is precisely why it is worth starting there: what follows is the system undoing the inequality without being told to.

Both constants are fixed, so their ratio is fixed, so the equilibrium position of the system is known before the experiment begins. Take k1 = 1/3 and k2 = 2/3. Recall what those two numbers mean: k1 is the chance that a student currently on house left ends up on house right, and k2 is the chance that a student currently on house right ends up on house left. So a student on the right has twice the chance of leaving as a student on the left has, individuals are lost from the right faster than from the left, and the left is where they pile up.

The arithmetic agrees: [A]/[B] = k2/k1 = (2/3) ÷ (1/3) = 2, so at equilibrium there will be twice as many students on house left as on house right — whatever the class size, and wherever the class started. Note the inversion: k1 points away from A, so a large k1 gives a small [A]. The side that is harder to leave is the side that accumulates.

The counts themselves follow from the ratio together with the total. With N students participating, the expected number on house left at equilibrium is N × k2 / (k1 + k2).

🔄 Dynamic Equilibrium and Steady State

A dynamic equilibrium is one in which the totals have stopped changing while the individuals have not stopped moving. This is the distinction the exercise exists to make physical. Ten rounds in, if equilibrium has been reached, the counts on the two sides barely change; students are nonetheless crossing the room every single round, in both directions, in roughly equal numbers.

A steady state is the more general term for a system whose properties are not changing over time. Every equilibrium is a steady state; not every steady state is an equilibrium, because a steady state can also be something that is held in place by a continuous supply of energy or material rather than by two opposing processes balancing on their own. A living cell is full of steady states of that second kind. This room, needing nothing but dice, is at a true equilibrium. Equilibria, if allowed to, simply happen, while a steady state, such as in our bodies, often must be literally forced to happen.

💥 Perturbation

A system is perturbed when it is displaced from equilibrium, that is, when [A] × k1 and [B] × k2 are not equal. Starting everyone on one side of the room is a deliberate and maximal perturbation. Systems of this kind do not merely tolerate perturbation; they undo it. Nothing coordinates the undoing. It happens because the side holding too many people necessarily, on average, loses more people per round than it gains.

🔍 Observed and Expected

Observed is what actually happened — what you counted, what went in the table. Data are observed values. Expected is what the theory predicts before you look — here, the value calculated from the rate constants. The expected ratio is k2/k1; the expected number on house left is N k2/(k1 + k2).

The two will not match exactly, and the mismatch is the interesting part rather than the embarrassing part. It is sampling noise: a real feature of small populations, not a mistake in technique. Eighteen students produce a visibly ragged curve. Eighteen thousand molecules would produce a smooth one, and eighteen quadrillion would produce one so smooth that chemistry can afford to describe it with a differential equation (calculus) and never mention dice at all.

➗ Arithmetic Mean and Geometric Mean

An arithmetic mean adds the values and divides by how many there were. A geometric mean takes the logarithm of each value, averages those logarithms, and then raises ten to the result:

geometric mean = 10 mean of log(y)

Geometric means matter when the values differ greatly in size, because a single large value can dominate an arithmetic mean entirely. For 1, 2, 3, and 100 the arithmetic mean is 26.5 while the geometric mean is about 4.9. When the values are close together the two nearly coincide. Ratios in particular call for the geometric version, for reasons the How to Graph tab shows in a figure.

📐 Independent and Dependent Variables

The independent variable is the one you set or simply advance; here it is the round number, t. The dependent variable is the one that comes out; here it is the ratio [A]/[B], or the log of that ratio. By convention the independent variable goes on the horizontal axis and the dependent variable on the vertical.

💡 Related Ideas Worth Knowing

📚 Further Reading

🧭 What Is on Each Tab

💾 Your Work

Your answers to Spot the Problems (on the How to Graph tab) are kept as you go. In most browsers they are still here if you leave and come back on the same device, though a private window, a different device, or cleared browser data will start you fresh. When you are done, download a summary to hand in or keep. It lists the faults you checked for each figure and whether you found all of them, and nothing extra, the first time, along with any class runs saved on this page in this browser. The Practice and Do You Understand? questions are checked by opening their explanations, so they are not recorded here.

    👀 What You Are Actually Watching

    A room, a rule, and some dice will in a few minutes reproduce the behavior of a reversible chemical reaction. That is a strong claim, so it is worth being precise about why it holds, because the same argument covers a very large fraction of chemistry, physics, and cell biology.

    The claim rests on one fact: a molecule does not know how many other molecules there are. A molecule of A sitting in solution has some probability per second of picking up enough energy, in the right place, to become a B. That probability is set by temperature, by the shape of the molecule, by the solvent — and not, in any way, by how much of A happens to be present. The molecule is not taking a census. It is being knocked around by its neighbors, and once in a while a knock does the job.

    A student consulting a die is in exactly this position. The die does not know how many students are on the left. It returns a face, the rule converts that face into a direction, and the student walks. Per capita probability in, individual event out. That is what a rate constant is, and it is the only ingredient this demonstration needs.

    📉 Why Rates Change Even Though Constants Do Not

    Here is the step that most students have to see twice. The chance that any one individual crosses is fixed. The number of individuals who cross is not, because it is the fixed chance multiplied by however many individuals are standing there:

    rate of A → B = [A] × k1      rate of B → A = [B] × k2

    Put every one of eighteen students on house right and let k2 = 2/3. The reverse rate is 18 × 2/3 = 12 students crossing, while the forward rate is 0 × 1/3 = 0. Traffic is wildly one-sided, though no individual is doing anything unusual. A round later, with twelve on the left and six on the right, forward traffic is 12 × 1/3 = 4 and reverse traffic is 6 × 2/3 = 4. The flows now match. The system has found its equilibrium, and it found it without looking for it.

    This is the mechanism, stated in one line. Whichever side holds a surplus loses more individuals per round than it gains, purely because it has more individuals available to lose. The surplus therefore erodes itself. Nothing regulates this and nothing is trying to.

    Crucially, however, what counts as a surplus is determined by the rate constants rather than by the more obvious criterion of which side is literally larger. In equilibria, 2 > 1 is not necessarily a surplus on the side holding 2. If the equilibrium ratio is 2, then twelve on the left against six on the right is not a surplus anywhere: it is the destination, and the room will sit there indefinitely. Put eighteen students in an even nine and nine under that same rule and the left side, the smaller one relative to where it belongs, will fill. A side is in surplus only relative to k2/k1, never relative to the other side's raw count. That point, along with the sufficiency of random individual motion, is the other thing this exercise is trying to get across.

    📌 The Equilibrium Condition, and What It Fixes

    Equilibrium is the case where the two rates are equal:

    [A] k1 = [B] k2   ⇒   [A] / [B] = k2 / k1

    Chemists write that right-hand quantity as an equilibrium constant and give it a name, K. Notice carefully what it does and does not fix. It fixes a ratio. It says nothing whatever about the individual amounts. Eighteen students at K = 2 give twelve and six; thirty-six students at the same K give twenty-four and twelve; a mole of molecules gives two-thirds and one-third of a mole. Change the class size and the equilibrium counts change; the equilibrium ratio does not.

    To recover the counts you need one more piece of information: the total number of individuals in the system, written N. In this exercise N is simply the number of students taking part, so a section of eighteen with nobody absent has N = 18; in a flask N would be the total number of molecules of A and B together. Given N, the arithmetic is forced:

    [A]eq = N k2 / (k1 + k2)      [B]eq = N k1 / (k1 + k2)

    The room is a closed system: nobody enters and nobody leaves, so N is conserved and every student lost by one side is gained by the other. Conservation of matter is being enforced by the walls.

    ⏱️ How Fast, as Opposed to How Far

    Two questions about any reversible process are entirely separate, and confusing them is among the most common errors in introductory chemistry.

    • How far? Where does the system end up? Answered by the ratio k2/k1 alone.
    • How fast? How long does getting there take? Answered by the sum k1 + k2.

    The two are independent, and this exercise proves it by construction. One approach uses k1 = 1/3 and k2 = 2/3; another uses k1 = 1/36 and k2 = 2/36. Both have a ratio of 2 and both therefore land on the same equilibrium. But the first has a sum of 1 and gets there in a single round, while the second has a sum of 1/12 and needs dozens. Same destination, wildly longer journey.

    The rule governing the journey is worth stating exactly, because it is the same rule that governs radioactive decay, drug clearance, and a cooling cup of coffee. Each round, the system on average closes a fixed fraction of whatever gap remains between where it is and where it is heading, and that fraction is k1 + k2. So the gap shrinks geometrically:

    gap after n rounds = (initial gap) × (1 − k1 − k2)n

    Set that to a tenth of the initial gap and solve, and you get the number of rounds needed to get ninety percent of the way there, log(0.1) / log(1 − k1 − k2), which is the figure the Setup tab reports for each approach. It is the same quantity a chemist would call a relaxation time and a physicist would call a time constant.

    Why the sum can reach 1 here but never does in chemistry. When every face of the die triggers a move, every individual is reassigned every round, the memory of the previous round is erased completely, and the system arrives in one step. Real molecules are never in that regime: their per-second probabilities of reacting are tiny, so real approaches to equilibrium always take many, many individual events. The slow approach is the realistic one. The instantaneous approach is the one that makes the destination obvious.

    🔀 The Three Built-In Approaches, Compared

    The three rules supplied with this page were chosen to make the preceding distinction unmissable. Read the last two columns together: two of the three head for the very same equilibrium by very different routes, which is the point of running both.

    The rightmost column gives the number of rounds needed for the expected departure from equilibrium to shrink to a tenth of its starting size, computed as log(0.1) / log(1 − k1 − k2). Any approach you build yourself is added to this table.

    🌊 Equilibrium Is Not Stillness

    Once the counts stop changing, it is tempting to say that the reaction has stopped. It has not. At equilibrium with eighteen students and k1 = 1/3, twelve students stand on house left and four of them cross to house right every round, while four of the six on house right cross the other way. Eight people are walking. The counts hold still because the traffic is balanced, not because the traffic stopped.

    This is what the word dynamic is doing in “dynamic equilibrium,” and it is the single most important thing to carry out of this laboratory. A sealed bottle of water sitting at constant level is not a bottle in which evaporation has ceased; it is a bottle in which evaporation and condensation have come into balance. Warm the bottle and both rates rise, but the level shifts because they do not rise equally.

    🌍 Where Else This Argument Applies

    Nothing in the reasoning above mentioned students, or dice, or a room. Everything followed from per capita constants driving population rates, which means the same algebra covers any reversible two-state process. A few examples, chosen because they look nothing alike:

    When the two constants are equal, the equilibrium is an even split and the demonstration looks like ordinary diffusion. When they are unequal, the equilibrium is lopsided in the direction of the smaller constant — the side that is harder to leave accumulates individuals. That single sentence explains why a selectively permeable membrane can hold a concentration difference indefinitely without spending any energy at all.

    🚫 What the Model Leaves Out

    An honest demonstration says where it stops being true. Three simplifications are worth naming out loud, because students who spot them are thinking correctly rather than failing to follow.

    • Rounds are discrete; molecular time is not. Real molecules do not take turns. Treating time as a series of rounds is a simplification that makes the arithmetic visible, and it is why the sum of the constants can reach 1 here.
    • Eighteen is a very small number. A real reaction vessel holds something on the order of 1020 molecules, and its curve is smooth to many decimal places. The visible raggedness in the class data is sampling noise, and it shrinks in proportion to the square root of the population, which is why the Data tab computes how large the wobble ought to be.
    • The constants here are exact and unchanging. Real rate constants depend on temperature and on the medium, and change the moment conditions do. Holding them perfectly fixed is what lets the equilibrium sit still.

    None of these undermines the demonstration. A model does not have to be right in every particular to be right about the thing it was built to show, and what this one was built to show is that two per capita probabilities are sufficient to produce, locate, and defend an equilibrium.

    🧮 Practicing the Calculations

    These are the calculations from the first part of the laboratory. Work each one out on paper before opening the explanation — the explanations are written to show the reasoning, not just the answer, and they are worth much less if you have not already committed to a number of your own.

    Drawing a small diagram of the two sides, with the counts written in and arrows for the two directions, makes most of these considerably easier. Three facts carry nearly all of the work:

    Rate = concentration × rate constant: [A] × k1 going one way, [B] × k2 going the other.

    At equilibrium, [A] / [B] = k2 / k1 — note that the subscripts trade places.

    With a known total N, [A]eq = N k2 / (k1 + k2).

    ➡️ Rates from Constants

    🔁 Following a Population Round by Round

    ⚖️ Equilibrium Ratios from Rate Constants

    ➗ Two Kinds of Average

    🎲 Who Rolls the Dice?

    The page can roll for the whole class at once, or the class can roll its own dice in the traditional way. Everything downstream — Table 1, the means, the statistics, the graphs, the self-test — works identically either way, because all of it is built from the two counts per round and nothing else.

    💻 The page rolls
    Every present student gets a die and an instruction on the projected screen, so the whole section can be molecules at once. Needs a class roster.
    🎲 The students roll
    Real dice in real hands, worked the way the handout describes. The page asks only for the two counts at the end of each round. No roster is needed, and nobody has to be tracked individually.

    🧰 Getting Ready

    This is the instructor's tab. Three things have to be settled before the exercise can start — who is here, which rule the dice will follow, and how many rounds to run — and all three are set below. Nothing here is projected during the exercise itself; the Run tab is what the class sees.

    If the students are rolling their own dice, the roster is not needed at all: choose The students roll above, say how many are taking part, and the Run tab becomes two numbers and a place to type them.

    👥 Class Roster

    Type or paste the class list, one name per line, then press Load Names. Names are stored in this browser and reloaded automatically the next time this page is opened on this machine. Nothing is sent anywhere. Because a browser can still lose its storage — a cleared cache, a locked-down lab machine, a different computer — download a copy as well, using the button below, and keep it with the rest of the semester's materials.

    Replace discards whoever is on the roster now and uses what is in the box instead. Add keeps everybody already there and appends any names in the box that are not on it yet, which is what you want when a student joins the section mid-semester.

    Useful when the class list is not to hand, and useful too as a starting point: fill the box with numbers, then type each student's name after the number that belongs to them. Numbers sort correctly however many there are — 9 comes before 10, not after it — so there is no need to pad anything with zeros.

    Uncheck a student to mark that student absent for today; absent students are skipped by the roll and are not counted on either side. The × removes a student from the roster altogether.

    🧭 Approach

    An approach is simply a rule that maps each possible roll of the dice onto a side of the room. The first three below are the approaches used in the laboratory, in the order the handout runs them. Selecting an approach also sets a suggested number of rounds, though that number can be overridden.

    🛠️ Build Your Own Approach

    Choose how many dice each student rolls, then assign every possible outcome to house right, to house left, or to neither. Outcomes assigned to neither produce no signal at all: a student rolling one of those stays put, whichever side that student is already on. Assigning some outcomes to neither is how an approach is slowed down without changing the equilibrium it heads toward, which is the point of the two-dice approach.

    🖥️ Display Options

    Measures the room panels against the space actually on screen and scales everything until the whole board is visible without scrolling. This is what makes a wide, short screen work: leave it on, and the board reflows on its own as students are added or the window is resized.
    Current: 115%
    Puts house right on the screen's left. Use this if the projected image is mirrored relative to how the class is standing.
    Displays each student's actual roll beside the name, so the rule connecting roll to direction stays visible.
    Keeps each name in a predictable place within its panel so students can find themselves quickly.
    After everyone has moved, the page withholds the new numbers until somebody types in a hand count of each side, then reports whether the two agree. This is the single best thing on this tab for slowing the exercise down to the speed at which people actually learn from it.
    The class counts itself first; you then press Reveal Counts to check. Useful once the exercise is running smoothly.
    Displays the predicted equilibrium alongside the observed counts. Turn this off if you would rather the class predict before seeing.

    📺 What Changed by Putting This on a Screen

    In the original form of the exercise students work in pairs: one rolls a die and signals, the other moves. One hand raised means end up on house right, two hands raised means end up on house left, and in the slow version no hands raised means stay put regardless. That arrangement is sound, and it has the merit of putting a physical die in a student's hand, but it costs half the class as participants. In a section of eighteen that leaves nine molecules, which is few enough that the noise can swamp the signal.

    This page performs the rolling and the signaling for every student simultaneously, so that the full section can move. The dice are shown alongside each name precisely so that the mechanism does not become a black box: a student can see the roll, see the rule, and see the resulting instruction. What is lost is the tactile die. What is gained is twice the population, and with it a curve that behaves much more like the theory it is meant to illustrate.

    Suggested compromise. Run the first approach the old way, with pairs and real dice, so that everyone handles the physical randomizer and understands what the screen is standing in for. Then switch to this page for the second and third, where the larger population and the longer run matter most. The data tables and graphs work identically either way.

    📋 Practical Notes for Running It

    • Orientation. House right is the audience's right, which is stage left. A student facing the projection screen and seeing a right arrow should move toward the screen's right. If your room defeats this, use Swap sides on screen above.
    • Absences. Mark absent students on the roster rather than deleting them; the roster then survives to the next session intact.
    • Miscounts and wrong turns. Clicking a student's name chip moves that student to the other side, which is how to reconcile the screen with a room where somebody went the wrong way.
    • Undo. The last recorded round can be removed, which restores both the tally and the positions. It asks first, and it cannot be reached with the tab key, since reaching it by accident mid-exercise is worse than the extra click.
    • The tab key. Nothing destructive is in the tab order on the Run tab. Tabbing reaches the main roll button and the count boxes and nothing else, so a stray press cannot undo a round or clear the roster.
    • Starting over. Start Over on the Run tab distinguishes two things that are easy to confuse: returning the same class under the same rule to round zero, and clearing the page down to an empty roster. It offers to save or download the run in progress first, and asks twice before doing anything irreversible.
    • Spacebar. Pressing the spacebar advances the exercise, so the laptop can sit anywhere. It stops working once the planned rounds are finished, so the run cannot be extended by accident.
    • Presentation Mode. The two presentation buttons are always both on screen; whichever one would do nothing is greyed out and inert. Neither can be reached with the tab key.
    • Safety. Students crossing a room repeatedly and quickly is exactly as hazardous as it sounds. Say so before the first round.

    💾 Saved Data

    Everything on this page — roster, options, custom approaches, the run in progress, and every saved run — lives in this browser's local storage under a single key. Use the buttons below to move that data to another machine, or to start a semester clean.

     

     

    How to run a round. Press Roll. Each student sees a die (or dice), and beside it either an arrow pointing to the side of the room that student should be on, or the word STAY. Students who are already on the assigned side do not move. Once everyone has settled, press the orange button to record the round; the name chips then move into their new panels and the tally for that time point is written to the data table. Once a round is recorded, the arrows give way to the dice alone, and the chips of the students who crossed stay tinted purple until the next roll — so the room can still see what just happened while it is being counted. The spacebar does the same thing as the big button, which is convenient when the laptop is across the room. Arrows on this screen point the way the class sees them: a student facing this screen who sees a right arrow moves to the screen's right, which is house right. If your room is arranged the other way around, flip the panels using Swap sides on screen on the Setup tab.

    When the planned rounds are done, the run ends by itself and the big roll button is removed from the screen altogether. In its place the green panel offers every reasonable next step as an equally sized choice: go to the data, save the run, graph it, set the next one up by hand, move straight to the next exercise, or roll one more round. None of them is the default, none can be reached with the tab key, and nothing on the tab holds keyboard focus, so neither the space bar nor the return key has anything to trigger. Rolling again is a deliberate choice like any other, and it confirms first.

    If the orange button gets pressed too soon, before anybody has actually walked, press Nobody Had Moved Yet — Put Them Back in the count panel. It removes the round, returns everyone to where they were, and brings back the very same roll, so nobody has to roll again.

    If you are standing at the front facing the class, your left is the room's right, which makes the two count boxes read backwards. Tick I am facing the class in the count panel and the two boxes swap places and say which of your hands each one is on. The numbers still go to the sides they name; only their order on screen changes. The panel turns purple while this is on, so it is obvious at a glance.

    When an exercise finishes, the green panel offers all three exercises as buttons with the next one highlighted. One press saves what is on screen, loads the next rule and its round count, puts everyone back on house right, and starts it at round zero. Undo beside them returns you to the run you were on, and there is a reset if you want to begin the sequence again.

    If a run goes wrong, Undo removes the last round only, while Start Over offers the two larger retreats: back to round zero with the same class and the same rule, or all the way back to an empty roster. Either way the page asks first, and offers to save the data before anything is discarded.
    Getting the most screen for the board. Vertical space is what this exercise is short of, so it is worth spending a moment on before the class arrives. Two controls do most of the work, and they stack:
    • Presentation Mode (the button above) hides the page header, the tab bar, and the explanatory text, leaving the room panels and the controls the exercise actually needs. The count boxes, the facing checkbox, Nobody Had Moved Yet, and the choices that appear when a run finishes all stay available in there. Press Esc to come back out, and note that choosing anything that leaves the Run tab steps out of presentation mode by itself, since the tab bar is hidden while it is on.
    • Full screen hides the browser itself — address bar, bookmarks, taskbar. Press F11 on Windows or Linux, or Control + Command + F on a Mac. The Full Screen button above does the same thing where the browser permits it. The same key takes you back out.
    Use both together and the board gets essentially the whole display. The board resizes itself to whatever it is given, so there is nothing else to adjust; the current scale is reported on the Setup tab under Display Options.

    If the board still looks cramped with a large class, the quickest further saving is to turn off Show dice on names, which removes a line from every chip. A wide window helps more than a tall one here, since the chips reflow into more columns.

    🗂️ Which Run

    The run currently in progress is always available here. Pressing Save This Run on the Run tab files a finished run away under a name, so that the several approaches of the laboratory can be held side by side and graphed together.

    📋 Table 1: Raw and Calculated Results

    The columns match the table in the laboratory handout. y is the ratio of the number on house left to the number on house right, that is, [A]/[B].

    The calculated columns are hidden by default, and so are left out of anything copied, downloaded, or printed. The two counts are the measurement; y and log(y) are what you are being asked to work out from them. Tick the box below when you want to check what you have done against what the page computes.

    Rows Where the Ratio Does Not Exist

    If house right is empty, y would require dividing by zero, which is not a thing that can be done. If house left is empty, y is zero, and the logarithm of zero does not exist either — no power of ten produces zero.

    Such rows are marked with a dash rather than filled in with anything. Ignore them: leave them out of both means, and leave a gap in the graph rather than plotting a zero or sliding the later points across. This is what the handout instructs, and it is also simply what the arithmetic permits.

    📥 Working From Data You Were Given

    If you have a table of counts rather than a run of your own — because it was handed out, or because you were away that day — paste it below and it becomes a run like any other, available to the table above, to the means, to the statistics, and to the graphs.

    One round per line: the round number, the number on house left, the number on house right, separated by commas, tabs, or spaces. A header line is ignored, and so is a fourth or fifth column if the calculated values happen to be present. Two columns per line also works, in which case the rounds are numbered from zero in the order given.

    Needed only so that the page knows what to predict. It has no effect on the numbers you pasted.

    🔍 Observed Is Not Expected

    These two words get used interchangeably in ordinary speech and mean quite different things here, so it is worth being blunt about the difference before looking at any numbers.

     ObservedExpected
    What it isWhat actually happenedWhat the theory predicts
    Where it comes fromCounting the roomCalculating from k1 and k2
    When you can know itOnly after the roundBefore the exercise begins
    Whether it variesYes, every roundNo, it is a fixed number
    In this laboratoryLeft # ÷ Right # from your tablek2 / k1
    They are supposed to differ. An observed value that matched the expected value exactly, round after round, would be evidence that something was wrong — that the dice were not random, or that somebody was tidying the data. What you should look for is not agreement to the decimal place but agreement on average, with a scatter about the prediction whose size is itself predictable. The section below computes both.

    One more caution. Expected values apply at equilibrium. During the early rounds of a run the system has not arrived yet, so a gap between observed and expected there means only that you are watching the approach rather than the destination. This is why the handout asks for the last nine rounds specifically, and not for all of them.

    ➗ Means and Comparison

    The laboratory asks for the arithmetic and geometric means of the last nine values of y, and then for a comparison of what was observed against what the rate constants predict. Those numbers are computed below, but they stay hidden until you ask for them, so that a projected screen does not hand the class an answer it is supposed to be working out.

    📶 Is the Difference Real, or Just Noise?

    Observed and expected will differ. The useful question is whether they differ by more than chance alone would produce, and that question has an arithmetic answer rather than an opinion. The reasoning runs as follows.

    At equilibrium each student independently ends up on house left with probability p = k2/(k1 + k2). The number on house left in any one round is therefore a count of successes in N independent trials, which is a binomial quantity with mean Np and standard deviation √(Np(1 − p)). That standard deviation is the size of the wobble you should expect to see. If your observed scatter is close to it, the system is behaving exactly as the theory says it should — including in its raggedness.

    📈 Why Bother Graphing at All

    A table of numbers records what happened. A graph shows what happened. The difference matters most when the point being made is about a shape — a rise, a leveling off, a difference between two conditions — because a shape is something the eye reads instantly and the mind reads slowly from a column of digits. The equilibrium exercise produces exactly such a shape: a quantity that starts far from where it is heading, moves toward it, and then wobbles around it without ever settling exactly.

    A graph is also a claim, and a badly built graph makes a claim its data do not support. Almost every rule below exists because breaking it lets a graph say something false while looking respectable. The tutorial that follows is therefore not about neatness. It is about not lying, including not lying to yourself.

    A note on which data these examples use. This tab is a tutorial, so by default it runs on a set of made-up numbers that behave the way this exercise usually behaves. That lets faults be introduced deliberately without damaging anything real. Your own data are drawn, correctly and without sabotage, on the Graphing the Results tab — though you can also switch these examples over to a real run if you would rather see the faults applied to something familiar.

    🦴 The Anatomy of a Graph

    Below is the same data set drawn as it ought to be drawn. Every labeled feature is there for a reason, and a reader who knows the conventions can extract the entire experiment from the figure without reading a word of the surrounding text.

    Figure 1. Approach to equilibrium under two rules for movement. Points are the ratio of individuals on house left to individuals on house right, [A]/[B], measured once per round. Rounds in which either side was empty are omitted, since the ratio is then undefined or zero. Dashed horizontal lines mark the equilibrium ratios predicted from the rate constants, k2/k1.
    • The independent variable goes on the horizontal axis. Round number is what you set; the ratio is what you got. Time, dose, and concentration are nearly always horizontal.
    • Both axes are labeled, and the label says what the quantity is. Not x, not y, not Series 1. Where a quantity has units, the units belong in the label. A ratio of two counts has no units, which is worth stating rather than leaving ambiguous.
    • Tick marks are evenly spaced and land on round numbers. Ticks at 0, 5, 10, 15 are readable; ticks at 0, 3.7, 7.4 are not.
    • The data fill the plotting area. A graph whose data huddle in one corner is wasting the only resource a figure has.
    • Individual measurements are visible as symbols. The reader can see how many observations there are and how scattered they are. A line alone hides both.
    • Two data sets are distinguished by symbol as well as by color, because figures get photocopied, printed in grayscale, and viewed by people with color vision deficiencies.
    • There is a legend, and a caption below the figure. In biology the caption goes below the figure and above the table. The caption states what was plotted and what the reader needs in order to interpret it.
    • Nothing decorative is present. No shadows, no gradients, no third dimension, no background fill. Every mark on the page carries information.

    🔨 Break the Graph Yourself

    Each switch below introduces one common fault into the figure above. Turn them on one at a time and watch what the graph starts claiming. Turn several on at once for the full experience of a figure that has escaped supervision. The explanation of each fault appears once the switch is on.

    📉 Ratios Want a Logarithmic Axis

    This particular experiment produces a ratio, and ratios misbehave on an ordinary linear axis. Consider two rounds, one with twice as many students on the left as on the right and one with twice as many on the right as on the left. These are equal and opposite departures from a balanced room. On a linear axis they sit at 2 and at 0.5, so the first appears to be a departure of one full unit and the second a departure of half a unit: the graph makes the leftward excursion look twice as large as the rightward one, which is an artifact of the arithmetic and not a fact about the class.

    Taking the logarithm fixes this. On a logarithmic scale a doubling is the same distance whichever way it points, so the wobble around equilibrium looks as symmetric as it actually is. This is why the handout asks for log(Left # ÷ Right #), and it is the same reason that microbial growth, pH, sound intensity, and earthquake energy are all reported logarithmically.

    Figure 2a. The ratio [A]/[B] on a linear axis. The horizontal line at 1 marks a balanced room. Excursions above the line look larger than excursions below it, though they need not be.
    Figure 2b. The same values as log([A]/[B]). Zero now marks a balanced room, and a doubling in either direction is the same distance from it.
    Rule of thumb. If the natural question about your quantity is “how many times larger?” rather than “how much larger?”, the quantity wants a logarithmic axis. Counts of organisms, ratios, concentrations spanning orders of magnitude, and rates all qualify. Temperatures, percentages, and pH values do not, the last because pH is already a logarithm.

    📊 Two Kinds of Average, Shown

    The same reasoning explains why this laboratory asks for a geometric mean as well as an arithmetic one. The arithmetic mean adds the values and divides; the geometric mean averages the logarithms and then undoes the logarithm. When the values are ratios scattered around a balanced state, the arithmetic mean is pulled upward by the large values, because a ratio can climb without limit but cannot fall below zero. The geometric mean is not pulled, because on a logarithmic scale the scatter is even.

    Figure 3. The final nine values of [A]/[B] from the illustrative run, with the arithmetic mean and the geometric mean marked. The gap between the two is a measure of how lopsided the scatter is on a linear scale.

    Neither mean is more correct in the abstract. The arithmetic mean answers “what is the typical amount?” and the geometric mean answers “what is the typical factor?” The exercise asks both because the answer to the second is what the rate constants actually predict.

    🔎 Spot the Problems

    Each figure below has been drawn from the same honest data and then mistreated in specific ways. Check every fault you can find, then ask for the answer. Faults not present in a given figure are still listed, so guessing costs something.

    ✅ The Short Checklist

    Before a figure leaves your hands, walk this list. It takes under a minute and catches nearly everything.

    1. Is the independent variable on the horizontal axis?
    2. Does every axis have a label naming the quantity, with units where units exist?
    3. Are the tick marks evenly spaced, at readable intervals, and correctly positioned for their values?
    4. Does the vertical axis start somewhere defensible, and if it does not start at a meaningful baseline, is that obvious to the reader?
    5. Do the data fill the plotting area rather than hiding in a corner?
    6. Are individual measurements visible, rather than buried under a line?
    7. If points are connected, is there a reason to believe something continuous happened between them?
    8. Does any fitted line have a justification, and does it stop where the data stop?
    9. Would a logarithmic axis serve these data better?
    10. Are missing or undefined values left out rather than drawn as zeros?
    11. Can the figure be read in grayscale?
    12. If more than one thing is plotted, is there a legend saying which is which?
    13. Is there a caption, below the figure, that lets the figure stand on its own?
    14. Is there anything on the page that carries no information? Remove it.

    🏫 Graphing What Your Class Actually Did

    The How to Graph tab worked on illustrative numbers so that faults could be introduced deliberately. This tab does the opposite: it draws your own runs, correctly, with nothing broken on purpose. Use these figures to check the graphs you draw by hand, and to compare runs against one another.

    🎯 Choose What to Draw

    Save a run on the Run tab to keep it available here after starting the next one. Several runs drawn together is exactly what the handout asks for.

    🖼️ Figure

    👀 Reading Your Own Figure

    📍 Where the Means Sit

    The laboratory asks for the arithmetic and geometric means of the last nine defined values of y. Both are marked below on the run selected first, together with the value the rate constants predict. If the geometric mean lands near the predicted line and the arithmetic mean sits above it, that is the expected outcome rather than a problem, and the How to Graph tab explains why.

    ✏️ Drawing It by Hand

    The figures above are here to check your work against, not to replace it. When you draw the graph on the graph paper in the laboratory handout, a few practical points save a great deal of erasing.

    • Leave headroom. The handout asks you to put more than one curve on the same sheet, and the second may run higher than the first. Give yourself roughly half again as much room at the top of the vertical axis as the first curve needs.
    • Decide on linear or log before you start. Both are acceptable; mixing them on one sheet is not. If you have a calculator that takes logarithms, the log version is the more informative figure and the one this exercise is really about.
    • Leave gaps where the ratio is undefined. Rounds in which either side was empty carry no ratio. Skip them. Do not plot them as zero and do not slide the later points over to close the gap.
    • A thirty-round run needs its own horizontal scale. Draw a second axis beneath the first, compressed so that thirty rounds occupy the same width as fifteen, and label it clearly. Plotting round 30 at the position of round 15 on a shared axis makes a slow approach look fast.
    • Different symbols for different runs, not merely different colors, and a legend saying which is which.
    • A caption underneath stating what was plotted and what the rate constants were.

    ❓ Do You Understand?

    The last part of the laboratory asks you to set what you predicted against what you observed, for each approach you ran. Those questions come first below. After them is a longer set covering everything else this page has claimed — the theory, the statistics, the graphing conventions, and the places where the model stops being a good description of a real chemical system.

    Answer each one before opening it. Where a question depends on your own data, the explanation fills in your class's actual numbers, so the questions in the first group will not be answerable until a run exists.

    🔁 Predicted Against Observed, Run by Run

    For each run you completed: what is k2/k1? What did you predict [A]/[B] would be? What was it actually? Use the geometric mean of the last nine rounds for the last of these, where [A] is the number on house left and [B] is the number on house right.

    🔮 Predicting a Ratio You Have Not Run

    ⚖️ Rate Constants, Rates, and Equilibrium

    ⏱️ How Far and How Fast

    📶 Observed, Expected, and Noise

    📊 Graphs and Averages

    🌍 Beyond the Classroom

    🧮 Phage Biology and Phage Therapy Calculators

    Loading calculators…