Resampling Inference
GX-TXT DEV112 P011-bis
Estimate uncertainty with resampling and check the results using the reproducible settings of the example.
Enable Resampling Inference and choose the data
In Configuration → Modules → Analysis & Services search for Resampling Inference (analysis.statistics.resampling) and enable it. In Analysis select Run / recalculate now when the fields are ready. From New Session → Generate Session… use two standalone Sessions. Statistics 1.0.1 prepares statistics.source with value_V for bootstrap. Descriptive Statistics Student Lab 1.0.0 prepares student.descriptive.source with voltage_V and signed_V for permutations. Both are in the public catalog.
In Dataset → Preview and Canonical table check units and pairings. In the permutations the two measurements are in volts. The field weight of the Statistics Generator is a weight and is not a compatible second sample.

Choose the resampling and the parameters
- Control
- First numeric sample
- Choices and effect
- Bind the Dataset to
primaryand enter the first numeric field,value_Vorvoltage_V.
- Control
- Second numeric sample (permutation only)
- Choices and effect
- For the permutations bind
signed_V. During the bootstrap only the primary field is resampled.
- Control
- Data selection (optional X interval)
- Choices and effect
Nonestarts from the rows of the source. An X selection applies before the analysis of finite values and pairings.
- Control
- Resampling method
- Choices and effect
bootstrapthe default, draws the observations with replacement.permutation_independentreassigns the labels of the two samples, keeping their sizes.permutation_pairedswaps the two values within each pair or, equivalently, changes the sign of the difference.
- Control
- Bootstrap scalar statistic
- Choices and effect
meandefault,medianorsample_sd. The latter is the sample standard deviation. In the permutations the statistic tested is the difference of means, first minus second.
- Control
- Permutation alternative
- Choices and effect
two_sideddefault,greaterorless. Check the direction of the comparison and choose it before interpreting the distribution.
- Control
- Bootstrap confidence level
- Choices and effect
- Initial value
0.95. For the lab set0.9. The interval uses the percentiles of the bootstrap distribution and the coverage is approximate. The level does not produce an interval for the permutation tests.
- Control
- Replicates / permutations
- Choices and effect
- Initial value
1000. Use 200 for the bootstrap test and 250 for the two permutations. Increasing the number reduces Monte Carlo noise at a higher computational cost.
- Control
- Random seed (1 to 2147483646)
- Choices and effect
- Reproducible integer. Initially 1. Use 72 for the bootstrap and 14 for the permutations. Keep method, row order and seed.
- Control
- NaN / Inf policy
- Choices and effect
omitthe default, excludes non-finite values. For the paired permutation it keeps only complete pairs.errorrejects a non-finite input.
- Control
- Output Dataset prefix
- Choices and effect
- Initially
statistics.resampling. Choose distinct prefixes for statistic, seed and study type.

Try a two-sided permutation on selected pairs
In the Descriptive Statistics Student Lab assign voltage_V and signed_V. Choose sel_001, permutation_paired, alternative two_sided, 100 replicates, seed 41 and omit. Nine finite pairs remain. In the Dataset resampling.intervallo.summary the observed value is 1.11111 V with 25 extreme replicates. The p-value is (25+1)/(100+1) ≈ 0.25743. By repeating seed and inputs you can check the sampling. This comparison permutes within pairs according to the specified design.
Read intervals, p-values and replicates
In Run check the source and press Run enabled analyses. The module publishes .summary and .distribution, plus a report. In Dataset use Preview, Metadata, Technical Details / Provenance and Canonical table. The summary distinguishes the computed quantities from the non-applicable ones. The distribution records one row per replicate, without creating an automatic plot.
In the bootstrap of the mean of value_V there are 11 finite values. Mean about 4.54545 V and 90% percentile interval about [1.08182; 7.91364] V. With the same number and seed the median is 2 V with [0; 5] V and the sample standard deviation about 7.11848 V with [3.08924; 9.68090] V. The bootstrap over individual observations assumes representative samples independent of each other.
In the paired study the 11 complete pairs give a mean difference of about 1.92727 V. With 250 permutations, seed 14 and alternative less, 245 replicates are extreme in that direction. The p-value is (245 + 1) / (250 + 1), about 0.98008. In the independent comparison with greater the p-value is about 0.14343. The permutation assumes exchangeability of labels or signs under the null according to the chosen design.


