{"id":"pearson_r","title":"EchoTime reference: Pearson r","family":"native","definition":"echotime","intro_en":"The native report includes signed Pearson correlation as a familiar reference alongside its clipped component scores. It is evaluated after the same resampling and per-channel standardization as the other report terms. This animation reveals centered products on that actual comparison grid and retains negative values instead of interpreting them as positive shape agreement.","intro_zh":"原生报告保留带符号 Pearson 相关作为参照，与截断后的分项并列。其输入经过相同的重采样和逐通道标准化。动画在实际比较网格上展示中心化乘积，并保留负值的含义。","steps_en":["Use the report's resampled, standardized input arrays.","Center the paired observations.","Normalize their product sum by both centered norms.","Keep the signed coefficient in the reference-metric section."],"steps_zh":["使用报告经过重采样和标准化的输入。","对配对观测去均值。","按中心化范数归一化点积。","在参照指标中保留带符号系数。"],"formula":"corr(x,y) after compare_series preprocessing","caveats_en":["EchoTime assigns zero for constant inputs; statistical correlation is undefined in that case.","These are dependence summaries, not causal tests or identity probabilities.","The illustrative report explicitly uses n_points=24; the default is 256."],"caveats_zh":["EchoTime 对常量输入赋零；此时统计相关本身未定义。","这些是依赖关系摘要，不是因果检验或同一性概率。","演示报告显式使用 n_points=24，默认值为 256。"],"sources":[{"label":"EchoTime comparison implementation","url":"https://github.com/ZipengWu365/EchoTime/blob/main/src/echotime/similarity.py"},{"label":"SciPy: correlation","url":"https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.correlation.html"}],"x":[0.0,0.3,0.9,1.8,2.7,2.1,1.5,1.1,1.3,2.0,2.8,3.4,3.0,2.4,2.1,2.5,3.4,4.2,4.4,4.0,3.7,3.9,4.8,5.2],"y":[1.5,2.0519225760215023,2.5029737413368567,2.8847890070498634,3.3269392741386694,2.933060886050363,2.8090394772296827,2.72585888185695,2.7447210175121164,2.9398624371786375,3.3900034277072537,4.0626233874128905,4.107225730147529,3.7653701874961145,3.286091424860995,3.2508751301708068,3.8879044257286575,4.807850340965032,5.3047858081274875,5.010505135042322,4.45690204174836,4.306684421263111,5.058860495657116,5.718268001238006],"input_label":"Deterministic synthetic illustration; sample index is the time axis.","parameters":{"n_points":24,"default_n_points":256,"channels":1,"preprocessing":"compare_series linear resampling followed by per-channel population z-score","demonstration_note":"24 points expose the computation; production default is 256"},"result":{"label":"similarity","value":0.9756415824076949,"detail":""},"frames":[{"phase":0,"caption":"Compare paired observations on the same time grid","panel":{"kind":"scatter","title":"Paired observations: x versus y","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448],"b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712],"marker":2}},{"phase":0,"caption":"Compare paired observations on the same time grid","panel":{"kind":"scatter","title":"Paired observations: x versus y","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868987,0.039409322526747226,-0.3971247116156834,-0.833658745758114,-1.1246814351864012,-0.9791700904722576,-0.4698803839727553],"b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503127,-0.27630724282358066,-0.6501606624163054,-0.767876762594728,-0.8468284161108967,-0.8289252405908301,-0.6437049054498428],"marker":9}},{"phase":0,"caption":"Compare paired observations on the same time grid","panel":{"kind":"scatter","title":"Paired observations: x versus y","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868987,0.039409322526747226,-0.3971247116156834,-0.833658745758114,-1.1246814351864012,-0.9791700904722576,-0.4698803839727553,0.11216499488381873,0.5486990290262495,0.2576763395979624,-0.17885769454446826,-0.3971247116156834,-0.10610202218739644,0.5486990290262495],"b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503127,-0.27630724282358066,-0.6501606624163054,-0.767876762594728,-0.8468284161108967,-0.8289252405908301,-0.6437049054498428,-0.216449301442826,0.42197433292498865,0.4643090708986111,0.13983363002140164,-0.31507836761056185,-0.34850424877965086,0.25613816808647405],"marker":16}},{"phase":0,"caption":"Compare paired observations on the same time grid","panel":{"kind":"scatter","title":"Paired observations: x versus y","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868987,0.039409322526747226,-0.3971247116156834,-0.833658745758114,-1.1246814351864012,-0.9791700904722576,-0.4698803839727553,0.11216499488381873,0.5486990290262495,0.2576763395979624,-0.17885769454446826,-0.3971247116156834,-0.10610202218739644,0.5486990290262495,1.1307444078828237,1.2762557525969673,0.9852330631686801,0.7669660460974649,0.9124773908116083,1.5672784420252541,1.8583011314535414],"b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503127,-0.27630724282358066,-0.6501606624163054,-0.767876762594728,-0.8468284161108967,-0.8289252405908301,-0.6437049054498428,-0.216449301442826,0.42197433292498865,0.4643090708986111,0.13983363002140164,-0.31507836761056185,-0.34850424877965086,0.25613816808647405,1.129313586318283,1.6009846130463108,1.3216653122669242,0.7962076690345238,0.6536271853119654,1.3675622628694208,1.9934451706954148],"marker":23}},{"phase":1,"caption":"Center each vector","panel":{"kind":"lines","title":"Centered coordinates","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448],"a_label":"x","b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712],"b_label":"y"}},{"phase":1,"caption":"Center each vector","panel":{"kind":"lines","title":"Centered coordinates","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868986,0.039409322526747316,-0.3971247116156833,-0.8336587457581139,-1.1246814351864012,-0.9791700904722574,-0.46988038397275517],"a_label":"x","b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503126,-0.2763072428235806,-0.6501606624163053,-0.7678767625947279,-0.8468284161108965,-0.82892524059083,-0.6437049054498427],"b_label":"y"}},{"phase":1,"caption":"Center each vector","panel":{"kind":"lines","title":"Centered coordinates","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868986,0.039409322526747316,-0.3971247116156833,-0.8336587457581139,-1.1246814351864012,-0.9791700904722574,-0.46988038397275517,0.11216499488381883,0.5486990290262496,0.2576763395979625,-0.17885769454446818,-0.3971247116156833,-0.10610202218739634,0.5486990290262496],"a_label":"x","b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503126,-0.2763072428235806,-0.6501606624163053,-0.7678767625947279,-0.8468284161108965,-0.82892524059083,-0.6437049054498427,-0.21644930144282593,0.4219743329249887,0.4643090708986112,0.13983363002140173,-0.3150783676105618,-0.3485042487796508,0.2561381680864741],"b_label":"y"}},{"phase":1,"caption":"Center each vector","panel":{"kind":"lines","title":"Centered coordinates","a":[-1.9249938311141905,-1.7067268140429754,-1.2701927799005448,-0.6153917286868986,0.039409322526747316,-0.3971247116156833,-0.8336587457581139,-1.1246814351864012,-0.9791700904722574,-0.46988038397275517,0.11216499488381883,0.5486990290262496,0.2576763395979625,-0.17885769454446818,-0.3971247116156833,-0.10610202218739634,0.5486990290262496,1.1307444078828237,1.2762557525969673,0.9852330631686802,0.766966046097465,0.9124773908116084,1.5672784420252541,1.8583011314535414],"a_label":"x","b":[-2.010364037206175,-1.4865014729321389,-1.0583819678664712,-0.6959783756503126,-0.2763072428235806,-0.6501606624163053,-0.7678767625947279,-0.8468284161108965,-0.82892524059083,-0.6437049054498427,-0.21644930144282593,0.4219743329249887,0.4643090708986112,0.13983363002140173,-0.3150783676105618,-0.3485042487796508,0.2561381680864741,1.129313586318283,1.6009846130463108,1.3216653122669242,0.7962076690345239,0.6536271853119655,1.3675622628694208,1.9934451706954148],"b_label":"y"}},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":0},"value":0.1612474320798211,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":3},"value":0.34081828177351803,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":6},"value":0.3777954885701242,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":9},"value":0.46390112645971626,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":13},"value":0.47647987700583594,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.0,0.0,0.0,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":16},"value":0.48909009265315745,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.0,0.0,0.0,0.0],"a_label":"contribution","marker":19},"value":0.6816892263524745,"value_label":"partial normalized dot product"},{"phase":2,"caption":"Accumulate normalized products using fixed full-vector norms","panel":{"kind":"bars","title":"Contribution to normalized dot product","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.025444343657995323,0.024850834525708246,0.08930628553010488,0.15435089234141197],"a_label":"contribution","marker":23},"value":0.9756415824076949,"value_label":"partial normalized dot product"},{"phase":3,"caption":"Keep the signed reference coefficient","panel":{"kind":"bars","title":"All normalized coordinate products","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.025444343657995323,0.024850834525708246,0.08930628553010488,0.15435089234141197],"a_label":"contribution","marker":0},"value":0.9756415824076949,"value_label":"final result"},{"phase":3,"caption":"Keep the signed reference coefficient","panel":{"kind":"bars","title":"All normalized coordinate products","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.025444343657995323,0.024850834525708246,0.08930628553010488,0.15435089234141197],"a_label":"contribution","marker":7},"value":0.9756415824076949,"value_label":"final result"},{"phase":3,"caption":"Keep the signed reference coefficient","panel":{"kind":"bars","title":"All normalized coordinate products","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.025444343657995323,0.024850834525708246,0.08930628553010488,0.15435089234141197],"a_label":"contribution","marker":15},"value":0.9756415824076949,"value_label":"final result"},{"phase":3,"caption":"Keep the signed reference coefficient","panel":{"kind":"bars","title":"All normalized coordinate products","a":[0.1612474320798211,0.10571049679031914,0.05601454724837176,0.017845805655006066,-0.00045371171870461566,0.010758119398580705,0.02667279911673008,0.039683841599509585,0.03381911678433586,0.012602679505746589,-0.0010115847828725303,0.009647371114580862,0.004985060909636874,-0.001042096695225502,0.005213558578070192,0.0015407085640175167,0.005855948505233777,0.053206875936478965,0.085136075925816,0.05425618183702216,0.025444343657995323,0.024850834525708246,0.08930628553010488,0.15435089234141197],"a_label":"contribution","marker":23},"value":0.9756415824076949,"value_label":"final result"}],"checks":{"api":"compare_series(..., n_points=24): pearson_r","expected":0.9756415824076949,"observed":0.9756415824076952,"tolerance":1e-11},"animation_steps_en":["Use the report's resampled inputs.","Center paired observations.","Normalize the product sum by centered norms.","Keep the signed Pearson coefficient."],"echotime_status":"EchoTime report component / reference metric","echotime_api":"pearson_r"}
