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
biologyaspoetry.org/laboratories/equilibrium/ · Abedon’s Books
How can I improve this page? contact: equilibrium@biologyaspoetry.org
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.
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.
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.
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.
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.
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 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 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
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).
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.
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 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.
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.
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.
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.
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.
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.
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.
Two questions about any reversible process are entirely separate, and confusing them is among the most common errors in introductory chemistry.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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].
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.
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.
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.
| Observed | Expected | |
|---|---|---|
| What it is | What actually happened | What the theory predicts |
| Where it comes from | Counting the room | Calculating from k1 and k2 |
| When you can know it | Only after the round | Before the exercise begins |
| Whether it varies | Yes, every round | No, it is a fixed number |
| In this laboratory | Left # ÷ Right # from your table | k2 / k1 |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Before a figure leaves your hands, walk this list. It takes under a minute and catches nearly everything.
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.
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.
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.
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.
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.