Skip to page content

Credence, Cavendish and The Royal Society

By Nicolas Kuri

See the code used in the analysis below at the WWP Lab GitHub repository.

Introduction

We know Margaret Cavendish visited the Royal Society in 1667 but was never made a member. The experiment we conducted therefore asks the following question: Had Cavendish been connected to the Royal Society would its members have reached certain truths faster? To answer this question, we utilised the 13,032-person network from Six Degrees of Francis Bacon and simulation results generated with the PolyGraphs framework. For previous work on this project, please see the early women writers and the sciences project page

Setting up the experiment

We first established three different networks, each representing a different state of the world. The first one we called Baseline, and it represents history as it was recorded. That is, the Baseline network is that where Cavendish is not connected to members of the Royal Society (except the ones she was actually connected to) and where her 67 connections from the Six Degrees of Francis Bacon network were kept. Next, we have a network that we call Cavendish+Founders, and it represents the same network as the Baseline, except that five new edges were added. These five edges link Cavendish to five Royal Society Founders, so we get a connection between Cavendish and each of John Wilkins, Henry Oldenburg, Christopher Wren, William Petty and Lord Brouncker. In this network, Cavendish is up from 67 to 72 connections. Finally, we have a third network, Cavendish+Members which contains the same connections as the Baseline and the Cavendish+Founders networks; the difference with the Baseline is that Cavendish now has 43 new edges, and with the latter 38. In this last network, or world, Cavendish is now connected to figures like Newton, Wallis and Digby and she now has 107 connections. Note that all these networks and their simulation runs were run in February 2025 with the PolyGraphs framework.

Using the three ‘worlds’ previously explained and their simulation runs we then focused on the credence (level of belief in a given hypothesis) of different groups in the networks. In the PolyGraphs framework there are two possible actions to choose from A or B, where B leads to the truth. You can think of ‘credence’ as the degree of confidence an agent has on B being better than A. Credence is a continuous value and ranges from 0 to 1, so if an agent’s credence is above 0.5 the agent tries B and shares the results of that action with its neighbours. On the other hand, if their credence is not above 0.5, they stick with A and stop gathering evidence for B. As simulation rounds, or steps, occur, each agent moves its credence according to the evidence they have observed. The simulation ends when all agents are certain that B is better than A, in other words, when everyone’s credence is above a high threshold like 0.99. For each of Cavendish, the founders, other royal society members, all royal society members together, the untouched rest and the whole network we calculated their mean credence, credence standard deviation, Brier score on credence and credence statistics (min, max, median, mean, quartiles) at different time steps of the simulation. What we eventually get is a large dataframe of approximately 45,000 observations, where each row can be understood as credence statistics at a specific time step for a specific run in a specific world.

Primary analysis

The credence statistics calculated, and described above, are all time-based. That is, they were calculated at step 1 and then at every 100 steps. As such, in the primary stage of the analysis we ask the main question of the experiment: Did the founders learn faster or slower in each new world than in real history, and what was Margaret Cavendish’s influence?

To answer the question posed above we look at the founders’ learning curve. Each run has given us average credence over time; this means that groups that learn faster have a credence trajectory that climbs closer to one earlier in the run. To quantify the learning rate of a group we use the Area Under the Curve (AUC) – which is the average height of the credence trajectory from step 1 to 1000, thus, higher AUC means faster learning. To calculate the AUC, we take all rows that share the same world, run, and group. For example, we take the rows that belong to the Baseline world (real history), run 1 and founders, up to step 1000 (11 snapshots) we then plot the credence line and calculate the AUC with the trapezoidal rule. We repeat the previous for every combination and we get 180 AUCs. Then we take all new-worlds (that is, exclude the baseline/real history) and compare each of those world’s AUC with its real history twin. The real history twin is the simulation that used the same seed (same statistical generators so no uncertainty is introduced), and group as the one selected. After we pair the twins, we get the AUC difference where a positive AUC means that the group with Cavendish learned faster; we do this for every pair and then we average the differences. In essence, what we are doing here is measuring how fast each group converges to the truth, comparing each alternative history with its corresponding real history simulation and averaging those differences or gaps. If we get a positive difference that means Cavendish sped up learning.

A screenshot showing paired mean credence over time
Figure 1: Mean Credence Over Time by Community and Configuration.
Link to the full resolution image for figure 1.

With the AUC differences calculated we must then ensure that they are statistically significant, so we take the standard error, build a 95% confidence interval and compute the p-value across the 3 different seeds. Here a seed means the randomness within each simulation (so using the same seed fixes the randomness) which means that twins with the same seed only differ in whether Cavendish is there.

Table 1: Seed-level Cavendish Effects on AUC (learning speed)
World Group Effect 95% CI p-value
C + 5 Founders Founders -0.037 -0.074 to +0.000 0.051
C + 43 Members Founders +0.021 -0.026 to +0.068 0.195
C + 5 Founders Other Members -0.001 -0.020 to +0.019 0.88
C + 43 Members Other Members +0.001 -0.028 to + 0.029 0.94
C + 5 Founders Rest +0.002 -0.004 to +0.009 0.26
C + 43 Members Rest -0.002 -0.015 to +0.011 0.57

In a previous 10 run (1 seed) analysis like the one shown in Table 1 we saw slower Royal Society Founder learning when Cavendish is linked only to them and faster learning from those same founders when Cavendish is linked to all members including them, but neither result was statistically significant as shown in the more robust 3 seed analysis (Table 1). What we can see, however, is that Founder learning changes often – later we look at it further using more seeds.

More statistical tests

The results of the primary analysis were not statistically significant; therefore, we now investigate with more statistical tests starting with an Analysis of Variance (ANOVA). An ANOVA will allow us to test if the differences in learning speed (AUC) are real or if they are just due to randomness. It does so by looking at two main things. First, it looks at how different the average AUCs across worlds and groups are, and second, it looks at how individual runs’ AUCs vary within each world-group combination. If we observe that the averages differ much more than the run-by-run variation, then we can say that the differences are very likely real.

We first implement a two-way ANOVA by taking the per-run AUCs for the three groups across the three worlds which gives us 90 AUCs (3 worlds x 3 groups x 10 runs). We know that some of these AUCs are higher and some are lower. The ANOVA asks where that variation in AUC comes from by splitting into worlds, groups, world x group, seed and residual. The main finding of the ANOVA is that groups differ a lot; that is founders, other members and the rest of the network learn at very different speeds and that explains about one third of the variation. Importantly, this comes from their position in the network and not from their connection to Cavendish, still the ANOVA found no treatment effect. Because the founders are a very noisy group (there are only 5 so their average jumps around from run to run) and the two-way ANOVA uses the same noise for everyone, individual differences are harder to detect. So, we implement a series of individual statistical tests.

We first start with a one-way ANOVA asking if the three world averages differ. Importantly, we treat the scores as independent, so the ANOVA ignores that each row shares the same starting beliefs. As a result, the test found no significant treatment effect. Then we implemented a Friedman test, now asking if, looking at matched runs, does one world consistently beat the others? So, for each of the ten rows, we rank the three worlds (from 1 to 3), and we check which world ranks consistently better than others.

Table 2: Friedman test results
Group χ^2 p
Founders 8.6 0.014
Other Members 0.6 0.74
Rest 2.4 0.30

As seen in Table 2, the founder group – as speculated throughout – is once again the group that is affected by the treatment (i.e. Cavendish). This means that the founders’ learning speed clearly depends on how Cavendish is connected. So, while we have confirmed that the founders are affected, we don’t yet know in which worlds – and so, we implement Tukey Honestly Significant Difference (HSD). With Tukey HSD we now ask which specific pairs of worlds differ. This is done by comparing every pair of worlds, computing the difference and confidence intervals for each.

Table 3: Tukey HSD
Pair Difference 95% CI p (adjusted) Different?
Real History vs + founders -0.036 -0.100 to +0.028 0.36 No
Real History vs + 43 members +0.029 -0.035 to +0.093 0.51 No
+ 5 founders vs + 43 members +0.064 +0.001 to +0.128 0.048 Yes

What we find is important. The founders’ AUC is about 0.064 higher when Cavendish is connected to all Royal Society members than when she is linked only to the founders. For the other members and the untouched rest no pair of worlds differs, however.

The three statistical tests, then, permitted us to see that how Cavendish is connected may matter. When she is linked to just the founders they learn slowest, but when she is linked to all members those same founders learn fastest. Neither change however differs significantly from history, as seen in Table 3, it is the pair between the two ‘artificial’ worlds which produces a difference, in other words we see no difference in the real history pairs.

Placebo checks

Having found this effect it is now important to be sure that it really comes from Cavendish. So, we run placebo checks to, essentially, look for an effect where there should not be one. We run two placebo checks. The first placebo is placed at the very start of the runs, that is, step 1 where one can safely assume that beliefs in all three worlds are almost identical. For each group we take the mean credence at step 1, subtract the real history twin, average and use the same method as the Primary Analysis. We find that every effect is almost negligible, which means that the worlds start out essentially the same.

Then we look at all the nodes we have not touched at all – everyone except Cavendish and the 43 members she was connected to. These 12,988 nodes got no new links, which means that if the founder effect is real and indeed local then they should not change. To implement it we again use the same method as the Primary Analysis to find that their effect is essentially zero telling us that they learn at the same speed in all three worlds.

Table 4: Placebo 2
World Effect 95% CI p
+5 founders +0.002 -0.002 to +0.006 0.31
+43 members +0.0002 -0.005 to +0.005 0.94

What we can claim so far

Reliably, what we can claim, is that connecting Margaret Cavendish to the Royal Society network did not produce a statistically robust change in the network’s credences relative to the Baseline network. What we did see is a negative change in the founders’ learning rate when Cavendish is connected only to them but an increase in their speed when Cavendish is connected to all members. Both effects reach p = 0.04 in paired tests across ten matched runs but these runs only come from three independent seeds, which is why when we average the repeats within each seed the direction of Cavendish’s effect holds but not its significance. Note, additionally, that we have been looking at credence speed in particular because all groups reach a credence close to 1 quite quickly. Importantly, we must note that Tukey HSD showed that the significant contrast occurs when we compare both ‘artificial worlds’, and not when we compare either to the Baseline. Therefore, what we can say is that how Cavendish is connected may matter for the founders – we need more independent runs before this becomes a finding.

More seeds/independent runs

Previously we stated that the pattern identified in the primary analysis and statistical tests, seemed unreliable because it came from three seeds only. In the final section, therefore, we test it with 30. What we did was run each world 30 times from different random starts out to step 1000. Importantly, we of course repeated the two original setups: Cavendish and the five founders and Cavendish and the members. But we also added four new setups: Cavendish linked to 9 Republicans, Cavendish linked to 48 pamphleteers, Hobbes linked to the founders and Golding linked to the founders (he has the same number of connections as Cavendish but none to the Royal Society). And we again compared each setup with the Baseline or real history. Additionally, we created a class to facilitate the process of experimenting with different connections in a network like this one which is why adding these new groups also allowed us to test it. Coming back to the experiment, within each seed, all scenarios shared the same node ordering and initial beliefs, so effects were once more computed as paired differences in normalized AUC against the baseline. What we then saw was rather disappointing as the original founder pattern we had seen using only 3 seeds was not replicated. Instead, we see that the effect on the founders was +0.0003 when Cavendish was connected only to them and –0.0004 when she was connected to all 43 members – these are roughly 100 times smaller than the previously seen effects. Further, swapping in Hobbes or Golding for Cavendish made no noticeable difference, that is, founders seem to learn at roughly the same speed no matter who is connected to them. Swapping the group also did not seem to make a large difference as seen when connecting Cavendish to the Republicans. When connecting Cavendish to the Pamphleteers, because they are more scattered, Cavendish seemed to become a hub through which information passed through and so they did converge faster with a Cavendish effect of + 0.01, but it was not statistically significant.

A screenshot showing paired Cavendish affects on AUC (learning speed)
Figure 2: Paired Cavendish Effects on AUC across 30 matched seeds (note group 92 are republicans and group 133 are pamphleteers).
Link to the full resolution image for figure 2.

Conclusion and next steps

Throughout, we tried to answer the question: If Margaret Cavendish had been a member of the Royal Society, that is directly connected to it, would its members’ credence have converged to the truth faster? From this experiment we can say that the answer is that adding Cavendish does not measurably change how fast the Royal Society learns. We caught most likely a false positive by running more seeds; however, the result is tied to this model and this experiment’s assumptions. What we can see is that Cavendish converges to the truth faster than the Royal Society founders, with her reaching 0.999 by step 400 against the founders’ average of 0.885, and we are only asking whether Cavendish’s position mattered. From history, however, we know that her ideas mattered, her natural philosophy and critique of the experimental method were distinctive. A next step would therefore be to rerun this experiment with Cavendish having different evidence or a different prior through the PolyGraphs framework and rerun the same comparison.