{
  "calculator": "pair-trading-tester",
  "title": "Pair Trading Cointegration Tester",
  "site": "AI Fin Hub",
  "input": {},
  "defaults_used": {
    "a": [
      100,
      98.5874,
      97.8259,
      98.015,
      97.6033,
      97.5598,
      97.4391,
      95.4593,
      96.8625,
      97.6213,
      96.884,
      97.9378,
      96.7864,
      96.052,
      96.7539,
      97.0884,
      96.2998,
      96.8609,
      96.4113,
      94.7817,
      94.0908,
      95.2396,
      94.912,
      95.9782,
      94.1185,
      94.1316,
      95.6987,
      94.2103,
      94.2116,
      95.9806,
      95.3522,
      94.9435,
      93.114,
      94.4138,
      93.5007,
      92.7732,
      93.5529,
      92.4435,
      91.7068,
      91.0294,
      89.8526,
      90.4241,
      89.7977,
      88.3319,
      90.5591,
      91.0151,
      90.6968,
      90.7679,
      89.7283,
      90.0064,
      90.209,
      92.9212,
      92.3561,
      91.9658,
      89.6928,
      89.0712,
      89.7689,
      89.4756,
      89.6975,
      89.6835,
      89.6376,
      90.0946,
      90.1572,
      90.8464,
      93.7497,
      92.1072,
      93.1928,
      94.5939,
      91.9662,
      94.5231,
      95.2861,
      95.7917,
      95.5093,
      94.1203,
      93.5651,
      92.9154,
      94.495,
      94.4734,
      94.3377,
      95.4258
    ],
    "b": [
      151.141,
      149.3602,
      148.5811,
      149.3006,
      149.0083,
      149.3586,
      148.3213,
      145.2459,
      146.8073,
      148.1455,
      147.1322,
      148.4226,
      147.5568,
      146.0558,
      145.4098,
      146.5035,
      146.4691,
      147.5213,
      145.983,
      144.2597,
      142.6992,
      144.0918,
      143.485,
      145.0805,
      142.3363,
      141.9733,
      144.8319,
      143.6638,
      144.3719,
      147.3897,
      146.2313,
      146.8656,
      144.1777,
      145.6877,
      143.6726,
      142.1663,
      144.0035,
      140.4674,
      140.1333,
      139.8269,
      138.2176,
      137.391,
      137.1818,
      134.8946,
      138.3316,
      138.8633,
      138.7863,
      139.4953,
      137.8307,
      138.0143,
      138.1207,
      141.8669,
      140.5081,
      139.9323,
      136.2529,
      135.6546,
      137.3739,
      137.2101,
      138.5398,
      139.4239,
      138.4136,
      138.4121,
      138.646,
      137.7651,
      142.8305,
      140.5458,
      142.8138,
      145.3761,
      141.5616,
      144.592,
      146.166,
      146.9859,
      146.5194,
      144.7299,
      144.0425,
      142.9379,
      144.9803,
      145.411,
      144.2937,
      146.1881
    ],
    "lags": 1,
    "z_window": 30
  },
  "result": {
    "regression": {
      "alpha": -0.7073025197522069,
      "beta": 1.057154381929713,
      "residualStdev": 0.006736172926951111,
      "r2": 0.9505280692548604
    },
    "residuals": [
      0.007446657324323702,
      0.005749686440292834,
      0.003524403132907139,
      0.0003486763848270513,
      -0.0017888270216221969,
      -0.004716929953481497,
      0.0014126971435706182,
      0.003035345318163074,
      0.006324006254089909,
      0.004534587914807986,
      0.00420893695161606,
      0.005795947545810698,
      0.0001546540030767929,
      0.0033466947594389396,
      0.015313754468381013,
      0.010843383008727336,
      0.002935977330938755,
      0.001178460577295759,
      0.007607456948492519,
      0.003114133961981125,
      0.007295908141925267,
      0.009164713234053323,
      0.010180331393513598,
      0.009660978507939788,
      0.010282147267941077,
      0.013120826399682706,
      0.008557631473030014,
      0.0014431777201133755,
      -0.003740799470179468,
      -0.007007898973721893,
      -0.005235121497053186,
      -0.01410619598736318,
      -0.014036591953550115,
      -0.011188090667463513,
      -0.006182169893897971,
      -0.0028513026854533052,
      -0.008056029974279788,
      0.006297718905053706,
      0.0008140270246803638,
      -0.004285985362893818,
      -0.005060374909051646,
      0.007621113050237938,
      0.0022805659036251313,
      0.003596789788566923,
      0.0019001842025900828,
      0.0028673791066102794,
      -0.00004961538565151358,
      -0.004652794861755183,
      -0.003481363538841542,
      -0.0017940655103032555,
      -0.00036032696551924204,
      0.0009714126769830855,
      0.005045566456097106,
      0.0051516808652491974,
      0.008294363449272701,
      0.0059922066554323195,
      0.00048046247374777806,
      -0.001530897983098356,
      -0.009249498843195703,
      -0.016130450154328457,
      -0.008954089967708967,
      -0.0038572788350430542,
      -0.004947652411081194,
      0.00940585775783287,
      0.002691840718480165,
      0.0020633159444924942,
      -0.003142547012386032,
      -0.007018861536548293,
      -0.007081825437600386,
      -0.002050308122733213,
      -0.005456400629013203,
      -0.006077709307462875,
      -0.005669622298390742,
      -0.007328552657623,
      -0.008211897898199538,
      -0.007041840601684335,
      -0.005182803758990495,
      -0.008547297483169736,
      -0.0018304482257125443,
      -0.004151190809777994
    ],
    "adf": {
      "tStat": -3.266792401408294,
      "lags": 1,
      "criticalValues": {
        "1%": -4.040551637080869,
        "5%": -3.415586081525312,
        "10%": -3.099271433267587
      },
      "pValueBand": "< 10%",
      "isStationary5": false
    },
    "halfLife": {
      "halfLifeDays": 2.206887527598093,
      "theta": 0.26954204104165846
    },
    "zscores": [
      0,
      -1,
      -1.2758820835293418,
      -1.4755124290901043,
      -1.4280118053721864,
      -1.5274400607082594,
      -0.07591781708628706,
      0.3131769181103441,
      1.0518898494755242,
      0.5373902171884223,
      0.4228737633224077,
      0.8148784079542998,
      -0.7710473442591438,
      0.16313842344386542,
      2.6269526988289176,
      1.4542066533418179,
      -0.24206515328310138,
      -0.6072849602799222,
      0.8061677350736453,
      -0.21096946290973084,
      0.7359670671254896,
      1.1150036248324124,
      1.2733216893462587,
      1.0993243502651897,
      1.1806560783506288,
      1.6846315928110167,
      0.6717688201190993,
      -0.8654360443987588,
      -1.851081282452767,
      -2.265074545352953,
      -1.747745038448305,
      -2.7947097985644436,
      -2.4072550246949356,
      -1.8371469961639038,
      -1.1311346383498413,
      -0.707231493679066,
      -1.3124055403961141,
      0.5100560105064809,
      -0.1665954739588086,
      -0.7752069889147587,
      -0.8257298272313145,
      0.7561626117016818,
      0.07966573769464547,
      0.24318997514278612,
      0.09167175461104217,
      0.26131188034829056,
      -0.12059534702153873,
      -0.7123323513853999,
      -0.5106256069978132,
      -0.2594163708723295,
      -0.03002901625081923,
      0.19771162196367212,
      0.8260975488494328,
      0.8871515348998369,
      1.391721047158422,
      1.144685255741956,
      0.30415864595875824,
      -0.020568249998389056,
      -1.2712539895354504,
      -2.189869367336298,
      -1.0508963688448216,
      -0.3502178394525365,
      -0.6139755721411777,
      1.731250884375348,
      0.5349182559283938,
      0.39777195230233126,
      -0.5480013047817661,
      -1.158511990923475,
      -1.1002370451731096,
      -0.23685872198666927,
      -0.8304633074226934,
      -0.8806750123295196,
      -0.7573646265080274,
      -0.98606568583023,
      -1.0699381457176165,
      -0.8075000857719415,
      -0.44905779425556824,
      -1.004042115899966,
      0.15315687759494967,
      -0.23615141184196456
    ],
    "signals": {
      "entryZ": 2,
      "exitZ": 0.5,
      "entries": 3,
      "exits": 3,
      "openAtEnd": false
    },
    "verdict": "borderline_reverting",
    "verdictLabel": "Borderline — fast reversion but fails stationarity test"
  },
  "provenance": {
    "run": "https://aifinhub.io/api/run/pair-trading-tester",
    "page": "https://aifinhub.io/pair-trading-tester/",
    "methodology": "https://aifinhub.io/methodology/pair-trading-tester/",
    "contract": "https://aifinhub.io/contracts/pair-trading-tester.json",
    "engine": "https://aifinhub.io/engines/pair-trading-tester.js",
    "engine_sha256": "9372606eeda7cfdb7b3f0e732cda771d3e2a5e62745b8f65444829d966aa7377",
    "build": "9e8a56a16bda662ba90601b49561a2b176e9c379"
  },
  "disclaimer": "Planning estimates only — not financial, tax, or investment advice.",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "cite": "AI Fin Hub, Pair Trading Cointegration Tester (engine 9372606eeda7), https://aifinhub.io/api/run/pair-trading-tester"
}