The idea is to implement the KS test where we pass a sample and a distribution object, to validate if it belongs or not.
Something like this:
distribution = Distribution::StandardNormal.new
samples = distribution.random(elements: 1_000, seed: 100)
# This should return null hypothesis as true,
# so we assume that the sample belongs to the specified distribution.
StatisticalTest::KSTest.one_group(samples: samples, distribution: distribution)
The idea is to implement the KS test where we pass a sample and a distribution object, to validate if it belongs or not.
Something like this: