Random Sampling Application help

1 Overview

The Random Sampling Application implements the algorithms defined in Measurement Canada specification S-S-01. The application has been designed to permit single, double and multiple sampling strategies to be employed for such purposes as acceptance sampling, compliance sampling and auditing. All sampling is performed without replacement and requires the sampling units to be uniquely identifiable. Lot sizes up to 35,000 units are permitted. In the event of user input error, the application also identifies the nature of the error and permits correction without restarting the application.

The application solicits various input information from the user to enable the sample(s) to be selected in a manner that facilitates auditing for quality management program purposes. To satisfy legal requirements for applications under Measurement Canada's legislation, all information on the "Results" output page must be captured and retained in the user's quality records system.

Procedures with example output results for each of the three sampling types follow. Note that the sample sizes in the examples have been kept artificially low for illustration purposes.


2 Procedures

2.1 Single sampling

Step 1

  1. Enter the operator identifier (alphanumeric input) and the lot identifier (alphanumeric input).
  2. For "Sampling type", select "Single" from the list.
  3. Click the "Next" button.

Step 2

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Enter the sample size (integer value greater than 0, less than the lot size, and not exceeding 10,000) and the lot size (integer value greater than 1 and not exceeding 35,000).
  3. Select whether the seed should be automatically generated or not (default selection is automatic).
  4. Click the "Next" button.
  5. If "No" was selected in 3., enter the seed value (integer value greater than 0 and less than 2,147 483,648) then click the "Next" button.

Step 3

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Select whether the results should be sorted or not (default selection is sorted).
  3. Click the "Next" button to receive the output.
  4. For a printer-friendly version of the output, scroll to the bottom of the page and click the "Post data only" link.

Example results

  • Operator: John Doe
  • Lot identifier: ABC-2007-01
  • Sampling type: Single
  • Sample size: 6
  • Lot size: 30
  • Date/Time: 21:41:24 EST
  • Seed type: Automatic
  • Seed 1: 250810884
  • Seed 2: 1912961626
  • Sort results: Yes

Random sample for stage 1

  • 1: 5
  • 2: 11
  • 3: 15
  • 4: 18
  • 5: 24
  • 6: 29

2.2 Double sampling

Step 1

  1. Enter the operator identifier (alphanumeric input) and the lot identifier (alphanumeric input).
  2. For "Sampling type", select "Double" from the list.
  3. Click the "Next" button.

Step 2

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Enter the lot size (integer value greater than 1 and not exceeding 35,000).
  3. Select whether the seed should be automatically generated or not (default selection is automatic).
  4. Click the "Next" button.

Step 3

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Enter sample size for stage 1.
  3. Enter sample size for stage 2.
  4. Enter seed value if "no" was selected at step 2.
  5. Click the "Next" button to receive the output.
  6. For a printer-friendly version of the output, scroll to the bottom of the page and click the "Post data only" link.

Example results

  • Operator: Joe Doe
  • Lot identifier: ABC-200702
  • Sampling type: Double
  • Sample size: 12
  • Lot size: 30
  • Date/Time: 18:42:42 EST
  • Seed type: Automatic
  • Seed 1: 509654562
  • Seed 2: 1607865370
  • Sort results: Yes

Random sample for stage 1

  • 1: 6
  • 2: 7
  • 3: 13
  • 4: 16
  • 5: 27
  • 6: 29

Random sample for stage 2

  • 1: 1
  • 2: 2
  • 3: 4
  • 4: 14
  • 5: 24
  • 6: 30

2.3 Multiple sampling

Step 1

  1. Enter the operator identifier (alphanumeric input) and the lot identifier (alphanumeric input).
  2. For "Sampling type", select "Multiple" from the list.
  3. Click the "Next" button.

Step 2

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Enter the number of stages (integer value greater than 0 and not exceeding 20) and the lot size (integer value greater than 1 and not exceeding 35,000).
  3. Select whether the seed should be automatically generated or not (default selection is automatic).
  4. Click the "Next" button.

Step 3

  1. Review the previously entered information and if necessary, click the "Back" button to make corrections.
  2. Enter the sample size for each stage (integer values greater than 0, with the sum not exceeding the lot size).
  3. Enter seed value if "no" was selected at step 2.
  4. Select whether the results should be sorted or not (default selection is sorted).
  5. Click the "Next" button to receive the output.
  6. For a printer-friendly version of the output, scroll to the bottom of the page and click the "Post data only" link.

Example results

  • Operator: John Doe
  • Lot identifier: ABC-2007-03
  • Sampling type: Multiple
  • Number of stages: 3
  • Sample size of combined stages: 6
  • Lot size: 30
  • Date/Time: 21:41:24 EST
  • Seed type: Automatic
  • Seed 1: 250810884
  • Seed 2: 1912961626
  • Sort results: Yes

Random sample for stage 1

  • 1: 11
  • 2: 15
  • 3: 24

Random sample for stage 2

  • 1: 5
  • 2: 18

Random sample for stage 3

  • 1: 29