source ("config/plot-setup.m");
readings = [11 12 12 13 14 15];
rng (17, "twister");
indices = randi (numel (readings), numel (readings), 200);
resampled_means = mean (readings(indices), 1);
interval = quantile (resampled_means, [0.05 0.95]);
figure (1); hist (resampled_means, 12);
xlabel ("Resampled mean (C)"); ylabel ("Resample count");
title ("Two hundred bootstrap means"); grid on;
printf ("Illustrative 90%% percentile interval: %.3f to %.3f C\n", interval);
print (gcf, "figures/OCT-09-006.pdf", "-dpdfcairo");
close all;
