Skip to content

Commit

Permalink
Fixes switched columns of expected samples in trace sampling statisti…
Browse files Browse the repository at this point in the history
…cal requirement test non-power-of-two case (#4217)
  • Loading branch information
yuanyuanzhao3 authored Sep 30, 2024
1 parent ee9207f commit fbaf846
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions specification/trace/tracestate-probability-sampling-experimental.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,18 +900,18 @@ The following table summarizes the test parameters.

| Test case | Sampling probability | Lower, Upper p-value when sampled | Expect<sub>lower</sub> | Expect<sub>upper</sub> | Expect<sub>unsampled</sub> |
|-----------|----------------------|-----------------------------------|------------------------|------------------------|----------------------------|
| 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:

Expand Down

0 comments on commit fbaf846

Please sign in to comment.