Click4Ai

553.

Hard

Data Drift Detection

====================

In this problem, you will implement a data drift detection system to identify changes in the distribution of a dataset over time. The system should be able to calculate the Kolmogorov-Smirnov statistic (D) and the p-value associated with it.

Example:

Suppose we have a dataset of house prices and we want to detect any changes in the distribution of prices over time.

Constraints:

The dataset should be split into two parts: the training set and the test set. The Kolmogorov-Smirnov statistic should be calculated over the two sets.

Test Cases

Test Case 1
Input: [1, 2, 3, 4, 5]
Expected: [0.0, 1.0]
Test Case 2
Input: [6, 7, 8, 9, 10]
Expected: [0.0, 1.0]
+ 3 hidden test cases