From a verbal theory to a testable model
This guide follows the fictitious cringe study of the article, from three probabilities to ten hypotheses, their overlap, their volumes, and a first Bayesian analysis of data. Each step has a short animation of the app and the explanation next to it.
You can do everything hands-on: in the app, click Take a tour and choose The cringe study. The pointer enters everything for you, or you switch to Try it yourself and type it in.
How to get from the app to the numbers of the paper: enter the hypotheses, look at their vertices, volume and overlap, mix and replicate them, analyse data, and download everything for an analysis in R. About 15.8 minutes.
The fairy shows everything in the real app. Switch the captions on and off with the button below the video, and click a chapter to jump there. Made with AI: the script was drafted with an AI assistant and the voice is synthetic; the app parts are recordings of the real app. Download this video (35.4 MB)
The cringe study
Does a joke make you cringe? That depends on who you are, and on the joke.
In the article (Jekel et al., in revision) we run a fictitious joke study. Children, teens and adults hear either illogical jokes or puns (a 2 x 3 design), and in every condition we observe the proportion of people who cringe. Nine cringe hypotheses predict how these proportions relate. The app turns each hypothesis into a model: a set of constraints on the proportions, which it can then draw, measure and test.
The proportion of people who cringe in a condition is a probability. We write \(P^{\looparrowright}_C\), \(P^{\looparrowright}_T\) and \(P^{\looparrowright}_A\) for children, teens and adults who hear illogical jokes (the wiggle arrow marks illogical jokes, the heart later marks puns). In a model they are always called p1, p2, p3, … in the order of the name fields at the top of the app; the names are only labels.
How to use this guide. The animations show the app while the pointer works; the text next to them says what happens and why. Boxes titled Input for the app contain text you can copy into the field Unique Model Specification. The app also has a tour that does all of this for you: Take a tour, then The cringe study. We start with a simpler example than the article, to introduce the central ideas.
A first model: three age groups
Three probabilities, one theory, one click on Go.
Our first theory says that children cringe at least as much as teens, who cringe at least as much as adults:
\[P^{\looparrowright}_{C} \geq P^{\looparrowright}_{T} \geq P^{\looparrowright}_{A}\]
In the app you first name the three probabilities (the fields at the top, for example P^{\looparrowright}_{C}, P^{\looparrowright}_{T} and P^{\looparrowright}_{A}), then you type the theory into the field Unique Model Specification. There you refer to the probabilities by their numbers (p1, p2, p3) or, if you prefer, by their names; the box show parameter names next to the title Model Specification shows the text there with the names (typeset) instead of p1, p2, …
p1 > p2 > p3The app asks for > as an easier-to-type symbol; it means “at least as much as”, exactly the \(\geq\) of the theory. p1 is the probability whose name sits in the field Name of p1, and so on.
Optionally the app also computes the vertices of the model (corner points, see the next section). They are switched on per model with the V button next to the model, because they can take long for large models. Then Go builds the model: the app needs a moment, and the result tabs H-representation, V-representation, Plot Edge Cases, Plot Polytope(s) and Parsimony appear next to Input.
H- and V-representation: two ways to describe a model
Inequalities describe what the theory allows, corner points show its extreme cases.
H-representation
The H-representation is a minimal description of your theory by inequalities. The app uses an R package (Geyer & Meeden, 2023) to compute it. For the first model the result is short:
- The first line says that \(p_2 \leq p_1\): the second probability is at most the first.
- The second line says that \(p_3 \leq p_2\).
- The third line says that \(p_1 \leq 1\), and the fourth line that \(0 \leq p_3\). These two are automatic: probabilities lie between 0 and 1.
On the left side of the app you can download the H-representation as files for QTEST (Zwilling et al., 2019; Regenwetter et al., 2014) or for the R package multinomineq, and as a LaTeX file ready for compilation.
The polytope
With three probabilities a model is a body inside a cube. Each axis is one probability from 0 to 1, so the cube holds all possible triples. The coloured figure marks the triples that fit your theory; the triples outside do not. Such a figure is called a polytope. You can rotate it with the mouse.
V-representation
A polytope is also described by its corner points, the vertices. For the first model there are four: \(V_1 = (1,1,1)\), \(V_2 = (1,1,0)\), \(V_3 = (1,0,0)\) and \(V_4 = (0,0,0)\). The tab V-representation lists them as a matrix: one row per vertex, one column per probability. Vertices are valuable because they are the edge cases of the theory: the most extreme patterns it still allows. The tab Plot Edge Cases steps through them.
When to switch the vertices on. For most analyses the H-representation is enough, and QTEST and multinomineq can work with it. Vertices can become very costly: as a rule of thumb, avoid them for models with more than about fifteen probabilities.
How restrictive is a theory? Volume and maximum Bayes factor
A theory that forbids more can earn more evidence, and risks more.
Seeing a model as a polytope lets us measure parsimony, a usually vague idea: the smaller the polytope, the more the theory forbids. This is close to Popper’s criterion of empirical content (Glöckner & Betsch, 2011; Popper, 1934/2005). In the tab Parsimony, Go computes the volume of every model, that is the share of the cube that fits the theory. The app uses an R package (Fisikopoulos & Chalkis, 2023) and an exact method where possible.
For p1 > p2 > p3 the volume is 1/6, about 17 percent: three numbers can be ordered in six ways, and only one of them fits.
The volume is also linked to Bayesian analysis. The reciprocal of the volume, here 6, is the largest possible Bayes factor the theory can reach against an unconstrained model in which the probabilities can take any value. The tighter a theory is, the more evidence it can earn, and the more it risks. If the largest possible Bayes factor is too low for your purposes, revisit the stimuli to find conditions in which your theory forbids more; this is closely related to optimal study design (Myung & Pitt, 2009).
Volumes of algorithms that estimate can vary a little between runs; the app shows the volume for each algorithm you choose and lets you tighten the approximation error. The results can be downloaded as a csv table.
The full study: six probabilities and ten hypotheses
Now the study of the article, in the app and in your own copy-and-paste.
In the full study we add a second factor: the joke is either illogical or a pun. We mark illogical jokes with \(\looparrowright\) and puns with \(\heartsuit\) (because we love puns). With a 2 x 3 design we have six probabilities:
- \(P^\looparrowright_C\) = p1: a randomly drawn child cringes at an illogical joke.
- \(P^\looparrowright_T\) = p2: a teen cringes at an illogical joke.
- \(P^\looparrowright_A\) = p3: an adult cringes at an illogical joke.
- \(P^\heartsuit_C\) = p4: a child cringes at a pun.
- \(P^\heartsuit_T\) = p5: a teen cringes at a pun.
- \(P^\heartsuit_A\) = p6: an adult cringes at a pun.
You add three probabilities with the + button next to Probabilities, name all six, and add eight more model rows with the + button next to Model(s). Then you can type the nine hypotheses. The tenth, Model 10 of the article, is not typed: it is the mixture of Models 4 and 9, which you create with the button Mixture model.
The ten hypotheses
Click a hypothesis to see what it says and which text to type. All inputs can be copied. Or you open the app with all ten hypotheses already entered (the nine below and Model 10, the mixture of Models 4 and 9), with the six names and the settings: open the app with all nine models. The link opens the page with the app tab, the input is restored there.
| Model | In words |
|---|---|
| m1 | cringyness increases with age (averaged over both joke types) |
| m2 | cringyness increases with age for each joke type |
| m3 | opposite trends; illogical jokes on average less cringy than puns |
| m4 | like m3, and puns are cringier in every age group |
| m5 | both joke types exactly equally cringy in all age groups |
| m6 | the trends balance out: equal averages |
| m7 | like m6, with the averages allowed to differ by .05 |
| m8 | all six probabilities about the same, within .05 |
| m9 | the opposite of m4 |
| m10 | the mixture of m4 and m9: some people follow m4, the others m9 |
The ten hypotheses in detail
Each card below is one theory. Click a card to open it: it says in words what the theory predicts, shows the formula from the article, and gives the text to type into the field Unique Model Specification (the copy button is at the right end of the box).
Cringyness increases with age, averaged over both joke types:
\[\underbrace{\frac{P^\looparrowright_C + P^\heartsuit_C}{2}}_{\mbox{children}} \leq \underbrace{\frac{P^\looparrowright_T +P^\heartsuit_T}{2}}_{\mbox{teens}} \leq \underbrace{\frac{P^\looparrowright_A +P^\heartsuit_A}{2}}_{\mbox{adults}}.\]
Input for the app:
1/2 * p1 + 1/2 * p4 < 1/2 * p2 + 1/2 * p5 < 1/2 * p3 + 1/2 * p6Sums with weights are typed as 1/2 * p1. Long input can be enlarged with the arrows in the corner of the field.
\[\underbrace{P^\looparrowright_C \leq P^\looparrowright_T \leq P^\looparrowright_A}_{\mbox{illogical jokes}} \;\; \mbox{and} \;\; \underbrace{P^\heartsuit_C \leq P^\heartsuit_T \leq P^\heartsuit_A}_{\mbox{puns}}.\]
Input for the app:
p1 < p2 < p3; p4 < p5 < p6Two chains, separated by a semicolon.
Cringyness decreases with age for illogical jokes and increases with age for puns, and illogical jokes are on average less cringy than puns:
\[P^\looparrowright_C \geq P^\looparrowright_T \geq P^\looparrowright_A \;\; \mbox{and} \;\; P^\heartsuit_C \leq P^\heartsuit_T \leq P^\heartsuit_A, \;\; \mbox{and} \;\; \frac{P^\looparrowright_C + P^\looparrowright_T + P^\looparrowright_A}{3} \leq \frac{P^\heartsuit_C + P^\heartsuit_T + P^\heartsuit_A}{3}.\]
Input for the app:
p1 > p2 > p3; p4 < p5 < p6; 1/3 * p1 + 1/3 * p2 + 1/3 * p3 < 1/3 * p4 + 1/3 * p5 + 1/3 * p6Like m3, but puns are cringier than illogical jokes in every single age group:
\[P^\looparrowright_C \geq P^\looparrowright_T \geq P^\looparrowright_A, \;\; P^\heartsuit_C \leq P^\heartsuit_T \leq P^\heartsuit_A, \;\; P^\looparrowright_C \leq P^\heartsuit_C, \;\; P^\looparrowright_T \leq P^\heartsuit_T, \;\; P^\looparrowright_A \leq P^\heartsuit_A.\]
Input for the app:
p1 > p2 > p3; p4 < p5 < p6; p1 < p4; p2 < p5; p3 < p6Both joke types are exactly equally cringe-worthy in all three age groups:
\[P^\looparrowright_A = P^\heartsuit_A = P^\looparrowright_T = P^\heartsuit_T = P^\looparrowright_C = P^\heartsuit_C.\]
Input for the app:
p1 = p2 = p3 = p4 = p5 = p6A model with exact equalities has volume zero, so there is no upper limit for the Bayes factor in its favour.
Cringyness decreases with age for illogical jokes and increases for puns, but the two balance each other out: overall, puns are exactly as cringy as illogical jokes:
\[P^\looparrowright_C \geq P^\looparrowright_T \geq P^\looparrowright_A \;\mbox{and}\; P^\heartsuit_C \leq P^\heartsuit_T \leq P^\heartsuit_A, \;\mbox{and}\; \frac{P^\looparrowright_C + P^\looparrowright_T + P^\looparrowright_A}{3} = \frac{P^\heartsuit_C + P^\heartsuit_T + P^\heartsuit_A}{3}.\]
Input for the app:
p1 > p2 > p3; p4 < p5 < p6; 1/3 * p1 + 1/3 * p2 + 1/3 * p3 = 1/3 * p4 + 1/3 * p5 + 1/3 * p6m7 reads “about equally cringy” differently: the averages of both joke types do not have to be exactly equal, they may deviate by .05:
\[P^\looparrowright_C \geq P^\looparrowright_T \geq P^\looparrowright_A \;\mbox{and}\; P^\heartsuit_C \leq P^\heartsuit_T \leq P^\heartsuit_A, \;\mbox{and}\; \left| \frac{P^\looparrowright_A + P^\looparrowright_T + P^\looparrowright_C}{3} - \frac{P^\heartsuit_A + P^\heartsuit_T + P^\heartsuit_C}{3} \right| \leq 0.05.\]
Input for the app: the same as for m6.
Then the equality is switched to an approximate one with the button Approximate equalities in the row of m7, with the tolerance .05.
All six probabilities are about the same, as in m5, but with a wiggle room of .05 for every pair:
\[|p_i - p_j| \leq 0.05, \;\; \mbox{for each distinct pair } p_i, p_j.\]
Input for the app:
p1 = p2 = p3 = p4 = p5 = p6This is the same text as m5. The window for approximate equalities then offers every pair of the six probabilities (p1 = p2, p1 = p3, …, p5 = p6). One click on each of p1 to p5 switches all pairs to approximate (p6 is then selected by itself), with the tolerance .05. You can also copy the row of m5 with the copy button and rename the copy to m8.
\[P^\looparrowright_C \leq P^\looparrowright_T \leq P^\looparrowright_A, \;\; P^\heartsuit_C \geq P^\heartsuit_T \geq P^\heartsuit_A, \;\; P^\looparrowright_C \geq P^\heartsuit_C, \;\; P^\looparrowright_T \geq P^\heartsuit_T, \;\; P^\looparrowright_A \geq P^\heartsuit_A.\]
Input for the app:
p1 < p2 < p3; p4 > p5 > p6; p1 > p4; p2 > p5; p3 > p6Some people follow m4, the others follow m9. The mixture contains every pattern that blends a pattern of m4 with a pattern of m9. This is Model 10 of the article.
Input for the app: nothing to type. Type m4 and m9 first, click Mixture model, tick m4 and m9 in the window and add it (the clip below shows it). The vertices of a mixture are always switched on. Its H-representation has 52 inequalities (64 constraints with the bounds on single probabilities), its V-representation 12 vertices.
H- and V-representations of all models are in the online supplement.
What theories share: intersections
Two theories can predict similar things. Their polytopes then overlap.
How much two theories share can be seen geometrically: the intersection of two polytopes is the space both contain. The button Intersection model adds a row with all constraints of the models you tick. Written as input, the intersection of m1 and m2 is simply all their constraints together:
1/2 * p1 + 1/2 * p4 < 1/2 * p2 + 1/2 * p5 < 1/2 * p3 + 1/2 * p6; p1 < p2 < p3; p4 < p5 < p6The volume of the intersection of m1 and m2 is as large as the volume of m2. So m1 completely overlaps m2: m2 is nested in m1. Whenever data fit m2 they also fit m1. Because m2 is smaller it earns more evidence in a Bayesian analysis, and it is preferred for parsimony.
The intersection of m1 and m3 is different: they overlap, but not completely. The two hypotheses predict distinctly different outcomes, which is what you want. If the overlap is too large, consider other stimuli. The intersection of m4 and m9 has volume zero: the surfaces of both models only touch, in the points where all six probabilities are equal.
1/2 * p1 + 1/2 * p4 < 1/2 * p2 + 1/2 * p5 < 1/2 * p3 + 1/2 * p6; p1 > p2 > p3; p4 < p5 < p6; 1/3 * p1 + 1/3 * p2 + 1/3 * p3 < 1/3 * p4 + 1/3 * p5 + 1/3 * p6Results for all models
One card per model, and the volumes side by side.
Go builds all models at once. In the tab H-representation every model has its own card; the badge counts equalities and inequalities (the five equalities of m5 show up as “5 eq”). A card can be enlarged with the arrows in its corner, and cards can be arranged: the compact view packs the terms of a row together, hide the trivial bounds leaves only what is specific to the model, and the free layout lets you drag a card anywhere. The circle arrow puts everything back.
Under Parsimony the bars compare the volumes of all models, including the intersections. The table lists the largest possible Bayes factor of every model: tighter models can earn more evidence, and risk more. Models with an exact equality have volume zero, so there is no upper bound.
A first analysis with data
So far the theories were compared by what they allow. Now they meet data.
We use made-up data: one hundred children, teens and adults each answered for both joke types.
| Cringe at illogical jokes | No cringe at illogical jokes | Cringe at puns | No cringe at puns | |
|---|---|---|---|---|
| Children | 60 | 40 | 60 | 40 |
| Teens | 64 | 36 | 50 | 50 |
| Adults | 68 | 32 | 38 | 62 |
The Data window of the analysis takes the numbers. For every probability it asks for n, the number of observed cases, and the frequency, how often the cringe happened. Here n is 100 for every row (the field Same n for every row sets them all), and the frequencies are 60, 64, 68, 60, 50 and 38 for p1 to p6. Save keeps them for the analysis and for the downloads.
Run analysis starts the Bayesian analysis of all models with the R package multinomineq (Heck & Davis-Stober, 2019). It runs on a shared server, so it is meant for smaller analyses; larger analyses can be run on your own computer with the R script of the download. The setting Samples is the number of random draws. With the standard 10,000 draws a theory the data contradict strongly gets only an upper bound (written with a < sign), because no draw fell inside the model. More draws are slower but give numbers: 100,000 draws take only a few seconds here.
The results table gives for every theory the Bayes factor against the unconstrained model: how many times more probable the data are under the theory than under a model in which all probabilities are free. Above 1 favours the theory, below 1 speaks against it. For m1 the value is about 0.09, substantial evidence against m1. QTEST gives a Bayes factor of about 0.1 for the same data too; its frequentist and Bayesian p values (0.18 and 0.24) indicate an adequate fit, while the Bayes factor also weighs fit against parsimony. The reason is in the data: for puns the numbers fall with age, while m1 says that the average over both joke types rises. The colours follow a common scale (Jeffreys, 1998; Lee & Wagenmakers, 2014): between 1/10 and 1/3 is moderate evidence against a theory, between 1/30 and 1/10 strong, below 1/100 extreme, and the same above 1 in favour. The column Note tells why a value is a bound or missing: models with equalities cannot be compared with their complement, and m6 has an exact equality of two averages, which multinomineq cannot handle (m7 and m8 are its approximate versions).
QTEST. The frequentist p values, and the Bayesian p value and DIC, need QTEST, a separate program. A frequentist test of an order-constrained model exists only for models with volume (Davis-Stober, 2009), so for m5, which is lower-dimensional, a standard test outside QTEST is needed. QTEST (Zwilling et al., 2019; Regenwetter et al., 2014) is available for Mac and Windows; the app downloads the files it needs. A step-by-step walkthrough of the analysis in QTEST, with the same data and the first model of this guide, has its own page: Analysis in QTEST.
Reading the Bayesian results
What a Bayes factor says, what the posterior says, and whether the numbers can be trusted.
The analysis in the app is a Bayesian analysis of order-constrained models (Heck & Davis-Stober, 2019). Every probability gets a flat prior, a Beta(1, 1) distribution: before seeing data, all values between 0 and 1 are equally plausible. A theory is the part of the prior that lies inside its polytope, and the data shift belief towards some values and away from others.
Bayes factors
The Bayes factor against the unconstrained model compares the theory with a model in which all probabilities are free. It is the share of the posterior that falls inside the theory, divided by the share of the prior that falls inside it (Klugkist et al., 2005). The share of the prior inside the theory is its volume, which is why a theory with volume \(v\) can never reach a Bayes factor above \(1/v\): this is the largest possible Bayes factor of the Parsimony tab. A value above 1 means the data fit the theory better than the free model, a value below 1 means worse.
The Bayes factor against the complement compares the theory with everything it forbids (for p1 > p2 > p3: all other orderings). It exists only for models without equalities, because for those the complement is not defined; the cell then stays empty.
The numbers are estimated from random draws. The se next to each value is the Monte-Carlo error of the estimate; it shrinks with more draws. A tiny Bayes factor can be estimated as zero when no draw fell inside the theory. The table then gives an upper bound, and the Note column says so.
Equalities lower the dimension of the polytope, so a model with exact equalities has volume zero: it is extremely restrictive and easy to falsify. In the Parsimony tab such a model has no volume and no largest possible Bayes factor. It can still be tested with data in the multinomineq analysis of the app:
- Equalities between two probabilities (such as p1 = p2, or m5 with p1 = … = p6): equal probabilities are merged into one parameter. This is exact, and the model gets a Bayes factor against the unconstrained model, but none against the complement.
- Fixed values (such as p1 = 0 in Take-the-best): they enter the Bayes factor exactly, with their binomial likelihood.
- Other equalities (sums such as the equal averages of m6, or the mixture of the Override model and Take-the-best): they are approached step by step with
bf_equalityof multinomineq. The result is an estimate, and the table gives its Monte-Carlo error. - For models with such equalities the app gives only the Bayes factor against the unconstrained model, and no posterior. The Note column says so.
- Approximate equalities (a tolerance such as .05, as in m7 and m8, or .001 for the Override model) give the model a volume. They state a slightly different reading of “equal”.
Estimates of one model
Every model has its own tab. It lists, for each probability, the posterior mean, the standard deviation and the 95 % interval; the plot shows the mean as a dot and the interval as a bar. These estimates respect the theory: because the model only allows probabilities inside its polytope, they are pulled into it. For m1 and the data above the posterior means are about .55, .64 and .72 for illogical jokes and .54, .49 and .44 for puns, while the observed proportions are .60, .64 and .68 and .60, .50 and .38: the estimates move to where the average over both joke types rises with age, and the further they are from the observed proportions, the worse the theory fits.
Can the sample be trusted?
Because the results come from Monte-Carlo sampling, a user should check that they have converged. Each model tab shows diagnostics of the posterior sample: trace and density plots, the effective sample size and the Geweke z statistic. Green means fine. A simple second check is to run the analysis again with more draws or another random seed (under Advanced): if the Bayes factor changes only slightly, the estimate has converged. If it does not, increase the number of draws. QTEST does the same with two seeds and convergence plots of the Bayes factor.
Settings and downloads
The setting Samples offers three levels: 10,000 draws for the Bayes factors and 5,000 for the posterior (standard), 100,000 and 20,000 (more), 1,000,000 and 100,000 (even more, very slow). Under Advanced you can change the prior, the burn-in (draws discarded at the start) and the random seed, which makes a run repeatable. Analyse again repeats the analysis, for example with more draws. The download gives a PDF report with a link back to your input, or everything in one file: PDF, web page, tables, the files for multinomineq and the R script, so that larger analyses can run on your own computer.
A real theory: the Heuristic-Systematic Model
The same steps for a textbook theory of persuasion: from a verbal theory to order constraints, volumes and Bayes factors.
The online supplement of the article formalizes the Heuristic-Systematic Model (HSM) of persuasion (Chaiken & Ledgerwood, 2012) with the framework of this guide. The aim is to show the method on a real theory, not to test HSM; the reading of the theory is deliberately general and does not assume anything that the theory does not say. You can also go through this part hands-on: click Take a tour in the app and choose A real theory: HSM. The tour follows the supplement, and Try it yourself is available there, too.
The theory in short
HSM is about someone who decides whether to draw a conclusion and act on it. Before looking at any information, the person has an Actual Confidence and a Desired Confidence (the Sufficiency Threshold). The distance between them is the gap. Information is processed with as little effort as possible: first the cues (heuristic processing, for example who says it), and only if the gap is still open the arguments (systematic processing). Processing stops as soon as the threshold is reached, and the person acts. If it is never reached, the person does not act.
Where the predictions come from
Nobody can measure these bars. The theory allows everybody to differ in where they start, where they want to get, and how strongly cues and arguments move them. All that is observed is whether a person acts. Two things still hold for every single person. A stronger argument never shortens the red bar, so anyone who acts with a weak argument also acts with a strong one. And a smaller gap never makes anybody stop acting. So in any population the share of people who act cannot fall when the argument gets stronger or the gap smaller. These are order constraints on proportions, exactly the kind of model the app handles.
Four probabilities and three predictions
The first study has two gap sizes (big b or small s) and two argument strengths (weak W or strong S). The four probabilities are the share of people who act in each condition, in this order: p1 = \(P_{bW}\) (big gap, weak argument), p2 = \(P_{bS}\), p3 = \(P_{sW}\), p4 = \(P_{sS}\).
p1 < p2; p3 < p4p1 < p3; p2 < p4p1 < p2 < p4; p1 < p3 < p4Vertices: the extreme cases
With Go and the V switch for m3, the app lists the six vertices of prediction 3. Each is a pattern across the four conditions: 1 means that everybody acts, 0 that nobody does. These are the extreme cases of the prediction.
| big gap, weak | big gap, strong | small gap, weak | small gap, strong | |
|---|---|---|---|---|
| V1 | 0 | 0 | 0 | 1 |
| V2 | 0 | 1 | 0 | 1 |
| V3 | 0 | 1 | 1 | 1 |
| V4 | 0 | 0 | 1 | 1 |
| V5 | 0 | 0 | 0 | 0 |
| V6 | 1 | 1 | 1 | 1 |
V5 is nobody acting, V6 everybody. V1 is only a small gap with a strong argument. The supplement checks each of the six patterns against the theory and finds that every one can be produced by a suitable population, so prediction 3 is a tight statement of what HSM implies. The H-representation contains no redundant constraint besides the automatic bounds.
How restrictive is it? Volumes and an intersection
A quarter of all possible families of four probabilities satisfy prediction 1, and a quarter prediction 2. Only one in twelve satisfy prediction 3. So with only four conditions the largest possible Bayes factor is already 12 for prediction 3 against the unconstrained model. This is the intersection of the first two: the Intersection model button gives for m1 and m2 the same volume, 1/12, as m3.
Replication: the same prediction in two populations
What if prediction 3 has to hold in two populations at once, for example women and men? The button Unpack across items repeats a model over items. With the base model m3 and two items:
- joint (item by item): the model holds in every population, eight probabilities. The volume is 1/144 and the largest possible Bayes factor 144.
- substitutable (all combinations of items): every probability of one population must also respect the order against the probabilities of the other, for example \(P_{bW}\) of one population is also at most \(P_{sW}\) of the other. The volume is 1/420, the largest possible Bayes factor 420.
Yet one richer study, with three gap sizes and three argument strengths (nine probabilities, twelve inequalities), reaches about 8,600 according to the supplement. So more conditions in a single study put far more pressure on the theory than the same small study replicated.
Cues: Override, Trade-off and Take-the-best
The second question asks what happens to the cues of a message: congruent with the conclusion (c), incongruent (i) or absent (n). Arguments are weak (W) or strong (S) as before; gap size is dropped. The six probabilities are, in this order: p1 = \(P_{iW}\), p2 = \(P_{nW}\), p3 = \(P_{cW}\), p4 = \(P_{iS}\), p5 = \(P_{nS}\), p6 = \(P_{cS}\).
\(P_{cS} \geq P_{cW} \geq P_{nW} = P_{iW}\) and \(P_{cS} \geq P_{iS} = P_{nS} \geq P_{nW}\)
p1 = p2 < p3 < p6; p2 < p4 = p5 < p6\(P_{cS} \geq P_{cW} \geq P_{nW} \geq P_{iW}\) and \(P_{cS} \geq P_{nS} \geq P_{iS} \geq P_{iW}\) and \(P_{nS} \geq P_{nW}\)
p1 < p2 < p3 < p6; p1 < p4 < p5 < p6; p2 < p5\(P_{iW} = P_{iS} = 0\) and \(P_{nW} = P_{nS} = P_{cW} = P_{cS} = 1\)
p1 = p4 = 0; p2 = p3 = p5 = p6 = 1What the app shows for the three models
- The Override model has two equalities and four inequalities. Its volume is zero, so there is no upper limit for the Bayes factor in its favour, and none against it. It has six vertices: nobody acts except with congruent cues and a strong argument (OH1), only people with congruent cues act whatever the argument (OH2), and so on up to everybody acting in every condition (OH6). Each can be produced by a suitable population.
- The Trade-off model has seven inequalities, ten vertices and a volume of 1/144: the largest possible Bayes factor is about 144. The Override model is nested in it.
- Take-the-best fixes every probability and therefore has exactly one vertex, the pattern (0, 1, 1, 0, 1, 1). It violates the Override model, since this pattern is not among the six vertices of Override. Because all its probabilities are fixed it has no volume: it is extremely restrictive and easy to falsify.
The six vertices of the Override model, as in Table A4 of the supplement (1 = everybody acts, 0 = nobody acts), and the single vertex of Take-the-best:
| incongruent, weak | no cues, weak | congruent, weak | incongruent, strong | no cues, strong | congruent, strong | |
|---|---|---|---|---|---|---|
| OH1 | 0 | 0 | 0 | 0 | 0 | 1 |
| OH2 | 0 | 0 | 1 | 0 | 0 | 1 |
| OH3 | 0 | 0 | 1 | 1 | 1 | 1 |
| OH4 | 0 | 0 | 0 | 1 | 1 | 1 |
| OH5 | 0 | 0 | 0 | 0 | 0 | 0 |
| OH6 | 1 | 1 | 1 | 1 | 1 | 1 |
| Take-the-best | 0 | 1 | 1 | 0 | 1 | 1 |
A mixture of Override and Take-the-best
Could a mixture, in which some people follow the Override model and the rest Take-the-best, protect HSM from falsification? Mathematically, the mixture is the set of all patterns that blend the two models: its vertices are the vertices of both, and everything in between belongs to it. The Mixture model button does this for m1 and m3. Its H-representation keeps an equality, \(P_{nW} + P_{iS} = P_{iW} + P_{nS}\), together with five inequalities, so its volume is zero too, and it is extremely restrictive and easy to falsify. Evidence in its favour has no theoretical limit with only six probabilities, and neither has evidence against it. Override and Take-the-best are nested in it. A mixture does not make a theory immune: it can still be refuted.
Where to go from here
From a verbal theory to a model you can test: the steps you now know.
- Say what must hold. Write the theory as statements about proportions, and ask what must be true for every single person or condition.
- Type the constraints. Chains such as
p1 > p2 > p3, constraints separated by a semicolon, sums with weights, equalities and tolerances. - Look at the model. The H-representation lists what it allows, the V-representation its extreme cases, and the polytope shows it.
- Measure how restrictive it is. The volume and the largest possible Bayes factor tell how much evidence the theory can earn and how much it risks; intersections show what theories share and which one is nested in which.
- Test it with data. Bayes factors, estimates and diagnostics in the app, and frequentist tests in QTEST (step by step here).
Next steps
- Try your own theory. Open the app and type it into the first model row. Share or save turns your input into a link, a QR code or a file, and every PDF of the app has a line that restores exactly your input.
- Take the tour. The cringe study repeats this guide step by step. It can be done hands-on with Try it yourself.
- Test the theories in QTEST. The frequentist p values, the Bayesian p value and the convergence checks need the program QTEST. The page Analysis in QTEST walks through it with the same data and the first model of this guide.
- Download what you need. The files for QTEST and multinomineq, an R script that runs the analysis on your own computer, and a LaTeX file of the H-representation. The R package fairy (anonymized repository for review) reproduces the analyses of the article. To install it, download the zip file of the repository (button Download repository on that page) and run
remotes::install_local("fairy.zip", subdir = "pkg"). - Report what does not work. Use report a bug at the bottom of the app.
References
The article this app accompanies, and the literature cited in this guide.
Questions, ideas, bugs? Write an email (the same link as report a bug at the bottom of the app). The code is in the anonymized repository (the icon in the toolbar above the app).
Every figure and table of the paper and its online supplement that the fairy produces comes with the short R script that made it. Look at a result, rebuild it yourself, and see how the script works.
rebuilt
on a laptop
Last verified 25 November 2026: all 34 results rebuilt in about 70 s on a laptop (R 4.4.3, fairy 0.7.0).
Each result with the script that made it. Click a picture to open it (arrows browse); Enlarge shows all pictures in the window.
Not produced by the fairy: figures from other articles, hand-made graphics and the frequentist p-values (QTest). Bayesian p-values and Bayes factors come from the R package multinomineq, called through the fairy.
Main paper
| Item | What it shows | Script | Result |
|---|---|---|---|
| Figure 1 | Examples from other articles | not produced by the fairy | |
| Figure 2 | Minimal description (H-representation) of Model 4 | Figure_2_Hrep_Model4.R runs in about 1 s |
|
| Figures 3 and 4 | V-representation (extreme cases) of Models 4 and 6, as numbers and in words | Figure_3_4_Vrep.R runs in about 2 s |
Figure 3 (PDF) · Figure 4 (PDF) |
| Figure 5 | Two rectangles, their overlap, a line segment | Figure_5_Polytopes.R runs in about <1 s |
|
| Table 1 | Model relationships, parsimony, largest Bayes factors | Tbl_1_Relationships.R runs in about 3 s |
|
| Table 2 | Replication models (identical, joint, substitutable) for Models 4, 9 and 10 (two cells of Model 10 take hours and are not computed) | Tbl_2_Replication.R runs in about 5 s |
Online supplement
The online supplement is listed by its parts (A to G) with its own numbers of figures and tables. Parts A and C contain no figures or tables of the fairy, part G is the reference list.
Online Supplement B: Understanding the Interplay between Theory and Method
| Item | What it shows | Script | Result |
|---|---|---|---|
| Figure B1 | Examples from other articles (Figure 1 of the main text) | not produced by the fairy |
Online Supplement D: Fairy results
| Item | What it shows | Script | Result |
|---|---|---|---|
| Figures D1 to D10 | H-representation of Models 1 to 10 (D1 is Model 1, D10 is Model 10; Figure D4 is Figure 2 of the main text) | Figure_D01-D20_Hrep_Vrep_Models.R runs in about 2 s |
D1 · D2 · D3 · D4 · D5 · D6 · D7 · D8 · D9 · D10 |
| Figures D11 to D20 | V-representation of Models 1 to 10 (D11 is Model 1, D20 is Model 10) | same script | D11 · D12 · D13 · D14 · D15 · D16 · D17 · D18 · D19 · D20 |
Online Supplement E: Quantitative Data Analytics and Model Competition
| Item | What it shows | Script | Result |
|---|---|---|---|
| Table E1 | Model relationships, parsimony, largest Bayes factors (Table 1 of the main text) | Tbl_1_Relationships.R runs in about 3 s |
|
| Tables E2 and E4 | The hypothetical data (Mike’s, Marc’s replication, Meichai’s); they are also the input of Tables E3 and E5 | Tbl_E2_E4_Data.R runs in about 2 s |
E2 (PDF) · E4 (PDF) |
| Tables E3 and E5 | Order-constrained inference for the hypothetical data: Bayesian p and Bayes factor, Models 1 to 10 (the frequentist p comes from QTest; Model 6 has an exact equality that multinomineq approximates, so its values are estimates) | Tbl_E3_E5_DataAnalysis.R runs in about 30 to 80 s |
|
| Table E6 | Order-constrained inference for the replication models (Bayesian p, Bayes factor; the frequentist p comes from QTest). The cells for the 18-dimensional models are computed on request (see the script) | Tbl_E6_Replication.R runs in about 10 s |
Online Supplement F: Case Study: Formalating Chaiken et al.’s Heuristic-Systematic Model
| Item | What it shows | Script | Result |
|---|---|---|---|
| Figure F1 | Graphic of the Heuristic-Systematic Model | hand-made graphic, not produced by the fairy | |
| Tables F1 to F4 | Extreme cases of Prediction 1, 2, 3, and of the Override model (top) and Take-the-best (bottom) | Tbl_F1-F4_HSM.R runs in about 1 s |
F1 · F2 · F3 · F4 |
In your browser: nothing to install
Binder (mybinder.org), a free service, starts RStudio in your browser with the fairy and all scripts ready. Type Rscript run_all.R in its Terminal tab (about one minute), or open a single script and click Source. The first start takes a few minutes; the session is temporary, so download your results before you close it.
On your computer
Install the R package fairy once, download the scripts, and run all of them or only one figure or table.
Commands to copy (macOS, Windows, Linux)
You can also open any script in RStudio and click Source. One thing matters: the working directory must be the folder with the scripts (RStudio: Session → Set Working Directory → To Source File Location).
Doesn't run? Common fixes
- “cannot open file '_models.R'” or “object 'm' not found”
- Run the script from the folder that holds the script and the two helper files (
_models.R,_table_pdf.R):cdinto it first, or use the zip of the result window, which has them. - “Rscript: command not found” (mostly Windows)
- Use the full path, e.g.
"C:\Program Files\R\R-4.4.2\bin\Rscript.exe" run_all.R, or run it inside R:setwd("path/to/scripts"); source("run_all.R"). - Installing the fairy fails with “cannot open URL”
- The anonymized repository blocks some servers. Download
fairy.zipin your browser from the anonymized repository (button “Download repository”) and install it from the file:remotes::install_local("fairy.zip", subdir = "pkg", dependencies = TRUE). - A package (rcdd, gmp, volesti) does not compile
- On Windows and macOS, R installs ready-made binaries from CRAN, so this should not happen there. On Linux install the system libraries first:
sudo apt install libgmp-dev libmpfr-dev libglpk-dev(Debian/Ubuntu). On macOS without binaries:brew install gmp mpfr. - Strange symbols or “Invalid UTF-8” warnings in the terminal
- Start R in a UTF-8 locale:
LANG=en_US.UTF-8 Rscript run_all.R. The PDFs use symbols such as ↬ and ♡. - “R version too old”
- The fairy needs R 4.1 or newer. Check with
R --version. - Numbers differ slightly in the last digits
- Only the volesti estimate of the largest Bayes factor in Table 2 (a random-walk estimate) and the sampled Bayes factors in Tables E3, E5 and E6 vary with the seed; the scripts fix the seed, but another version of volesti or multinomineq can change the last digits.
Very large models
A few cells involve very large models in 18 dimensions: the substitutable version of Model 10 in Table 2, and the joint and substitutable replication models in the replication analysis of Table E6 (Online Supplement E). The scripts compute them on request: one switch at the top of the script (list_all_vertices_model_10 in Tbl_2_Replication.R, compute_direct in Tbl_E6_Replication.R) turns it on, at the price of many hours of computing time. By default these cells read “not computed”.
How this was tested
Last verified on 25 November 2026: all 34 results rebuilt in about 70 s on a laptop with R 4.4.3 and fairy 0.7.0 (rcdd 1.6.1, volesti 1.1.2.10, multinomineq 0.2.6). In the Binder environment all scripts ran with fairy 0.7.0 on 25 November (about 3 minutes).
In a nutshell: with the fairy, a model is one line of constraints, and what the paper reports follows from it in a few calls:
library(fairy)
# Model 4 as constraints
h <- fairy_h("p1 > p2 > p3; p4 < p5 < p6; p1 < p4; p2 < p5; p3 < p6", n_p = 6)
# its constraints (H-representation, Figure 2)
fairy_h_table(h)
# its extreme cases as numbers and in words (V-representation, Figure 3)
fairy_v_table(h); fairy_words(h)
# its parsimony (volume) and the largest possible Bayes factor
fairy_info(h, method = "exact")Every script does exactly this for its figure or table. It has two parts: part 1 is the fairy (a few lines that give the figure or table), part 2 is only layout for the PDF (colours, symbols, table format) and not needed for the numbers. Models are written once, as constraints, in _models.R.
The calls are functions of the R package fairy, which documents them in its help pages (for example ?fairy_info).
Read the examples as a document
The R package fairy comes with two vignettes, documents that you can read without installing anything.
paper-examples
The examples of the paper and of the online supplement, step by step, with code and output: the numbers from which the figures and tables are made.
fairy
A short introduction to the package: how to enter a model and what you can compute with it.
The source of the package, including the vignettes, is in the repository (folder pkg).
This page lists what changed in the app and in the R package fairy, newest first. Each entry says what you can now do, not only what was changed in the code. The app is updated continuously; the date at the bottom of the app shows when it was last changed.
first on GitHub
after the redesign
The app today in short: models are typed as constraints on probabilities; the app shows their H- and V-representations, plots the polytopes, computes volume-based parsimony, repeats models across labs and units, and runs the multinomineq analysis or exports files for multinomineq and QTEST. Everything you set can be downloaded as an R script, and the R package fairy reproduces the analyses of the paper.
25 November 2026: table numbers as in the revised paper
- The paper now numbers its two main tables Table 1 (model relationships) and Table 2 (replication models). The scripts and results in Reproduce are renamed accordingly (
Tbl_1_Relationships,Tbl_2_Replication), and the vignette and the tour of the app use the same numbers. The former tables with the extreme cases in words are now part of Figures 3 and 4, so they are no longer listed separately (34 results in all).
25 November 2026: clearer data window, replication in the R package as in the app
- The data window of the multinomineq analysis says empirical data instead of numbers; its tabs show whether the data belong to base models or to a replication model, and to which.
- The video From the app to the paper was revised: many sentences are clearer, for example on probability patterns, mixtures and replication, and the parts on data and analysis were recorded again with the new data window. About 16 minutes.
- R package fairy 0.7.0: replication works as in the app, without item lists.
fairy_replicate_labs()(labs that do not have every probability) andfairy_replicate_items()(every probability with its own number of items) replacefairy_unpack(). The R script that the app exports uses these functions.
23 - 24 November 2026: Table E6, a clearer Reproduce tab, and the vignettes
- Table E6 of Online Supplement E (the replication analysis of Models 4, 9 and 10) is now reproducible too: 36 results in all, 10 scripts. The cells for the very large 18-dimensional models are computed on request with one switch in the script.
- The gallery in Reproduce is a calm grid: pictures with number, title and the script that made them, a filter for the main paper and the supplements, Enlarge, a direct download of every result and of every script, and arrows in the window to browse through the results. A card grows when the mouse is over it; a click anywhere on it opens the result.
- The Reproduce tab is reorganized into three parts: Results (pictures or a table with search), Run the scripts (in your browser or on your computer, with the commands and common fixes) and Understand the code (what a script does, and the vignettes of the R package as HTML and PDF).
- The vignette paper-examples of the R package now also covers the replication analysis (Table E6) and says which cells of the very large models are computed only on request. Both vignettes can be read on this page as HTML and PDF, without installing anything.
- Tables E3 and E5 have a note on Model 6: it contains an exact equality, which multinomineq approximates by a thin slab, so its values are estimates.
run_all.Rnames the two switches for the very large models at the top.- Very long H-representations in the app are shown page by page; the whole page is visible, also in the enlarged window.
- The 5 x 5 video has a few clearer sentences.
- The video on the Heuristic-Systematic Model was revised: the fairy introduces herself, many sentences are clearer (for example what the probabilities mean), the scene on what a mixture looks like was removed, and the melody of the other videos opens and closes it. About 11 minutes.
22 November 2026: Reproduce made simpler
- More in the Reproduce tab: a single report PDF with the console output, figures and tables of all scripts (
Reproduction_report.pdf), commands that adapt to Windows, macOS or Linux, a Last verified line, the console output of every script (in the result window), a search field in the full list, andsessionInfo.txtwith the versions of R and all packages. - Run it in your browser: the Reproduce tab has a link that opens RStudio on a free online server with the fairy and all scripts ready (Binder), so nothing has to be installed.
- All figures and tables in one go, or one at a time:
Rscript run_all.Rruns all scripts, shows the progress and the run time of each, and writes all 36 result files (about one to two minutes); every script can also be run on its own. The Reproduce tab now also has a gallery of all results, and clicking a result opens it in a window on the same page, with a download button. - Every script of the Reproduce tab has two parts: part 1 is the fairy (the few lines that give the figure or table), part 2 is only layout for the PDF. The tab How a script is built has a short example that shows how Model 4 leads to its constraints, extreme cases, volume and largest possible Bayes factor in a few calls.
- Every figure and table of the paper and of the online supplement is listed in Reproduce, with its number and the file that produces it; items that the fairy cannot produce (figures from other articles, hand-made graphics, the frequentist p-values of QTest) are marked. The files are named after what they reproduce (for example
Figure_2_Hrep_Model4,Tbl_3_Relationships,Figure_D11_Vrep_Model_01). - The package installs with one command from the anonymized repository (with a copy button):
remotes::install_url(...)also installs everything the fairy needs. No download by hand. - Reproduce now also has Tables F1 to F4 of Online Supplement F (the extreme cases of the HSM predictions and models).
- Reproduce now also has the H- and V-representations of Models 1 to 10 (Figures D1 to D20 of Online Supplement D) (as PDFs, with the typeset names of the probabilities).
- Reproduce now also has Tables E3 and E5 of Online Supplement E (Bayesian p and Bayes factor for Models 1 to 10 and the three hypothetical data sets).
21 November 2026: the tour follows the Guide
- A tour for the Heuristic-Systematic Model is back (Take a tour, then A real theory: HSM). It follows the online supplement: the verbal theory with the eight people, the four probabilities and the three predictions, their extreme cases (also those of predictions 1 and 2), the volume and the largest possible Bayes factor, the replication, a single study with 3 x 3 levels (nine probabilities, a largest possible Bayes factor of about 8,600), and the cue models Override, Trade-off, Take-the-best and their mixture. Like the cringe study it can be watched or done hands-on with Try it yourself. It has a few sparkles along the way.
- Constraints can use the names of the probabilities. In Unique Model Specification (and in the shared field) you can write the names from the top of the Input tab instead of p1, p2, … or mix both, for example
Greta < big_gap < P_nW. A name counts as a whole word; spaces may be written as underscores and the curly braces of a name may be left out (P_nWforP_{nW}). The app turns the names into p1, p2, … before it reads the text, so everything else works as before. The box show parameter names next to the title Model Specification shows that column with the names of the probabilities, typeset like on the Input tab (a name with invalid LaTeX is shown in red), instead of p1, p2, … The column now has one blank on each side of every relation sign, a fraction such as 1/2 is never broken over two lines, and the row grows with the text instead of cutting it off. The setting is remembered in the browser. A name that two probabilities share, a name that looks like a handle itself (p2) and a name without a letter are not translated. - With many models and the box show parameter names ticked, a changed name of a probability stayed as raw code, in the field and in the column, for a long time: every key typed started a typesetting in every row. The same text is typeset only once now, the redrawing is bundled, and the name you are typing in is typeset when you leave the field. If a typesetting never answers, it is started again after about 2.5 seconds, and the typeset name also shows when the browser window has lost the focus while the cursor is still in the field.
- The small Working… note now also shows while the page is still typesetting after something was opened, not only while the server calculates.
- In the Model Specification column, models that the server redraws later (for example intersections, or equalities marked as approximate) keep the names and the approximate signs; they showed plain text with p1, p2, … and = before.
- New tab Reproduce: one R script per figure and table of the main paper (Figures 2 to 5 and Tables 3 and 4), all using the fairy package, with the figure or table as a PDF and a zip with all scripts. More follow.
- Tables no longer turn grey for a moment when you come back to a tab (Shiny fades an output while it is redrawn, which looked like the results had become outdated). The Working… note shows instead if it takes long.
- Hints on buttons are no longer cut off. A hint at the edge of a side panel (for example on the parameter buttons in the H-representation tab) was clipped. All button hints now use the same bubble as the other hints, which always stays inside the window. They show on hover.
- The hover box in the 3D plot shows the typeset names of the probabilities instead of raw code (P^C).
- In the 3D plot, a name with a superscript or subscript that has no raised or lowered letter (for example \(P^{\looparrowright}_{A}\)) is written as P^↬_A instead of P↬A, which looked like one symbol.
- The frame around the part a tour step points at follows a layout that settles late (for example a column that appears after typing), so it no longer sits next to the field.
- New video in the Guide: A real theory (HSM). The third video (about 10 minutes) shows the Heuristic-Systematic Model of the supplement in the app: the verbal theory, its three predictions, the models Override, Trade-off and Take-the-best, and their mixture. It follows the supplement and uses the illustrations of the theories.
- The 5 x 5 video was recorded again. The parameter buttons now show the names of the probabilities (for example \(P_{T1,F1}\)), which makes the projection onto 4 x 4 and 3 x 3 easier to follow.
- The step-by-step video was corrected: a typesetting error in one scene is gone, the marks in the intersection scene follow the narration, and the replication part shows the choice The same as Model 4 in every tab.
- Take a tour (The cringe study) now follows the step-by-step video: the same steps in the same order, with the sentences of the video and nothing more (hypotheses, vertices, equalities, volume and upper bound, intersections, mixture, data and analysis). It starts with the six probabilities of the paper; the replication chapters of the video are not part of the tour. Model 7 and Model 8 are made with the copy button, as in the video.
- In the H-representation, the parameter buttons on the left (to highlight, deselect and project parameters) show the names of the probabilities, typeset, instead of p1, p2, … This makes the projection easier to follow, for example in the 5 x 5 design. A long name is cut with dots (the full name is in the tooltip), on the buttons as well as in the typeset name fields of the Input tab, the buttons wrap in the sidebar, and a name that you change on the Input tab changes on its button at once.
- When you rename a probability after the model was built, its parameter button in the H-representation no longer disappears before the next Go.
- The typeset names on the Input tab are placed correctly at once when you come back from another tab (they were shifted for about half a second before).
- The bars of Volume by model now have the same order as the table (m5 and m6 without volume were listed first before).
- The view that shows the vertices as numbers and words side by side no longer jumps between two sizes when the window has a scroll bar.
- The tour menu has only two entries for now: the tutorial The cringe study and the Quick tour. The Full tour, the tour for the Heuristic-Systematic Model and the tours for single parts are hidden. The switch Extras on / off of the tutorial is gone: the tutorial runs without the extra questions and notes.
20 November 2026: typeset names of the probabilities
- Names of the probabilities with LaTeX (for example
P^{\looparrowright}_{C}) are shown typeset as soon as you leave the field. Click the field to see and edit the code again. Invalid LaTeX stays as red text. The names strip of the expanded model box shows the typeset names, too, and the browser’s spell checker no longer underlines the code.
19 November 2026: clearer videos and data window
Data window for replicated models
- The list under Numbers now reads Own numbers (typed in this tab) instead of These numbers (typed below), the heading is Numbers for this tab, and a short line above it explains that each tab uses its own numbers unless you pick the numbers of another tab, so that the same data can go into several models.
Redundant statements
- Before the first Go, the red underline of redundant statements marks only statements that can be deleted together. If statements imply each other in a cycle (for example
p1 >= p2andp1 <= p2), at least one of them stays unmarked.
Videos in the Guide
- The step-by-step video (now about 14.8 minutes) first explains the Data window and then types the numbers; it shows how a tab takes the numbers of another tab. The intersections are explained more carefully (including the red underlines for redundant statements), the Mixture and intersection scenes wait until all formulas are drawn, and the opening title no longer promises that the app produces all results of the paper.
- In the 5 x 5 video, the remark on projection now says that dropping levels from the design gives the same model only for hypotheses that order the probabilities.
18 November 2026: step-by-step video and replication windows polished
New in the Guide
- A second video of about 4.5 minutes shows the testosterone and frustration example of the paper: a 3 x 3 and a 5 x 5 example, their volumes, and the projection from 5 x 5 down to 4 x 4 and 3 x 3.
- A new video of about 15 minutes at the top of the Guide shows the whole way from the app to the numbers of the paper: entering the hypotheses, equalities, volume and overlap, mixtures, replication across labs, the Bayesian analysis, and the download with its R script. It has captions and chapters.
Replication windows and names
- Parameter names are typeset everywhere with superscripts and subscripts (headers of the Data window, the comparisons list, the lab picture), and the picture uses real signs for at most and at least.
- If a model cannot be drawn, the app shows no empty graph and no PDF button.
- The links to the source code point to an anonymized repository during the review: anonymous.4open.science/r/fairy-B0F2. The R package is installed from the zip file of that page (
remotes::install_local("fairy.zip", subdir = "pkg")). - The tabs of the Data window wrap neatly, the parameter toolbar has clearer wording (Project onto highlighted parameters, How does each parameter matter?), and units is called items again.
- For models with exact equalities, the maximum Bayes factor is reported as an approximation based on the thinnest slab.
11 - 13 November 2026: replication across labs and units
Replication across labs
- The new group Replication across in the header of the Models list has two windows. labs repeats a model over several labs that did not all measure every probability: a table with one row per lab and one column per parameter, where a tick means that the lab has this parameter.
- A lab without a parameter follows the model projected onto the rest. For p1 > p2 > p3 and a lab without p2 that is p1 > p3. A bound that only follows for one lab, for example p3 at most 0.8 in a lab without p2, is written above the dot of that lab in the picture.
- Four ways to relate the labs: joint (the model holds in every lab on its own), substitutable (the order also holds across labs, any lab against any lab), identical (a parameter has the same value in all labs that have it, optionally within a tolerance that is the same for every lab) and average (the model holds for the average over the labs that have the parameter).
Replication across units
- units gives every parameter its own number of replicates. The units can be items, trials, conditions or anything else that is repeated. Replicate k of one parameter goes with replicate k of the others; where a parameter has fewer replicates, the model is projected onto the rest.
- substitutable, identical and average are offered. There is no joint here, because replicates of one unit are not independent of each other.
- Unpack across items is hidden. Rows made with it still work and can be edited, also in saved and shared inputs.
The picture
- Both windows show a picture of the model as soon as the base model has been calculated once, and it changes while you tick or change the numbers. Every model row has a diagram button that opens the same picture.
- Arrows point to the smaller one and carry a number. Below the picture the comparisons are written out (1 p2 > p1, 2 p2 > 1/2·p3, 3 p2 > p3 + 0.2). Pointing at a statement lights up its arrows, and pointing at an arrow or its number lights up the statement.
- Bounds such as p3 at most 0.4 and sums such as p4 + p5 at least 0.6 stand at the row. A dashed arrow is not in your model but must hold in a lab that lacks a parameter. average is drawn as (a + b + c) divided by n, with n the number of labs or replicates that have the parameter.
- The picture can be saved as a PDF (vector graphic with the legend and the list of comparisons).
- Show as typed input shows the statements of these rows as plain text, as before.
A cleaner Models header
- The buttons of the Models header are two groups: Replication across [labs | units] and New model from [intersection | mixture]. The windows are wider with two columns, so there is less scrolling.
- Cards of a replication row are labelled Replication labs or Replication units.
Results that are out of date
- When the input changed after the last Go, the cards are shown faded and a note above them says that the results are outdated. The Go button blinks as before.
Projection without corner points
- Leaving parameters out of a model (also for the labs and units above) is now calculated on the inequalities directly, so no corner points are needed. For models with many parameters this is much faster than before.
Tour and smaller changes
- The tour has a new part Replication that walks through both windows. The quick and the full tour and the example of the Heuristic-Systematic Model use the new windows instead of Unpack across items.
- Fixed: Go failed for a replication row when parameters were added to the model after the row was made. Long model names in the Volume chart are shortened and wrap in the Parsimony table.
- The texts about combining models in the intersection and mixture windows now cover replication rows.
10 November 2026
Exact volumes without corner points
- Many models only put probabilities in an order (one is at most another). For these, the exact volume is now counted: the number of orderings of the probabilities that fit the model, divided by the number of all orderings. No corner points are needed, so it is fast even for many probabilities. A grid of 5 by 5 probabilities, which could not be calculated exactly before, takes less than a second.
- A model is first split into parts that share no constraint. Parts that only order their probabilities are counted, the other parts are calculated from their corner points as before, one part at a time.
- The cards of the H-representation say how an exact volume was obtained.
Which parameters matter?
- In the H-representation tab, with the parameter selection (the funnel) switched on, the button Which parameters matter? leaves each parameter out in turn. A table shows the largest possible Bayes factor without each parameter and by how much it drops, sorted from the parameter that contributes most to the one that could be saved.
Approximate equalities
- When an equality between two probabilities is made approximate, everything that follows from it in the exact model is kept. In p1 >= p2 = p3 >= p4, the exact model also says p1 >= p3 and p2 >= p4; replacing p2 = p3 by a tolerance used to drop these two, so the model with tolerance allowed patterns that the original model forbids. The reasoning: p2 and p3 are the same quantity, so every constraint in which one of them occurs, also sums, holds with the other one in its place. The same holds when one side of the equality is a single probability and the other side is a number or a sum: with p1 = .5; p1 < p2 the model with tolerance also requires p2 > .5, and with p3 = p1 + p2; p3 < p4 it also requires p1 + p2 < p4. This is repeated until nothing new follows, and it works with several equalities and one tolerance per equality. The window for the approximate equalities lists these additional constraints as soon as you switch an equality on, before anything is calculated. Equalities with a sum on both sides (such as averages) keep their literal meaning: their tolerance is exactly the allowed deviation, nothing else changes.
Calculation window
- Skip next to the name of a model now also works while the approximations are calculated: it stops that model, the others go on.
- Cells of the window say unchanged when a value was calculated before, and not selected or not needed instead of a dash.
9 November 2026
Projection: leave parameters out
- In the H-representation tab, switch to selecting parameters (the funnel), unmark the parameters you want to drop and press Project onto marked parameters. The card shows what the model still says about the other parameters, the volume of the projection and the largest possible Bayes factor, next to that of the full model.
- Add as new model puts the projection on the Input page as a new row. It is analysed like every other model.
- The result says whether the volume was calculated exactly or estimated, and with which algorithm. Other approximations lets you pick which of the three approximations to compare; the result of the projection stays visible.
- While the exact volume is calculated, the card shows the time used and the time allowed, with Skip exact (the volume is estimated instead) and later Skip estimate.
Volumes
- The volume estimates are now called approximations, and the column in the Parsimony table is called Method. The default approximation error of Cooling Bodies is 0.001.
- Parameters without any constraint (only 0 to 1) are left out of every volume calculation. The Dimensionality column says, for example, 9 constrained of 25.
- The Parsimony tab remembers approximations it has already calculated, so adding or deleting a model recalculates only what is new.
Renaming and deleting
- Renaming a model or a probability, or deleting a model, now only updates the existing results (cards, V-representations, plots and the Parsimony table). Nothing is recalculated, the Go button does not blink and no window opens.
Working with the cards
- The column with the settings on the left of the H- and V-representation and of the plots stays in view while you scroll.
- The projection result looks best in the expanded view.
7 November 2026
Constraints and volume in the H-representation cards
- Click a constraint in a card to take it out of the model. The card then shows the volume of the reduced model and how many times larger it is than the full model.
- Several constraints can be taken out at once. The bounds 0 to 1 of every probability always stay, so every probability remains bounded.
- The volume is exact. If that takes too long, the app estimates it with Cooling Bodies (with the settings of the Parsimony tab) and marks the result as estimated.
- Add as new model turns the reduced model into a new row on the Input page, which is analysed like every other model.
- A tooltip on every constraint row says what a click does.
Working with the cards
- Every card has a delete button. Deleting a model there also removes it from the Input page.
- Long names of probabilities get a wider box that fits on one line.
Notation as in the article
- Names of probabilities can use TeX symbols. The cringe study now uses the notation of the article: P with the superscripts for illogical jokes and for puns and the subscripts C, T and A. The symbols are shown correctly in the cards, the plots and the result tables.
- The Heuristic-Systematic Model tutorial uses P for its probabilities as well, and names its models in the name field: Strength, Gap, Both, Override, Tradeoff and TakeTheBest.
Analysis of models with equalities
- The multinomineq analysis in the app now also gives Bayes factors for models with exact equalities, which had no result before.
- Equalities between two probabilities are merged and handled exactly, and fixed values such as p1 = 0 enter the Bayes factor exactly.
- Other equalities, such as sums of probabilities, are approached step by step with
bf_equalityof multinomineq. The result is an estimate, and the table gives its Monte-Carlo error. - Such a model gets only the Bayes factor against the unconstrained model, and no posterior. The Note column says so.
- The downloaded R script and files contain the equalities (files C_ and d_), so you can reproduce the result.
More in the tutorials
- The Heuristic-Systematic Model tutorial shows that the intersection of the first two predictions is the third prediction, because the intersection is where both hold.
- It also explains the Mixture model as a blend of two models and shows hard equalities: with exact equalities a model has no volume, which makes it extremely restrictive and easy to falsify. A narrow tolerance of .001 gives it a very small volume again.
- The cringe study tutorial explains the largest possible Bayes factor, the data entry of the example and the colour scale of the Bayes factors.
6 November 2026
A new Guide tab
- The tab Guide walks through the cringe study from the first probabilities to a first analysis.
- It has 26 short animations of what happens in the app and a contents list.
- The hypotheses of the study can be copied, also as one link that opens the app with all ten of them.
- A chapter explains how to read the Bayesian results.
- A chapter formalizes the Heuristic-Systematic Model of the online supplement.
- The literature is in the margin.
- It replaces the older tutorial; the step-by-step analysis in QTEST has its own page, Analysis in QTEST.
Two interactive tutorials in the app
- Take a tour > The cringe study enters everything for you, step by step, from three probabilities to ten hypotheses, intersections, volumes and a first Bayesian analysis of data with multinomineq.
- Switch to Try it yourself to type it in yourself, with hints and feedback.
- Turn on Extras for questions to predict, background notes and a progress bar.
- Set the speed with a control like in a video player (0.5x to 4x).
- Values a step talks about are framed in orange, and the card says what the frame shows.
- Take a tour > A real theory: the Heuristic-Systematic Model formalizes the textbook theory of the online supplement of the article: the figure of the theory, the order constraints that follow from it, volumes and largest possible Bayes factors (also for replications, using Unpack across items), the Override, Trade-off and Take-the-best models and a mixture of two of them.
5 November 2026
A guided tour
- Take a tour (top right of the app) explains the app step by step: each part is lit while the rest stays in the background. Choose the Start page for a first look, the Full tour for everything, or one part only: the input controls, the unpacking window, combining models (intersection, mixture), the result tabs, the run window, or the multinomineq analysis.
Share your input
- Link and QR code: Share or save > Share link or QR code of this input shows a QR code in the middle of the screen (with a tiny fairy hidden in it), copies the link, and saves the code as PDF or PNG.
- Every PDF of the app (multinomineq results, Parsimony, polytope, unpack picture) now has a clickable line Restore these models in the Fairy app that opens the app with exactly your input.
Unpack across items
- With several item lists, joint now pairs the items across lists item by item: item k of one list with item k of the other, and items without a partner are left out. Before, every item of one list was combined with every item of the other. Substitutable still uses all combinations. The picture, the statements and the R package follow the same rule, so results of such models change.
- The picture draws a sum of probabilities from different lists with one square per item, and compares rows of different lists item by item.
R package: fairy 0.6.6 in the anonymized repository.
4 November 2026
From model to data analysis, all in the app
- Script download: On the Input page, under Download, you can download an R script with the commands for the package. Everything you set in the app is written into the script, so whatever you enter in the app can be reproduced with it.
- multinomineq files: On the H-representation page you can download the files for multinomineq (Heck’s R package), including a complete analysis script based on your models.
- Data entry in the app: Enter your observed counts (n and frequency) under Data; the data file in the right format is written for you. For unpacked models you can choose which model’s numbers they use.
- Analysis in the app (new): Run analysis runs the multinomineq analysis directly in the app. It is time-limited and meant for trying things out; for larger analyses, download the files and run the script on your own computer.
Volumes
- The exact volume is calculated first (corner points with rcdd, volume with geometry). It has a time limit and can be skipped; the algorithm only steps in when the exact volume was skipped or did not finish in time.
Unpack across items
- The diagram is drawn directly from the typed model (no Go needed first) and covers any linear constraint: sums, differences, weights, constants and chains.
Working with the app
- A big Go button (Input and Parsimony), with Share/Save and Upload next to it.
- The run windows give feedback while they work; skipping, cancelling and retrying work the same way everywhere.
- H-representation display: Parameters colours the terms by parameter (p1, p2 …), and Items marks the items of unpacked models with coloured bars. In both, single parameters or items can be deselected: the selected terms get a yellow marker and the rows can be filtered (all marked / some marked), also in expanded cards. Switching the parameter colour no longer moves the cards.
- All unpacked models now use the same default order of the probabilities (by probability, then by item), so the numbering p1, p2 … in the downloads is the same for all of them.
- A calmer look of all windows, a Compact layout with one line per model, and controls for the embedded app (new session, unload, Fill window / full screen).
- Many smaller fixes and refinements.
R package: fairy 0.6.5 in the anonymized repository.
2 - 3 November 2026: windows, plots and the unpack picture
- The unpack picture draws sums, differences, weights and constants, and warns about non-linear input; the 3D polytope can be saved as a vector PDF.
- Skipping and retrying a calculation work per model in every run window, and Fill window of the embedded app gets its own exit button.
- The multinomineq results come as a PDF; Compare only offers models that live in the same space.
- R package fairy 0.6.
1 November 2026: exact volumes and multinomineq
- The exact volume runs as a background job with progress and a time limit; Parsimony has separate switches for the exact volume and the algorithms.
- Cancel is the one verb for stopping a calculation.
- multinomineq in the app: choice of the number of samples, data entry, and results with the strength of evidence in colour.
- Plot Edge Cases gets an overview and lists all vertices in blocks.
29 - 31 October 2026: order of the probabilities
- The order of the probabilities of an unpacked model can be changed by dragging; it holds for QTEST, multinomineq and the exported script.
- The unpack dialog was redesigned (one settings row, short options); its picture can be saved as a PDF.
- Mixtures and intersections keep the shape of deleted source models; the tolerance dialog names the equalities that force a pair.
28 October 2026: R package 0.4 and 0.5
- fairy 0.4: volesti defaults and no automatic switch of the volume method. fairy 0.5: model tables, a readable H-table and writers for QTEST and multinomineq.
- The exported R script has a seed, clearer comments and tables per model; the embedded app can be opened alone in a new tab with the current input.
25 - 27 October 2026: the picture for unpacking
- Several item sets per model (own group and count per set), a preview of the generated statements, and a picture that shows which items are compared; the weights of sums are shown.
- The V tab shows the counts of shared and unique vertices.
24 October 2026: sharing and the R package
- Share links restore an input; a Share/Save menu and keyboard help were added.
- The R package fairy was added; it reproduces the analyses of the paper and its supplement, with vignettes.
22 - 23 October 2026: one window for all calculations
- A quiet loading screen, and one persistent run window with progress for all models and both representations.
- Model cards in the H- and V-representation tabs can be re-ordered by dragging their title.
1 October 2026: major update
- A redesign of the whole interface: dark mode, a compact layout, tooltips, accessibility (keyboard use, contrast, labels) and cleaner exports (QTEST, multinomineq, LaTeX).
September 2024 - March 2025: the app as fairy
- The app continued under its current name in the current repository: models as constraints on probabilities, their H- and V-representations, plots of the polytopes and volume-based parsimony.
November 2022 - May 2024: gui_qtest
- The first Shiny version, kept in an earlier repository (gui_qtest) before the app moved to its current one: models typed as constraints, H- and V-representations (rcdd), plots, and volumes (volesti).
This overview was written with the help of AI (Claude, by Anthropic) from the commit history of the project, and reviewed by Marc Jekel.
