refactor(topics): 멀티 에이전트용 지식 재편 — _Common(공통 기본기) + Domain_* 구조
에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게 [공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류. 문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인). - Topic_Programming → Domain_Programming (내부 구조 보존) - Topic_Graphic → Domain_Design - Topic_Business → Domain_Product - Topic_General → Domain_General - _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning), Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing) - 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서) - 빈 폴더 정리 (memory/procedures) - 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
---
|
||||
id: wiki-2026-0508-research-methodology
|
||||
title: Research Methodology
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [Research Methods, Empirical Research, Scientific Method]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [research, science, methodology, statistics, ml-research]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
tech_stack:
|
||||
language: python
|
||||
framework: scientific-method
|
||||
---
|
||||
|
||||
# Research Methodology
|
||||
|
||||
## 매 한 줄
|
||||
> **"매 a result without a method is folklore."**. 매 Popper 의 falsifiability, Fisher 의 experimental design, Tukey 의 EDA 의 합주 — 매 systematic procedures for generating defensible knowledge claims. 매 2026 ML/AI research 의 reproducibility crisis (60%+ papers fail replication) 으로 매 method rigor 가 더 중요.
|
||||
|
||||
## 매 핵심
|
||||
|
||||
### 매 spectrum
|
||||
- **Quantitative**: 매 numeric, statistical inference, causal claims.
|
||||
- **Qualitative**: 매 thematic, interpretivist, descriptive depth.
|
||||
- **Mixed-methods**: 매 sequential or concurrent triangulation.
|
||||
|
||||
### 매 designs
|
||||
- **Experimental**: 매 RCT — random assignment to treatment/control.
|
||||
- **Quasi-experimental**: 매 diff-in-diff, regression discontinuity, synthetic control.
|
||||
- **Observational**: 매 cross-sectional, longitudinal, case-control.
|
||||
- **Computational**: 매 ablation, benchmark, simulation, A/B.
|
||||
|
||||
### 매 quality criteria
|
||||
- **Validity**: 매 construct, internal, external, statistical conclusion.
|
||||
- **Reliability**: 매 repeatable measurement.
|
||||
- **Reproducibility**: 매 same data + code → same result.
|
||||
- **Replicability**: 매 new data, same protocol → consistent result.
|
||||
|
||||
### 매 응용
|
||||
1. ML paper: 매 ablation table + seed-variance + held-out test set.
|
||||
2. Product A/B: 매 power analysis → sample size → MDE.
|
||||
3. UX study: 매 mixed-method (interview + log analytics).
|
||||
4. AI safety eval: 매 capability + propensity + control evaluations.
|
||||
|
||||
## 💻 패턴
|
||||
|
||||
### Pattern 1: Power analysis before experiment
|
||||
```python
|
||||
from statsmodels.stats.power import NormalIndPower
|
||||
|
||||
analysis = NormalIndPower()
|
||||
n = analysis.solve_power(effect_size=0.2, alpha=0.05, power=0.8, ratio=1.0)
|
||||
print(f"매 minimum sample per arm: {int(n)+1}")
|
||||
```
|
||||
|
||||
### Pattern 2: Pre-registration template (YAML)
|
||||
```yaml
|
||||
# 매 preregistration.yaml — 매 commit BEFORE running experiment
|
||||
hypothesis: "매 LLM with chain-of-thought scores ≥ 5pp higher on GSM8K vs no-CoT"
|
||||
primary_outcome: gsm8k_accuracy
|
||||
n_per_arm: 1000
|
||||
conditions: [no_cot, cot]
|
||||
analysis: paired_t_test
|
||||
exclusion_criteria: ["api_error", "max_tokens_truncated"]
|
||||
seeds: [0, 1, 2, 3, 4]
|
||||
```
|
||||
|
||||
### Pattern 3: Reproducible experiment seed control
|
||||
```python
|
||||
import random, numpy as np, torch, os
|
||||
|
||||
def set_all_seeds(s):
|
||||
random.seed(s); np.random.seed(s); torch.manual_seed(s)
|
||||
torch.cuda.manual_seed_all(s)
|
||||
os.environ["PYTHONHASHSEED"] = str(s)
|
||||
torch.backends.cudnn.deterministic = True
|
||||
torch.backends.cudnn.benchmark = False
|
||||
```
|
||||
|
||||
### Pattern 4: Ablation table generation
|
||||
```python
|
||||
import itertools, pandas as pd
|
||||
|
||||
def ablation_runs(components, base_run):
|
||||
rows = []
|
||||
for subset in itertools.combinations(components, len(components)-1):
|
||||
cfg = base_run.copy();
|
||||
removed = [c for c in components if c not in subset][0]
|
||||
cfg["removed"] = removed
|
||||
cfg["score"] = run(cfg)
|
||||
rows.append(cfg)
|
||||
return pd.DataFrame(rows)
|
||||
```
|
||||
|
||||
### Pattern 5: Confidence interval reporting (not just p-values)
|
||||
```python
|
||||
import scipy.stats as st
|
||||
def ci(scores, alpha=0.05):
|
||||
m = np.mean(scores); s = np.std(scores, ddof=1); n = len(scores)
|
||||
h = s / np.sqrt(n) * st.t.ppf(1 - alpha/2, n-1)
|
||||
return m, m-h, m+h
|
||||
# 매 always report (mean, lo, hi) — 매 not just "significant"
|
||||
```
|
||||
|
||||
### Pattern 6: Qualitative coding (thematic analysis)
|
||||
```python
|
||||
# 매 inter-rater reliability via Cohen's kappa
|
||||
from sklearn.metrics import cohen_kappa_score
|
||||
kappa = cohen_kappa_score(coder_a_codes, coder_b_codes)
|
||||
assert kappa > 0.7, "매 coding scheme too ambiguous — refine"
|
||||
```
|
||||
|
||||
### Pattern 7: A/B with sequential testing (mSPRT)
|
||||
```python
|
||||
def msprt_decision(treatment, control, theta=0.01):
|
||||
"""매 mixture sequential probability ratio test — 매 anytime-valid."""
|
||||
# Lindon & Malek 2020 — 매 lets you peek without inflating type-I
|
||||
pass # use external lib like `confseq`
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Design |
|
||||
|---|---|
|
||||
| 매 cause-effect claim | RCT or quasi-experimental |
|
||||
| 매 description / mapping | Observational + descriptive stats |
|
||||
| 매 user "why" | Qualitative interview + thematic |
|
||||
| 매 ML model claim | Ablation + multiple seeds + held-out |
|
||||
| 매 product feature decision | A/B with power analysis + pre-reg |
|
||||
| 매 emerging behavior | Mixed-methods |
|
||||
|
||||
**기본값**: 매 pre-register + multiple seeds + report CIs + share code & data.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Statistics]]
|
||||
- 변형: [[Causal Inference]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 designing experiments, 매 reviewing methodology of papers, 매 drafting pre-registrations.
|
||||
**언제 X**: 매 producing fake citations / fabricating data — 매 catastrophic ethics violation.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **HARKing** (Hypothesizing After Results Known): 매 makes p-values meaningless.
|
||||
- **p-hacking**: 매 trying many tests until significant.
|
||||
- **Single seed reporting**: 매 ML papers — 매 noise dressed as signal.
|
||||
- **Overfitting to test set**: 매 multi-stage benchmarks → 매 leakage.
|
||||
- **No pre-registration**: 매 invites unconscious bias.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Popper 1959, Fisher 1935, Open Science Framework, Pineau et al. 2021 ML reproducibility checklist).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — design spectrum + ML reproducibility focus |
|
||||
Reference in New Issue
Block a user