Sampling by number
🎲 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.
Extract a fixed number of rows: the number is clear and the results facilitate the arrangement of subsequent workload.
How to determine the number of items
Determine according to the amount of subsequent work: the amount that can be checked item by item manually (such as twenty to fifty items) is most practical.
Converted according to the experience ratio: when the total number is hundreds, about 10% will be drawn. When the total number is large, a fixed number of tens to hundreds will be enough.
For statistical purposes, a larger sample size is required, while for spot checks and random inspections, a small amount is enough, and the caliber is different for different purposes.
Two suggestions for use
Suggestion 1: The number of items should not exceed the total number of lines. If it exceeds the total number of lines, the tool will prompt or press All Output.
Suggestion 2: Check the actual number of lines after drawing to confirm that there are no short lines due to empty lines.
Note
Sampling by number will change the sample proportion when the overall size changes. This should be noted when comparing across batches.
If there are blank rows in the data, it is recommended to clean them first, otherwise the blank rows will also occupy the extraction quota.
Verify
Verification method: Count the number of result rows, which should be consistent with the set number.
Check a few more lines to confirm that the extracted content is exactly the same as the original line (not truncated or rewritten).
Blank rows in the data will also occupy the sampling quota. Clean the blank rows before sampling.
📖 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
- How to determine the number of items?
- Depending on the workload of subsequent manual verification, twenty to fifty items are usually the most practical.
- What to do if you are not satisfied with smoking?
- First check whether there are empty rows occupying the quota, or whether the number of rows exceeds the total number of rows.