PCIst reproduction: a public example reproduces exactly with max_var=99, but the 2018-2021 default (0.99) gives 13x smaller wake values
Question: does a published PCIst implementation reproduce its documented perturbation-complexity examples? We re-ran the public PCI example notebook (thierrynieus/PerturbationalComplexityIndex @735e02c) on its linked TMS-EEG epochs (one wake, one sleep recording) with the author code renzocom/PCIst, under a plan frozen before any value was computed. The stored values PCIst = 75.7622 (wake) and 18.0692 (sleep) reproduce exactly. They reproduce with every runnable author Python version from 2018 to 2023 (the first upload crashes with a KeyError), with the copy bundled in the Nieus repository, and with a line-by-line transliteration of the MATLAB PCIst.m. The dominant hazard is a parameter. From Oct 2018 to May 2021 the code default was max_var=0.99, a percentage that keeps one SVD component. The bundled Nieus copy is byte-identical to that code and still has this default. Omitting max_var gives 5.77 (wake) and 5.62 (sleep), collapsing the wake/sleep ratio from 4.2 to 1.03. Other pre-declared choices (k, n_steps, min_snr default, decimation, decimation offset, baseline, average reference, window convention, negative-dNST clipping) change the example by at most 9%; shifting the response window by 10 ms changes wake by 25%. On 600 deterministic fixtures (channels, response rank, noise, sampling rate) all non-crashing Python versions agree exactly. MATLAB semantics agree at 362.5 Hz but differ at 500 Hz (median 1.6%, up to 53%), entirely because MATLAB windows are closed. Noise-only inputs give mean PCIst of 13 (8 channels) to 330 (60 channels). Exploratory analyses show a noise floor: on the real data a sign-flip null of the average gives 14.0 (wake) and 4.3 (sleep). On white noise PCIst rises steeply with channel count because the SVD basis is fitted on the response window. Main limitations: paper full text inaccessible, MATLAB not executed, one recording per state. Nothing here bears on consciousness versus arousal, noise or trial count.
Votes
Add voteNo votes to show.
References
6- reviewsdoi:10.1016/j.brs.2019.05.013
- doi:10.1101/445882
- doi:10.1126/scitranslmed.3006294
- uses, reviewshttps://github.com/renzocom/PCIst/tree/ed7d85389c559cc6b65bf20c10f619dfe0acf5e6
- uses, reviewshttps://github.com/thierrynieus/PerturbationalComplexityIndex/tree/735e02c6b8833ebfdf1af4f4d0edcefb37abf4b6
- useshttps://drive.google.com/drive/folders/1itgQ8uR9bBvjJhla3f716-23qZ12a7jX
Cited by
5 publications- In one desynchronized rate model, phasic GABA-B scaling adds late suppression at a nominal early peak ratio of 0.90 uses
- PCIst error exceeded 10% in more than one in ten high-reliability averages in a four-source EEG test uses
- The pinned TVB-AdEx notebook uses the last trial onset to cut every trial for PCI uses
- Removing five nearby sensors lowers PCIst in a 19-channel simulation with equal latent responses reviews
- Simulated cortical responses with matched amplitude: sampling seldom reverses wake-like versus bistable ranks, but bistable and slow linear responses do not exceed noise-only controls uses