From 8414b2e1ab674bc5ae371dff9caa002c6483c79d Mon Sep 17 00:00:00 2001 From: Roger Hunt Date: Mon, 30 Nov 2026 12:24:44 -0500 Subject: [PATCH 1/6] asymmetric_noise_law: pre-registration (hypotheses, laws, predictions) already committed as 299c157e --- .../asymmetric_noise_law/gen_predictions.py | 15 ++ .../asymmetric_noise_law/hypotheses.md | 36 +++ .../studies/asymmetric_noise_law/laws.py | 96 ++++++++ .../asymmetric_noise_law/predictions.json | 218 ++++++++++++++++++ 4 files changed, 365 insertions(+) create mode 100644 org_frontier/studies/asymmetric_noise_law/gen_predictions.py create mode 100644 org_frontier/studies/asymmetric_noise_law/hypotheses.md create mode 100644 org_frontier/studies/asymmetric_noise_law/laws.py create mode 100644 org_frontier/studies/asymmetric_noise_law/predictions.json diff --git a/org_frontier/studies/asymmetric_noise_law/gen_predictions.py b/org_frontier/studies/asymmetric_noise_law/gen_predictions.py new file mode 100644 index 000000000..5c5155617 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/gen_predictions.py @@ -0,0 +1,15 @@ +"""Writes predictions.json from laws.py (no PyPhi); committed with hypotheses.md before run.py ran.""" +import json +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[3])) +from org_frontier.studies.asymmetric_noise_law import laws + +if __name__ == "__main__": + pred = laws.predictions() + phs = [v["km_on"] for rec in pred.values() for v in rec.values()] + [v["k1_off"] for rec in pred.values() for v in rec.values()] + Path(__file__).with_name("predictions.json").write_text( + json.dumps(dict(bars=dict(phi_tol=1e-6, zero_tol=1e-9), n_cells=len(laws.cells()), n_settings=len(laws.SETTINGS), cells=pred), indent=1) + ) + print("settings", len(laws.SETTINGS), "cells", len(laws.cells()), "min phi", min(phs), "max phi", max(phs)) diff --git a/org_frontier/studies/asymmetric_noise_law/hypotheses.md b/org_frontier/studies/asymmetric_noise_law/hypotheses.md new file mode 100644 index 000000000..3e6513fb0 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/hypotheses.md @@ -0,0 +1,36 @@ +# Hypotheses (committed before the grid ran): the closed form still holds when a 0 turning into a 1 is not as likely as the reverse + +**Question.** `system_phi_closed_form` gives the whole-network score of a hub that needs all its people, in the all-on state, when each flip (0 to 1, or 1 to 0) has the same chance. `spare_person_cut` (PR #1210) derived why a one-person cut is free, and recovered that same closed form in the two twin cases, still with equal flip chances. This study asks whether both results survive when the two directions have different chances. + +**Claim.** Write p10 for the chance the hub stays off when it should fire, and p01 for the chance it fires when it should stay off; q10 and q01 for the same two chances on each person's copy of the hub. A cut of a link replaces that source with a fair coin, *then* the receiver's own channel still applies. So a cut hub->person link makes the chance the person is on equal to q_cut = ((1-q10)+q01)/2, which is 1/2 only when the two people-rates are equal. + +From the same link rule as `system_phi_closed_form`, for the all-on state and a hub that needs everyone (k = m): +- a = (1-q10)^m, P = (1-p10) a, r = 2^{-m}, h = r(1-p10)+(1-r)p01, D = 2^m h (a + q01^m), +- Lh = log2((1-q10)/q_cut), Ls = log2((1-p10)/h), +- system phi = P min(1, 1/D) min(m Lh, Ls). The reported family is hub->people iff m Lh < Ls. Cause binds iff D > 1. + +When p01 = p10 and q01 = q10 this is exactly the old closed form. The 0/1 swap sends the k = 1 all-off network to this same formula with the four rates flipped. The free-cut rule does not use the rates: system phi is 0 when the one-person cut is free (all-on and k < m, or all-off and k > 1). + +**Predictions (from `laws.py`, stored in `predictions.json`, no PyPhi call).** Fresh official settings, eight 4-tuples of (p10, p01, q10, q01), none used in the exploratory probes below: +- two symmetric controls: (0.11, 0.11, 0.13, 0.13) and (0.27, 0.27, 0.19, 0.19); +- commit asymmetric, and flipped: (0.07, 0.24, 0.13, 0.13) and (0.24, 0.07, 0.13, 0.13); +- people asymmetric, and flipped: (0.11, 0.11, 0.08, 0.25) and (0.11, 0.11, 0.25, 0.08); +- both asymmetric, and flipped: (0.07, 0.24, 0.08, 0.25) and (0.24, 0.07, 0.25, 0.08). + +For each setting, m = 2, 3, 4, 5: the k = m all-on network, the k = 1 all-off twin, and the k = m-1 all-on zero (96 networks). Smallest predicted twin phi on the grid: 0.1090. Of the 32 all-on twins, 29 are predicted people->hub and 3 hub->people; 22 bind on the cause side and 10 on the effect side (the 32 all-off twins have the same counts after the rate swap). + +**Disclosure of what I had seen before writing this.** I ran PyPhi at six 4-tuples that are *not* on this grid: (0.12, 0.12, 0.18, 0.18), (0.08, 0.25, 0.15, 0.15), (0.10, 0.10, 0.05, 0.30), (0.08, 0.22, 0.12, 0.28), (0.05, 0.40, 0.06, 0.35), and the one-way people channel (0.10, 0.10, 0.20, 0.00). Those probes, on m = 2, 3, 4 and (for one setting) m = 5, plus four zero cells at m = 3, first missed when I treated a cut hub->person link as a fair coin *after* the people channel (the symmetric Lh = log2(2(1-q))). They matched, to float precision, once Lh used q_cut as above. The official 4-tuples had not been run. + +Systems per cell, PyPhi pinned at b78d0e342: `new_big_phi.sia` of the named network. + +Controls (run first; any miss means stop and write no result post): +- **C1** for each of the two symmetric settings, m = 2..5, all-on k = m: system phi equals the old `system_phi_closed_form` law (<= 1e-6). 8 cells. +- **C2** for those same 8 cells, the new formula equals the old law and the observed phi (<= 1e-6). (This is the reduction check.) + +Hypotheses (every bar must be met in all cells; a miss is a refutation as written): +- **H1 (all-on closed form).** For every official setting and m = 2..5, in the k = m all-on network: system phi equals the new formula (<= 1e-6), and the reported cut is the predicted family (hub->people iff m Lh < Ls). 32 cells. +- **H2 (all-off twin).** For every official setting and m = 2..5, in the k = 1 all-off network: system phi equals the new formula with the four rates flipped (<= 1e-6), and the reported cut is the family that formula names. 32 cells. +- **H3 (binding).** In those 64 twin cells, the smaller of the reported cut's cause and effect values is cause iff D > 1, and effect iff D < 1 (<= 1e-6 on the two values against P min(1,1/D) times the winning family's length). 64 cells. +- **H4 (free-cut zeros).** For every official setting and m = 2..5, the k = m-1 all-on network has system phi 0 (<= 1e-9). 32 cells. (For m = 2 this is k = 1 all-on, which the free-cut rule says is free.) + +Refutation: any bar missed counts as refuted as written. A failed control means I stop. Post-hoc looks are labelled. diff --git a/org_frontier/studies/asymmetric_noise_law/laws.py b/org_frontier/studies/asymmetric_noise_law/laws.py new file mode 100644 index 000000000..502f09b22 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/laws.py @@ -0,0 +1,96 @@ +"""Closed form for the system phi of a k=m all-on (and twin k=1 all-off) threshold hub with asymmetric noise. + +Commit channel: p10 = chance the hub stays off when it should fire; p01 = chance it fires when it should stay off. +People channel: q10 = chance a person sees the hub as off when it is on; q01 = the reverse. A cut of a link replaces that source with a fair coin, then the receiver's own channel still applies, so a cut hub->person link makes P(person=1) = q_cut = ((1-q10)+q01)/2, not 1/2, unless the two rates are equal. + +Derivation (no PyPhi), all-on, k=m, from the link rule of `cause_effect_link_cuts` and `system_phi_closed_form`: + a = (1-q10)^m, P = (1-p10) a, r = 2^{-m}, + h = r(1-p10)+(1-r)p01, D = 2^m h (a + q01^m), + Lh = log2((1-q10)/q_cut), Ls = log2((1-p10)/h). + people->hub family: cause (P/D) Ls, effect P Ls. + hub->people family: cause (P/D) m Lh, effect P m Lh. + System phi = P min(1, 1/D) min(m Lh, Ls). Reported family is hub->people iff m Lh < Ls. Cause binds iff D > 1. + +When p01=p10=p and q01=q10=q, q_cut=1/2 and Lh=log2(2(1-q)), so this is exactly `system_phi_closed_form`. + +The 0/1 swap sends the k=1 all-off network to this same k=m all-on formula with the rates flipped: (p10,p01,q10,q01) -> (p01,p10,q01,q10). + +The free-cut rule of `spare_person_cut` does not use the rates: a one-person outgoing cut is free (effect 0, system phi 0) iff all-on and k < m, or all-off and k > 1. +""" +import math +from org_frontier.studies.system_phi_closed_form import laws as closed + +MS = (2, 3, 4, 5) +# Fresh official settings; none of these 4-tuples was used in the exploratory probes. +SETTINGS = ( + (0.11, 0.11, 0.13, 0.13), # symmetric control + (0.27, 0.27, 0.19, 0.19), # symmetric control, higher + (0.07, 0.24, 0.13, 0.13), # commit asymmetric, people symmetric + (0.24, 0.07, 0.13, 0.13), # commit flipped + (0.11, 0.11, 0.08, 0.25), # people asymmetric, commit symmetric + (0.11, 0.11, 0.25, 0.08), # people flipped + (0.07, 0.24, 0.08, 0.25), # both asymmetric + (0.24, 0.07, 0.25, 0.08), # both flipped +) + + +def q_cut(q10, q01): + return 0.5 * ((1.0 - q10) + q01) + + +def predict_km_on(m, p10, p01, q10, q01): + a = (1.0 - q10) ** m + P = (1.0 - p10) * a + r = 2.0 ** -m + h = r * (1.0 - p10) + (1.0 - r) * p01 + D = (2 ** m) * h * (a + (q01 ** m)) + Lh = math.log2((1.0 - q10) / q_cut(q10, q01)) + Ls = math.log2((1.0 - p10) / h) + w = P * min(1.0, 1.0 / D) + hub = w * m * Lh + ppl = w * Ls + return dict( + phi=min(hub, ppl), + family="hub->people" if hub < ppl else "people->hub", + binding="cause" if D > 1 else "effect", + D=D, P=P, Lh=Lh, Ls=Ls, hub_family=hub, people_family=ppl, N=m * m, + score=min(hub, ppl) / (m * m), + ) + + +def predict_k1_off(m, p10, p01, q10, q01): + return predict_km_on(m, p01, p10, q01, q10) + + +def old_symmetric(m, p, q): + return closed.predict(m, p, q)["phi"] + + +def cells(): + """Official (m, k, state, p10, p01, q10, q01) rows: twins plus a spare-on zero per setting.""" + out = [] + for p10, p01, q10, q01 in SETTINGS: + for m in MS: + out.append((m, m, "on", p10, p01, q10, q01)) + out.append((m, 1, "off", p10, p01, q10, q01)) + out.append((m, m - 1 if m > 1 else 1, "on", p10, p01, q10, q01)) + return out + + +def is_symmetric(p10, p01, q10, q01): + return p10 == p01 and q10 == q01 + + +def predictions(): + out = {} + for p10, p01, q10, q01 in SETTINGS: + rec = {} + for m in MS: + rec[str(m)] = dict( + km_on=predict_km_on(m, p10, p01, q10, q01)["phi"], + k1_off=predict_k1_off(m, p10, p01, q10, q01)["phi"], + family_on=predict_km_on(m, p10, p01, q10, q01)["family"], + family_off=predict_k1_off(m, p10, p01, q10, q01)["family"], + ) + out[f"{p10},{p01},{q10},{q01}"] = rec + return out diff --git a/org_frontier/studies/asymmetric_noise_law/predictions.json b/org_frontier/studies/asymmetric_noise_law/predictions.json new file mode 100644 index 000000000..a5016d093 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/predictions.json @@ -0,0 +1,218 @@ +{ + "bars": { + "phi_tol": 1e-06, + "zero_tol": 1e-09 + }, + "n_cells": 96, + "n_settings": 8, + "cells": { + "0.11,0.11,0.13,0.13": { + "2": { + "km_on": 1.040772713356435, + "k1_off": 1.040772713356435, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "3": { + "km_on": 1.1225305378377126, + "k1_off": 1.1225305378377126, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.8710119828130493, + "k1_off": 0.8710119828130493, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.5644954177241571, + "k1_off": 0.5644954177241571, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.27,0.27,0.19,0.19": { + "2": { + "km_on": 0.4147249574327439, + "k1_off": 0.4147249574327439, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "3": { + "km_on": 0.3180979816485135, + "k1_off": 0.3180979816485135, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.1962550475500763, + "k1_off": 0.1962550475500763, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.1090296432603554, + "k1_off": 0.1090296432603554, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.07,0.24,0.13,0.13": { + "2": { + "km_on": 0.6466157716373818, + "k1_off": 0.9193403565904682, + "family_on": "people->hub", + "family_off": "hub->people" + }, + "3": { + "km_on": 0.5367017544277528, + "k1_off": 1.1421266035625501, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.3520730796276809, + "k1_off": 1.1533156584348252, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.2033265199284014, + "k1_off": 0.7918897124398019, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.24,0.07,0.13,0.13": { + "2": { + "km_on": 0.9193403565904682, + "k1_off": 0.6466157716373818, + "family_on": "hub->people", + "family_off": "people->hub" + }, + "3": { + "km_on": 1.1421266035625501, + "k1_off": 0.5367017544277528, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 1.1533156584348252, + "k1_off": 0.3520730796276809, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.7918897124398019, + "k1_off": 0.2033265199284014, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.11,0.11,0.08,0.25": { + "2": { + "km_on": 0.8874912124845983, + "k1_off": 0.773463669260133, + "family_on": "hub->people", + "family_off": "people->hub" + }, + "3": { + "km_on": 1.0299575455154482, + "k1_off": 0.7887449501696241, + "family_on": "hub->people", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.8667202791769649, + "k1_off": 0.7003568123787585, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.5637022303705259, + "k1_off": 0.5645296739125195, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.11,0.11,0.25,0.08": { + "2": { + "km_on": 0.773463669260133, + "k1_off": 0.8874912124845983, + "family_on": "people->hub", + "family_off": "hub->people" + }, + "3": { + "km_on": 0.7887449501696241, + "k1_off": 1.0299575455154482, + "family_on": "people->hub", + "family_off": "hub->people" + }, + "4": { + "km_on": 0.7003568123787585, + "k1_off": 0.8667202791769649, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.5645296739125195, + "k1_off": 0.5637022303705259, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.07,0.24,0.08,0.25": { + "2": { + "km_on": 0.615596390504197, + "k1_off": 0.7045262719621357, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "3": { + "km_on": 0.5278996517797545, + "k1_off": 0.7317121727280679, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.3503383235671207, + "k1_off": 0.6608277535888476, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.2030408204892186, + "k1_off": 0.550644098933653, + "family_on": "people->hub", + "family_off": "people->hub" + } + }, + "0.24,0.07,0.25,0.08": { + "2": { + "km_on": 0.7045262719621357, + "k1_off": 0.615596390504197, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "3": { + "km_on": 0.7317121727280679, + "k1_off": 0.5278996517797545, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "4": { + "km_on": 0.6608277535888476, + "k1_off": 0.3503383235671207, + "family_on": "people->hub", + "family_off": "people->hub" + }, + "5": { + "km_on": 0.550644098933653, + "k1_off": 0.2030408204892186, + "family_on": "people->hub", + "family_off": "people->hub" + } + } + } +} \ No newline at end of file From 59ebd88e5bbd96cb420cded1b1e5c1870d86081e Mon Sep 17 00:00:00 2001 From: Roger Hunt Date: Mon, 30 Nov 2026 12:24:52 -0500 Subject: [PATCH 2/6] asymmetric_noise_law: official 96-network grid, findings, and study README --- .../studies/asymmetric_noise_law/FINDINGS.md | 58 + .../studies/asymmetric_noise_law/README.md | 22 + .../asymmetric_noise_law/results/results.json | 1384 +++++++++++++++++ .../studies/asymmetric_noise_law/run.py | 173 +++ 4 files changed, 1637 insertions(+) create mode 100644 org_frontier/studies/asymmetric_noise_law/FINDINGS.md create mode 100644 org_frontier/studies/asymmetric_noise_law/README.md create mode 100644 org_frontier/studies/asymmetric_noise_law/results/results.json create mode 100644 org_frontier/studies/asymmetric_noise_law/run.py diff --git a/org_frontier/studies/asymmetric_noise_law/FINDINGS.md b/org_frontier/studies/asymmetric_noise_law/FINDINGS.md new file mode 100644 index 000000000..8628253af --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/FINDINGS.md @@ -0,0 +1,58 @@ +# Findings: when the two kinds of noise are uneven, the same formula still works + +Pinned PyPhi b78d0e342d37175cbd55cf35a6d52ae035b4c50f (`results.json`: 1.2.1.dev1470+gb78d0e342). Pre-registration commit 299c157ef53c7bf45bfe0b0893d622d15d459a9d. All numbers from `results/results.json`. Fresh official grid: eight 4-tuples of (p10, p01, q10, q01), none used in the exploratory probes; for each, m = 2, 3, 4, 5, the k = m all-on network, the k = 1 all-off twin, and the k = m-1 all-on zero (96 networks). + +The two symmetric controls are (0.11, 0.11, 0.13, 0.13) and (0.27, 0.27, 0.19, 0.19). The six uneven settings are commit-asymmetric (0.07, 0.24, 0.13, 0.13) and its flip, people-asymmetric (0.11, 0.11, 0.08, 0.25) and its flip, and both uneven (0.07, 0.24, 0.08, 0.25) and its flip. + +| | Bar (pre-registered) | Result | +|---|---|---| +| C1 two symmetric settings, m = 2..5, all-on k = m: system phi equals the old `system_phi_closed_form` law (≤ 1e-6), 8 cells | 8/8 | 8/8; largest difference 4.4e-16 | +| C2 those same 8 cells: the new formula equals the old law and the observed phi (≤ 1e-6) | 8/8 | 8/8; new vs old at most 8.3e-17; new vs observed at most 4.4e-16 | +| H1 all-on closed form: system phi equals the new formula (≤ 1e-6) and the reported cut is the predicted family, 32 cells | 32/32 phi; 32/32 family | 32/32 and 32/32; largest phi difference 4.4e-16; 29 people→hub, 3 hub→people, as predicted | +| H2 all-off twin: system phi equals the new formula with the four rates flipped (≤ 1e-6) and the reported cut is the family that formula names, 32 cells | 32/32 phi; 32/32 family | 32/32 and 32/32; largest phi difference 1.9e-15 | +| H3 binding: in those 64 twin cells, the smaller of the reported cut's cause and effect values is cause iff D > 1, and the two values match P min(1, 1/D) times the winning family's length (≤ 1e-6) | 64/64 | 64/64; largest difference 7.1e-15; 44 bind on the cause side and 20 on the effect side (22 and 10 among the 32 all-on twins, and the same counts after the rate swap) | +| H4 free-cut zeros: k = m-1 all-on has system phi 0 (≤ 1e-9), 32 cells | 32/32 | 32/32; every cell was exactly 0.0 | + +Both controls and all four hypotheses held in every cell. No bar was missed. None is refuted. + +## What the derivation says (confirmed) + +A cut of a link replaces that source with a fair coin, *then* the receiver's own channel still applies. So a cut hub→person link makes the chance the person is on equal to q_cut = ((1-q10) + q01) / 2, which is 1/2 only when the two people-rates are equal. For the all-on state and a hub that needs everyone (k = m): + +- a = (1-q10)^m, P = (1-p10) a, r = 2^{-m}, h = r(1-p10) + (1-r)p01, D = 2^m h (a + q01^m), +- Lh = log2((1-q10) / q_cut), Ls = log2((1-p10) / h), +- system phi = P min(1, 1/D) min(m Lh, Ls). The reported family is hub→people iff m Lh < Ls. Cause binds iff D > 1. + +When p01 = p10 and q01 = q10, q_cut is 1/2 and this is exactly `system_phi_closed_form`. The 0/1 swap sends the k = 1 all-off network to this same formula with the four rates flipped. The free-cut rule of `spare_person_cut` does not use the rates: system phi is 0 when the one-person cut is free (here, the k = m-1 all-on zeros). + +Smallest twin phi on the grid: 0.109030 (m = 5, k = 5, all-on, and its all-off twin, at the noisier symmetric control 0.27, 0.27, 0.19, 0.19). Largest: 1.153316 (m = 4, all-on at 0.24, 0.07, 0.13, 0.13; the all-off twin of the flipped rates is the same number). + +Worked examples, three people: + +- Symmetric (0.11, 0.11, 0.13, 0.13), needs all three, all-on (and the all-off twin, same number because the two directions are equal): system phi 1.122531, family people→hub. +- Both uneven (0.07, 0.24, 0.08, 0.25), needs all three, all-on: 0.527900, people→hub. The all-off twin is 0.731712, which equals the all-on score of the flipped rates, not of this same 4-tuple — the two directions are not equal, so the twin is the flipped-rate copy, not a copy of the same-rate all-on number. +- People uneven (0.11, 0.11, 0.08, 0.25), needs all three, all-on: 1.029958, family hub→people (one of the three all-on cells where that family is cheaper; the other two are m = 2 at the same people rates, and m = 2 at commit-flipped 0.24, 0.07, 0.13, 0.13). +- The spare-on zero, needs two, all-on, at each of those settings: system phi 0. + +For people rates (0.08, 0.25), q_cut = 0.585, not 1/2. That is why Lh is log2((1-0.08)/0.585) rather than log2(2(1-0.08)), and why the hub→people family can be the cheaper one. + +## Disclosure + +- Exploratory PyPhi probes at six 4-tuples that are *not* on this grid — (0.12, 0.12, 0.18, 0.18), (0.08, 0.25, 0.15, 0.15), (0.10, 0.10, 0.05, 0.30), (0.08, 0.22, 0.12, 0.28), (0.05, 0.40, 0.06, 0.35), and the one-way people channel (0.10, 0.10, 0.20, 0.00) — on m = 2, 3, 4 and (for one setting) m = 5, plus four zero cells at m = 3, were run before pre-registration and are described in hypotheses.md. The first formula I tried used the symmetric Lh = log2(2(1-q10)), which treats a cut hub→person link as a fair coin *after* the people channel. It missed whenever q10 ≠ q01 and the hub→people family was cheaper, or was mis-predicted. Once Lh used q_cut as above, those probes matched to float precision. No cell of this official grid had been run. +- `run.py` and `__init__.py` were written after the pre-registration commit and before the official grid; they are not part of the pre-registered files. `run.py` was not changed after the official run. +- This is not a repeat of `asymmetric_relay` or `asymmetric_sides`, which are about relays and two-sided platforms, not this threshold-hub closed form. + +## Limits + +- Uniform states only (all on, or all off). Mixed states are not tested. +- One family of systems: a threshold hub and its people. I only tested m = 2..5. +- The free-cut check here is the k = m-1 all-on zero at each official setting, not a re-run of the full named-cut grid of `spare_person_cut` under uneven rates. The rule itself does not use the rates, and all 32 of those zeros were exactly 0. +- I do not register a closed form for the *value* of a non-free one-person cut. + +## Reproduce + +```sh +python org_frontier/studies/asymmetric_noise_law/run.py --quick # CI: three named networks, about 2 seconds +python org_frontier/studies/asymmetric_noise_law/run.py --write --jobs 4 # full grid (96 networks), about 1–2 minutes +python org_frontier/studies/asymmetric_noise_law/gen_predictions.py # regenerate predictions.json from laws.py (no PyPhi) +``` diff --git a/org_frontier/studies/asymmetric_noise_law/README.md b/org_frontier/studies/asymmetric_noise_law/README.md new file mode 100644 index 000000000..72b4a9f3b --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/README.md @@ -0,0 +1,22 @@ +# When the two kinds of noise are uneven, the same formula still works + +Pre-registered in commit `299c157ef53c7bf45bfe0b0893d622d15d459a9d` (hypotheses, laws, predictions; before the grid ran). Pinned PyPhi b78d0e342. Extends `system_phi_closed_form` and the free-cut zeros of `spare_person_cut` (PR #1210) to the case where a 0 turning into a 1 is not as likely as the reverse. + +``` +python org_frontier/studies/asymmetric_noise_law/run.py --quick # CI: three named networks, about 2 seconds +python org_frontier/studies/asymmetric_noise_law/run.py --write --jobs 4 # full grid (96 networks), about 1–2 minutes +python org_frontier/studies/asymmetric_noise_law/gen_predictions.py # regenerate predictions.json from laws.py (no PyPhi) +``` + +**Result: both controls and all four hypotheses held in every cell. No bar was missed.** +- A cut hub→person link is a fair coin *then* the people channel, so P(person=1) = q_cut = ((1-q10)+q01)/2, and Lh = log2((1-q10)/q_cut). When the two people-rates are equal this is the old closed form. +- C1 and C2: the eight symmetric all-on cells match the old `system_phi_closed_form` law and the new formula (largest observed difference 4.4e-16). +- H1: 32/32 all-on twins match the new formula and the predicted family (largest difference 4.4e-16; 29 people→hub, 3 hub→people). +- H2: 32/32 all-off twins match the same formula with the four rates flipped (largest difference 1.9e-15). +- H3: 64/64 binding (44 cause, 20 effect); largest cause/effect difference 7.1e-15. +- H4: 32/32 spare-on zeros, every one exactly 0.0. +- Smallest twin phi 0.109030 (m = 5, noisier symmetric control). Largest 1.153316 (m = 4, commit-flipped 0.24, 0.07, 0.13, 0.13). + +Files: [hypotheses.md](hypotheses.md), [laws.py](laws.py), [predictions.json](predictions.json), [gen_predictions.py](gen_predictions.py), [run.py](run.py), [results/results.json](results/results.json), [FINDINGS.md](FINDINGS.md), [BACKLOG.md](BACKLOG.md). + + diff --git a/org_frontier/studies/asymmetric_noise_law/results/results.json b/org_frontier/studies/asymmetric_noise_law/results/results.json new file mode 100644 index 000000000..caa660c04 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/results/results.json @@ -0,0 +1,1384 @@ +{ + "pyphi": "1.2.1.dev1470+gb78d0e342", + "scores": { + "C1_old_law": { + "ok": 8, + "of": 8 + }, + "C2_new_equals_old": { + "ok": 8, + "of": 8 + }, + "H1_family": { + "ok": 32, + "of": 32 + }, + "H1_phi": { + "ok": 32, + "of": 32 + }, + "H2_family": { + "ok": 32, + "of": 32 + }, + "H2_phi": { + "ok": 32, + "of": 32 + }, + "H3_binding": { + "ok": 64, + "of": 64 + }, + "H4_zero": { + "ok": 32, + "of": 32 + } + }, + "misses": {}, + "rows": [ + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.7045262719621357, + "cause": 1.2767019586761503, + "effect": 0.7045262719621357, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.6155963905041972, + "cause": 0.6155963905041972, + "effect": 0.923200672893287, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.7317121727280681, + "cause": 1.3858611609316913, + "effect": 0.7317121727280681, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.1302870751991472, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.5278996517797546, + "cause": 0.5278996517797546, + "effect": 1.0944188214317854, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.6608277535888474, + "cause": 1.1537412714198954, + "effect": 0.6608277535888474, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.0848567157062284, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.3503383235671207, + "cause": 0.3503383235671207, + "effect": 1.1431383321724902, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.5506440989336525, + "cause": 0.7919377679639021, + "effect": 0.5506440989336525, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.052543001838913396, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.08, + "q01": 0.25, + "phi": 0.20304082048921854, + "cause": 0.20304082048921854, + "effect": 1.1217368143862687, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.9193403565904681, + "cause": 1.224830141503396, + "effect": 0.9193403565904681, + "cut": "011001010", + "family": "hub->people" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.6466157716373823, + "cause": 0.6466157716373823, + "effect": 0.82557961875346, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 1.1421266035625501, + "cause": 1.3829291400787647, + "effect": 1.1421266035625501, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.13245945816197735, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.5367017544277528, + "cause": 0.5367017544277528, + "effect": 0.9255029962825863, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 1.153315658434824, + "cause": 1.153315658434824, + "effect": 1.1965207408283487, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.08527689726202217, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.3520730796276809, + "cause": 0.3520730796276809, + "effect": 0.9141647879970854, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.7918897124398, + "cause": 0.7918897124398, + "effect": 1.1565407395019667, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.05261693527812125, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.07, + "p01": 0.24, + "q10": 0.13, + "q01": 0.13, + "phi": 0.20332651992840137, + "cause": 0.20332651992840137, + "effect": 0.8482973291299929, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.7734636692601331, + "cause": 1.1144078294034974, + "effect": 0.7734636692601331, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.8874912124845986, + "cause": 0.8874912124845986, + "effect": 0.9841017308932469, + "cut": "011001010", + "family": "hub->people" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.7887449501696239, + "cause": 1.1249104739093463, + "effect": 0.7887449501696239, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.1814517118624097, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 1.0299575455154484, + "cause": 1.0299575455154484, + "effect": 1.358060388632681, + "cut": "0111001101010110", + "family": "hub->people" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.7003568123787586, + "cause": 0.8713334160714333, + "effect": 0.7003568123787586, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.13009817046827343, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.8667202791769647, + "cause": 0.8667202791769647, + "effect": 1.585716748250654, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.5645296739125191, + "cause": 0.5645296739125191, + "effect": 0.5760597671234278, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.0, + "cause": 0.09015553155892678, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.08, + "q01": 0.25, + "phi": 0.5637022303705258, + "cause": 0.5637022303705258, + "effect": 1.599927724857723, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 1.040772713356435, + "cause": 1.1024714241368287, + "effect": 1.040772713356435, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 1.0407727133564346, + "cause": 1.1024714241368283, + "effect": 1.0407727133564346, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 1.1225305378377122, + "cause": 1.1225305378377122, + "effect": 1.231148837739965, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.1844772046584046, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 1.1225305378377124, + "cause": 1.1225305378377124, + "effect": 1.2311488377399653, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.8710119828130504, + "cause": 0.8710119828130504, + "effect": 1.2680936105371166, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.13074237229977648, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.8710119828130494, + "cause": 0.8710119828130494, + "effect": 1.2680936105371137, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.564495417724157, + "cause": 0.564495417724157, + "effect": 1.2099223261566912, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.09028238971850053, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.13, + "q01": 0.13, + "phi": 0.5644954177241572, + "cause": 0.5644954177241572, + "effect": 1.2099223261566925, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.8874912124845986, + "cause": 0.8874912124845986, + "effect": 0.9841017308932469, + "cut": "011001010", + "family": "hub->people" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.7734636692601329, + "cause": 1.1144078294034976, + "effect": 0.7734636692601329, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 1.0299575455154484, + "cause": 1.0299575455154484, + "effect": 1.358060388632681, + "cut": "0111001101010110", + "family": "hub->people" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.18486832448896748, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.7887449501696241, + "cause": 1.1249104739093463, + "effect": 0.7887449501696241, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.8667202791769649, + "cause": 0.8667202791769649, + "effect": 1.5857167482506542, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.13079062071376665, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.7003568123787585, + "cause": 0.8713334160714332, + "effect": 0.7003568123787585, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.5637022303705256, + "cause": 0.5637022303705256, + "effect": 1.5999277248577146, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.09028786847076474, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.11, + "p01": 0.11, + "q10": 0.25, + "q01": 0.08, + "phi": 0.5645296739125194, + "cause": 0.5645296739125194, + "effect": 0.5760597671234281, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.6466157716373818, + "cause": 0.6466157716373818, + "effect": 0.82557961875346, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.9193403565904681, + "cause": 1.224830141503396, + "effect": 0.9193403565904681, + "cut": "011001010", + "family": "hub->people" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.5367017544277528, + "cause": 0.5367017544277528, + "effect": 0.9255029962825865, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.19915330753204516, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 1.1421266035625501, + "cause": 1.382929140078765, + "effect": 1.1421266035625501, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.35207307962768103, + "cause": 0.35207307962768103, + "effect": 0.9141647879970873, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.14509067418493427, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 1.1533156584348252, + "cause": 1.1533156584348252, + "effect": 1.1965207408283474, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.20332651992840128, + "cause": 0.20332651992840128, + "effect": 0.8482973291299918, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.0, + "cause": 0.10397265316964673, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.13, + "q01": 0.13, + "phi": 0.7918897124398016, + "cause": 0.7918897124398016, + "effect": 1.1565407395019682, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.6155963905041972, + "cause": 0.6155963905041972, + "effect": 0.923200672893287, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.7045262719621358, + "cause": 1.2767019586761499, + "effect": 0.7045262719621358, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.5278996517797546, + "cause": 0.5278996517797546, + "effect": 1.0944188214317854, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.19957554294070826, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.7317121727280681, + "cause": 1.3858611609316913, + "effect": 0.7317121727280681, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.3503383235671208, + "cause": 0.3503383235671208, + "effect": 1.1431383321724902, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.1451442176138247, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.6608277535888478, + "cause": 1.1537412714198942, + "effect": 0.6608277535888478, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.20304082048921854, + "cause": 0.20304082048921854, + "effect": 1.121736814386263, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.0, + "cause": 0.10397896271030856, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.24, + "p01": 0.07, + "q10": 0.25, + "q01": 0.08, + "phi": 0.5506440989336531, + "cause": 0.7919377679639032, + "effect": 0.5506440989336531, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.41472495743274396, + "cause": 0.41472495743274396, + "effect": 0.4420918279238159, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 2, + "k": 1, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.0, + "cause": 0.0, + "effect": 0.0, + "cut": "000000110", + "family": "other(h=0,p=1)" + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.41472495743274396, + "cause": 0.41472495743274396, + "effect": 0.4420918279238159, + "cut": "000101110", + "family": "people->hub" + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.31809798164851355, + "cause": 0.31809798164851355, + "effect": 0.44862821602605457, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 3, + "k": 2, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.0, + "cause": 0.0983696277695293, + "effect": 0.0, + "cut": "0000101100000000", + "family": "other(h=0,p=1)" + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.31809798164851355, + "cause": 0.31809798164851355, + "effect": 0.448628216026055, + "cut": "0000101111011110", + "family": "people->hub" + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.1962550475500764, + "cause": 0.1962550475500764, + "effect": 0.4050434541913628, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 4, + "k": 3, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.0, + "cause": 0.060023254921638895, + "effect": 0.0, + "cut": "0000010111000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.19625504755007656, + "cause": 0.19625504755007656, + "effect": 0.40504345419136367, + "cut": "0000010111110111110111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.10902964326035544, + "cause": 0.10902964326035544, + "effect": 0.34619387307727867, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + }, + { + "m": 5, + "k": 4, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.0, + "cause": 0.034936322788219336, + "effect": 0.0, + "cut": "000000101111000000000000000000000000", + "family": "other(h=0,p=1)" + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.27, + "p01": 0.27, + "q10": 0.19, + "q01": 0.19, + "phi": 0.10902964326035544, + "cause": 0.10902964326035544, + "effect": 0.34619387307727845, + "cut": "000000101111110111111011111101111110", + "family": "people->hub" + } + ] +} \ No newline at end of file diff --git a/org_frontier/studies/asymmetric_noise_law/run.py b/org_frontier/studies/asymmetric_noise_law/run.py new file mode 100644 index 000000000..06ce65467 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/run.py @@ -0,0 +1,173 @@ +"""PyPhi against the asymmetric-noise closed form in laws.py (hypotheses.md, predictions.json: committed before this ran). + +Run from the repo root: python org_frontier/studies/asymmetric_noise_law/run.py [--quick] [--write] [--jobs N] +""" +import argparse +import json +import os +import sys +from concurrent.futures import ProcessPoolExecutor +from importlib.metadata import version +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +sys.path.insert(0, str(ROOT)) +os.environ.setdefault("PYPHI_WELCOME_OFF", "true") + +import pyphi # noqa: E402 +from pyphi import new_big_phi # noqa: E402 + +from org_frontier.classifier.classifier import cm_from_rules, tpm_from_rules # noqa: E402 +from org_frontier.studies.asymmetric_noise_law import laws # noqa: E402 +from org_frontier.studies.threshold_hub_laws.run import threshold_hub # noqa: E402 + +pyphi.config.PROGRESS_BARS = False +pyphi.config.PARALLEL = False +HERE = Path(__file__).parent +PRED = json.loads((HERE / "predictions.json").read_text()) +BARS = PRED["bars"] + + +def build(m, k, p10, p01, q10, q01, state): + n = m + 1 + rules = threshold_hub(m, k) + t = tpm_from_rules(rules, n=n).copy() + t[:, 1:] = (1 - q10) * t[:, 1:] + q01 * (1 - t[:, 1:]) + t[:, 0] = (1 - p10) * t[:, 0] + p01 * (1 - t[:, 0]) + net = pyphi.Network(t, cm=cm_from_rules(rules, n=n), node_labels=tuple(f"n{i}" for i in range(n))) + st = (1,) * n if state == "on" else (0,) * n + return pyphi.Subsystem(net, st, tuple(range(n))) + + +def family_of(cut, m): + """Named family of a cut matrix string of length (m+1)^2, or None.""" + if not cut: + return None + n = m + 1 + hub_to_ppl = sum(int(cut[j]) for j in range(1, n)) # row 0, cols 1..m + ppl_to_hub = sum(int(cut[i * n]) for i in range(1, n)) # rows 1..m, col 0 + if hub_to_ppl == m and ppl_to_hub == 0: + return "hub->people" + if ppl_to_hub == m and hub_to_ppl == 0: + return "people->hub" + return f"other(h={hub_to_ppl},p={ppl_to_hub})" + + +def run_one(cell): + m, k, state, p10, p01, q10, q01 = cell + sub = build(m, k, p10, p01, q10, q01, state) + sia = new_big_phi.sia(sub) + part = getattr(sia, "partition", None) + cut = None + if part is not None and hasattr(part, "cut_matrix"): + cut = "".join(str(int(v)) for v in part.cut_matrix(m + 1).ravel()) + cau = getattr(getattr(sia, "cause", None), "phi", None) + eff = getattr(getattr(sia, "effect", None), "phi", None) + return dict( + m=m, k=k, state=state, p10=p10, p01=p01, q10=q10, q01=q01, + phi=float(sia.phi), + cause=None if cau is None else float(cau), + effect=None if eff is None else float(eff), + cut=cut, + family=family_of(cut, m), + ) + + +def pred_for(r): + m, k, state = r["m"], r["k"], r["state"] + p10, p01, q10, q01 = r["p10"], r["p01"], r["q10"], r["q01"] + if k == m and state == "on": + return laws.predict_km_on(m, p10, p01, q10, q01) + if k == 1 and state == "off": + return laws.predict_k1_off(m, p10, p01, q10, q01) + return None + + +def score(rows): + sc, miss = {}, {} + + def rec(h, ok, lab): + sc.setdefault(h, [0, 0]) + sc[h][1] += 1 + sc[h][0] += int(bool(ok)) + if not ok: + miss.setdefault(h, []).append(lab) + + for r in rows: + lab = f"m={r['m']} k={r['k']} {r['state']} p10={r['p10']} p01={r['p01']} q10={r['q10']} q01={r['q01']}" + pr = pred_for(r) + sym = laws.is_symmetric(r["p10"], r["p01"], r["q10"], r["q01"]) + if pr is not None and r["k"] == r["m"] and r["state"] == "on" and sym: + old = laws.old_symmetric(r["m"], r["p10"], r["q10"]) + rec("C1_old_law", abs(r["phi"] - old) <= 1e-6, lab + f" phi={r['phi']:.9f} old={old:.9f}") + rec("C2_new_equals_old", abs(pr["phi"] - old) <= 1e-6 and abs(r["phi"] - pr["phi"]) <= 1e-6, + lab + f" new={pr['phi']:.9f} old={old:.9f} phi={r['phi']:.9f}") + if pr is not None and r["k"] == r["m"] and r["state"] == "on": + rec("H1_phi", abs(r["phi"] - pr["phi"]) <= BARS["phi_tol"], lab + f" phi={r['phi']:.9f} pred={pr['phi']:.9f}") + rec("H1_family", r["family"] == pr["family"], lab + f" fam={r['family']} pred={pr['family']} cut={r['cut']}") + if pr is not None and r["k"] == 1 and r["state"] == "off": + rec("H2_phi", abs(r["phi"] - pr["phi"]) <= BARS["phi_tol"], lab + f" phi={r['phi']:.9f} pred={pr['phi']:.9f}") + rec("H2_family", r["family"] == pr["family"], lab + f" fam={r['family']} pred={pr['family']} cut={r['cut']}") + if pr is not None: + L = min(pr["hub_family"], pr["people_family"]) / (pr["P"] * min(1.0, 1.0 / pr["D"])) + rec("H3_binding", + r["cause"] is not None and r["effect"] is not None + and abs(r["cause"] - (pr["P"] / pr["D"]) * L) <= 1e-6 + and abs(r["effect"] - pr["P"] * L) <= 1e-6 + and ((pr["binding"] == "cause" and r["cause"] <= r["effect"] + 1e-12) + or (pr["binding"] == "effect" and r["effect"] <= r["cause"] + 1e-12)), + lab + f" bind={pr['binding']} D={pr['D']:.6f} cause={r['cause']} effect={r['effect']} cpred={(pr['P']/pr['D'])*L:.9f} epred={pr['P']*L:.9f}") + if pr is None: + rec("H4_zero", abs(r["phi"]) <= BARS["zero_tol"], lab + f" phi={r['phi']}") + return {h: dict(ok=v[0], of=v[1]) for h, v in sorted(sc.items())}, miss + + +def quick(): + for cell in ( + (3, 3, "on", 0.11, 0.11, 0.13, 0.13), + (3, 3, "on", 0.07, 0.24, 0.08, 0.25), + (3, 2, "on", 0.07, 0.24, 0.08, 0.25), + ): + rec = run_one(cell) + m, k, state, p10, p01, q10, q01 = cell + if k == m and state == "on": + pr = laws.predict_km_on(m, p10, p01, q10, q01) + elif k == 1 and state == "off": + pr = laws.predict_k1_off(m, p10, p01, q10, q01) + else: + pr = dict(phi=0.0, family="zero") + print( + f"p10={p10} p01={p01} q10={q10} q01={q01} m={m} k={k} {state} " + f"phi={rec['phi']:.6f} law={pr['phi']:.6f} fam={rec['family']}" + ) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--quick", action="store_true") + ap.add_argument("--write", action="store_true") + ap.add_argument("--jobs", type=int, default=1) + a = ap.parse_args() + if a.quick: + quick() + return + cs = laws.cells() + if a.jobs > 1: + with ProcessPoolExecutor(max(1, a.jobs)) as ex: + rows = list(ex.map(run_one, cs)) + else: + rows = [run_one(c) for c in cs] + rows.sort(key=lambda r: (r["p10"], r["p01"], r["q10"], r["q01"], r["m"], r["k"], r["state"])) + sc, miss = score(rows) + print(json.dumps(sc)) + if miss: + print(json.dumps({h: v[:8] for h, v in miss.items()}, indent=1)) + if a.write: + HERE.joinpath("results").mkdir(exist_ok=True) + (HERE / "results" / "results.json").write_text( + json.dumps(dict(pyphi=version("pyphi"), scores=sc, misses=miss, rows=rows), indent=1) + ) + + +if __name__ == "__main__": + main() From d213335a7119b0462aeb1e853ea7480ad3fd8120 Mon Sep 17 00:00:00 2001 From: Roger Hunt Date: Mon, 30 Nov 2026 12:25:01 -0500 Subject: [PATCH 3/6] asymmetric_noise_law: post, CI check, and experiments index --- ci/reproduce.json | 11 ++++++ .../studies/asymmetric_noise_law/BACKLOG.md | 9 +++++ .../studies/asymmetric_noise_law/__init__.py | 1 + ...-when-the-two-kinds-of-noise-are-uneven.md | 37 +++++++++++++++++++ substack/experiments/README.md | 1 + 5 files changed, 59 insertions(+) create mode 100644 org_frontier/studies/asymmetric_noise_law/BACKLOG.md create mode 100644 org_frontier/studies/asymmetric_noise_law/__init__.py create mode 100644 substack/experiments/2026-11-30-when-the-two-kinds-of-noise-are-uneven.md diff --git a/ci/reproduce.json b/ci/reproduce.json index d1fe66911..22a696e1d 100644 --- a/ci/reproduce.json +++ b/ci/reproduce.json @@ -9888,6 +9888,17 @@ ], "timeout": 120, "source": "org_frontier/studies/why_incoming_zero_cause/FINDINGS.md" + }, + { + "name": "asymmetric-noise-law", + "cmd": "python org_frontier/studies/asymmetric_noise_law/run.py --quick", + "expect": [ + "p10=0.11 p01=0.11 q10=0.13 q01=0.13 m=3 k=3 on phi=1.122531 law=1.122531 fam=people->hub", + "p10=0.07 p01=0.24 q10=0.08 q01=0.25 m=3 k=3 on phi=0.527900 law=0.527900 fam=people->hub", + "p10=0.07 p01=0.24 q10=0.08 q01=0.25 m=3 k=2 on phi=0.000000 law=0.000000 fam=other(h=0,p=1)" + ], + "timeout": 300, + "source": "org_frontier/studies/asymmetric_noise_law/FINDINGS.md" } ] } diff --git a/org_frontier/studies/asymmetric_noise_law/BACKLOG.md b/org_frontier/studies/asymmetric_noise_law/BACKLOG.md new file mode 100644 index 000000000..f7fce7ea9 --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/BACKLOG.md @@ -0,0 +1,9 @@ +# Backlog (after asymmetric_noise_law) + +1. Asymmetric noise: the closed form in the two twin cases, and the free-cut zeros, still hold when the two flip directions have different chances. Done in this study. +2. Mixed states (some people on, some off): which cuts are free, and what phi do they have? Not done here. (A different stream has already looked at some mixed-state negative scores; do not duplicate that.) +3. A closed form for the *value* of a non-free one-person (or two-person) cut, not only that it is positive. Not done; system phi in the twin cases is a different (family) cut. (Next.) +4. Larger groups (m ≥ 6) on the named-cut test, including under uneven rates. Not run here. +5. Family ties for r ≥ 4, and a direct measurement of the both-families cut, remain open from `family_ties_r_ge2`. + +(Status of items 2-5: not done in this study.) diff --git a/org_frontier/studies/asymmetric_noise_law/__init__.py b/org_frontier/studies/asymmetric_noise_law/__init__.py new file mode 100644 index 000000000..9e3e2597f --- /dev/null +++ b/org_frontier/studies/asymmetric_noise_law/__init__.py @@ -0,0 +1 @@ +"""Closed form for a threshold hub when a 0 turning into a 1 is not as likely as the reverse.""" diff --git a/substack/experiments/2026-11-30-when-the-two-kinds-of-noise-are-uneven.md b/substack/experiments/2026-11-30-when-the-two-kinds-of-noise-are-uneven.md new file mode 100644 index 000000000..a58905126 --- /dev/null +++ b/substack/experiments/2026-11-30-when-the-two-kinds-of-noise-are-uneven.md @@ -0,0 +1,37 @@ +# When the two kinds of noise are uneven, the same formula still works + +*Algorithmacy Lab, foundations stream. Study: `org_frontier/studies/asymmetric_noise_law/`.* + +An earlier experiment gave a closed formula for the whole-network score of a hub that needs all its people, when everyone is on, and for the mirror case, when the hub needs only one person and everyone is off. That formula assumed a 0 flipping to a 1 is as likely as the reverse. A later experiment showed that a one-person split costs nothing — and the whole-network score is zero — whenever the hub can spare that person. I wanted to know whether both results still hold when the two directions of noise have different chances. + +## The idea, in plain words + +When PyPhi, the open IIT 4.0 tool this lab uses as a harness, cuts a link, it replaces that source with a fair coin, and then the receiver's own noise still applies. So if you cut the link from the hub to a person, the chance that person is on is not always one half. It is the average of "what happens if the coin says the hub is on" and "what happens if the coin says the hub is off." + +Call those two people-noise chances 0.08 and 0.25: if the hub is on, the person is on with chance 0.92; if the hub is off, the person is on with chance 0.25. After a fair coin and then that channel, the chance the person is on is (0.92 + 0.25) / 2 = 0.585, not 0.5. That one number is the only new ingredient in the old formula. When the two directions are equal, it is exactly one half, and you get the old formula back. + +The "everyone off, needs one" case is the same formula with the four rates flipped. The free-split rule does not use the rates at all: if the hub can spare a person, that split still costs nothing, and the whole-network score is still zero. + +## The test + +I wrote the predictions down before running the new cells. Eight new settings of the four rates, none of which I had used in the earlier look: two where the two directions are equal (as a check against the old formula), and six where the commit side, the people side, or both, are uneven, each with its flip. Groups of two, three, four, and five people: the "needs everyone, all on" network, its "needs one, all off" twin, and the "can spare one, all on" zero. Ninety-six networks in all. + +The two checks I set up in advance passed in all eight symmetric cells: the new formula, the old formula, and the observed score agree, to better than one part in a thousand trillion. + +The four main predictions held in every cell. In all 32 "needs everyone, all on" networks, the score matched the new formula (largest gap 4.4e-16), and the cheaper split was the one the formula named: in 29 cases the people's links to the hub, and in 3 cases the hub's links to the people. In all 32 twins, the score matched the same formula with the rates flipped (largest gap 1.9e-15). Which side of the split was tighter also matched, in all 64 of those networks (largest gap 7.1e-15). And in all 32 "can spare one" networks, the whole-network score was exactly zero. + +A three-person example. When both directions are equal (0.11 and 0.13), the score is 1.122531, and the two twins match, as they should. When both sides are uneven (0.07 and 0.24 on the hub, 0.08 and 0.25 on the people), the "needs everyone, all on" score is 0.527900, but the all-off twin is 0.731712 — not the same number, because the two directions are not equal. That twin equals the "all on" score of the flipped rates, which is what the formula says. When only the people side is uneven (0.08 and 0.25), the three-person "all on" score is 1.029958, and this time the cheaper split is the hub's links to the people. That is one of the three cases where that family wins, and it is exactly where the new "0.585, not 0.5" term makes that split cheaper. + +The smallest twin score on the grid was 0.109030, at five people and the noisier of the two equal-rate settings. The largest was 1.153316, at four people with uneven commit rates. + +No prediction was missed. + +## What it means + +The old formula was not glued to the assumption that the two directions of noise are equal. Once you use the chance a person is on after a fair-coin cut — which is one half only when the two people-rates are equal — the same derivation covers the uneven case, the 0/1 twin, and the "can spare one" zeros. That is a fact about this tool's score for these networks, not a fact about organisations. + +## Limits + +I only tested the two uniform states, in groups of two to five people, and I only checked the free-split zeros in the "can spare one, everyone on" case, not a full re-run of every named split under uneven rates. I looked at probes at six other settings before writing the predictions down (the first version of the formula missed there, and the version with the 0.585-style term fixed it; those probes are not part of this grid). I do not have a formula for *how much* a non-free one-person split costs, only that the whole-network score in the two special cases is this formula. + +Everything is in the study folder. The predictions were committed in `299c157e` before the new cells ran. diff --git a/substack/experiments/README.md b/substack/experiments/README.md index 600e65804..0789dc1d5 100644 --- a/substack/experiments/README.md +++ b/substack/experiments/README.md @@ -5,6 +5,7 @@ every number in it. | date | post | study | |---|---|---| +| 2026-11-30 | [When the two kinds of noise are uneven, the same formula still works](2026-11-30-when-the-two-kinds-of-noise-are-uneven.md) | [`org_frontier/studies/asymmetric_noise_law/`](../../org_frontier/studies/asymmetric_noise_law/) | | 2026-11-30 | [The backward-looking zero is a next-state fact](2026-11-30-the-backward-looking-zero-is-a-next-state-fact.md) | [`org_frontier/studies/why_incoming_zero_cause/`](../../org_frontier/studies/why_incoming_zero_cause/) | | 2026-11-30 | [Why a hub that needs only some of its people can lose one for free](2026-11-30-why-one-person-can-be-cut-for-free.md) | [`org_frontier/studies/spare_person_cut/`](../../org_frontier/studies/spare_person_cut/) | | 2026-11-30 | [When the two lists share a person, the leftover pair is the one that matters](2026-11-30-the-leftover-pair.md) | [`org_frontier/studies/nonshared_pair_three_nodes/`](../../org_frontier/studies/nonshared_pair_three_nodes/) | From d240a7a807425dfe4a713a8df1bda5cdaf8663a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 17:25:30 +0000 Subject: [PATCH 4/6] docs: regenerate directory and research indexes --- MAP.md | 2 +- README.md | 1 + catalog.json | 13 ++++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/MAP.md b/MAP.md index c0364d332..1e3273385 100644 --- a/MAP.md +++ b/MAP.md @@ -98,7 +98,7 @@ Run the relevant generator after adding content, then verify with its `--check`. |---|---|---| | 171 | questions | `org_frontier/questions/q*_*/` | | 136 | probes | `org_frontier/probes/probe_*.py` | -| 376 | studies | `org_frontier/studies/*/` | +| 377 | studies | `org_frontier/studies/*/` | | 22 | essays | `org_frontier/essays/*.md` | | 9 | foundations experiments | `foundations/*/` with a `FINDINGS.md` | | 10 | literature reviews | `org_frontier/reviews/*/` with a `FINDINGS.md` | diff --git a/README.md b/README.md index 74f5acb18..b90204346 100644 --- a/README.md +++ b/README.md @@ -327,6 +327,7 @@ Multi-experiment batteries on one theme. - **[Algorithmic transparency (#34)](org_frontier/studies/algo_transparency/README.md)** — not channel transparency (#24). **Publish-unread** is theater: F stays - **[Alphabet ladder: two, three and four possible answers on the same vote hub](org_frontier/studies/alphabet_ladder_hub/README.md)** — Exact IIT 4.0 Φ on the multivalued overlay `third_party/pyphi_iit4_mv` (stock pin `b78d0e342` - **[Only some parties read the learner, "and" version](org_frontier/studies/and_readers/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), every reachable subset in every reachable state. Hypotheses pushed in `c3eac45d` +- **[When the two kinds of noise are uneven, the same formula still works](org_frontier/studies/asymmetric_noise_law/README.md)** — Pinned PyPhi b78d0e342d37175cbd55cf35a6d52ae035b4c50f (`results.json`: 1.2.1.dev1470+gb78d0e342). Pre-registration commit 299c157ef53c7bf45bfe0b0893d622d15d459a9d - **[One-way relay](org_frontier/studies/asymmetric_relay/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), every reachable subset in every reachable state. Hypotheses - **[Asymmetric sides: which side does a two-sided platform bind?](org_frontier/studies/asymmetric_sides/README.md)** — Exact IIT 4.0 Φ (PyPhi pin `b78d0e342`), every reachable subset in every reachable state. Hypotheses - **[Cause cut repertoire](org_frontier/studies/cause_cut_repertoire/README.md)** — Hypotheses and predictions were committed first (commit `798ace81`: `hypotheses.md`, `laws.py`, `predictions.json`) diff --git a/catalog.json b/catalog.json index f853c33d9..b79f5bd66 100644 --- a/catalog.json +++ b/catalog.json @@ -3,7 +3,7 @@ "counts": { "question": 171, "probe": 464, - "study": 375, + "study": 376, "foundations": 9, "open": 15 }, @@ -9469,6 +9469,17 @@ ], "runtime": "fast" }, + { + "kind": "study", + "id": "asymmetric_noise_law", + "title": "When the two kinds of noise are uneven, the same formula still works", + "finding": "Pinned PyPhi b78d0e342d37175cbd55cf35a6d52ae035b4c50f (`results.json`: 1.2.1.dev1470+gb78d0e342). Pre-registration commit 299c157ef53c7bf45bfe0b0893d622d15d459a9d. All numbers from `results/results.json`", + "path": "org_frontier/studies/asymmetric_noise_law", + "reproduce": [ + "python org_frontier/studies/asymmetric_noise_law/run.py --quick" + ], + "runtime": "fast" + }, { "kind": "study", "id": "asymmetric_relay", From 1f232a4ad957256c6d0bce6d51565ae894468609 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 17:25:31 +0000 Subject: [PATCH 5/6] docs: pin atlas snapshot --- research-atlas/snapshot.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/research-atlas/snapshot.json b/research-atlas/snapshot.json index ddb757527..236a50c4c 100644 --- a/research-atlas/snapshot.json +++ b/research-atlas/snapshot.json @@ -1,7 +1,7 @@ { - "revision": "52b9802cf6ed34624ea5c7c56b25d7a7782248b4", + "revision": "d240a7a807425dfe4a713a8df1bda5cdaf8663a5", "indexes": { - "catalog.json": "f853c33d97aeda59c22e23b58de3952bcd52dfdc", + "catalog.json": "b79f5bd66536ce8d1bff4b8a05561ee08d7afbc1", "research-atlas/cards.json": "b049d417c6c9a693f4fa44a53237e3bc9bc4c31b" } } From 227f2dfea377b3d82e2f8a5b7ddcd43a585a5847 Mon Sep 17 00:00:00 2001 From: Roger Hunt Date: Mon, 30 Nov 2026 12:27:06 -0500 Subject: [PATCH 6/6] nudge: trigger CI after the atlas pin; no new results --- org_frontier/studies/asymmetric_noise_law/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org_frontier/studies/asymmetric_noise_law/README.md b/org_frontier/studies/asymmetric_noise_law/README.md index 72b4a9f3b..ea64dd856 100644 --- a/org_frontier/studies/asymmetric_noise_law/README.md +++ b/org_frontier/studies/asymmetric_noise_law/README.md @@ -19,4 +19,4 @@ python org_frontier/studies/asymmetric_noise_law/gen_predictions.py # rege Files: [hypotheses.md](hypotheses.md), [laws.py](laws.py), [predictions.json](predictions.json), [gen_predictions.py](gen_predictions.py), [run.py](run.py), [results/results.json](results/results.json), [FINDINGS.md](FINDINGS.md), [BACKLOG.md](BACKLOG.md). - +