Random sample generation
🎲 Sampling settings
💡 Instructions for use
- Sampling by line number is suitable for "sampling a fixed number of samples"; sampling by proportion is suitable for "sampling a certain proportion of samples", and the proportion is calculated based on the number of sampled rows.
- The shuffle mode retains all rows and only randomly rearranges the order. It is used for preparation before random sorting and random grouping.
- When repetition is prohibited, each row can be sampled at most once, and the result can be used directly as a list; when repetition is allowed, it is equivalent to sampling with replacement, and duplicate rows may appear.
- When retaining the table header, the first row will not participate in sampling, and the results will still start with the table header, making it easy to paste directly back to the spreadsheet software.
- The result area will provide the number of rows, sampling ratio and selected row number to facilitate one-by-one verification with the original data.
- The data is only processed in the browser and is not uploaded or saved; if you need to keep the file, please copy or download the results.
Organize the extraction results directly into a list for easy distribution and recording.
Three uses for sample lists
Purpose 1: Distribution. Send the list to the executive staff and check or visit the list item by item to avoid errors in oral communication.
Use two: keep files. File the list with the sampling criteria so that you can explain later how the samples were obtained.
Purpose three: review. Use the row number to return to the original data and check whether the extraction covers each category.
Two points of processing after generating samples
Processing 1: Save together with the original line number. Only the content is saved without row numbers, making it difficult to locate the original table later.
Process 2: Mark the sampling diameter and time. Indicate whether it is based on the number of bars or proportion, how many were drawn, and when.
Note
If the list contains personal information, pay attention to the compliance of storage and transmission, and desensitize it before distributing it if necessary.
It is best to use the same caliber for sampling from different batches, otherwise the lists will not be comparable.
Verify
Verification method: Randomly check several items in the list and return to the original table according to the row number to check whether the contents are consistent.
Reconfirm that the number of items in the list is consistent with the sampling diameter to avoid discrepancy with the actual number of executions.
The sample list must be saved together with the original row number; it is difficult to locate the original table after only saving the content.
📖 Glossary
- random sampling
- Select a part of the data as a sample according to random rules, and use the sample to reflect the overall situation.
- sample size
- The number of rows extracted. The larger the sample size, the closer it is to the whole, but the processing cost is also higher.
- Sampling proportion
- The sample size is a percentage of the number of rows that can be sampled, often used to draw at a fixed ratio.
- Sampling with replacement
- The row is put back after each draw, so the same row may be drawn repeatedly.
- Sampling without replacement
- The extracted rows will no longer participate in subsequent extraction, and each row will appear at most once in the results.
- sampling bias
- Systematic errors occur when the sample does not represent the whole, for example, only data from a certain time period is taken.
- stratified sampling
- First group the samples by category, and then sample each group separately so that each category is represented in the sample.
- shuffle randomly
- It only rearranges the order of rows without deleting any rows. It is often used in preparation before random sorting and grouping.
- Winning bank number
- The serial number of the selected row in the data is used to check with the original data one by one.
- Reproducibility
- The property of obtaining the same result under the same conditions. Random sampling is not available by default, and the output needs to be saved to reproduce.
🔗 All keywords and tutorials
❓ FAQ
- What to keep in the list?
- Content + original line number + sampling diameter + sampling time.
- What to do if it contains personal information?
- Desensitize before distributing, and pay attention to storage and delivery compliance.