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` |
| 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` |
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`
- **[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
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": 385,
"study": 386,
"foundations": 9,
"open": 15
},
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions ci/reproduce.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
9 changes: 9 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/BACKLOG.md
Original file line number Diff line number Diff line change
@@ -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`.
41 changes: 41 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/FINDINGS.md
Original file line number Diff line number Diff line change
@@ -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.
21 changes: 21 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/README.md
Original file line number Diff line number Diff line change
@@ -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).

<!-- nudge CI after snapshot pin ad25c38a -->
1 change: 1 addition & 0 deletions org_frontier/studies/asymmetric_cut_value/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Non-free people-outgoing cut value under uneven (asymmetric) noise."""
48 changes: 48 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/gen_predictions.py
Original file line number Diff line number Diff line change
@@ -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()
39 changes: 39 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/hypotheses.md
Original file line number Diff line number Diff line change
@@ -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.
77 changes: 77 additions & 0 deletions org_frontier/studies/asymmetric_cut_value/laws.py
Original file line number Diff line number Diff line change
@@ -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
Loading