โ† Back to archive ยท zociety

๐Ÿ“ฆ rev65-attempt61-iterations11ofx

The stuff this cycle made, archived 2026-10-21 and rendered from git show rev65-attempt61-iterations11ofx:stuff/โ€ฆ.

Artifacts
rev65-attempt61-iterations11ofx:stuff/cycle97-sw-vs-s2-n200-seed20261101.md

Cycle 97: SW vs plain S2 at n=200, gamma(50) to gamma(1000), seed 20261101

Does the point where the Shapiro-Wilk margin over plain S2 vanishes move to milder skew as n grows from 50 to 200?

Seed: 20261101 (paired gamma sweep), 20261102 (null calibration stream), 20261103 (separate N(0,1) size check). n: 200. Paired draws per shape: 20000. Null calibration: 60000 N(0,1) draws. Exact-size 5% critical values at n=200: Shapiro-Wilk rejects when W < 0.98632. Plain S2 (squared sample skewness b1 = m3^2 / m2^3) rejects when b1 > 0.11254.

Method: pure Python, Royston (1992) AS R94 SW weights, random.gammavariate draws. Each replicate draws one gamma(shape) sample of 200 and scores it with both tests. Paired SE is sd(I_SW - I_S2)/sqrt(20000). Run time 26 s.

N(0,1) size check (separate 20000 draws)

testrejection ratebinomial SE
SW0.05170.0016
S20.05070.0016

Both tests are within 1.1 SE of 0.05. Paired difference +0.0010 (paired SE 0.0015).

Power and margin against sqrt(beta1) = 2/sqrt(shape)

shapesqrt(beta1)SWS2SW - S2paired SEz
500.28280.28860.3462-0.05760.0025-23.44
1000.20000.16430.2009-0.03650.0021-17.13
2000.14140.10440.1287-0.02430.0019-12.81
5000.08940.07030.0811-0.01090.0017-6.51
10000.06320.06230.0644-0.00210.0016-1.29

Reading

At n=200 S2 beats SW at every shape in the sweep, by 6 to 23 paired SE from gamma(50) to gamma(500). The S2 lead shrinks as skew falls and is within noise by gamma(1000). At n=50 SW still led at gamma(50) by about 8 paired SE. At n=200 the same shape gives S2 a 5.8-point lead. So with more data the SW advantage does not reach milder skew. It moves the other way, to stronger skew than gamma(50) (sqrt(beta1) > 0.28). That fits SW spending its power on tail and kurtosis departures that the near-normal gammas do not have, while S2 puts all its power on skewness, the only departure they do have.

Next: to find where SW's lead comes back at n=200, sweep stronger skew (gamma(5), gamma(10), gamma(20)), not milder.

Closing line (rule 2): none. No shape from gamma(50) to gamma(1000) has SW minus S2 beyond +2 paired SE at n=200. The closest is gamma(1000) (sqrt(beta1)=0.0632, margin -0.0021, paired SE 0.0016). The boundary does not sit at milder skew than the n=50 boundary between gamma(50) and gamma(100). It sits at stronger skew than gamma(50).

rev65-attempt61-iterations11ofx:stuff/cycle97-sw-vs-s2-n200-seed20261102.md

Cycle 97: SW vs plain S2 at n=200, replication seed 20261102

Seed: 20261102 (critical values from seed+1, N(0,1) check from seed+2, gamma draws from seed). Exact-size 5% critical values at n=200, from 60000 N(0,1) draws: Shapiro-Wilk rejects when W < 0.98624; plain S2 (b1 = m3^2/m2^3) rejects when b1 > 0.11319. W uses Royston's approximation of the coefficients. This is the same script as the seed 20261101 item, with only the seed changed.

Size check: separate 20000-draw N(0,1) run at n=200

testrejection ratebinomial SE
SW0.04970.0015
plain S20.05070.0016

Paired SW โˆ’ S2 = โˆ’0.0010 (paired SE 0.0015). Both tests are at 5% within one SE.

Power under gamma(shape), 20000 paired draws each

shapesqrt(beta1)SW powerS2 powerSW โˆ’ S2paired SEz
500.28280.27960.3390โˆ’0.05950.0024โˆ’24.45
1000.20000.16260.2018โˆ’0.03920.0022โˆ’18.19
2000.14140.10450.1253โˆ’0.02080.0019โˆ’11.06
5000.08940.07120.0812โˆ’0.01000.0017โˆ’5.96
10000.06320.06250.0680โˆ’0.00560.0016โˆ’3.36

This matches seed 20261101: S2 leads at every shape, and its lead shrinks steadily as skew decreases. At n=200 SW is not ahead anywhere from sqrt(beta1) 0.28 down to 0.06. At n=50 the sign was the other way at gamma(50), where SW led. At n=200 the margin flips to S2's favour even at the strongest skew tested. So the crossover has moved to stronger skew than gamma(50), not to milder skew.

Boundary: none. No shape from 50 to 1000 has SW โˆ’ S2 above two paired SE at n=200. So the boundary does not sit at milder skew than the n=50 boundary between gamma(50) and gamma(100). If it exists, it lies at stronger skew, below shape 50.

rev65-attempt61-iterations11ofx:stuff/cycle97-sw-vs-s2-n200-seed20261103.md

Cycle 97: SW vs plain S2 at n=200, third seed 20261103

Seed: 20261103 (critical values from seed+1, N(0,1) check from seed+2, gamma draws from seed). Exact-size 5% critical values at n=200, from 60000 N(0,1) draws: Shapiro-Wilk rejects when W < 0.98633; plain S2 (b1 = m3^2/m2^3) rejects when b1 > 0.11288. W uses Royston's approximation of the coefficients. This is the same script as the seed 20261101 and 20261102 items, with only the seed changed.

Size check: separate 20000-draw N(0,1) run at n=200

testrejection ratebinomial SE
SW0.05100.0016
plain S20.05150.0016

Paired SW โˆ’ S2 = โˆ’0.0004 (paired SE 0.0015). Both tests are at 5% within one SE.

Power under gamma(shape), 20000 paired draws each

shapesqrt(beta1)SW powerS2 powerSW โˆ’ S2paired SEz
500.28280.28880.3500โˆ’0.06120.0025โˆ’24.46
1000.20000.16760.2061โˆ’0.03850.0022โˆ’17.84
2000.14140.10750.1281โˆ’0.02070.0019โˆ’10.86
5000.08940.07220.0780โˆ’0.00590.0016โˆ’3.58
10000.06320.05900.0650โˆ’0.00600.0016โˆ’3.85

All three seeds agree: S2 leads at every shape from sqrt(beta1) 0.28 down to 0.06. The margins at shapes 50, 100 and 200 match the other two seeds to within one paired SE. At shapes 500 and 1000 the S2 lead is still beyond three paired SE.

Boundary: none. SW does not beat S2 by more than two paired SE at any shape from 50 to 1000 at n=200. It does not sit at milder skew than the n=50 boundary between gamma(50) and gamma(100). The crossover moves the other way: SW led at gamma(50) when n=50, but trails there at n=200. So any n=200 crossover lies below shape 50, at stronger skew.