diff --git a/MAP.md b/MAP.md index 19d180414..181d60beb 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` | -| 386 | studies | `org_frontier/studies/*/` | +| 387 | 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 ad19bbbdd..3ccd2b352 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` +- **[How much a one-person cut costs when the two kinds of noise are uneven](org_frontier/studies/asymmetric_cut_value/README.md)** — Pre-registration: GitHub commit `0503f54ff8eb00fa3ca192b0d9ae15d9cecd305a` (hypotheses, laws, predictions; before the official grid ran) - **[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 diff --git a/catalog.json b/catalog.json index dafdad624..2cefdc35d 100644 --- a/catalog.json +++ b/catalog.json @@ -3,7 +3,7 @@ "counts": { "question": 171, "probe": 464, - "study": 385, + "study": 386, "foundations": 9, "open": 15 }, @@ -9469,6 +9469,17 @@ ], "runtime": "fast" }, + { + "kind": "study", + "id": "asymmetric_cut_value", + "title": "How much a one-person cut costs when the two kinds of noise are uneven", + "finding": "Pre-registration: GitHub commit `0503f54ff8eb00fa3ca192b0d9ae15d9cecd305a` (hypotheses, laws, predictions; before the official grid ran). `run.py` was written after that commit and was not changed after the official run. Pinned PyPhi 1.2.1.dev1470+gb78d0e342", + "path": "org_frontier/studies/asymmetric_cut_value", + "reproduce": [ + "python org_frontier/studies/asymmetric_cut_value/run.py --quick" + ], + "runtime": "fast" + }, { "kind": "study", "id": "asymmetric_noise_law", diff --git a/ci/reproduce.json b/ci/reproduce.json index 17b109dee..ed58ae6c2 100644 --- a/ci/reproduce.json +++ b/ci/reproduce.json @@ -9988,6 +9988,17 @@ ], "timeout": 300, "source": "org_frontier/studies/spare_cut_value/FINDINGS.md" + }, + { + "name": "asymmetric-cut-value", + "cmd": "python org_frontier/studies/asymmetric_cut_value/run.py --quick", + "expect": [ + "p10=0.1 p01=0.1 q10=0.15 q01=0.15 m=4 k=4 on sys=0.968422 law=0.968422 s1=0.398394 pred=0.398394 s2=0.744624 pred=0.744624", + "p10=0.06 p01=0.29 q10=0.07 q01=0.31 m=4 k=4 on sys=0.264600 law=0.264600 s1=0.430392 pred=0.430392 s2=0.741662 pred=0.741662", + "p10=0.06 p01=0.29 q10=0.07 q01=0.31 m=4 k=1 off sys=0.453653 law=0.453653 s1=0.142101 pred=0.142101 s2=0.269410 pred=0.269410" + ], + "timeout": 300, + "source": "org_frontier/studies/asymmetric_cut_value/FINDINGS.md" } ] } diff --git a/org_frontier/studies/asymmetric_cut_value/BACKLOG.md b/org_frontier/studies/asymmetric_cut_value/BACKLOG.md new file mode 100644 index 000000000..4aee701a0 --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/BACKLOG.md @@ -0,0 +1,9 @@ +# Backlog (after asymmetric_cut_value) + +1. Asymmetric noise for system phi, and the free-cut zeros under uneven rates. Done in `asymmetric_noise_law` (PR #1219). +2. The effect-value formula for the non-free people-outgoing cut under even rates. Done in `spare_cut_value` (PR #1226). +3. The same value formula under uneven rates. Done in this study, for the effect side, in the two twin cases. +4. Mixed states (some people on, some off): which cuts are free, and what scores they have. Not done here. (A different stream has already looked at some mixed-state negative scores; do not duplicate that.) +5. A cause-side formula for this named cut, including under uneven rates. Not done; this study is the effect value only. +6. Larger groups (m ≥ 6) on the named-cut test, including under uneven rates. Not run here. +7. Family ties for r ≥ 4, and a direct measurement of the both-families cut, remain open from `family_ties_r_ge2`. diff --git a/org_frontier/studies/asymmetric_cut_value/FINDINGS.md b/org_frontier/studies/asymmetric_cut_value/FINDINGS.md new file mode 100644 index 000000000..471c6570c --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/FINDINGS.md @@ -0,0 +1,41 @@ +# Findings: how much a one-person cut costs when the two kinds of noise are uneven + +Pre-registration: GitHub commit `0503f54ff8eb00fa3ca192b0d9ae15d9cecd305a` (hypotheses, laws, predictions; before the official grid ran). `run.py` was written after that commit and was not changed after the official run. Pinned PyPhi 1.2.1.dev1470+gb78d0e342. + +**Result: both controls and all four hypotheses held in every cell. No bar was missed. No prediction was refuted.** + +## Official grid + +Eight fresh 4-tuples, none used in the exploratory probes or in the official grids of `asymmetric_noise_law` or `spare_cut_value`. For each, m = 2, 3, 4, 5, the k = m all-on network and the k = 1 all-off twin: 64 networks. Named cuts of s = 1 and (when m >= 3) s = 2, both the full people-outgoing cut and the people->hub-only cut. + +## Scores + +- **C1** (even rates reduce to `spare_cut_value.effect`): 14/14, largest difference 0.0. +- **C2** (system phi equals `asymmetric_noise_law`): 64/64, largest difference 1.7e-15. +- **H1** (one-person, all-on, equals `predict_on`): 32/32, largest difference 9.4e-16. +- **H2** (two-person, all-on, equals `predict_on`): 24/24, largest difference 1.8e-15. +- **H3** (people-to-people cells do not change the score): 64/64 one-person and 48/48 two-person, every difference exactly 0.0. +- **H4** (all-off equals `predict_off`, the four rates flipped): 32/32 one-person (largest difference 3.9e-16) and 24/24 two-person (largest difference 6.7e-16). + +`misses` in `results/results.json` is `{}`. + +## Extrema and examples + +- Smallest one-person effect: 0.096824 (m = 5, even rates 0.22 / 0.22 / 0.28 / 0.28). The two twins agree at this even-rate cell. +- Largest one-person effect: 0.660089 (m = 2, 0.10 / 0.10 / 0.31 / 0.07, all-off; the all-on twin of the flipped people rates is the same number). +- Smallest two-person effect: 0.168352 (m = 5, same even-rate cell as the smallest one-person). +- Largest two-person effect: 1.147388 (m = 3, 0.10 / 0.10 / 0.31 / 0.07, all-off; again the flipped all-on twin). + +Worked examples: + +- Even rates, four people, 0.10 / 0.10 / 0.15 / 0.15, both twins: system 0.968422, one-person 0.398394, two-person 0.744624. +- Both rates uneven, four people, 0.06 / 0.29 / 0.07 / 0.31, all-on: system 0.264600, one-person 0.430392, two-person 0.741662. The all-off twin is *not* the same: system 0.453653, one-person 0.142101, two-person 0.269410. +- Only the hub rates uneven, three people, 0.06 / 0.29 / 0.15 / 0.15, all-on: system 0.421875, one-person 0.353337, two-person 0.608879. All-off: system 1.001385, one-person 0.384996, two-person 0.729918. + +## Disclosure + +Exploratory probes at six off-grid cells, disclosed in `hypotheses.md`, matched the formula to float precision before this grid was written down. Those 4-tuples are not on the official grid. `run.py` was written after the pre-registration commit and was not changed after the official run. + +## Limits + +Only the two uniform states, and only the two special cases where the named cut is not free. Only the effect-side value. Groups of at most five people. The cause-side formula for this named cut, mixed states, and m >= 6 were not tested here. diff --git a/org_frontier/studies/asymmetric_cut_value/README.md b/org_frontier/studies/asymmetric_cut_value/README.md new file mode 100644 index 000000000..d3d1b4345 --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/README.md @@ -0,0 +1,21 @@ +# How much a one-person cut costs when the two kinds of noise are uneven + +Pre-registered in GitHub commit `0503f54ff8eb00fa3ca192b0d9ae15d9cecd305a` (hypotheses, laws, predictions; before the grid ran). Pinned PyPhi b78d0e342. Extends the effect-value formula of `spare_cut_value` (PR #1226) to the uneven rates of `asymmetric_noise_law` (PR #1219). + +``` +python org_frontier/studies/asymmetric_cut_value/run.py --quick # CI: three named networks, about 4 seconds +python org_frontier/studies/asymmetric_cut_value/run.py --write --jobs 4 # full grid (64 networks), about 1 minute +python org_frontier/studies/asymmetric_cut_value/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.** +- In the all-on k = m case, a cut of s people's outgoing links has effect P log2((1-p10)/lam), with P = (1-p10)(1-q10)^m and lam = 2^{-s}(1-p10)+(1-2^{-s})p01. For s = 1, lam is the midpoint ((1-p10)+p01)/2. When the rates are even this is `spare_cut_value.effect`. The all-off k = 1 twin is the same formula with the four rates flipped, and is *not* equal to the all-on value when the rates are uneven. +- C1 14/14 (largest difference 0.0). C2 64/64 (largest difference 1.7e-15). +- H1 32/32 one-person all-on (largest difference 9.4e-16). H2 24/24 two-person all-on (largest difference 1.8e-15). +- H3 people→hub-only equals the full named cut, exactly 0.0 in all 64 + 48 cases. +- H4 all-off is the rate flip: 32/32 and 24/24 (largest differences 3.9e-16 and 6.7e-16). +- Smallest one-person effect 0.096824 (m = 5, 0.22 / 0.22 / 0.28 / 0.28). Largest 0.660089 (m = 2, 0.10 / 0.10 / 0.31 / 0.07, all-off). + +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_cut_value/__init__.py b/org_frontier/studies/asymmetric_cut_value/__init__.py new file mode 100644 index 000000000..ca77a05dd --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/__init__.py @@ -0,0 +1 @@ +"""Non-free people-outgoing cut value under uneven (asymmetric) noise.""" diff --git a/org_frontier/studies/asymmetric_cut_value/gen_predictions.py b/org_frontier/studies/asymmetric_cut_value/gen_predictions.py new file mode 100644 index 000000000..df6fcd4cc --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/gen_predictions.py @@ -0,0 +1,48 @@ +"""Regenerate predictions.json from laws.py (no PyPhi call).""" +import json +from pathlib import Path + +from org_frontier.studies.asymmetric_cut_value import laws + +HERE = Path(__file__).parent + + +def main(): + s1s, s2s = [], [] + for p10, p01, q10, q01 in laws.SETTINGS: + for m in laws.MS: + for state, fn in (("on", laws.predict_on), ("off", laws.predict_off)): + s1s.append((fn(m, p10, p01, q10, q01, 1), m, state, p10, p01, q10, q01)) + if m >= 3: + s2s.append((fn(m, p10, p01, q10, q01, 2), m, state, p10, p01, q10, q01)) + s1s.sort() + s2s.sort() + + def pack(row): + effect, m, state, p10, p01, q10, q01 = row + return dict(effect=effect, m=m, state=state, p10=p10, p01=p01, q10=q10, q01=q01) + + pred = { + "study": "asymmetric_cut_value", + "bars": { + "c1_symmetric_reduction": 1e-6, + "c2_system_phi": 1e-6, + "h1_one_person": 1e-6, + "h2_two_person": 1e-6, + "h3_people_cells": 1e-6, + "h4_off_twin": 1e-6, + }, + "settings": [list(s) for s in laws.SETTINGS], + "m": list(laws.MS), + "n_networks": len(laws.cells()), + "smallest_s1": pack(s1s[0]), + "largest_s1": pack(s1s[-1]), + "smallest_s2": pack(s2s[0]), + "largest_s2": pack(s2s[-1]), + } + (HERE / "predictions.json").write_text(json.dumps(pred, indent=2) + "\n") + print(f"wrote {HERE / 'predictions.json'}: {pred['n_networks']} networks") + + +if __name__ == "__main__": + main() diff --git a/org_frontier/studies/asymmetric_cut_value/hypotheses.md b/org_frontier/studies/asymmetric_cut_value/hypotheses.md new file mode 100644 index 000000000..714ebc8cb --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/hypotheses.md @@ -0,0 +1,39 @@ +# Hypotheses (committed before the grid ran): how much a one-person cut costs when the two kinds of noise are uneven + +**Question.** `spare_cut_value` (PR #1226) gave a formula for the effect of a named cut of s people's outgoing links, when that cut is not free, under one noise rate for the hub and one for the people. `asymmetric_noise_law` (PR #1219) gave a closed form for *system* phi when the two directions of noise are allowed to differ: a 1 that should have stayed a 1 can have a different rate from a 0 that should have stayed a 0. This study asks for the value of the same named cut under those uneven rates. + +**Claim.** In the all-on state with a hub that needs everyone, that named cut is still the people->hub link set of size s, plus people-to-people cells that do not change the score. Replacing those s inputs with fair coins, then applying the hub's two rates, gives: + +- P = (1 - p10) (1 - q10)^m +- rho = 2^{-s} +- lam = rho (1 - p10) + (1 - rho) p01 +- effect = P log2((1 - p10) / lam) + +For s = 1, lam is the midpoint ((1 - p10) + p01) / 2. When p01 = p10 and q01 = q10 this is exactly `spare_cut_value.effect`. The 0/1 swap sends the k = 1 all-off network to the same formula with the four rates flipped. When the rates are uneven, the two twins are *not* equal: each follows the formula on its own side. + +**Predictions (from `laws.py`, stored in `predictions.json`, no PyPhi call).** Fresh official settings, eight 4-tuples, none used in the exploratory probes below, or in the official grids of `asymmetric_noise_law` or `spare_cut_value`: + +- (0.10, 0.10, 0.15, 0.15) and (0.22, 0.22, 0.28, 0.28) — both rates even +- (0.06, 0.29, 0.15, 0.15) and (0.29, 0.06, 0.15, 0.15) — only the hub's two rates uneven +- (0.10, 0.10, 0.07, 0.31) and (0.10, 0.10, 0.31, 0.07) — only the people's two rates uneven +- (0.06, 0.29, 0.07, 0.31) and (0.29, 0.06, 0.31, 0.07) — both uneven + +For each 4-tuple, m = 2, 3, 4, 5, the k = m all-on network and the k = 1 all-off twin (64 networks). Named cuts: every outgoing cell of the first s people, including people-to-people cells, for s = 1 and (when m >= 3) s = 2; and the same cuts with only the people->hub cells. Smallest predicted one-person effect on the grid: 0.096824 (s = 1, m = 5, all-off, 0.22 / 0.22 / 0.28 / 0.28). + +**Disclosure of what I had seen before writing this.** I ran PyPhi at six (p10, p01, q10, q01, m) that are *not* on this grid: (0.12, 0.12, 0.21, 0.21) at m = 3; (0.08, 0.26, 0.14, 0.14) at m = 3; (0.14, 0.14, 0.06, 0.29) at m = 3; (0.08, 0.26, 0.06, 0.29) at m = 4; and (0.35, 0.10, 0.20, 0.05) at m = 2 and at m = 5; both twins at each, s = 1 and (where m >= 3) s = 2, both the full named cut and the people->hub-only cut. Those probes matched the formula to float precision, the two cuts agreed exactly (difference 0.0), and the even-rate probe agreed with `spare_cut_value.effect`. The official 4-tuples had not been run. + +Systems per cell, PyPhi pinned at b78d0e342: `new_big_phi.sia` of the named network, and `new_big_phi.integration_value` on the effect side of the named cuts, with the system state PyPhi picks. + +Controls (run first; any miss means stop and write no result post): +- **C1** for every official even-rate twin (p01 = p10 and q01 = q10), the new formula equals `spare_cut_value.effect` at that (p, q, s) (<= 1e-6). Algebraic; no extra PyPhi call. +- **C2** for every official twin network, system phi equals `asymmetric_noise_law` (<= 1e-6). 64 networks. + +Hypotheses (every bar must be met in all cells; a miss is a refutation as written): +- **H1 (one-person value, all-on).** For every official all-on k = m network, the effect of the full one-person named cut equals `predict_on` (<= 1e-6). 32 networks. +- **H2 (two-person value, all-on).** For every official all-on k = m network with m >= 3, the effect of the full two-person named cut equals `predict_on` (<= 1e-6). 24 networks. +- **H3 (people-to-people cells do not change it).** In every official twin network, the people->hub-only cut equals the full named cut (<= 1e-6), for s = 1 (64) and s = 2 (48). +- **H4 (all-off is the rate flip).** For every official all-off k = 1 network, the effect of the full one-person named cut equals `predict_off` (<= 1e-6), and, when m >= 3, so does the two-person cut. 32 and 24 networks. + +## Official settings + +The eight 4-tuples and the 64 networks are listed in `predictions.json`. None of the exploratory probes used those 4-tuples. diff --git a/org_frontier/studies/asymmetric_cut_value/laws.py b/org_frontier/studies/asymmetric_cut_value/laws.py new file mode 100644 index 000000000..718862acb --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/laws.py @@ -0,0 +1,77 @@ +"""Closed form for the non-free people-outgoing cut under uneven rates. + +In the all-on state with a hub that needs everyone, a cut of s people's +outgoing links has effect + + P = (1 - p10) * (1 - q10)^m + rho = 2^{-s} + lam = rho * (1 - p10) + (1 - rho) * p01 + effect = P * log2((1 - p10) / lam) + +For s = 1, lam is the midpoint ((1-p10) + p01) / 2. When p01 = p10 and +q01 = q10 this is spare_cut_value.effect. The 0/1 swap sends the k = 1 +all-off network to the same formula with the four rates flipped. +""" +import math + +from org_frontier.studies.spare_cut_value import laws as symmetric_cut +from org_frontier.studies.asymmetric_noise_law import laws as asymm_phi + +MS = (2, 3, 4, 5) +# Fresh official 4-tuples. None of these was used in the exploratory probes, +# or in the official grids of asymmetric_noise_law or spare_cut_value. +SETTINGS = ( + (0.10, 0.10, 0.15, 0.15), # symmetric + (0.22, 0.22, 0.28, 0.28), # symmetric, higher + (0.06, 0.29, 0.15, 0.15), # commit uneven, people even + (0.29, 0.06, 0.15, 0.15), # commit flipped + (0.10, 0.10, 0.07, 0.31), # people uneven, commit even + (0.10, 0.10, 0.31, 0.07), # people flipped + (0.06, 0.29, 0.07, 0.31), # both uneven + (0.29, 0.06, 0.31, 0.07), # both flipped +) + + +def is_symmetric(p10, p01, q10, q01): + return p10 == p01 and q10 == q01 + + +def predict_on(m, p10, p01, q10, q01, s): + P = (1.0 - p10) * ((1.0 - q10) ** m) + rho = 2.0 ** (-s) + lam = rho * (1.0 - p10) + (1.0 - rho) * p01 + return P * math.log2((1.0 - p10) / lam) + + +def predict_off(m, p10, p01, q10, q01, s): + return predict_on(m, p01, p10, q01, q10, s) + + +def predict(m, p10, p01, q10, q01, s, state): + if state == "on": + return predict_on(m, p10, p01, q10, q01, s) + if state == "off": + return predict_off(m, p10, p01, q10, q01, s) + raise ValueError(state) + + +def old_symmetric(m, p, q, s): + return symmetric_cut.effect(m, p, q, s) + + +def system_phi(m, p10, p01, q10, q01, state): + if state == "on": + return asymm_phi.predict_km_on(m, p10, p01, q10, q01)["phi"] + if state == "off": + return asymm_phi.predict_k1_off(m, p10, p01, q10, q01)["phi"] + raise ValueError(state) + + +def cells(): + """Official (m, k, state, p10, p01, q10, q01) twin rows.""" + 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)) + return out diff --git a/org_frontier/studies/asymmetric_cut_value/predictions.json b/org_frontier/studies/asymmetric_cut_value/predictions.json new file mode 100644 index 000000000..b984b6da9 --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/predictions.json @@ -0,0 +1,104 @@ +{ + "study": "asymmetric_cut_value", + "bars": { + "c1_symmetric_reduction": 1e-06, + "c2_system_phi": 1e-06, + "h1_one_person": 1e-06, + "h2_two_person": 1e-06, + "h3_people_cells": 1e-06, + "h4_off_twin": 1e-06 + }, + "settings": [ + [ + 0.1, + 0.1, + 0.15, + 0.15 + ], + [ + 0.22, + 0.22, + 0.28, + 0.28 + ], + [ + 0.06, + 0.29, + 0.15, + 0.15 + ], + [ + 0.29, + 0.06, + 0.15, + 0.15 + ], + [ + 0.1, + 0.1, + 0.07, + 0.31 + ], + [ + 0.1, + 0.1, + 0.31, + 0.07 + ], + [ + 0.06, + 0.29, + 0.07, + 0.31 + ], + [ + 0.29, + 0.06, + 0.31, + 0.07 + ] + ], + "m": [ + 2, + 3, + 4, + 5 + ], + "n_networks": 64, + "smallest_s1": { + "effect": 0.09682442042684067, + "m": 5, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28 + }, + "largest_s1": { + "effect": 0.6600892720314386, + "m": 2, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31 + }, + "smallest_s2": { + "effect": 0.16835180981425027, + "m": 5, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28 + }, + "largest_s2": { + "effect": 1.14738811397331, + "m": 3, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31 + } +} diff --git a/org_frontier/studies/asymmetric_cut_value/results/results.json b/org_frontier/studies/asymmetric_cut_value/results/results.json new file mode 100644 index 000000000..c00ad4fc4 --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/results/results.json @@ -0,0 +1,1080 @@ +{ + "pyphi": "1.2.1.dev1470+gb78d0e342", + "scores": { + "C1_symmetric_reduction": { + "ok": 14, + "of": 14 + }, + "C2_system_phi": { + "ok": 64, + "of": 64 + }, + "H1_s1": { + "ok": 32, + "of": 32 + }, + "H2_s2": { + "ok": 24, + "of": 24 + }, + "H3_s1_hub": { + "ok": 64, + "of": 64 + }, + "H3_s2_hub": { + "ok": 48, + "of": 48 + }, + "H4_s1": { + "ok": 32, + "of": 32 + }, + "H4_s2": { + "ok": 24, + "of": 24 + } + }, + "misses": {}, + "rows": [ + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.5658685211502845, + "sys_pred": 0.5658685211502846, + "s1_full": 0.29846804741564886, + "s1_hub": 0.29846804741564886, + "s1_pred": 0.29846804741564886 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.4929903580369554, + "sys_pred": 0.49299035803695546, + "s1_full": 0.497620116019195, + "s1_hub": 0.497620116019195, + "s1_pred": 0.49762011601919504 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.5433517150592916, + "sys_pred": 0.5433517150592919, + "s1_full": 0.20594295271679766, + "s1_hub": 0.20594295271679766, + "s1_pred": 0.20594295271679772, + "s2_full": 0.39044927959369624, + "s2_hub": 0.39044927959369624, + "s2_pred": 0.3904492795936964 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.4090433594234608, + "sys_pred": 0.4090433594234608, + "s1_full": 0.46278670789785137, + "s1_hub": 0.46278670789785137, + "s1_pred": 0.46278670789785137, + "s2_full": 0.7974864935659458, + "s2_hub": 0.7974864935659458, + "s2_pred": 0.7974864935659464 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.45365283973633946, + "sys_pred": 0.45365283973633924, + "s1_full": 0.14210063737459044, + "s1_hub": 0.14210063737459044, + "s1_pred": 0.14210063737459042, + "s2_full": 0.2694100029196506, + "s2_hub": 0.2694100029196506, + "s2_pred": 0.2694100029196505 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.2646004437695915, + "sys_pred": 0.2646004437695915, + "s1_full": 0.43039163834500166, + "s1_hub": 0.43039163834500166, + "s1_pred": 0.4303916383450017, + "s2_full": 0.7416624390163294, + "s2_hub": 0.7416624390163294, + "s2_pred": 0.74166243901633 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.349142944819583, + "sys_pred": 0.3491429448195832, + "s1_full": 0.09804943978846742, + "s1_hub": 0.09804943978846742, + "s1_pred": 0.09804943978846738, + "s2_full": 0.18589290201455894, + "s2_hub": 0.18589290201455894, + "s2_pred": 0.18589290201455883 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.07, + "q01": 0.31, + "system": 0.15073945224050925, + "sys_pred": 0.15073945224050928, + "s1_full": 0.40026422366085146, + "s1_hub": 0.40026422366085146, + "s1_pred": 0.4002642236608516, + "s2_full": 0.6897460682851863, + "s2_hub": 0.6897460682851863, + "s2_pred": 0.6897460682851869 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.7854003730310963, + "sys_pred": 0.7854003730310962, + "s1_full": 0.4529367029149472, + "s1_hub": 0.4529367029149472, + "s1_pred": 0.4529367029149472 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.5312237638802391, + "sys_pred": 0.5312237638802393, + "s1_full": 0.4156902923157227, + "s1_hub": 0.4156902923157227, + "s1_pred": 0.4156902923157226 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 1.0013854756146476, + "sys_pred": 1.0013854756146474, + "s1_full": 0.3849961974777052, + "s1_hub": 0.3849961974777052, + "s1_pred": 0.3849961974777051, + "s2_full": 0.7299180960962373, + "s2_hub": 0.7299180960962373, + "s2_pred": 0.7299180960962373 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.4218746490907855, + "sys_pred": 0.4218746490907854, + "s1_full": 0.3533367484683639, + "s1_hub": 0.3533367484683639, + "s1_pred": 0.35333674846836416, + "s2_full": 0.6088793817436619, + "s2_hub": 0.6088793817436619, + "s2_pred": 0.6088793817436621 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 1.044727372623182, + "sys_pred": 1.0447273726231818, + "s1_full": 0.32724676785604934, + "s1_hub": 0.32724676785604934, + "s1_pred": 0.3272467678560493, + "s2_full": 0.620430381681802, + "s2_hub": 0.620430381681802, + "s2_pred": 0.6204303816818016 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.26760758580330557, + "sys_pred": 0.2676075858033056, + "s1_full": 0.30033623619810923, + "s1_hub": 0.30033623619810923, + "s1_pred": 0.3003362361981095, + "s2_full": 0.5175474744821122, + "s2_hub": 0.5175474744821122, + "s2_pred": 0.5175474744821127 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.8684611054197101, + "sys_pred": 0.8684611054197118, + "s1_full": 0.2781597526776419, + "s1_hub": 0.2781597526776419, + "s1_pred": 0.2781597526776419, + "s2_full": 0.5273658244295313, + "s2_hub": 0.5273658244295313, + "s2_pred": 0.5273658244295315 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.06, + "p01": 0.29, + "q10": 0.15, + "q01": 0.15, + "system": 0.1513338793197028, + "sys_pred": 0.15133387931970266, + "s1_full": 0.2552858007683939, + "s1_hub": 0.2552858007683939, + "s1_pred": 0.2552858007683931, + "s2_full": 0.43991535330979725, + "s2_hub": 0.43991535330979725, + "s2_pred": 0.43991535330979586 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.6791405819340082, + "sys_pred": 0.6791405819340081, + "s1_full": 0.3633581944897306, + "s1_hub": 0.3633581944897306, + "s1_pred": 0.3633581944897305 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.7896993759735609, + "sys_pred": 0.7896993759735608, + "s1_full": 0.6600892720314386, + "s1_hub": 0.6600892720314386, + "s1_pred": 0.6600892720314386 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.6415559030689315, + "sys_pred": 0.6415559030689312, + "s1_full": 0.2507171541979141, + "s1_hub": 0.2507171541979141, + "s1_pred": 0.25071715419791407, + "s2_full": 0.4686070015344656, + "s2_hub": 0.4686070015344656, + "s2_pred": 0.4686070015344656 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.9518697835395593, + "sys_pred": 0.9518697835395598, + "s1_full": 0.6138830229892375, + "s1_hub": 0.6138830229892375, + "s1_pred": 0.6138830229892379, + "s2_full": 1.1473881139733098, + "s2_hub": 1.1473881139733098, + "s2_pred": 1.14738811397331 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.5273429200587817, + "sys_pred": 0.5273429200587811, + "s1_full": 0.1729948363965608, + "s1_hub": 0.1729948363965608, + "s1_pred": 0.17299483639656066, + "s2_full": 0.3233388310587814, + "s2_hub": 0.3233388310587814, + "s2_pred": 0.3233388310587812 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.8667432175319565, + "sys_pred": 0.866743217531957, + "s1_full": 0.5709112113799907, + "s1_hub": 0.5709112113799907, + "s1_pred": 0.5709112113799911, + "s2_full": 1.0670709459951777, + "s2_hub": 1.0670709459951777, + "s2_pred": 1.0670709459951782 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.4008920799336273, + "sys_pred": 0.4008920799336267, + "s1_full": 0.11936643711362696, + "s1_hub": 0.11936643711362696, + "s1_pred": 0.11936643711362684, + "s2_full": 0.22310379343055922, + "s2_hub": 0.22310379343055922, + "s2_pred": 0.22310379343055897 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.07, + "q01": 0.31, + "system": 0.6381730773192291, + "sys_pred": 0.638173077319229, + "s1_full": 0.5309474265833914, + "s1_hub": 0.5309474265833914, + "s1_pred": 0.5309474265833918, + "s2_full": 0.9923759797755152, + "s2_hub": 0.9923759797755152, + "s2_pred": 0.9923759797755157 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.9955779376450518, + "sys_pred": 0.9955779376450516, + "s1_full": 0.5514099884873563, + "s1_hub": 0.5514099884873563, + "s1_pred": 0.5514099884873563 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.9955779376450518, + "sys_pred": 0.9955779376450516, + "s1_full": 0.5514099884873563, + "s1_hub": 0.5514099884873563, + "s1_pred": 0.5514099884873563 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 1.1993446723596841, + "sys_pred": 1.199344672359684, + "s1_full": 0.4686984902142528, + "s1_hub": 0.4686984902142528, + "s1_pred": 0.4686984902142528, + "s2_full": 0.8760285861798419, + "s2_hub": 0.8760285861798419, + "s2_pred": 0.8760285861798419 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 1.1993446723596835, + "sys_pred": 1.199344672359684, + "s1_full": 0.4686984902142526, + "s1_hub": 0.4686984902142526, + "s1_pred": 0.4686984902142528, + "s2_full": 0.8760285861798417, + "s2_hub": 0.8760285861798417, + "s2_pred": 0.8760285861798419 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.9684217468903187, + "sys_pred": 0.968421746890318, + "s1_full": 0.3983937166821152, + "s1_hub": 0.3983937166821152, + "s1_pred": 0.3983937166821148, + "s2_full": 0.7446242982528661, + "s2_hub": 0.7446242982528661, + "s2_pred": 0.7446242982528655 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.968421746890318, + "sys_pred": 0.968421746890318, + "s1_full": 0.3983937166821145, + "s1_hub": 0.3983937166821145, + "s1_pred": 0.3983937166821148, + "s2_full": 0.744624298252865, + "s2_hub": 0.744624298252865, + "s2_pred": 0.7446242982528655 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.6406896537876478, + "sys_pred": 0.6406896537876473, + "s1_full": 0.3386346591797976, + "s1_hub": 0.3386346591797976, + "s1_pred": 0.3386346591797976, + "s2_full": 0.6329306535149357, + "s2_hub": 0.6329306535149357, + "s2_pred": 0.6329306535149357 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.15, + "q01": 0.15, + "system": 0.6406896537876474, + "sys_pred": 0.6406896537876473, + "s1_full": 0.33863465917979857, + "s1_hub": 0.33863465917979857, + "s1_pred": 0.3386346591797976, + "s2_full": 0.6329306535149375, + "s2_hub": 0.6329306535149375, + "s2_pred": 0.6329306535149357 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.7896993759735609, + "sys_pred": 0.7896993759735608, + "s1_full": 0.6600892720314386, + "s1_hub": 0.6600892720314386, + "s1_pred": 0.6600892720314386 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.6791405819340082, + "sys_pred": 0.6791405819340081, + "s1_full": 0.3633581944897306, + "s1_hub": 0.3633581944897306, + "s1_pred": 0.3633581944897305 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.9518697835395598, + "sys_pred": 0.9518697835395598, + "s1_full": 0.6138830229892379, + "s1_hub": 0.6138830229892379, + "s1_pred": 0.6138830229892379, + "s2_full": 1.14738811397331, + "s2_hub": 1.14738811397331, + "s2_pred": 1.14738811397331 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.6415559030689312, + "sys_pred": 0.6415559030689312, + "s1_full": 0.2507171541979141, + "s1_hub": 0.2507171541979141, + "s1_pred": 0.25071715419791407, + "s2_full": 0.46860700153446566, + "s2_hub": 0.46860700153446566, + "s2_pred": 0.4686070015344656 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.8667432175319568, + "sys_pred": 0.866743217531957, + "s1_full": 0.5709112113799912, + "s1_hub": 0.5709112113799912, + "s1_pred": 0.5709112113799911, + "s2_full": 1.0670709459951782, + "s2_hub": 1.0670709459951782, + "s2_pred": 1.0670709459951782 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.5273429200587804, + "sys_pred": 0.5273429200587811, + "s1_full": 0.17299483639656038, + "s1_hub": 0.17299483639656038, + "s1_pred": 0.17299483639656066, + "s2_full": 0.32333883105878075, + "s2_hub": 0.32333883105878075, + "s2_pred": 0.3233388310587812 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.6381730773192295, + "sys_pred": 0.638173077319229, + "s1_full": 0.5309474265833917, + "s1_hub": 0.5309474265833917, + "s1_pred": 0.5309474265833918, + "s2_full": 0.9923759797755157, + "s2_hub": 0.9923759797755157, + "s2_pred": 0.9923759797755157 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.1, + "p01": 0.1, + "q10": 0.31, + "q01": 0.07, + "system": 0.4008920799336271, + "sys_pred": 0.4008920799336267, + "s1_full": 0.11936643711362696, + "s1_hub": 0.11936643711362696, + "s1_pred": 0.11936643711362684, + "s2_full": 0.22310379343055922, + "s2_hub": 0.22310379343055922, + "s2_pred": 0.22310379343055897 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.4254339522708248, + "sys_pred": 0.4254339522708247, + "s1_full": 0.25941041995359837, + "s1_hub": 0.25941041995359837, + "s1_pred": 0.25941041995359837 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.4254339522708248, + "sys_pred": 0.4254339522708247, + "s1_full": 0.25941041995359837, + "s1_hub": 0.25941041995359837, + "s1_pred": 0.25941041995359837 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.4155700511948859, + "sys_pred": 0.4155700511948858, + "s1_full": 0.1867755023665908, + "s1_hub": 0.1867755023665908, + "s1_pred": 0.1867755023665908, + "s2_full": 0.3247527195490938, + "s2_hub": 0.3247527195490938, + "s2_pred": 0.3247527195490939 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.41557005119488555, + "sys_pred": 0.4155700511948858, + "s1_full": 0.1867755023665907, + "s1_hub": 0.1867755023665907, + "s1_pred": 0.1867755023665908, + "s2_full": 0.3247527195490937, + "s2_hub": 0.3247527195490937, + "s2_pred": 0.3247527195490939 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.3014680803275167, + "sys_pred": 0.30146808032751665, + "s1_full": 0.13447836170394523, + "s1_hub": 0.13447836170394523, + "s1_pred": 0.13447836170394536, + "s2_full": 0.23382195807534745, + "s2_hub": 0.23382195807534745, + "s2_pred": 0.23382195807534759 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.3014680803275167, + "sys_pred": 0.30146808032751665, + "s1_full": 0.1344783617039455, + "s1_hub": 0.1344783617039455, + "s1_pred": 0.13447836170394536, + "s2_full": 0.23382195807534775, + "s2_hub": 0.23382195807534775, + "s2_pred": 0.23382195807534759 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.1745169940648834, + "sys_pred": 0.1745169940648833, + "s1_full": 0.09682442042684067, + "s1_hub": 0.09682442042684067, + "s1_pred": 0.09682442042684067, + "s2_full": 0.16835180981425027, + "s2_hub": 0.16835180981425027, + "s2_pred": 0.16835180981425027 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.22, + "p01": 0.22, + "q10": 0.28, + "q01": 0.28, + "system": 0.17451699406488325, + "sys_pred": 0.1745169940648833, + "s1_full": 0.09682442042684054, + "s1_hub": 0.09682442042684054, + "s1_pred": 0.09682442042684067, + "s2_full": 0.1683518098142501, + "s2_hub": 0.1683518098142501, + "s2_pred": 0.16835180981425027 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.531223763880239, + "sys_pred": 0.5312237638802393, + "s1_full": 0.4156902923157227, + "s1_hub": 0.4156902923157227, + "s1_pred": 0.4156902923157226 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.7854003730310963, + "sys_pred": 0.7854003730310962, + "s1_full": 0.4529367029149472, + "s1_hub": 0.4529367029149472, + "s1_pred": 0.4529367029149472 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.4218746490907854, + "sys_pred": 0.4218746490907854, + "s1_full": 0.35333674846836427, + "s1_hub": 0.35333674846836427, + "s1_pred": 0.35333674846836416, + "s2_full": 0.608879381743662, + "s2_hub": 0.608879381743662, + "s2_pred": 0.6088793817436621 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 1.001385475614647, + "sys_pred": 1.0013854756146474, + "s1_full": 0.38499619747770497, + "s1_hub": 0.38499619747770497, + "s1_pred": 0.3849961974777051, + "s2_full": 0.7299180960962371, + "s2_hub": 0.7299180960962371, + "s2_pred": 0.7299180960962373 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.26760758580330557, + "sys_pred": 0.2676075858033056, + "s1_full": 0.30033623619810973, + "s1_hub": 0.30033623619810973, + "s1_pred": 0.3003362361981095, + "s2_full": 0.5175474744821131, + "s2_hub": 0.5175474744821131, + "s2_pred": 0.5175474744821127 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 1.044727372623181, + "sys_pred": 1.0447273726231818, + "s1_full": 0.32724676785604895, + "s1_hub": 0.32724676785604895, + "s1_pred": 0.3272467678560493, + "s2_full": 0.6204303816818011, + "s2_hub": 0.6204303816818011, + "s2_pred": 0.6204303816818016 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.1513338793197027, + "sys_pred": 0.15133387931970266, + "s1_full": 0.2552858007683932, + "s1_hub": 0.2552858007683932, + "s1_pred": 0.2552858007683931, + "s2_full": 0.43991535330979564, + "s2_hub": 0.43991535330979564, + "s2_pred": 0.43991535330979586 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.15, + "q01": 0.15, + "system": 0.8684611054197122, + "sys_pred": 0.8684611054197118, + "s1_full": 0.2781597526776427, + "s1_hub": 0.2781597526776427, + "s1_pred": 0.2781597526776419, + "s2_full": 0.5273658244295328, + "s2_hub": 0.5273658244295328, + "s2_pred": 0.5273658244295315 + }, + { + "m": 2, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.4929903580369553, + "sys_pred": 0.49299035803695546, + "s1_full": 0.497620116019195, + "s1_hub": 0.497620116019195, + "s1_pred": 0.49762011601919504 + }, + { + "m": 2, + "k": 2, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.5658685211502845, + "sys_pred": 0.5658685211502846, + "s1_full": 0.29846804741564886, + "s1_hub": 0.29846804741564886, + "s1_pred": 0.29846804741564886 + }, + { + "m": 3, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.40904335942346076, + "sys_pred": 0.4090433594234608, + "s1_full": 0.4627867078978513, + "s1_hub": 0.4627867078978513, + "s1_pred": 0.46278670789785137, + "s2_full": 0.797486493565946, + "s2_hub": 0.797486493565946, + "s2_pred": 0.7974864935659464 + }, + { + "m": 3, + "k": 3, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.5433517150592918, + "sys_pred": 0.5433517150592919, + "s1_full": 0.20594295271679766, + "s1_hub": 0.20594295271679766, + "s1_pred": 0.20594295271679772, + "s2_full": 0.39044927959369624, + "s2_hub": 0.39044927959369624, + "s2_pred": 0.3904492795936964 + }, + { + "m": 4, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.2646004437695913, + "sys_pred": 0.2646004437695915, + "s1_full": 0.4303916383450017, + "s1_hub": 0.4303916383450017, + "s1_pred": 0.4303916383450017, + "s2_full": 0.7416624390163299, + "s2_hub": 0.7416624390163299, + "s2_pred": 0.74166243901633 + }, + { + "m": 4, + "k": 4, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.4536528397363386, + "sys_pred": 0.45365283973633924, + "s1_full": 0.14210063737459022, + "s1_hub": 0.14210063737459022, + "s1_pred": 0.14210063737459042, + "s2_full": 0.26941000291965006, + "s2_hub": 0.26941000291965006, + "s2_pred": 0.2694100029196505 + }, + { + "m": 5, + "k": 1, + "state": "off", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.1507394522405093, + "sys_pred": 0.15073945224050928, + "s1_full": 0.4002642236608516, + "s1_hub": 0.4002642236608516, + "s1_pred": 0.4002642236608516, + "s2_full": 0.6897460682851868, + "s2_hub": 0.6897460682851868, + "s2_pred": 0.6897460682851869 + }, + { + "m": 5, + "k": 5, + "state": "on", + "p10": 0.29, + "p01": 0.06, + "q10": 0.31, + "q01": 0.07, + "system": 0.3491429448195835, + "sys_pred": 0.3491429448195832, + "s1_full": 0.09804943978846742, + "s1_hub": 0.09804943978846742, + "s1_pred": 0.09804943978846738, + "s2_full": 0.18589290201455894, + "s2_hub": 0.18589290201455894, + "s2_pred": 0.18589290201455883 + } + ] +} \ No newline at end of file diff --git a/org_frontier/studies/asymmetric_cut_value/run.py b/org_frontier/studies/asymmetric_cut_value/run.py new file mode 100644 index 000000000..fb208a6e4 --- /dev/null +++ b/org_frontier/studies/asymmetric_cut_value/run.py @@ -0,0 +1,208 @@ +"""PyPhi against the uneven-rate cut-value predictions in laws.py (hypotheses.md, predictions.json: committed before this ran). + +Run from the repo root: python org_frontier/studies/asymmetric_cut_value/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 + +import numpy as np + +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 pyphi.direction import Direction # noqa: E402 +from pyphi.models.cuts import GeneralSetPartition # noqa: E402 + +from org_frontier.classifier.classifier import cm_from_rules, tpm_from_rules # noqa: E402 +from org_frontier.studies.asymmetric_cut_value 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 people_out_cut(n, s, ppl_to_ppl=True): + c = np.zeros((n, n), dtype=int) + for j in range(1, s + 1): + if ppl_to_ppl: + c[j, :] = 1 + c[j, j] = 0 + else: + c[j, 0] = 1 + return c + + +def effect_of_cut(sub, st, mat): + n = sub.size + part = GeneralSetPartition( + tuple(range(n)), mat, set_partition=[(i,) for i in range(n)], node_labels=sub.node_labels + ) + return float(new_big_phi.integration_value(Direction.EFFECT, sub, part, st).phi) + + +def run_one(cell): + m, k, state, p10, p01, q10, q01 = cell + n = m + 1 + sub = build(m, k, p10, p01, q10, q01, state) + sia = new_big_phi.sia(sub) + st = sia.system_state + rec = dict( + m=m, k=k, state=state, p10=p10, p01=p01, q10=q10, q01=q01, + system=float(sia.phi), + sys_pred=laws.system_phi(m, p10, p01, q10, q01, state), + ) + for s in ((1, 2) if m >= 3 else (1,)): + rec[f"s{s}_full"] = effect_of_cut(sub, st, people_out_cut(n, s, True)) + rec[f"s{s}_hub"] = effect_of_cut(sub, st, people_out_cut(n, s, False)) + rec[f"s{s}_pred"] = laws.predict(m, p10, p01, q10, q01, s, state) + return rec + + +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) + + # C1 algebraic, once per even-rate (m, p, q, s) + seen = set() + for r in rows: + if not laws.is_symmetric(r["p10"], r["p01"], r["q10"], r["q01"]): + continue + key = (r["m"], r["p10"], r["q10"]) + if key in seen: + continue + seen.add(key) + p, q, m = r["p10"], r["q10"], r["m"] + for s in ((1, 2) if m >= 3 else (1,)): + new = laws.predict_on(m, p, p, q, q, s) + old = laws.old_symmetric(m, p, q, s) + rec( + "C1_symmetric_reduction", + abs(new - old) <= BARS["c1_symmetric_reduction"], + f"m={m} s={s} p={p} q={q} new={new} old={old}", + ) + + for r in rows: + lab = ( + f"p10={r['p10']} p01={r['p01']} q10={r['q10']} q01={r['q01']} " + f"m={r['m']} k={r['k']} {r['state']}" + ) + rec( + "C2_system_phi", + abs(r["system"] - r["sys_pred"]) <= BARS["c2_system_phi"], + lab + f" sys={r['system']} pred={r['sys_pred']}", + ) + rec( + "H3_s1_hub", + abs(r["s1_full"] - r["s1_hub"]) <= BARS["h3_people_cells"], + lab + f" full={r['s1_full']} hub={r['s1_hub']}", + ) + if r["m"] >= 3: + rec( + "H3_s2_hub", + abs(r["s2_full"] - r["s2_hub"]) <= BARS["h3_people_cells"], + lab + f" full={r['s2_full']} hub={r['s2_hub']}", + ) + if r["state"] == "on": + rec( + "H1_s1", + abs(r["s1_full"] - r["s1_pred"]) <= BARS["h1_one_person"], + lab + f" s1={r['s1_full']} pred={r['s1_pred']}", + ) + if r["m"] >= 3: + rec( + "H2_s2", + abs(r["s2_full"] - r["s2_pred"]) <= BARS["h2_two_person"], + lab + f" s2={r['s2_full']} pred={r['s2_pred']}", + ) + else: + rec( + "H4_s1", + abs(r["s1_full"] - r["s1_pred"]) <= BARS["h4_off_twin"], + lab + f" s1={r['s1_full']} pred={r['s1_pred']}", + ) + if r["m"] >= 3: + rec( + "H4_s2", + abs(r["s2_full"] - r["s2_pred"]) <= BARS["h4_off_twin"], + lab + f" s2={r['s2_full']} pred={r['s2_pred']}", + ) + return {h: dict(ok=v[0], of=v[1]) for h, v in sorted(sc.items())}, miss + + +def fmt(rec): + m, k, state = rec["m"], rec["k"], rec["state"] + s2 = f" s2={rec['s2_full']:.6f} pred={rec['s2_pred']:.6f}" if m >= 3 else "" + return ( + f"p10={rec['p10']} p01={rec['p01']} q10={rec['q10']} q01={rec['q01']} " + f"m={m} k={k} {state} " + f"sys={rec['system']:.6f} law={rec['sys_pred']:.6f} " + f"s1={rec['s1_full']:.6f} pred={rec['s1_pred']:.6f}{s2}" + ) + + +def quick(): + for cell in ( + (4, 4, "on", 0.10, 0.10, 0.15, 0.15), + (4, 4, "on", 0.06, 0.29, 0.07, 0.31), + (4, 1, "off", 0.06, 0.29, 0.07, 0.31), + ): + print(fmt(run_one(cell))) + + +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() diff --git a/research-atlas/snapshot.json b/research-atlas/snapshot.json index af0b631ff..079d00cff 100644 --- a/research-atlas/snapshot.json +++ b/research-atlas/snapshot.json @@ -1,7 +1,7 @@ { - "revision": "0af047b662eeda61bd77101f732d661019896a1f", + "revision": "cf48920deba0e60e221c9ee67d0af279cbd97640", "indexes": { - "catalog.json": "dafdad6247eb379b72972061e4efcf376fd80f1a", + "catalog.json": "2cefdc35d5572fad0c7777e2606a2239b1fbb966", "research-atlas/cards.json": "b049d417c6c9a693f4fa44a53237e3bc9bc4c31b" } } diff --git a/substack/experiments/2026-11-30-how-much-a-one-person-cut-costs-when-noise-is-uneven.md b/substack/experiments/2026-11-30-how-much-a-one-person-cut-costs-when-noise-is-uneven.md new file mode 100644 index 000000000..015537fe8 --- /dev/null +++ b/substack/experiments/2026-11-30-how-much-a-one-person-cut-costs-when-noise-is-uneven.md @@ -0,0 +1,35 @@ +# How much a one-person cut costs when the two kinds of noise are uneven + +*Algorithmacy Lab, foundations stream. Study: `org_frontier/studies/asymmetric_cut_value/`.* + +An earlier experiment gave the cost of cutting one person's (or two people's) outgoing links, in the two special cases where that split is not free, when each part of the network has a single noise rate. A second experiment showed that the whole-network score still has a closed form when the two directions of noise are allowed to differ: a 1 that should have stayed a 1 can have a different rate from a 0 that should have stayed a 0. I wanted the cost of that same one-person split under those uneven rates. + +## The idea, in plain words + +When the hub needs everyone and everyone is on, cutting one person's link to the hub still replaces that person's input with a fair coin, and then the hub's two rates still apply. The hub's chance of being on goes from "1 minus the on-to-off rate" down to the midpoint of that number and the off-to-on rate. The cost of the split is the usual weight — the chance of this present state — times the log of that change. + +If you cut two people's links instead, both inputs become fair coins, so the hub fires as intended only when both coins come up on, which is one quarter of the time. The same rule gives the cost, with that one-quarter mix in place of the midpoint. + +When the two hub rates are equal, the midpoint is one half, and this is exactly the formula we already had. When they are not equal, the two twins are no longer the same number: the case where everyone is off and the hub needs only one person is the same rule with the four rates flipped. Adding the unused links between people to the split does not change the cost, because in this family of networks the people do not listen to each other. + +## The test + +I wrote the predictions down before running the new cells. Eight new settings, none of which I had used in the earlier look or in the two studies this formula comes from. Some kept both rates even, as a check against the older formula. Some made only the hub's two rates uneven, some only the people's, and some both. Groups of two, three, four, and five people: the "needs everyone, all on" network and its "needs one, all off" twin. 64 networks. For each one I asked PyPhi for the whole-network score and for the cost of a named split of one person's outgoing links, and, in groups of three or more, of two people's; I also asked for the same splits with only the links to the hub, leaving out the links between people. + +The two checks I set up in advance passed: when both rates are even, the new formula matched the older one in all 14 algebraic checks (the difference was exactly zero), and the whole-network score matched the uneven-rate formula in all 64 networks (largest gap 1.7e-15). + +The four main predictions held in every cell. The one-person split matched the formula in all 32 all-on networks (largest gap 9.4e-16), and the two-person split matched in all 24 (largest gap 1.8e-15). Leaving out the links between people did not change the cost at all: the difference was exactly zero in every one of those 64 + 48 cases. And every all-off twin matched the same formula with the four rates flipped (32 one-person and 24 two-person; largest gaps 3.9e-16 and 6.7e-16). + +A four-person example, at even mid-range rates (0.10 and 0.15), both twins: the whole-network score is 0.968422, cutting one person costs 0.398394, and cutting two costs 0.744624. At a setting where both kinds of noise are uneven (0.06 / 0.29 for the hub, 0.07 / 0.31 for the people), the two twins are no longer the same: all-on, the whole-network score is 0.264600 and cutting one person costs 0.430392; all-off, the score is 0.453653 and cutting one person costs 0.142101. Both match the formula. + +No prediction was missed. + +## What it means + +The cost of these splits is still the same link-cut rule, with the hub's two rates in place of a single rate. When the rates are uneven, the two twins part company in the way the rule says they should. 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, and only the two special cases where the one-person split is not free. I looked at probes at six other settings before writing the predictions down (same pattern, not part of this grid). I do not have the matching formula for the other side of the split, only this cost. + +Everything is in the study folder. The predictions were committed in `0503f54f` before the new cells ran. diff --git a/substack/experiments/README.md b/substack/experiments/README.md index dd940559a..0ed245be3 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 | [How much a one-person cut costs when the two kinds of noise are uneven](2026-11-30-how-much-a-one-person-cut-costs-when-noise-is-uneven.md) | [`org_frontier/studies/asymmetric_cut_value/`](../../org_frontier/studies/asymmetric_cut_value/) | | 2026-11-30 | [When the on-list stays the same after the cut](2026-11-30-when-the-on-list-stays-the-same.md) | [`org_frontier/studies/why_cut_on_lists_hold/`](../../org_frontier/studies/why_cut_on_lists_hold/) | | 2026-11-30 | [Why some on-states come only from on](2026-11-30-why-some-on-states-come-only-from-on.md) | [`org_frontier/studies/why_on_mass_is_one/`](../../org_frontier/studies/why_on_mass_is_one/) | | 2026-11-30 | [A heavier voter hides the predicted jump](2026-11-30-a-heavier-voter-hides-the-predicted-jump.md) | [`org_frontier/studies/five_party_weighted/`](../../org_frontier/studies/five_party_weighted/) |