cyberosa commited on
Commit
3bc6a67
·
1 Parent(s): 330cbe3

updating the graphs with new weekly data

Browse files
data/all_trades_profitability.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a12ff001752f6ca93c5ebbbf1ba39aa2c9a194d798cd4136c10bb096b8eb5490
3
- size 698837
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a111f63a2c14218a53c3e807716e8430385b97044058fa61c57c412a3cc2a49a
3
+ size 410473
data/closed_markets_div.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d1e7aeecfea8085d6b11fe66ef37ddee2b5f35b88a8503230b829c4b4501d1de
3
- size 52381
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b400305b66d2e88d6f77dc7f1fb45124936d889ef51a1825df98945f88c2c121
3
+ size 23070
notebooks/divergence.ipynb CHANGED
@@ -35,7 +35,7 @@
35
  },
36
  {
37
  "cell_type": "code",
38
- "execution_count": 3,
39
  "metadata": {},
40
  "outputs": [
41
  {
@@ -72,28 +72,40 @@
72
  " </thead>\n",
73
  " <tbody>\n",
74
  " <tr>\n",
75
- " <th>315</th>\n",
76
- " <td>no</td>\n",
77
- " <td>0x29462bf8c8f24772cd6da03878a4aee5c5813474</td>\n",
78
- " <td>1724976000</td>\n",
79
- " <td>pearl</td>\n",
80
- " <td>2024-08-30 02:00:00</td>\n",
81
- " <td>0.9416</td>\n",
82
- " <td>0.0584</td>\n",
83
- " <td>2.840439</td>\n",
84
- " <td>94.16</td>\n",
85
  " </tr>\n",
86
  " <tr>\n",
87
- " <th>323</th>\n",
88
  " <td>yes</td>\n",
89
- " <td>0x0ad9d4edb0a401ec9a5b4f2ccf7942d28c29d4e3</td>\n",
90
- " <td>1724976000</td>\n",
91
  " <td>quickstart</td>\n",
92
- " <td>2024-08-30 02:00:00</td>\n",
93
- " <td>0.0499</td>\n",
94
- " <td>0.9501</td>\n",
95
- " <td>2.997734</td>\n",
96
- " <td>95.01</td>\n",
 
 
 
 
 
 
 
 
 
 
 
 
97
  " </tr>\n",
98
  " </tbody>\n",
99
  "</table>\n",
@@ -101,25 +113,28 @@
101
  ],
102
  "text/plain": [
103
  " currentAnswer id \\\n",
104
- "315 no 0x29462bf8c8f24772cd6da03878a4aee5c5813474 \n",
105
- "323 yes 0x0ad9d4edb0a401ec9a5b4f2ccf7942d28c29d4e3 \n",
 
106
  "\n",
107
  " openingTimestamp market_creator opening_datetime first_outcome_prob \\\n",
108
- "315 1724976000 pearl 2024-08-30 02:00:00 0.9416 \n",
109
- "323 1724976000 quickstart 2024-08-30 02:00:00 0.0499 \n",
 
110
  "\n",
111
  " second_outcome_prob kl_divergence off_by_perc \n",
112
- "315 0.0584 2.840439 94.16 \n",
113
- "323 0.9501 2.997734 95.01 "
 
114
  ]
115
  },
116
- "execution_count": 3,
117
  "metadata": {},
118
  "output_type": "execute_result"
119
  }
120
  ],
121
  "source": [
122
- "div_data.loc[div_data[\"off_by_perc\"]>=90]"
123
  ]
124
  },
125
  {
@@ -243,10 +258,150 @@
243
  },
244
  {
245
  "cell_type": "code",
246
- "execution_count": null,
247
  "metadata": {},
248
- "outputs": [],
249
- "source": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  },
251
  {
252
  "cell_type": "code",
 
35
  },
36
  {
37
  "cell_type": "code",
38
+ "execution_count": 8,
39
  "metadata": {},
40
  "outputs": [
41
  {
 
72
  " </thead>\n",
73
  " <tbody>\n",
74
  " <tr>\n",
75
+ " <th>120</th>\n",
76
+ " <td>yes</td>\n",
77
+ " <td>0x5feab3ad41a2575461b06c5e911d67d3616ee17e</td>\n",
78
+ " <td>1723420800</td>\n",
79
+ " <td>quickstart</td>\n",
80
+ " <td>2024-08-12 02:00:00</td>\n",
81
+ " <td>0.9034</td>\n",
82
+ " <td>0.0966</td>\n",
83
+ " <td>0.101590</td>\n",
84
+ " <td>9.66</td>\n",
85
  " </tr>\n",
86
  " <tr>\n",
87
+ " <th>148</th>\n",
88
  " <td>yes</td>\n",
89
+ " <td>0x99a7e8be86a78cf2096a15887e9add122ff113d2</td>\n",
90
+ " <td>1723593600</td>\n",
91
  " <td>quickstart</td>\n",
92
+ " <td>2024-08-14 02:00:00</td>\n",
93
+ " <td>0.9050</td>\n",
94
+ " <td>0.0950</td>\n",
95
+ " <td>0.099820</td>\n",
96
+ " <td>9.50</td>\n",
97
+ " </tr>\n",
98
+ " <tr>\n",
99
+ " <th>194</th>\n",
100
+ " <td>no</td>\n",
101
+ " <td>0x34acf849dd645b559ddbf09059df39a1d9b10f18</td>\n",
102
+ " <td>1723939200</td>\n",
103
+ " <td>quickstart</td>\n",
104
+ " <td>2024-08-18 02:00:00</td>\n",
105
+ " <td>0.0893</td>\n",
106
+ " <td>0.9107</td>\n",
107
+ " <td>0.093542</td>\n",
108
+ " <td>8.93</td>\n",
109
  " </tr>\n",
110
  " </tbody>\n",
111
  "</table>\n",
 
113
  ],
114
  "text/plain": [
115
  " currentAnswer id \\\n",
116
+ "120 yes 0x5feab3ad41a2575461b06c5e911d67d3616ee17e \n",
117
+ "148 yes 0x99a7e8be86a78cf2096a15887e9add122ff113d2 \n",
118
+ "194 no 0x34acf849dd645b559ddbf09059df39a1d9b10f18 \n",
119
  "\n",
120
  " openingTimestamp market_creator opening_datetime first_outcome_prob \\\n",
121
+ "120 1723420800 quickstart 2024-08-12 02:00:00 0.9034 \n",
122
+ "148 1723593600 quickstart 2024-08-14 02:00:00 0.9050 \n",
123
+ "194 1723939200 quickstart 2024-08-18 02:00:00 0.0893 \n",
124
  "\n",
125
  " second_outcome_prob kl_divergence off_by_perc \n",
126
+ "120 0.0966 0.101590 9.66 \n",
127
+ "148 0.0950 0.099820 9.50 \n",
128
+ "194 0.9107 0.093542 8.93 "
129
  ]
130
  },
131
+ "execution_count": 8,
132
  "metadata": {},
133
  "output_type": "execute_result"
134
  }
135
  ],
136
  "source": [
137
+ "div_data.loc[div_data[\"off_by_perc\"]<=10]"
138
  ]
139
  },
140
  {
 
258
  },
259
  {
260
  "cell_type": "code",
261
+ "execution_count": 7,
262
  "metadata": {},
263
+ "outputs": [
264
+ {
265
+ "data": {
266
+ "text/plain": [
267
+ "array([0.20518085, 0.22002342, 1.19369249, 0.64569124, 0.42663767,\n",
268
+ " 0.57075257, 1.01638735, 0.5982007 , 0.64454751, 0.26958024,\n",
269
+ " 0.83517168, 0.29249363, 1.09481949, 0.22991644, 0.45381537,\n",
270
+ " 0.83263916, 0.87299181, 0.77522529, 0.12908415, 0.84653149,\n",
271
+ " 0.23736926, 0.66281198, 0.5982007 , 1.76960666, 0.52087596,\n",
272
+ " 0.40481532, 0.82485167, 0.1710256 , 0.31937916, 0.35796149,\n",
273
+ " 0.28621648, 0.16960278, 0.65488847, 0.34150488, 0.57057563,\n",
274
+ " 1.38509508, 0.34220866, 1.03310549, 0.68438567, 1.48943512,\n",
275
+ " 0.61971086, 1.15708922, 0.58429278, 0.14560397, 1.24931891,\n",
276
+ " 1.24514208, 1.10352433, 0.25000101, 0.93547355, 0.42801751,\n",
277
+ " 0.13570518, 0.64454751, 2.11361899, 1.06740436, 0.49823851,\n",
278
+ " 0.51835389, 0.3749844 , 0.23521613, 0.49495227, 0.32739357,\n",
279
+ " 1.11596193, 0.23041996, 1.30453006, 0.36744704, 0.84257569,\n",
280
+ " 0.36614825, 0.66281198, 1.20130969, 0.37483891, 1.72484876,\n",
281
+ " 1.16539332, 0.21245092, 0.8672625 , 0.20998056, 0.57412047,\n",
282
+ " 0.16972127, 0.17482969, 0.47449369, 1.12639467, 0.13536164,\n",
283
+ " 0.19820707, 0.52627773, 0.43463649, 0.30693285, 0.49823851,\n",
284
+ " 0.22639884, 0.48288626, 1.52970294, 0.29008496, 0.16936585,\n",
285
+ " 0.37950501, 0.63017238, 0.15221921, 0.34814004, 0.36326806,\n",
286
+ " 0.43866001, 0.43866001, 0.16063835, 0.15864409, 0.3844867 ,\n",
287
+ " 1.82386952, 0.14768827, 0.16322506, 0.23610215, 1.42628337,\n",
288
+ " 0.34686607, 0.53273046, 0.22189433, 0.60147999, 0.70218793,\n",
289
+ " 0.4001791 , 0.2612349 , 1.19964883, 0.74254753, 0.31910394,\n",
290
+ " 0.72918895, 1.37357559, 0.36759146, 0.25592504, 0.90981177,\n",
291
+ " 0.10158986, 0.12715179, 0.21418381, 0.301781 , 0.35069287,\n",
292
+ " 0.33799339, 0.46092497, 0.25967788, 0.22840738, 0.6361999 ,\n",
293
+ " 0.53939658, 0.74633701, 0.331425 , 0.40466543, 1.10292156,\n",
294
+ " 0.25993721, 0.31649315, 0.93216608, 1.71813733, 0.81283202,\n",
295
+ " 0.57839094, 0.28634963, 0.3478568 , 0.23610215, 0.67197295,\n",
296
+ " 0.86014672, 0.65411879, 1.21334997, 0.09982034, 0.17173776,\n",
297
+ " 0.43866001, 0.23319389, 0.97577538, 0.83378951, 0.46187674,\n",
298
+ " 0.59438841, 0.67354065, 0.97259657, 0.50385001, 0.41218765,\n",
299
+ " 1.43338597, 0.76485803, 0.2527011 , 0.1321609 , 0.61046181,\n",
300
+ " 1.03930618, 0.49249467, 0.16146067, 0.11160218, 0.16075578,\n",
301
+ " 0.38816561, 0.56721962, 0.81916402, 0.91854327, 1.7406862 ,\n",
302
+ " 0.77870507, 0.83863549, 1.10745124, 0.99047563, 0.20874767,\n",
303
+ " 0.11428915, 0.56229437, 0.82599309, 1.40120497, 0.33561261,\n",
304
+ " 0.15829258, 0.49823851, 0.5982007 , 1.98050159, 0.8703618 ,\n",
305
+ " 0.24270871, 0.92533148, 0.55216859, 0.3315643 , 0.09354174,\n",
306
+ " 0.15012546, 0.39408016, 1.767262 , 1.08975166, 0.52661631,\n",
307
+ " 0.78372856, 0.66884489, 0.53017835, 0.5186898 , 0.17173776,\n",
308
+ " 0.64207391, 1.39958226, 0.6806259 , 0.28236291, 0.31800383,\n",
309
+ " 0.30218676, 0.57075257, 0.5021963 , 0.26709544, 0.47997316,\n",
310
+ " 1.88190302, 0.21306947, 0.92130327, 0.76528786, 0.40077612,\n",
311
+ " 0.79540141, 0.80855803, 0.29773241, 1.00430261, 1.23580753,\n",
312
+ " 0.81170552, 0.9673209 , 0.60990958, 0.448477 , 0.38639805,\n",
313
+ " 0.52746326, 0.76206863, 0.53802554, 0.22727708, 0.19128158,\n",
314
+ " 0.42205191, 0.29356602, 1.1017171 , 0.59131287, 0.73334437,\n",
315
+ " 1.02443289, 1.41510544, 1.57939379, 0.32185952, 0.58770667,\n",
316
+ " 1.27511083, 1.04782412, 0.17316362, 0.22602269, 0.3400988 ,\n",
317
+ " 0.46124212, 0.78350962, 0.7001718 , 0.42113728, 0.38038233,\n",
318
+ " 1.75446368, 0.82393947, 0.34052042, 0.21294573, 0.1468772 ,\n",
319
+ " 0.28581715, 1.75388582, 0.42205191, 1.09123953, 0.15911297,\n",
320
+ " 0.13673652, 0.67963883, 0.16652695, 0.26905661, 0.5352891 ,\n",
321
+ " 0.17876788, 0.73147229, 0.37483891, 1.67825223, 0.43834994,\n",
322
+ " 0.37062899, 0.31580724, 0.43695578, 0.8672625 , 0.14306238,\n",
323
+ " 0.58788667, 0.60972557, 1.37753286, 0.12069979, 0.13845779,\n",
324
+ " 0.93700377, 0.34743208, 0.12658415, 0.23610215, 0.14421685,\n",
325
+ " 0.56352341, 1.29681935, 0.18248157, 2.14900601, 0.45728486,\n",
326
+ " 0.47658524, 1.09213332, 0.30924625, 0.22064667, 0.14294701,\n",
327
+ " 0.47401165, 0.42587192, 0.76614807, 0.36456312, 0.14629826,\n",
328
+ " 0.80140077, 1.50103204, 0.13478933, 0.75077629, 0.36831384,\n",
329
+ " 0.19759764, 0.39363536, 0.4807815 , 0.34814004, 0.3831656 ,\n",
330
+ " 2.84043939, 0.55112692, 0.20028188, 0.94674994, 0.50236155,\n",
331
+ " 0.3738211 , 0.25000101, 1.25141388, 2.99773428, 0.84793139,\n",
332
+ " 0.16759059, 0.13433171, 0.42510675, 0.69314718, 0.69555007,\n",
333
+ " 0.53290083, 0.46092497, 0.53734073, 0.31320503, 0.67393296,\n",
334
+ " 1.59652169, 0.58950815, 0.22991644, 0.69615169, 1.20932041,\n",
335
+ " 0.17709524, 0.16877374, 0.71764481, 0.2342045 , 0.34206786,\n",
336
+ " 1.6419611 , 0.5519949 , 0.46314719, 0.32365473, 0.16463882,\n",
337
+ " 0.43371027, 0.43417327, 0.1782897 , 0.71192234, 0.37833644,\n",
338
+ " 0.32158362, 0.34347671, 0.18608864, 0.95815494, 0.57075257,\n",
339
+ " 1.28989387, 0.22765371, 0.81238127, 0.38404614, 0.47658524,\n",
340
+ " 0.30734071, 1.81584726, 0.98029606, 0.69314718, 0.66689481,\n",
341
+ " 1.0782216 , 0.20028188, 0.65277329, 0.28701563, 0.69314718,\n",
342
+ " 0.69314718, 0.69314718, 0.69314718, 0.2826282 , 0.3569607 ,\n",
343
+ " 0.18693217, 0.93700377, 0.66009933, 0.33561261, 1.35595916,\n",
344
+ " 0.5808905 , 0.52915933, 0.95295472, 0.3093825 , 0.46601161,\n",
345
+ " 0.57128359, 1.32463498, 0.69314718, 0.69314718, 0.72815279,\n",
346
+ " 0.69314718, 1.51458238, 0.53631439, 0.94623461, 0.7870184 ,\n",
347
+ " 0.95815494, 0.79053953, 0.36701392, 0.35140315, 0.94494744,\n",
348
+ " 0.32379296, 0.69314718, 0.84350506, 0.35738948, 0.62735944,\n",
349
+ " 0.69314718, 0.69314718, 0.62418098, 0.69314718, 0.69314718,\n",
350
+ " 0.60330648, 0.69314718, 1.29062061, 1.15740734, 0.60239282,\n",
351
+ " 0.57252374, 0.95139991, 0.85896567, 0.83263916, 0.69314718,\n",
352
+ " 0.52746326, 0.75395932, 0.57057563, 1.38949949, 0.69314718,\n",
353
+ " 0.98349948, 0.25721753, 1.67450991, 0.23117572, 0.27878841,\n",
354
+ " 0.69314718, 0.69314718, 0.69314718, 0.78679874, 0.34488755,\n",
355
+ " 0.37033931, 0.27984619, 0.29383429, 0.91180083, 0.69314718,\n",
356
+ " 0.69314718, 0.6953496 , 0.67924428, 0.69314718, 0.69314718,\n",
357
+ " 0.6909496 , 0.43479094, 0.69314718, 0.69314718, 0.58536959,\n",
358
+ " 0.8187104 , 0.6953496 , 0.83263916, 0.66904011, 0.69314718,\n",
359
+ " 0.69314718, 0.43155244, 0.85496048, 0.69314718, 0.69314718,\n",
360
+ " 0.69314718, 0.6953496 , 0.37994357, 0.67688021, 0.65027928,\n",
361
+ " 0.63468961, 0.90362133, 0.69314718, 0.90312775, 0.41143288,\n",
362
+ " 0.69314718, 0.91804226, 0.93521874, 0.45744285, 0.69314718,\n",
363
+ " 0.38243241, 0.36528332, 0.69314718, 0.69314718, 0.69314718,\n",
364
+ " 0.69314718, 0.69314718, 0.75502258, 0.69314718, 0.34644177,\n",
365
+ " 0.43216849, 1.2265593 , 0.69314718, 1.30195321, 0.67119001,\n",
366
+ " 0.35524739, 0.69314718, 0.67119001, 0.44613086, 0.71559731,\n",
367
+ " 0.69314718, 0.76314055, 0.26565969, 0.69314718, 0.57075257,\n",
368
+ " 0.86132917, 0.57075257, 0.55025969, 1.25421402, 0.35610368,\n",
369
+ " 0.69314718, 0.69314718, 0.39245017, 0.69314718, 0.54731673,\n",
370
+ " 0.25128586, 1.50688132, 0.31512179, 0.29948478, 0.37687765,\n",
371
+ " 0.4764242 , 0.69314718, 0.95659203, 0.31704223, 0.15712176,\n",
372
+ " 0.18693217, 0.14629826, 0.69314718, 0.29437106, 0.4405225 ,\n",
373
+ " 0.73022619, 1.55211285, 0.2010152 , 0.16699954, 0.8603831 ,\n",
374
+ " 1.83320666, 0.95633178, 0.83471074, 0.26513811, 0.69314718,\n",
375
+ " 1.07704651, 0.5163408 , 0.35197174, 0.69314718, 0.83263916,\n",
376
+ " 0.30979136, 0.92861638, 0.69314718, 0.69314718, 0.27338477,\n",
377
+ " 0.69314718, 0.69314718, 0.69314718, 0.82211756, 0.69314718,\n",
378
+ " 0.69735603, 0.29557984, 0.81215597, 0.36571569, 0.69314718,\n",
379
+ " 1.24132859, 0.69314718, 0.21815601, 0.30584604, 0.28861584,\n",
380
+ " 0.31717954, 0.55216859, 0.29894526, 0.69314718, 0.69856181,\n",
381
+ " 0.69314718, 1.38909829, 0.35496213, 0.69314718, 0.27680808,\n",
382
+ " 0.69314718, 0.69314718, 0.69314718, 0.67119001, 0.69314718,\n",
383
+ " 0.27931716, 0.69314718, 0.69314718, 0.57075257, 0.69314718,\n",
384
+ " 0.49298571, 0.2182804 , 1.05096564, 0.65932563, 1.03704693,\n",
385
+ " 0.57075257, 0.49036962, 0.53597251, 0.4764242 , 0.73459437,\n",
386
+ " 0.50005055, 0.4764242 , 0.69314718, 0.64588199, 0.37965117,\n",
387
+ " 0.5608916 , 0.69314718, 0.68617157, 1.30822283, 0.93547355,\n",
388
+ " 0.69314718, 0.97021907, 0.65027928, 1.09871229, 0.25077172,\n",
389
+ " 0.69314718, 0.69314718, 0.92558378, 0.69314718, 0.57110655,\n",
390
+ " 0.69314718, 0.69314718, 0.69314718, 0.83263916, 0.69314718,\n",
391
+ " 0.69314718, 0.53682743, 0.69314718, 1.33370191, 1.13072234,\n",
392
+ " 0.28090509, 0.72278199, 0.71559731, 0.69314718, 0.86988436,\n",
393
+ " 0.69314718, 0.61766872, 0.33017212, 0.69314718, 0.69314718,\n",
394
+ " 0.69314718])"
395
+ ]
396
+ },
397
+ "execution_count": 7,
398
+ "metadata": {},
399
+ "output_type": "execute_result"
400
+ }
401
+ ],
402
+ "source": [
403
+ "div_data.kl_divergence.values"
404
+ ]
405
  },
406
  {
407
  "cell_type": "code",