9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
163 lines
5.7 KiB
Markdown
163 lines
5.7 KiB
Markdown
---
|
|
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 |
|