File size: 10,881 Bytes
031a2d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
{
  "assets": {
    "spx": {
      "en_active_features": 1,
      "en_total_features": 20,
      "xgb_top_feature": "us_cpi_yoy",
      "en_top_feature": "all_zero",
      "latest_explanation": {
        "asset": "spx",
        "actual_return": -0.043516,
        "elastic_net": {
          "prediction": 0.006114,
          "error": 0.04963,
          "top_drivers": [
            {
              "feature": "us2y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "yield_spread",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us_cpi_yoy",
              "shap_value": -0.0,
              "direction": "bearish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.0,
              "direction": "bearish"
            }
          ]
        },
        "xgboost": {
          "prediction": -0.013752,
          "error": 0.029763,
          "top_drivers": [
            {
              "feature": "gold_return",
              "shap_value": -0.014611,
              "direction": "bearish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.004969,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": -0.004278,
              "direction": "bearish"
            },
            {
              "feature": "vix_level",
              "shap_value": 0.003747,
              "direction": "bullish"
            },
            {
              "feature": "us_cpi_yoy",
              "shap_value": 0.003646,
              "direction": "bullish"
            }
          ]
        },
        "raw_feature_snapshot": {
          "us2y_yield": 3.38,
          "us10y_yield": 3.97,
          "yield_spread": 0.59,
          "us_cpi_yoy": 0.02434,
          "high_yield_spread": 3.12,
          "vix_level": 19.86,
          "spx_vol_3m": 0.011268,
          "eurusd_return": -0.003169,
          "gbpusd_return": -0.015183,
          "spx_return": -0.008706,
          "ndx_return": -0.023455,
          "gold_return": 0.082319,
          "ecb_level": 2025.0,
          "ecb_yoy": 0.000494,
          "regime_confidence": 0.840939,
          "regime_label": "credit_stress"
        }
      }
    },
    "ndx": {
      "en_active_features": 2,
      "en_total_features": 20,
      "xgb_top_feature": "us_cpi_yoy",
      "en_top_feature": "us_cpi_yoy",
      "latest_explanation": {
        "asset": "ndx",
        "actual_return": -0.037847,
        "elastic_net": {
          "prediction": 0.009971,
          "error": 0.047819,
          "top_drivers": [
            {
              "feature": "us_cpi_yoy",
              "shap_value": 0.000353,
              "direction": "bullish"
            },
            {
              "feature": "us2y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "yield_spread",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.0,
              "direction": "bearish"
            }
          ]
        },
        "xgboost": {
          "prediction": 0.017636,
          "error": 0.055483,
          "top_drivers": [
            {
              "feature": "regime_confidence",
              "shap_value": 0.01238,
              "direction": "bullish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.009677,
              "direction": "bearish"
            },
            {
              "feature": "ndx_return",
              "shap_value": 0.007558,
              "direction": "bullish"
            },
            {
              "feature": "us2y_yield",
              "shap_value": -0.007308,
              "direction": "bearish"
            },
            {
              "feature": "vix_level",
              "shap_value": 0.006054,
              "direction": "bullish"
            }
          ]
        },
        "raw_feature_snapshot": {
          "us2y_yield": 3.38,
          "us10y_yield": 3.97,
          "yield_spread": 0.59,
          "us_cpi_yoy": 0.02434,
          "high_yield_spread": 3.12,
          "vix_level": 19.86,
          "spx_vol_3m": 0.011268,
          "eurusd_return": -0.003169,
          "gbpusd_return": -0.015183,
          "spx_return": -0.008706,
          "ndx_return": -0.023455,
          "gold_return": 0.082319,
          "ecb_level": 2025.0,
          "ecb_yoy": 0.000494,
          "regime_confidence": 0.840939,
          "regime_label": "credit_stress"
        }
      }
    },
    "gold": {
      "en_active_features": 1,
      "en_total_features": 20,
      "xgb_top_feature": "us_cpi_yoy",
      "en_top_feature": "all_zero",
      "latest_explanation": {
        "asset": "gold",
        "actual_return": -0.177587,
        "elastic_net": {
          "prediction": 0.006991,
          "error": 0.184577,
          "top_drivers": [
            {
              "feature": "us2y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "yield_spread",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us_cpi_yoy",
              "shap_value": -0.0,
              "direction": "bearish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.0,
              "direction": "bearish"
            }
          ]
        },
        "xgboost": {
          "prediction": 0.019299,
          "error": 0.196886,
          "top_drivers": [
            {
              "feature": "eurusd_return",
              "shap_value": 0.0134,
              "direction": "bullish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.013169,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": 0.005232,
              "direction": "bullish"
            },
            {
              "feature": "spx_vol_3m",
              "shap_value": -0.005168,
              "direction": "bearish"
            },
            {
              "feature": "gbpusd_return",
              "shap_value": 0.004822,
              "direction": "bullish"
            }
          ]
        },
        "raw_feature_snapshot": {
          "us2y_yield": 3.38,
          "us10y_yield": 3.97,
          "yield_spread": 0.59,
          "us_cpi_yoy": 0.02434,
          "high_yield_spread": 3.12,
          "vix_level": 19.86,
          "spx_vol_3m": 0.011268,
          "eurusd_return": -0.003169,
          "gbpusd_return": -0.015183,
          "spx_return": -0.008706,
          "ndx_return": -0.023455,
          "gold_return": 0.082319,
          "ecb_level": 2025.0,
          "ecb_yoy": 0.000494,
          "regime_confidence": 0.840939,
          "regime_label": "credit_stress"
        }
      }
    },
    "btc": {
      "en_active_features": 1,
      "en_total_features": 20,
      "xgb_top_feature": "us10y_yield",
      "en_top_feature": "all_zero",
      "latest_explanation": {
        "asset": "btc",
        "actual_return": 0.045561,
        "elastic_net": {
          "prediction": 0.107783,
          "error": 0.062221,
          "top_drivers": [
            {
              "feature": "us2y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us10y_yield",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "yield_spread",
              "shap_value": 0.0,
              "direction": "bearish"
            },
            {
              "feature": "us_cpi_yoy",
              "shap_value": -0.0,
              "direction": "bearish"
            },
            {
              "feature": "high_yield_spread",
              "shap_value": -0.0,
              "direction": "bearish"
            }
          ]
        },
        "xgboost": {
          "prediction": 0.246855,
          "error": 0.201294,
          "top_drivers": [
            {
              "feature": "us10y_yield",
              "shap_value": 0.326271,
              "direction": "bullish"
            },
            {
              "feature": "gold_return",
              "shap_value": -0.069151,
              "direction": "bearish"
            },
            {
              "feature": "eurusd_return",
              "shap_value": -0.066616,
              "direction": "bearish"
            },
            {
              "feature": "vix_level",
              "shap_value": -0.046455,
              "direction": "bearish"
            },
            {
              "feature": "us_cpi_yoy",
              "shap_value": 0.022658,
              "direction": "bullish"
            }
          ]
        },
        "raw_feature_snapshot": {
          "us2y_yield": 3.38,
          "us10y_yield": 3.97,
          "yield_spread": 0.59,
          "us_cpi_yoy": 0.02434,
          "high_yield_spread": 3.12,
          "vix_level": 19.86,
          "spx_vol_3m": 0.011268,
          "eurusd_return": -0.003169,
          "gbpusd_return": -0.015183,
          "spx_return": -0.008706,
          "ndx_return": -0.023455,
          "gold_return": 0.082319,
          "ecb_level": 2025.0,
          "ecb_yoy": 0.000494,
          "regime_confidence": 0.840939,
          "regime_label": "credit_stress"
        }
      }
    }
  },
  "cross_asset_summary": {
    "top5_universal_drivers": [
      {
        "feature": "us10y_yield",
        "avg_xgb_shap_across_assets": 0.04483575
      },
      {
        "feature": "regime_confidence",
        "avg_xgb_shap_across_assets": 0.022498749999999998
      },
      {
        "feature": "us_cpi_yoy",
        "avg_xgb_shap_across_assets": 0.017874
      },
      {
        "feature": "eurusd_return",
        "avg_xgb_shap_across_assets": 0.01632275
      },
      {
        "feature": "spx_return",
        "avg_xgb_shap_across_assets": 0.0159295
      }
    ],
    "note": "Average XGBoost SHAP importance across SPX, NDX, Gold"
  }
}