From 60c4938f3825f0a1253f1e6eb9a55fb330ed9d80 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 16 Jan 2025 14:21:04 -0600 Subject: add HTML version of sampling tool --- sampling/README.org | 32 +++++++++ sampling/sample-html.png | Bin 0 -> 217862 bytes sampling/sample.html | 167 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 199 insertions(+) create mode 100644 sampling/README.org create mode 100644 sampling/sample-html.png create mode 100644 sampling/sample.html (limited to 'sampling') diff --git a/sampling/README.org b/sampling/README.org new file mode 100644 index 0000000..6307ed1 --- /dev/null +++ b/sampling/README.org @@ -0,0 +1,32 @@ +#+title: Sampling Tools + +* =sample.py= + +#+begin_src sh +python ./sample.py +#+end_src + +#+begin_src text +Dataframe size (rows, columns): (100, 9) +Sample size: 5 +Sample: + Index Organization Id ... Industry Number of employees +79 80 cBa7EFe5D05Adaf ... Online Publishing 7805 +97 98 E7df80C60Abd7f9 ... Broadcast Media 236 +3 4 2bFC1Be8a4ce42f ... Automotive 921 +42 43 A2D89Ab9bCcAd4e ... Capital Markets / Hedge Fund / Private Equity 3816 +70 71 32BB9Ff4d939788 ... Wireless 6146 + +[5 rows x 9 columns] +#+end_src + +* =sample.html= + +This is an interactive web page that allows users to submit their population +size, sample size(s), and generate a psuedo-random sample list of numbers to use +when sampling against their population. + +Samples can be re-generated and validated using the seed numbers provided during +the original generation. + +[[sample-html.png]] diff --git a/sampling/sample-html.png b/sampling/sample-html.png new file mode 100644 index 0000000..35ab787 Binary files /dev/null and b/sampling/sample-html.png differ diff --git a/sampling/sample.html b/sampling/sample.html new file mode 100644 index 0000000..5a92ab4 --- /dev/null +++ b/sampling/sample.html @@ -0,0 +1,167 @@ + + + + + + Sampling Tool + + + +

Sampling Tool

+

This sampling tool provides a quick and easy way to generate +psuedo-random samples within a defined range. Simply enter the size of your +population, enter your desired number of samples, and generate!

+

To reproduce and validate a previously-generated sample, please ensure +you have entered the seed value correctly when submitting the form. All +inputs must match the previously-generated sample's inputs to generate the +same output.

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+

* Indicates a required field

+
+
+
+ + + -- cgit v1.2.3-70-g09d2