{"id":"independent_stats_distance","title":"Independent-channel basic statistics distance","family":"feature-based","definition":"reference","intro_en":"Extract basic statistics separately in each of two channels, compute one Euclidean distance per channel, then take their arithmetic mean. The displayed input concatenates channels only for visualization; the computation preserves channel boundaries and has no cross-channel dependence term.","intro_zh":"分别从两个通道提取基础统计量，各自计算一个欧氏距离，再取算术平均。图中的输入仅为展示而按通道拼接；计算始终保留通道边界，不包含跨通道依赖项。","steps_en":["Keep corresponding channel identities and units aligned.","Extract basic statistics independently from each channel.","Compute the Euclidean feature distance inside each channel.","Average the two channel distances with equal weights."],"steps_zh":["保持对应通道身份与单位一致。","逐通道独立提取基础统计量。","分别计算每个通道内部的欧氏特征距离。","对两个通道距离等权平均。"],"animation_steps_en":["Keep the two channel identities aligned; display them consecutively.","Extract mean, SD, minimum and maximum separately in each channel.","Compute one Euclidean feature distance per channel.","Average the two distances; cross-channel dependence is not measured."],"formula":"d(X,Y) = mean_c ||phi(X[:,c])-phi(Y[:,c])||_2","caveats_en":["Permuting observations leaves this vector unchanged, even when temporal behavior changes completely.","Features have different scales; this example uses no coordinate weighting. A production scaler must be fitted without test-data leakage.","A metric on these feature vectors can be only a pseudometric on the original series when the representation loses information.","Averaging independent channel distances cannot detect cross-channel timing or dependence changes that preserve each marginal descriptor."],"caveats_zh":["任意重排序列不会改变该向量，即使时间行为发生显著变化。","各坐标尺度不同；本例不加权。实际使用的缩放器应避免测试数据泄漏。","当表示损失信息时，特征空间中的度量在原序列空间上可能只是伪度量。","独立通道距离的平均无法识别保持各通道边缘描述不变的跨通道时序或依赖变化。"],"sources":[{"label":"NumPy: summary-statistic definitions","url":"https://numpy.org/doc/stable/reference/routines.statistics.html"},{"label":"Imported registry: named feature and comparison conventions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/src/echotime/data/ts_similarity_package_v2_registry.csv"},{"label":"Exact illustrative inputs and encoder definitions","url":"https://github.com/ZipengWu365/EchoTime/blob/main/tools/method_animation_data/feature_model_embedding.py"}],"x":[0.0,0.8769216919004693,0.8094744111674236,0.7863961030678929,0.3905255888325767,-0.5769216919004693,-0.6000000000000001,-0.09587051423531628,0.2094744111674235,1.0863961030678926,1.5905255888325764,0.9958705142353173,0.6000000000000002,0.20412948576468337,-0.39052558883257615,0.11360389693210537,0.4,0.15360679774997898,-0.26360679774997897,-0.23360679774997903,0.2436067977499789,0.55,0.3036067977499791,-0.11360679774997892,-0.08360679774997909,0.3936067977499788,0.7,0.4536067977499798,0.03639320225002113,0.06639320225002088,0.5436067977499787,0.85],"y":[-0.2003300858899106,0.185,0.5703300858899106,1.005,1.0003300858899107,0.3250000000000002,-0.35033008588991066,-0.3550000000000001,0.07966991411008931,0.46499999999999997,0.8503300858899105,1.2849999999999995,1.2803300858899114,0.6050000000000002,-0.07033008588991083,-0.07500000000000043,0.45263659640173104,-0.13144121120883534,-0.6444290133512534,-0.34975578305380517,0.3729894112121631,0.552636596401731,-0.03144121120883547,-0.5444290133512534,-0.2497557830538053,0.472989411212163,0.652636596401731,0.06855878879116573,-0.4444290133512534,-0.1497557830538063,0.5729894112121622,0.7526365964017315],"input_label":"Two synthetic channels shown consecutively (samples 0–15 and 16–31)","parameters":{"features":["mean","std_ddof0","min","max"],"coordinate_scaling":"none","channels":2,"channel_weights":[0.5,0.5],"raw_X":[[0.0,0.4],[0.8769216919004693,0.15360679774997898],[0.8094744111674236,-0.26360679774997897],[0.7863961030678929,-0.23360679774997903],[0.3905255888325767,0.2436067977499789],[-0.5769216919004693,0.55],[-0.6000000000000001,0.3036067977499791],[-0.09587051423531628,-0.11360679774997892],[0.2094744111674235,-0.08360679774997909],[1.0863961030678926,0.3936067977499788],[1.5905255888325764,0.7],[0.9958705142353173,0.4536067977499798],[0.6000000000000002,0.03639320225002113],[0.20412948576468337,0.06639320225002088],[-0.39052558883257615,0.5436067977499787],[0.11360389693210537,0.85]],"raw_Y":[[-0.2003300858899106,0.45263659640173104],[0.185,-0.13144121120883534],[0.5703300858899106,-0.6444290133512534],[1.005,-0.34975578305380517],[1.0003300858899107,0.3729894112121631],[0.3250000000000002,0.552636596401731],[-0.35033008588991066,-0.03144121120883547],[-0.3550000000000001,-0.5444290133512534],[0.07966991411008931,-0.2497557830538053],[0.46499999999999997,0.472989411212163],[0.8503300858899105,0.652636596401731],[1.2849999999999995,0.06855878879116573],[1.2803300858899114,-0.4444290133512534],[0.6050000000000002,-0.1497557830538063],[-0.07033008588991083,0.5729894112121622],[-0.07500000000000043,0.7526365964017315]],"display_layout":"channel-major flattening only"},"result":{"label":"distance","value":0.4223467388258093,"detail":"Channel distances 0.3997628 and 0.44493067; arithmetic mean."},"frames":[{"phase":0,"caption":"Channel 1: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 1: Basic statistics","a":[0.3749999999999999],"a_label":"x features","b":[0.4125],"b_label":"y features","labels":["mean"],"marker":0},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 1: Basic statistics","a":[0.3749999999999999,0.6103252215027548],"a_label":"x features","b":[0.4125,0.5393804316064869],"b_label":"y features","labels":["mean","SD"],"marker":1},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 1: Basic statistics","a":[0.3749999999999999,0.6103252215027548,-0.6000000000000001],"a_label":"x features","b":[0.4125,0.5393804316064869,-0.3550000000000001],"b_label":"y features","labels":["mean","SD","min"],"marker":2},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":0,"caption":"Channel 1: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 1: Basic statistics","a":[0.3749999999999999,0.6103252215027548,-0.6000000000000001,1.5905255888325764],"a_label":"x features","b":[0.4125,0.5393804316064869,-0.3550000000000001,1.2849999999999995],"b_label":"y features","labels":["mean","SD","min","max"],"marker":3},"input_highlight":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.0014062500000000067],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.03750000000000009,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.0014062500000000067,0.005033163213425604],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.08024595449881328,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.0014062500000000067,0.005033163213425604,0.060024999999999995],"a_label":"contributions","labels":["mean","SD","min"],"marker":2},"value":0.257806930111325,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 1: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 1 squared feature differences","a":[0.0014062500000000067,0.005033163213425604,0.060024999999999995,0.09334588543149287],"a_label":"contributions","labels":["mean","SD","min","max"],"marker":3},"value":0.3997628029781141,"value_label":"channel 1 distance"},{"phase":1,"caption":"Channel 2: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 2: Basic statistics","a":[0.25],"a_label":"x features","b":[0.08453978727510816],"b_label":"y features","labels":["mean"],"marker":0},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 2: Basic statistics","a":[0.25,0.32171415884290827],"a_label":"x features","b":[0.08453978727510816,0.4485251639440061],"b_label":"y features","labels":["mean","SD"],"marker":1},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 2: Basic statistics","a":[0.25,0.32171415884290827,-0.26360679774997897],"a_label":"x features","b":[0.08453978727510816,0.4485251639440061,-0.6444290133512534],"b_label":"y features","labels":["mean","SD","min"],"marker":2},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":1,"caption":"Channel 2: extract the same stats descriptor independently.","panel":{"kind":"bars","title":"Channel 2: Basic statistics","a":[0.25,0.32171415884290827,-0.26360679774997897,0.85],"a_label":"x features","b":[0.08453978727510816,0.4485251639440061,-0.6444290133512534,0.7526365964017315],"b_label":"y features","labels":["mean","SD","min","max"],"marker":3},"input_highlight":[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.027377081994966457],"a_label":"contributions","labels":["mean"],"marker":0},"value":0.16546021272489184,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.027377081994966457,0.016081031014750658],"a_label":"contributions","labels":["mean","SD"],"marker":1},"value":0.2084660955880287,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.027377081994966457,0.016081031014750658,0.1450255598954635],"a_label":"contributions","labels":["mean","SD","min"],"marker":2},"value":0.43414706368370226,"value_label":"channel 2 distance"},{"phase":2,"caption":"Channel 2: compute its own Euclidean feature distance.","panel":{"kind":"bars","title":"Channel 2 squared feature differences","a":[0.027377081994966457,0.016081031014750658,0.1450255598954635,0.009479632360239314],"a_label":"contributions","labels":["mean","SD","min","max"],"marker":3},"value":0.44493067467350456,"value_label":"channel 2 distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.3997628029781141,0.44493067467350456],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":0},"value":0.4223467388258093,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.3997628029781141,0.44493067467350456],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":1},"value":0.4223467388258093,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.3997628029781141,0.44493067467350456],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":0},"value":0.4223467388258093,"value_label":"mean channel distance"},{"phase":3,"caption":"Average the two completed channel distances; no cross-channel terms are added.","panel":{"kind":"bars","title":"Independent channel distances","a":[0.3997628029781141,0.44493067467350456],"a_label":"channel distance","labels":["channel 1","channel 2"],"marker":1},"value":0.4223467388258093,"value_label":"mean channel distance"}],"input_breaks":[16],"echotime_status":"Possible addition","echotime_api":""}
