mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 12:52:37 +00:00
108 lines
34 KiB
MySQL
108 lines
34 KiB
MySQL
|
DROP TABLE IF EXISTS kstest;
|
||
|
|
||
|
CREATE TABLE kstest (left Float64, right Float64) ENGINE = Memory;
|
||
|
|
||
|
INSERT INTO kstest VALUES (0.010268, 0), (0.000167, 0), (0.000167, 0), (0.159258, 1), (0.136278, 1), (0.122389, 1);
|
||
|
|
||
|
SELECT
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).2, 6) ,
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).1, 6)
|
||
|
from kstest;
|
||
|
|
||
|
DROP TABLE IF EXISTS kstest;
|
||
|
|
||
|
CREATE TABLE kstest (left Float64, right Float64) ENGINE = Memory;
|
||
|
|
||
|
INSERT INTO kstest VALUES (14.72789, 0), (9.61661, 0), (13.57615, 0), (3.98392, 0), (11.98889, 0), (10.99422, 0), (5.44792, 0), (20.29346, 0), (7.05926, 0), (9.22732, 0), (12.06847, 0), (13.52612, 0), (8.24597, 0), (9.35245, 0), (10.12297, 0), (15.80624, 0), (13.68613, 0), (10.72729, 0), (5.62078, 0), (6.12229, 0), (6.03801, 0), (8.95585, 0), (24.04613, 0), (9.04757, 0), (2.68263, 0), (15.43935, 0), (2.89423, 0), (4.01423, 0), (4.30568, 0), (11.99948, 0), (8.40574, 0), (10.86642, 0), (9.4266, 0), (-8.12752, 0), (7.91634, 0), (7.3967, 0), (2.26431, 0), (14.20118, 0), (6.68233, 0), (15.46221, 0), (7.88467, 0), (11.20011, 0), (8.92027, 0), (10.27926, 0), (5.14395, 0), (5.62178, 0), (12.84383, 0), (9.98009, 0), (-0.69789, 0), (11.41386, 0), (7.76863, 0), (7.21743, 0), (1.81176, 0), (9.43762, 0), (19.22117, 0), (2.97128, 0), (14.32851, 0), (7.54959, 0), (3.81545, 0), (10.1281, 0), (2.48596, 0), (10.0461, 0), (3.59714, 0), (9.73522, 0), (18.8077, 0), (3.15148, 0), (12.26062, 0), (5.66707, 0), (6.58623, 0), (17.30902, 0), (9.91391, 0), (5.36946, 0), (15.73637, 0), (16.96281, 0), (11.54063, 0), (18.37358, 0), (11.38255, 0), (10.53256, 0), (8.08833, 0), (16.27556, 0), (2.42969, 0), (9.56127, 0), (7.32998, 0), (9.19511, 0), (9.66903, 0), (4.15029, 0), (8.83511, 0), (14.60617, 0), (14.06143, 0), (5.39556, 0), (10.11871, 0), (10.56619, 0), (14.4462, 0), (10.42106, 0), (7.75551, 0), (11.00418, 0), (4.47226, 0), (16.35461, 0), (18.55174, 0), (11.82044, 0), (7.39454, 0), (11.27767, 0), (6.83827, 0), (7.76858, 0), (15.97614, 0), (14.53781, 0), (12.99546, 0), (16.91151, 0), (9.65012, 0), (14.25487, 0), (14.03618, 0), (2.57382, 0), (2.50779, 0), (14.24787, 0), (13.34666, 0), (7.31102, 0), (10.22981, 0), (17.4435, 0), (21.2074, 0), (6.64191, 0), (18.7086, 0), (14.78686, 0), (9.85287, 0), (4.48263, 0), (14.17469, 0), (14.4342, 0), (19.2481, 0), (3.47165, 0), (8.28712, 0), (8.81657, 0), (0.92319, 0), (20.41106, 0), (6.76127, 0), (22.00242, 0), (8.66129, 0), (10.9929, 0), (17.95494, 0), (17.20996, 0), (12.18888, 0), (12.14257, 0), (15.81243, 0), (4.43362, 0), (1.17567, 0), (15.60881, 0), (9.34833, 0), (6.33513, 0), (-0.83095, 0), (12.43268, 0), (6.63207, 0), (11.96877, 0), (14.81029, 0), (21.84876, 0), (3.75896, 0), (6.91307, 0), (13.73015, 0), (8.63753, 0), (15.71679, 0), (1.74565, 0), (9.16895, 0), (5.70685, 0), (5.00117, 0), (13.06888, 0), (7.51204, 0), (15.34885, 0), (5.20264, 0), (8.59043, 0), (6.45619, 0), (14.61979, 0), (11.7075, 0), (14.04901, 0), (4.20525, 0), (15.1733, 0), (3.12934, 0), (8.08049, 0), (15.41273, 0), (16.90751, 0), (5.86893, 0), (7.1086, 0), (4.418, 0), (12.0614, 0), (7.07887, 0), (3.61585, 0), (11.73001, 0), (10.80449, 0), (8.40311, 0), (9.91276, 0), (16.4164, 0), (5.25034, 0), (15.20283, 0), (10.42909, 0), (9.53888, 0), (14.68939, 0), (6.60007, 0), (18.31058, 0), (7.01885, 0), (18.71631, 0), (10.50002, 0), (10.7517, 0), (4.23224, 0), (2.28924, 0), (8.56059, 0), (8.25095, 0), (9.15673, 0), (13.28409, 0), (8.4513, 0), (2.83911, 0), (2.79676, 0), (9.11055, 0), (7.18529, 0), (-4.1258, 0), (5.28306, 0), (6.82757, 0), (10.89035, 0), (5.24822, 0), (11.935, 0), (6.45675, 0), (10.18088, 0), (4.9932, 0), (18.09939, 0), (8.11738, 0), (5.37883, 0), (10.50339, 0), (16.64093, 0), (14.77263, 0), (13.71385, 0), (6.98746, 0), (10.74635, 0), (5.49432, 0), (13.46078, 0), (10.67565, 0), (9.0291, 0), (11.51417, 0), (13.07118, 0), (9.5049, 0), (8.50611, 0), (6.47606, 0), (13.06526, 0), (19.08658, 0), (9.49741, 0), (10.60865, 0), (2.28996, 0), (8.12846, 0), (5.62241, 0), (4.07712, 0), (17.98526, 0), (9.466, 0), (11.38904, 0), (5.91826, 0), (1.52059, 0), (18.79161, 0), (18.20669, 0), (-1.67829, 0), (18.01586, 0), (16.31577, 0), (7.88281, 0), (8.46179, 0), (10.31113, 0), (14.88377, 0), (1.31835, 0), (2.53176, 0), (9.48625, 0), (3.97936, 0), (11.52319, 0), (13.24178, 0), (7.58739, 0), (10.00959, 0), (9.73361, 0), (8.35716, 0), (1.65491, 0), (11.11521, 0), (6.08355, 0), (10.04582, 0), (11.58237, 0), (16.40249, 0), (1.9691, 0), (13.22776, 0), (2.67059, 0), (9.83651, 0), (2.12539, 0), (9.27114, 0), (9.0699, 0), (2.78179, 0), (12.49311, 0), (12
|
||
|
|
||
|
SELECT
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).2, 6) ,
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).1, 6)
|
||
|
from kstest;
|
||
|
|
||
|
DROP TABLE IF EXISTS kstest;
|
||
|
|
||
|
|
||
|
CREATE TABLE kstest (left Float64, right Float64) ENGINE = Memory;
|
||
|
|
||
|
INSERT INTO kstest VALUES (4.82025, 0), (6.13896, 0), (15.20277, 0), (14.15351, 0), (7.21338, 0), (8.55506, 0), (13.80816, 0), (11.28411, 0), (7.4612, 0), (7.43759, 0), (12.9832, 0), (-5.74783, 0), (12.47114, 0), (15.14223, 0), (3.40603, 0), (9.27323, 0), (7.88547, 0), (8.56456, 0), (4.59731, 0), (7.91213, 0), (7.33894, 0), (21.74811, 0), (11.92111, 0), (0.18828, 0), (10.47314, 0), (20.37396, 0), (11.04991, 0), (13.30083, 0), (14.28065, 0), (2.86942, 0), (24.96072, 0), (14.20164, 0), (18.28769, 0), (10.50949, 0), (9.22273, 0), (11.77608, 0), (8.56872, 0), (13.74535, 0), (11.65209, 0), (12.51894, 0), (17.76256, 0), (13.52122, 0), (8.70796, 0), (6.04749, 0), (16.33064, 0), (8.35636, 0), (14.03496, 0), (11.05834, 0), (14.49261, 0), (2.59383, 0), (8.01022, 0), (4.05458, 0), (13.26384, 0), (14.62058, 0), (10.52489, 0), (8.46357, 0), (6.4147, 0), (9.70071, 0), (12.47581, 0), (4.38333, 0), (17.54172, 0), (10.12109, 0), (7.73186, 0), (14.0279, 0), (11.6621, 0), (17.47045, 0), (15.50223, 0), (15.46034, 0), (13.39964, 0), (14.98025, 0), (15.87912, 0), (17.67374, 0), (9.64073, 0), (12.84904, 0), (7.70278, 0), (13.03156, 0), (9.04512, 0), (15.97014, 0), (8.96389, 0), (11.48009, 0), (9.71153, 0), (13.00084, 0), (12.39803, 0), (13.08188, 0), (5.82244, 0), (10.81871, 0), (8.2539, 0), (7.52114, 0), (9.11488, 0), (8.37482, 0), (14.48652, 0), (11.42152, 0), (16.03111, 0), (13.14057, 0), (-2.26351, 0), (15.50394, 0), (14.88603, 0), (13.37257, 0), (11.84026, 0), (7.66558, 0), (6.24584, 0), (3.6312, 0), (2.7018, 0), (5.63656, 0), (5.82643, 0), (10.06745, 0), (-0.5831, 0), (14.84202, 0), (9.5524, 0), (19.71713, 0), (14.23109, 0), (8.69105, 0), (5.33742, 0), (7.30372, 0), (7.93342, 0), (15.20884, 0), (7.53839, 0), (13.45311, 0), (11.04473, 0), (10.76673, 0), (15.44145, 0), (14.06596, 0), (9.14873, 0), (12.88372, 0), (8.74994, 0), (10.53263, 0), (16.16694, 0), (8.37197, 0), (3.43739, 0), (4.72799, 0), (9.08802, 0), (11.2531, 0), (5.16115, 0), (10.20895, 0), (18.70884, 0), (15.88924, 0), (3.38758, 0), (6.46449, 0), (10.21088, 0), (14.08458, 0), (15.74508, 0), (19.31896, 0), (13.19641, 0), (11.95409, 0), (10.70718, 0), (1.05245, 0), (10.04772, 0), (17.01369, 0), (10.2286, 0), (19.58323, 0), (7.02892, 0), (4.16866, 0), (8.94326, 0), (4.99854, 0), (8.88352, 0), (18.65422, 0), (17.32328, 0), (9.33492, 0), (14.94788, 0), (8.05863, 0), (14.6737, 0), (10.93801, 0), (0.54036, 0), (-0.34242, 0), (5.89076, 0), (3.15189, 0), (1.94421, 0), (6.38698, 0), (10.50654, 0), (8.95362, 0), (6.23711, 0), (11.75359, 0), (12.42155, 0), (-1.55472, 0), (4.6688, 0), (10.48087, 0), (11.74615, 0), (9.26822, 0), (7.55517, 0), (12.76005, 0), (16.47102, 0), (11.31297, 0), (14.37437, 0), (2.38799, 0), (6.44577, 0), (5.07471, 0), (11.55123, 0), (7.76795, 0), (10.60116, 0), (14.40885, 0), (11.58158, 0), (8.81648, 0), (12.92299, 0), (11.26939, 0), (17.95014, 0), (2.95002, 0), (17.41959, 0), (11.12455, 0), (8.78541, 0), (14.36413, 0), (12.98554, 0), (12.58505, 0), (15.49789, 0), (11.70999, 0), (0.65596, 0), (11.08202, 0), (14.75752, 0), (6.84385, 0), (9.27245, 0), (13.78243, 0), (17.4863, 0), (4.01777, 0), (11.82861, 0), (13.86551, 0), (6.16591, 0), (8.71589, 0), (16.77195, 0), (17.23243, 0), (-2.12941, 0), (5.66629, 0), (12.45153, 0), (1.63971, 0), (13.84031, 0), (4.6144, 0), (5.26169, 0), (9.27769, 0), (9.14288, 0), (9.71953, 0), (9.38446, 0), (1.64788, 0), (11.72922, 0), (13.68926, 0), (9.42952, 0), (12.05574, 0), (9.09148, 0), (5.32273, 0), (20.25258, 0), (10.14599, 0), (10.82156, 0), (5.75736, 0), (7.13567, 0), (9.29746, 0), (5.1618, 0), (10.076, 0), (21.65669, 0), (13.35486, 0), (6.79957, 0), (8.76243, 0), (14.59294, 0), (16.90609, 0), (10.50337, 0), (-0.07923, 0), (13.51648, 0), (12.0676, 0), (0.86482, 0), (9.03563, 0), (5.38751, 0), (17.16866, 0), (2.78702, 0), (11.15548, 0), (12.30843, 0), (8.04897, 0), (9.95814, 0), (11.29308, 0), (14.13032, 0), (21.05877, 0), (3.57386, 0), (7.96631, 0), (3.30484, 0), (18.61856, 0), (16.35184, 0), (7.65236, 0), (18.02895, 0), (9.79458, 0), (16.7274, 0), (8.84453, 0), (13.05709, 0), (10.91447, 0), (8.40171, 0), (16.95211, 0), (11.82194,
|
||
|
|
||
|
SELECT
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).2, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).2, 6) ,
|
||
|
roundBankers(kolmogorovSmirnovTest(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','auto')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','exact')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('two-sided','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('less','asymp')(left, right).1, 6),
|
||
|
roundBankers(kolmogorovSmirnovTest('greater','asymp')(left, right).1, 6)
|
||
|
from kstest;
|
||
|
|
||
|
DROP TABLE IF EXISTS kstest;
|