COMPUTE MINIMUM SAMPLE SIZE¶
Computes the minimum sample size required for each selected column in a dataset, given a desired confidence level, margin of error, and Z-score method. Use this worker when you need to determine how many observations are statistically sufficient before running experiments or analyses.
When to use¶
Classification: process.
Tagged: confidence_interval, doe_planning, margin_of_error, sample_size, statistics, z_score.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Dataset | dataset_1 | dataset | — | Input dataset (tabular) whose columns will be analysed to estimate the minimum sample size; leave unconnected only if all parameters are known a priori. | |
| Columns | columns | scalar | — | One or more column names from dataset_1 for which the minimum sample size is calculated; supports multi-select driven by the connected dataset. | |
| Confidence | confidence | scalar | 95 | Confidence level (%) for the sample-size calculation; choose from 80, 85, 90, 95 (default), or 99 — higher values yield larger required sample sizes. | |
| Margin Of Error | margin_error | scalar | 4 | Acceptable margin of error (%) for the estimate; choose from 2.0, 4.0 (default), 6.0, 8.0, or 10.0 — smaller values require a larger sample size. | |
| Z Score Type | z_score_type | scalar | max | Method used to derive the Z-score: ‘max’ (default) uses the maximum Z-score across selected columns for a conservative estimate, while ‘confidence’ derives the Z-score directly from the specified confidence level. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| dataset_sample_size_output_1 | dataset_sample_size_output_1 | dataset | Output dataset containing the computed minimum sample size for each selected column, along with the confidence level, margin of error, and Z-score used in the calculation. |
Disciplines¶
- data.statistics
- design_exploration.reliability
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=dataset_get_min_sample_size
Auto-generated from transformation schema. Worker id: dataset_get_min_sample_size. Schema hash: 55ff70e02f6f. Hand-curated docs in workerexamples/ override this page when present.