Wolfram Community - companion notebook | publication package v2.1 (technical count correction)
Question: Does adding a loading/unloading history indicator improve prediction on a held-out compression-tension cycle compared with displacement alone?
Public raw data: https://zenodo.org/records/20133263 - archive LSMM_CR.zip; samples CR_S1-CR_S10. This notebook contains code and archived numerical results; a rerun also requires access to the public raw data.
Archived verification checkpoint (not newly re-executed for this notebook): 10/10 improvements in cubic model; median error reduction 63.1045%; range 53.3407%-90.6598%; median Gaussian residual-variance proxy 0.7195 bit. Proxy is not direct conditional mutual information.

How to use

1. View archived numerical results at the end, without a CSV attachment. 2. Evaluate the reproduction cell below in Wolfram Language with internet access to rerun the public-data analysis. It downloads a public archive; it does not affect Google Drive.

Reproduction code - archived v2 with one technical correction

SHA-256 of original .wl: 203df34b49024868e29e800e00a4de40d4d0ce50b12c4f82946f8cf68770681a
Correction in this publication copy: count of wins for degree robustness now compares MSE lists element-by-element using MapThread[Less,...]. The archived v2 source applied Less to whole lists. Numerical fits and frozen data protocol are unchanged; original source remains preserved.
(*LSMM_CRhistory-awareprediction—Wolfram-verifiedreproducibilityv2*)​​​​ClearAll["Global`*"];​​url="https://zenodo.org/records/20133263/files/LSMM_CR.zip?download=1";​​zip=URLDownload[url];​​dir=CreateDirectory[];​​ExtractArchive[zip,dir];​​​​Clear[getData,analyze];​​​​getData[i_Integer]:=Module[​​{raw,d,t,x,f,dx0,dx,sgn,cand,mins,a,b,c,tr,te,thr=0.005},​​raw=Import[​​FileNameJoin[{dir,"LSMM_CR","CR_S"<>ToString[i]<>"_CyclicCompressionTension.txt"}],​​"TSV"​​];​​d=Select[Rest[raw],VectorQ[#,NumericQ]&];​​{t,x,f}=Transpose[d];​​​​dx0=Differences[x]/Differences[t];​​dx=Join[{First[dx0]},dx0];​​sgn=Sign[dx];​​Do[If[sgn[[k]]==0,sgn[[k]]=sgn[[k-1]]],{k,2,Length[sgn]}];​​​​(*robustturning-pointfilter:negative->positivetransitionnearthetruecompressionminimum*)​​cand=Select[​​Range[2,Length[x]],​​sgn[[#-1]]<0&&sgn[[#]]>0&&x[[#]]<=0.8Min[x]&​​];​​mins=Take[cand,UpTo[3]];​​If[Length[mins]<3,Return[$Failed]];​​{a,b,c}=mins;​​​​tr=Select[Range[a,b],Abs[dx[[#]]]>=thr&];​​te=Select[Range[b,c],Abs[dx[[#]]]>=thr&];​​​​<|"x"->x,"f"->f,"sgn"->sgn,"tr"->tr,"te"->te,"mins"->mins|>​​];​​​​analyze[d_,deg_:3]:=Module[​​{x=d["x"],f=d["f"],sgn=d["sgn"],tr=d["tr"],te=d["te"],​​z,p0,pp,pm,pred0,predh,mse0,mseh},​​p0=Fit[Transpose[{x[[tr]],f[[tr]]}],Table[z^k,{k,0,deg}],z];​​pp=Fit[​​Transpose[{x[[Select[tr,sgn[[#]]>0&]]],f[[Select[tr,sgn[[#]]>0&]]]}],​​Table[z^k,{k,0,deg}],z​​];​​pm=Fit[​​Transpose[{x[[Select[tr,sgn[[#]]<0&]]],f[[Select[tr,sgn[[#]]<0&]]]}],​​Table[z^k,{k,0,deg}],z​​];​​​​pred0=N[p0/.z->#]&/@x[[te]];​​predh=MapThread[​​If[#2>0,N[pp/.z->#1],N[pm/.z->#1]]&,​​{x[[te]],sgn[[te]]}​​];​​​​mse0=Mean[(f[[te]]-pred0)^2];​​mseh=Mean[(f[[te]]-predh)^2];​​​​<|​​"MSE0"->mse0,​​"MSEH"->mseh,​​"ErrorReductionPercent"->100(1-mseh/mse0),​​"GaussianInfoProxyBits"->1/2Log[2,mse0/mseh]​​|>​​];​​​​data=Table[getData[i],{i,1,10}];​​results3=Table[Join[<|"Sample"->i|>,analyze[data[[i]],3]],{i,1,10}];​​​​summary3=<|​​"Wins"->Count[Map[#["MSEH"]<#["MSE0"]&,results3],True],​​"MedianErrorReductionPercent"->Median[Map[#["ErrorReductionPercent"]&,results3]],​​"MedianGaussianInfoProxyBits"->Median[Map[#["GaussianInfoProxyBits"]&,results3]],​​"RangeErrorReductionPercent"->{​​Min[Map[#["ErrorReductionPercent"]&,results3]],​​Max[Map[#["ErrorReductionPercent"]&,results3]]​​}​​|>;​​​​robustness=Table[​​vals=analyze[#,deg]&/@data;​​<|​​"Degree"->deg,​​"Wins"->Count[MapThread[Less,{vals[[All,"MSEH"]],vals[[All,"MSE0"]]}],True],​​"MedianErrorReductionPercent"->Median[vals[[All,"ErrorReductionPercent"]]],​​"MedianGaussianInfoProxyBits"->Median[vals[[All,"GaussianInfoProxyBits"]]]​​|>,​​{deg,2,6}​​];​​​​(*exactone-sidedpairedsigntestfor10/10improvements*)​​pExactOneSided=1/2^10;​​​​{Dataset[results3],summary3,Dataset[robustness],N[pExactOneSided]}​​

Archived numerical table (embedded; no CSV upload required)

The following values are copied from the archived v2 CSV. Evaluating the cell displays the sample-level table; this is not a new rerun.
verifiedTable={​​<|"Sample"->1,"MSE0"->1.408923167372099*^-06,"MSEH"->5.345568720112989*^-07,"ErrorReductionPercent"->62.05918928791938,"GaussianInfoProxyBits"->0.69908879428667|>,​​<|"Sample"->2,"MSE0"->3.462919549715569*^-06,"MSEH"->7.312288851225224*^-07,"ErrorReductionPercent"->78.88403485485007,"GaussianInfoProxyBits"->1.121796952566953|>,​​<|"Sample"->3,"MSE0"->5.096810736147003*^-06,"MSEH"->4.760511686202079*^-07,"ErrorReductionPercent"->90.65982251912919,"GaussianInfoProxyBits"->1.710203112835342|>,​​<|"Sample"->4,"MSE0"->1.073545047250096*^-05,"MSEH"->3.848685021176699*^-06,"ErrorReductionPercent"->64.1497575622451,"GaussianInfoProxyBits"->0.7399726098411225|>,​​<|"Sample"->5,"MSE0"->1.335773612424578*^-05,"MSEH"->4.335079741294992*^-06,"ErrorReductionPercent"->67.54629900626394,"GaussianInfoProxyBits"->0.8117725417544779|>,​​<|"Sample"->6,"MSE0"->1.986341091656799*^-06,"MSEH"->9.238836554259164*^-07,"ErrorReductionPercent"->53.48816679539621,"GaussianInfoProxyBits"->0.5521651459593089|>,​​<|"Sample"->7,"MSE0"->4.144706382177865*^-06,"MSEH"->8.462340801228424*^-07,"ErrorReductionPercent"->79.58277373370456,"GaussianInfoProxyBits"->1.146070604631256|>,​​<|"Sample"->8,"MSE0"->5.171730105424524*^-06,"MSEH"->2.41309304756815*^-06,"ErrorReductionPercent"->53.34070033861387,"GaussianInfoProxyBits"->0.5498817208575052|>,​​<|"Sample"->9,"MSE0"->2.162665986626335*^-06,"MSEH"->1.003454206971431*^-06,"ErrorReductionPercent"->53.60105475479474,"GaussianInfoProxyBits"->0.5539180424699228|>,​​<|"Sample"->10,"MSE0"->4.039934054285609*^-06,"MSEH"->1.684239512814413*^-06,"ErrorReductionPercent"->58.3102226377247,"GaussianInfoProxyBits"->0.6311172136036675|>​​};​​Dataset[verifiedTable]

Scope and limitations

Held-out refers to the next cycle within each sample, not previously unseen tissue donors or laboratories. Exact sign-test p = 0.0009765625 assumes a symmetric null and independent paired sample-level outcomes. Results do not establish causality, biological Markov blankets, or universal dissipation-information equivalence.
AI assistance was used in preparing, checking and presenting this analysis. An archived Wolfram rerun was documented separately. No new external experimental replication is claimed here.