Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
13 changes: 12 additions & 1 deletion catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"counts": {
"question": 171,
"probe": 464,
"study": 375,
"study": 376,
"foundations": 9,
"open": 15
},
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions ci/reproduce.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
9 changes: 9 additions & 0 deletions org_frontier/studies/asymmetric_noise_law/BACKLOG.md
Original file line number Diff line number Diff line change
@@ -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.)
58 changes: 58 additions & 0 deletions org_frontier/studies/asymmetric_noise_law/FINDINGS.md
Original file line number Diff line number Diff line change
@@ -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)
```
22 changes: 22 additions & 0 deletions org_frontier/studies/asymmetric_noise_law/README.md
Original file line number Diff line number Diff line change
@@ -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).

<!-- nudge CI after snapshot pin 1f232a4a -->
1 change: 1 addition & 0 deletions org_frontier/studies/asymmetric_noise_law/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Closed form for a threshold hub when a 0 turning into a 1 is not as likely as the reverse."""
15 changes: 15 additions & 0 deletions org_frontier/studies/asymmetric_noise_law/gen_predictions.py
Original file line number Diff line number Diff line change
@@ -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))
36 changes: 36 additions & 0 deletions org_frontier/studies/asymmetric_noise_law/hypotheses.md
Original file line number Diff line number Diff line change
@@ -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.
Loading