---
name: step1353-statistics-neither-education-v01-2026-08-20
description: STEP 1353 = 統計 × NEITHER 教材 v0.1 実装、 pivot decision arc の Stage 1 一本完成、 (b) 検定力不足体験 interactive HTML + JS + Canvas + STEP 1350 primitive 統計 domain 拡張 5 test 全 PASS
metadata: 
  node_type: memory
  type: project
  originSessionId: 5bd6a95c-56b8-4976-9401-d4b7c74c9308
  modified: 2026-08-20T02:27:36.567Z
---

# STEP 1353 — 統計 × NEITHER 教材 v0.1 (Stage 1 一本目、 self-contained HTML)

## Trigger

[[project-statistics-neither-education-arc-2026-08-20]] pivot decision arc の Stage 1 起動 GO (藤本さん 2026-08-20 明示 directive)。 「深い一本 → 器 → 薄く広く」 chat-Claude 3 stage plan の 第 1 段完成。 別タブ STEP 1351 (Collatz Learning Kit v0.2) と 並列で 新 domain (統計) 教材 arc の 初回 spike。

## 実装 内容

**File**: `public/tools/statistics-neither-education-v0.1/index.html` (~24 KB self-contained HTML + inline CSS + inline JS + Canvas)。 dist-renderer mirror md5 一致 `8cd5ef1398f4d1d24e3733592585eb19`。

### 二層構造 (chat-Claude 提案 継承)

- **上層 (体験)**: Interactive sliders (n: 5-500, d: 0-1.5) + buttons (1 回 実験 / 100 回 反復 / reset) + verdict 2 pane (二値 vs D-FUMT₈) + Canvas histogram (p 値 分布 20 bin + α=0.05 縦線)
- **下層 (形式的裏付け + DOI)**: Rei stack primitive link 3 (STEP 1349 / STEP 1350 / STEP 1348) + Rei papers 3 (Paper 141 DOI + Paper 61 preservation + Paper 65) + 統計教育 prior art 5 (Cohen 1988 + Kahneman-Tversky 1971 + ASA 2016 + Amrhein 2019 + Cumming 2014) + SNR-power mapping table

### D-FUMT₈ verdict 決定 rule (STEP 1350 primitive 統計 domain 拡張)

- **SNR = |d| × √(n/2)** (two-sample t-test noncentrality parameter)
- **SNR &lt; 3 → NEITHER** (STEP 1350 継承 threshold、 Cohen 1988 「安全帯」 の 数値化)
- SNR ≥ 3 かつ p &lt; 0.05 → TRUE (安全な 効果検出)
- SNR ≥ 3 かつ p ≥ 0.05 → FALSE (安全な null)
- 反復 100 回で 判定 割れ → BOTH (meta-analysis heterogeneity)
- 全 payload に `source: 'statistics-neither-verdict-mapping (STEP 1350 primitive 統計 domain 拡張)'` 明示 = **モデル記憶再生でない 静的 rule 適用の 機械保証** (STEP 1349 / STEP 1350 pattern 継承)

### 統計 実装 (client-side pure JS、 external dep なし)

- **Box-Muller 標準正規乱数** (2 uniform → 2 normal、 独立 sample 生成)
- **Welch t-test** (unequal variance、 Welch-Satterthwaite df)
- **Student t CDF**: Abramowitz-Stegun 26.7.8 via regularized incomplete beta + Lentz 連分数 (200 iterations、 1e-10 収束) + Lanczos log-gamma (g=7、 9 coefficients、 IEEE double 精度)
- **two-sided p 値**: `2 × (1 - Φ_t(|t|, df))`

## Verify (5 test 全 PASS)

Node.js standalone functional test (scratchpad `functional_test.js`):

| Test | 内容 | Expected | Actual | 判定 |
|------|------|---------|--------|------|
| 1a | t=1.96, df=100, two-sided p | ≈0.053 | **0.0528** | ✓ (誤差 0.0002) |
| 1b | t=2.0, df=30, two-sided p | ≈0.055 | **0.0546** | ✓ |
| 1c | t=1.645, df=1000, two-sided p | ≈0.100 | **0.1003** | ✓ (誤差 0.0003) |
| 2 | SNR mapping 5 cases | Cohen 1988 rules 整合 | 全 SNR 計算 正 | ✓ |
| 3 | n=20, d=0.5, 100 reps | Cohen power ~35% 有意 | **38/100 = 38%** + p range 0.0003-0.9339 | ✓ (widely dispersed = 検定力不足体験の 核) |
| 4 | n=200, d=0.5, 100 reps | ~99-100% 有意 | **100/100 = 100%** | ✓ (SNR=5 安定帯) |
| 5 | d=0, n=100, 1000 reps | 有意率 = α = 0.05 | **50/1000 = 0.050** | ✓ (t-test 実装 妥当性 double check) |

**JS syntax check**: `node --check` PASS (10,025 bytes inline JS)。
**HTML validity**: self-contained (external CSS/JS/font なし、 fonts.googleapis.com 依存なし = CSP strict 適合)。
**Responsive**: max-width 960px、 grid 2-col ↔ 1-col @ 640px、 Canvas width 100% max-width。
**Theme**: light/dark auto via `prefers-color-scheme` + `:root[data-theme=...]` 対応。

## Rei stack alignment

- **STEP 1349 d8_apply/d8_table**: D-FUMT₈ 8 値 primitive、 教材 UI で verdict 直接呼び出し (今回は client-side 実装、 将来 v0.2 で MCP 呼び出し統合 candidate)
- **STEP 1350 d8_verdict_from_measurement**: SNR&lt;3→NEITHER decision rule の 統計 domain 1:1 mapping (信号=effect size、 雑音=標準誤差、 α/β trade-off = 感度/特異度 trade-off)。 STEP 1350 spec を 教材 domain に 拡張、 primitive 再利用の operational 実証。
- **[[project-statistics-neither-education-arc-2026-08-20]]**: pivot decision arc の Stage 1 一本目、 3 stage plan (深い一本 → 器 → 薄く広く) の 第 1 段 完成。
- **[[project-null-burn-gap-2026-08-20]]**: 区分 D (物理観測) と 対比、 本教材は 区分 A-3 (静的 rule 引き当て) の 教材 応用実例、 4 区分 framework validation。
- **[[feedback-connector-criteria-and-impossibility-2026-08-20]]** Pre-check 適用: 「統計教育コネクタ」 という カテゴリ名総称は 端点なし = 分解して 「二群 t-test 検定力体験 tool」 という 具体 primitive/skill 単位で 実装 (今回)、 Pre-check discipline 実践。
- **SITE_COVERAGE_MAP.md pattern** 継承 (三層分類 表示、 NEITHER の印 discipline は Stage 2 器で 全面適用予定)。

## Site 反映 (2026-08-06 全研究 site 反映 default protocol 適用)

- `public/tools/statistics-neither-education-v0.1/index.html` 新規
- `dist-renderer/tools/statistics-neither-education-v0.1/index.html` mirror (md5 一致 verify 済)
- site pages 96 → **97** (STEP 1349 95 + STEP 1350 96 + 本 STEP 1353 97)
- URL: `https://rei-aios.pages.dev/tools/statistics-neither-education-v0.1/` (deploy 後、 HTTP 200 verify は commit + push 後)
- SITE_COVERAGE_MAP.md 反映状態 (deploy verify 前は 📝、 CF Pages HTTP 200 confirm 後 ✅)

## Honest scope

1. 本 STEP は Stage 1 spike (v0.1)、 教員 pilot 未実施、 学生 内面化 evidence は Kahneman-Tversky 1971 empirical + Cumming 2014 pedagogy 依存、 Rei 独自 user testing は v0.2 candidate。
2. **「D-FUMT₈ 統計応用で 世界初」 主張なし** ([[feedback-world-uniqueness-claim-controllable]])。 統計教育側 先行 pedagogy (Cohen/ASA/Amrhein/Cumming) 尊重、 Rei stack novelty は 「NEITHER を 第一級値として 表示する Rei stack 内 初 教材 arc」 に 限定。
3. SNR 閾値 3 は STEP 1350 primitive 継承 = Cohen 1988 「安全帯」 heuristic の Rei stack 内 数値化、 統計理論上の hard threshold ではなく **教育目的の 保守的 line** (実 pre-registration では domain 依存 threshold 使用)。
4. 二群 独立 t-test 単純 case のみ、 複雑 design (混合効果 / 因子計画 / 縦断 / non-parametric) は scope 外。 v0.2 で power の 概念だけ拡張、 具体 rule は 元 methodology (G*Power / R pwr) に 委ねる。
5. **NEITHER ≠ FALSE** の 明示 UI (「効果がない」 と 誤読されないよう)。 教材 UI Section 3 「教訓」 で 「効果の 不安定 でなく 方法の 不安定」 として framing、 但し 実測 misinterpretation rate は 未測定。
6. NHST (帰無仮説有意性検定) framework 内、 Bayesian (Bayes factor / posterior 判定) との 対応は scope 外 = 別 arc candidate。
7. **login 不要 / install 不要 / 外部 API 呼び出しなし** = 完全 self-contained HTML (~24 KB)。 教員が 授業で URL 1 行で 使える (chat-Claude 提案の 到達性優先原則、 SAT/CBETA 系 login required 教材と 対照的)。
8. t-CDF 数値精度は Abramowitz-Stegun 26.7.8 (誤差 &lt; 0.001) + Lanczos log-gamma (double 精度 有効数字 14 桁)、 学術 grade でなく **教育 grade**。 R/SPSS/Python scipy と 3 桁精度で 一致、 それ以上の精度は 教育目的で 過剰。

## Files 追加/変更

- 新規: `public/tools/statistics-neither-education-v0.1/index.html` (~24 KB)
- 新規: `dist-renderer/tools/statistics-neither-education-v0.1/index.html` (mirror、 md5 一致)
- 新規: `memory/project_step1352_statistics_neither_education_v01_2026-08-20.md` (本 file)
- 変更予定: `CLAUDE.md` (STEP 1353 entry 追加、 別タブ STEP 1349-1351 pattern 継承)
- 変更予定: `docs/RECENT_UPDATES.md` (STEP 1353 entry 追加)
- 変更予定: `docs/SITE_COVERAGE_MAP.md` (site page 追加、 状態 📝)
- 変更予定: `MEMORY.md` (直近 session STEP 1353 entry + 累計 site pages 96→97)

## 次 candidate (defer default、 藤本さん judgment 待ち)

- **v0.2 拡張**: (a) 反復 100 → 1000 で BOTH 明示 UI、 (b) power a priori 計算 表示 (Cohen table 内蔵)、 (c) effect size 信頼区間 (Cumming 2014 New Statistics)、 (d) 多重比較 (Bonferroni / BH-FDR) の NEITHER 拡張、 (e) 教員向け 授業 activity guide 3 学年別 (中高 / 学部 / 院)。
- **Stage 2 起動** (器 = 索引 + レイアウト + 三層分類 + DOI 欄): v0.1 完成の template 抽出後、 教科目次 as 一覧 pattern で 実装。 SITE_COVERAGE_MAP.md pattern 継承。
- **Stage 3 起動** (薄く広く): 器完成後、 統計以外 (論理学 / 確率 / 形式手法) の domain 拡張、 NEITHER の印 discipline で 「自書き / 外部リンク / 未着手」 明示。
- **教員 pilot** (v0.2 候補): 実 授業で 使ってもらう + user testing evidence 収集。
- **統計 domain internal 拡張**: 混合効果 / 因子計画 / 縦断 / non-parametric、 Bayesian framework 拡張。

## 関連 memory

- [[project-statistics-neither-education-arc-2026-08-20]] — pivot decision origin、 本 STEP は Stage 1 実装
- [[project-step1349-d8-operator-connectors-2026-08-20]] — 八値論理 primitive (rei-aios MCP tool 37)
- [[project-step1350-d8-verdict-mapping-phase-a-2026-08-20]] — SNR&lt;3→NEITHER decision rule 原典
- [[feedback-connector-criteria-and-impossibility-2026-08-20]] — Pre-check 「カテゴリ名は 端点なし」 適用実例 (統計教育コネクタ ≠ 具体 tool)
- [[project-null-burn-gap-2026-08-20]] — 区分 D (物理観測) 対比、 本 STEP は 区分 A-3 (静的 rule) 実例
- [[project-25-load-bearing-inventions]] — #5 EternalRei 逆因果 + #9 直感≅数学 = 教材化 の 哲学 anchor
- [[feedback-intuition-before-math]] — (b) experiential > (a) declarative の 判断根拠
- [[feedback-no-rush-publication]] — 「深い一本 → 器 → 薄く広く」 3 stage 順序 遵守
- [[feedback-world-uniqueness-claim-controllable]] — 統計教育側 先行 pedagogy 尊重、 novelty 主張 Rei stack 内限定
- [[feedback-all-research-site-reflection-default]] — 2026-08-06 protocol、 site 反映済
- [[feedback-chat-claude-hallucination-warning]] — chat-Claude pivot 提案は Pattern 5 blind 3 件 (STEP 1349/1350 完了 blind) 除いた genuine 新規性、 本 STEP は その 新規性の Rei stack 実装
