From fbaf8468c599d858df515c88bac58d02c9afdb29 Mon Sep 17 00:00:00 2001 From: Yuanyuan Zhao <38882162+yuanyuanzhao3@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:50:43 -0400 Subject: [PATCH] Fixes switched columns of expected samples in trace sampling statistical requirement test non-power-of-two case (#4217) --- ...state-probability-sampling-experimental.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/trace/tracestate-probability-sampling-experimental.md b/specification/trace/tracestate-probability-sampling-experimental.md index 9b6b10d92d8..f5608472aa5 100644 --- a/specification/trace/tracestate-probability-sampling-experimental.md +++ b/specification/trace/tracestate-probability-sampling-experimental.md @@ -900,18 +900,18 @@ The following table summarizes the test parameters. | Test case | Sampling probability | Lower, Upper p-value when sampled | Expectlower | Expectupper | Expectunsampled | |-----------|----------------------|-----------------------------------|------------------------|------------------------|----------------------------| -| 1 | 0.900000 | 0, 1 | 10000 | 80000 | 10000 | -| 2 | 0.600000 | 0, 1 | 40000 | 20000 | 40000 | -| 3 | 0.330000 | 1, 2 | 17000 | 16000 | 67000 | -| 4 | 0.130000 | 2, 3 | 12000 | 1000 | 87000 | -| 5 | 0.100000 | 3, 4 | 2500 | 7500 | 90000 | -| 6 | 0.050000 | 4, 5 | 1250 | 3750 | 95000 | -| 7 | 0.017000 | 5, 6 | 1425 | 275 | 98300 | -| 8 | 0.010000 | 6, 7 | 562.5 | 437.5 | 99000 | -| 9 | 0.005000 | 7, 8 | 281.25 | 218.75 | 99500 | -| 10 | 0.002900 | 8, 9 | 100.625 | 189.375 | 99710 | -| 11 | 0.001000 | 9, 10 | 95.3125 | 4.6875 | 99900 | -| 12 | 0.000500 | 10, 11 | 47.65625 | 2.34375 | 99950 | +| 1 | 0.900000 | 0, 1 | 80000 | 10000 | 10000 | +| 2 | 0.600000 | 0, 1 | 20000 | 40000 | 40000 | +| 3 | 0.330000 | 1, 2 | 16000 | 17000 | 67000 | +| 4 | 0.130000 | 2, 3 | 1000 | 12000 | 87000 | +| 5 | 0.100000 | 3, 4 | 7500 | 2500 | 90000 | +| 6 | 0.050000 | 4, 5 | 3750 | 1250 | 95000 | +| 7 | 0.017000 | 5, 6 | 275 | 1475 | 98300 | +| 8 | 0.010000 | 6, 7 | 437.5 | 562.5 | 99000 | +| 9 | 0.005000 | 7, 8 | 218.75 | 281.25 | 99500 | +| 10 | 0.002900 | 8, 9 | 189.375 | 100.625 | 99710 | +| 11 | 0.001000 | 9, 10 | 4.6875 | 95.3125 | 99900 | +| 12 | 0.000500 | 10, 11 | 2.34375 | 47.65625 | 99950 | The formula for computing Chi-Squared in this case is: