omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tools / estimation / est6opchar_table2.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # SIMULATION table 2 for est-v6 section 6 (appendix est-v6-appendix-prefreeze.md section 5b). Reads no data file. |
| 18 | # usage: est6opchar_table2.sh <est6opchar binary> [reps] |
| 19 | # Adds to table 1: (d) a forecaster with the measured regime-dependent PIT (case d), a replication of (a) and (b) |
| 20 | # under another seed, and the false-accept rate (PASS) of forecasters whose true bin 0 breaks the 0.07 limit, |
| 21 | # with three runs for comparison. All rows: rho 0.02, boot 1000. |
| 22 | set -eu |
| 23 | B=${1:?usage: est6opchar_table2.sh BIN [reps]} |
| 24 | R=${2:-20000} |
| 25 | row() { "$B" run "$@" --rho 0.02 --reps "$R" --boot 1000 | tail -n 2 | paste -sd' '; } |
| 26 | echo "# (d) regime-dependent PIT (v5 D1 per-level shares), runs 2 and 3" |
| 27 | for w in 0.08 0.12; do for runs in 2 3; do row --case d --w $w --runs $runs; done; done |
| 28 | echo "# replication of (a) and (b) under seed 0xE6A777 (table 1 used 0xE6A001)" |
| 29 | for c in a b; do for runs in 2 3; do row --case $c --w 0.08 --runs $runs --seed 0xE6A777; done; done |
| 30 | echo "# false accept: true bin 0 below the 0.07 limit, runs 2 and 3, w 0.08" |
| 31 | for b0 in 0.070 0.068 0.065 0.060 0.055; do for runs in 2 3; do row --case c --bin0 $b0 --w 0.08 --runs $runs; done; done |