Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,12 @@
create or replace function basics(n) as table (
select n, avg(x), stddev_pop(x), stddev_samp(x)
from (select random() as x from range(0,n))
);
from basics(100)
union all from basics(1000)
union all from basics(10000)
union all from basics(1000000000);
with cte as (select random() as x from range(0,100))
from histogram(cte, x) ;

View file

@ -0,0 +1,10 @@
load("descriptive")$
gen_sample(n) := makelist(random(1.0), n)$
test_samples: map(gen_sample, [100, 1000, 10000])$
map(mean, test_samples);
map(std, test_samples);
histogram(test_samples[1])$
histogram(test_samples[2])$
histogram(test_samples[3])$