표본 크기 설계·등록·재현 연구Sample-size design, preregistration and replication
정밀도·검정력·군집·응답 확보에서 투명한 계획과 계산 재현까지From precision, power, clusters and response attainment to transparent planning and reproducible computation
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 몇 개를 모을지보다 어떤 질문을 얼마나 정확히 답할지 묻는다1. Ask what you need to learn before asking how many records to collect
“100명이면 충분한가요?”라는 질문에는 아직 빠진 정보가 많습니다. 평균을 어느 단위로 얼마나 좁게 추정하려는지, 두 집단에서 어느 크기의 차이를 발견하고 싶은지, 관측이 독립인지 같은 학교·점포 안에서 묶이는지 알아야 합니다. 같은 100이라는 수라도 계획은 달라집니다.
이 장은 원하는 정밀도와 명시한 효과에서 표본 수를 거꾸로 계산합니다. 계산에 넣은 분산·응답률은 미래의 관측 사실이 아니라 설계 가정일 수 있습니다. 계획을 언제 정했는지, 이미 자료를 얼마나 보았는지, 다른 사람이 계산을 다시 실행하려면 무엇이 필요한지도 함께 배웁니다.
“Is one hundred enough?”omits the target, units, desired precision, effect size and dependence structure. A hundred independent units differ from a hundred pupils in one school. A mean-width objective differs from detecting a specified contrast.
We work backward from precision and explicit effects to sample size. Future variance and response rates may be assumptions, not observed facts. We also record when decisions were made, how much data had already been seen, and what another person needs to rerun the computation.
기초Foundations
2. 표적·분석 단위·배정 단위를 먼저 적는다2. Write the target, analysis unit and assignment unit first
국가 균등 평균, 사람의 평균 로그임금, 고객 이탈 확률 차이는 다른 표적입니다. 한 고객을 두 시점에 측정했다고 독립 고객 두 명이 되는 것도 아닙니다. 학교에 프로그램을 배정하고 학생 성적을 측정하면 배정 단위와 관측 단위가 다릅니다.
표본 수 표에는 총 행 수뿐 아니라 독립 추출 단위 수, 집단별 수, 군집 수와 크기, 짝 여부, 가용 결과 수를 적습니다. 계획한 n이 무엇을 세는지 밝히지 않으면 두 집단에서 필요한 “각 군 100”을 “전체 100”으로 오해하기 쉽습니다. 큰 n은 선택·측정·인과 식별의 오류를 자동 고치지 않습니다.
A uniform country mean, a mean log wage and a customer churn-probability contrast are different targets. Two waves on one customer do not create two independent customers. Assigning a school program and measuring pupils separates assignment from observation units.
Record independent units, arm counts, cluster numbers/sizes, pairing and available outcomes. State whether n counts each arm or the total. A larger n does not automatically repair selection, measurement or causal-identification errors.
기초Foundations
3. 정밀도와 검정력은 서로 다른 설계 질문이다3. Precision and power answer different design questions
정밀도 질문은 “평균 주변의 반폭을 0.1 로그 단위 이하로 하고 싶다”처럼 허용 오차를 정합니다. 검정력 질문은 “참 차이가 0.03일 때 정해진 검정이 얼마나 자주 기각하는가”처럼 대안 값을 정합니다. 참 효과를 모르는 현실에서는 중요한 여러 효과와 분산에서 계획을 비교해야 합니다.
검정력 80%는 참 효과가 그 대안이고 모형·설계가 맞을 때의 반복 확률입니다. 관측한 유의 결과가 참일 확률 80%도, 개별 연구가 80%만큼 성공했다는 점수도 아닙니다. 신뢰수준 95%, 응답 수 확보 확률 90%, 검정력 80%의 대상도 각각 다릅니다.
A precision question specifies a margin, such as a log-mean halfwidth at most .1. A power question specifies an alternative, such as a probability difference .03, and asks how often a fixed test rejects. Compare several scientifically relevant effects and variances rather than treating an unknown future effect as observed.
Eighty-percent power is a repeated-law probability at that alternative under the design assumptions. It is not an 80% posterior truth probability or a study-quality score. Confidence coverage, response-count assurance and power refer to distinct events.
기초Foundations
4. 개별 값의 SD와 평균의 SE를 다시 나눈다4. Separate individual SD from the mean standard error
독립·동일분포 결과의 분산이 알려진 σ²<∞라면 표본평균의 분산은 σ²/n, SE는 σ/√n입니다. 평균은 큰 값과 작은 값의 우연한 차이를 함께 평균하므로 개별 결과보다 덜 흔들립니다. 독립이 아닌 자료에서는 공분산 항이 추가될 수 있습니다.
Var(Yˉn)SE(Yˉn)=σ2/n,=σ/n.
n을 네 배로 하면 SE는 절반입니다. SE를 절반으로 만들려면 n을 두 배가 아니라 네 배로 늘려야 합니다. σ와 SE는 Y 단위, 분산은 그 제곱 단위입니다. σ²=0인 법칙은 결과가 거의 확실히 상수인 별도 경우이며, 작은 파일의 표본 SD=0만으로 참 σ²=0을 알 수는 없습니다.
For iid outcomes with known finite variance σ², the mean variance is σ²/n and its SE is σ/√n. Dependence can add covariance terms.
Var(Yˉn)SE(Yˉn)=σ2/n,=σ/n.
Quadrupling n halves the SE. SD/SE have Y’s units; variance has squared units. True variance zero is a separate almost-sure constant law. A pilot sample SD of zero does not establish that law.
기초Foundations
5. 선택한 배수 c와 목표 반폭 h를 정한다5. Choose multiplier c and target halfwidth h
알려진 σ의 정규 모형에서는 평균±cSE 구간을 생각할 수 있습니다. 정규 중앙 95%에 대응하는 정확한 수치 임계값은 약 1.9599639845이고, 계획에서는 1.96을 반올림 배수로 자주 씁니다. 이 실습의 기본 c=1.96=49/25는 정확히 입력한 수이지만 “정확한 95% 임계값”이라고 부르지는 않습니다.
hn=cσ/n.
폭 전체는 2h입니다. “오차 0.1”이라고 적기보다 반폭 0.1인지 전체 폭 0.1인지 명시하세요. 결과가 정규가 아니면 이 배수 구간의 포함률은 별도 근사 조건이 필요합니다. 모든 분포에서 n=30이면 충분하다는 보편 규칙은 없습니다.
With known σin a Gaussian model, consider mean ±cSE. The central 95% normal critical is about 1.9599639845; the rounded planning multiplier 1.96 is common. The lab’s default c=1.96=49/25 is an exact chosen input, not an exactly 95% critical value.
hn=cσ/n.
Full width is 2h. State whether a requested .1 is a halfwidth or total width. Outside Gaussian models, coverage requires appropriate approximation conditions; there is no universal n=30 guarantee for every distribution.
기초Foundations
6. 반폭 식을 풀어 iid 표본 수를 구한다6. Solve the iid halfwidth inequality for sample size
c>0, σ²>0, h>0이고 반폭 cσ/√n을 h 이하로 하려면 양변을 제곱하여 n에 대해 풀 수 있습니다. 모든 양이 음이 아니어서 제곱 부등식의 방향이 안전합니다.
cσ/nc2σ2n≤h,≤nh2,≥c2σ2/h2.
예를 들어 σ=10, c=1.96, h=2이면 연속 계산은 96.04이므로 최소 정수 n은 97입니다. n=96은 기준을 조금 못 채웁니다. 이는 입력 분산과 반폭에 대한 계획이며 실제 결과가 원하는 값이 나온다는 보장은 아닙니다. 양의 분산에서 h=0은 유한 iid n으로 달성할 수 없습니다.
For c>0, σ²>0, h>0, requiring cσ/√n≤h gives
cσ/nc2σ2n≤h,≤nh2,≥c2σ2/h2.
With σ=10, c=1.96, h=2, the continuous requirement 96.04 rounds upward to 97. Ninety-six falls short. This is a design conditional on variance and margin, not a guarantee of desired observations. Positive variance cannot achieve zero iid halfwidth at finite n.
기초Foundations
7. 올림·단위·제곱 배율을 빠뜨리지 않는다7. Keep upward rounding, units and squared scaling straight
표본 수는 정수이므로 조건을 만족하는 최소 정수로 올림합니다. 반폭을 절반으로 줄이면 분모 h²가 1/4이 되어 필요한 연속 n은 네 배입니다. σ를 두 배로 가정해도 분자 σ²가 네 배여서 같은 효과가 있습니다.
단위를 일관되게 환산하면 n은 변하지 않습니다. g에서 kg으로 바꾸면 σ와 h 모두 1/1000배라 σ²/h²는 같습니다. 확률 차이 0.03은 3%p입니다. 0.03 대신 숫자 3을 넣으면서 분산은 확률 단위로 남기면 필요한 n을 10000배 잘못 줄일 수 있습니다.
Round upward to an integer meeting the inequality. Halving h quadruples the continuous n requirement. Doubling the assumed SD also quadruples it.
Consistent unit conversion leaves n unchanged: grams to kilograms scales both σ and h by 1/1000. A probability difference .03 is three percentage points. Substituting 3 while leaving variance in probability units can understate n by a factor of 10000.
기초Foundations
8. 과거 표본 분산은 미래 분산의 알려진 사실이 아니다8. A pilot variance is not known future variance
설계 전에 참 σ²를 모르는 일이 흔합니다. 실제 과거 자료의 표본 분산을 참고값으로 쓸 수 있지만, 미래 대상·측정·개입·선택 과정이 다르면 분산도 달라질 수 있습니다. 참고값의 출처와 분모, 가용 표본 수, 목표 모집단과의 차이를 기록하세요.
한 추정치를 정답처럼 고정하기보다 작은·기준·큰 분산의 시나리오를 비교합니다. 분산이 두 배면 필요한 n도 두 배입니다. SD가 두 배인 경우와 혼동하지 않습니다. 파일럿 분산의 불확실성까지 확률적으로 평균한 assurance 설계는 별도 모형이며, 이 장의 응답 수 assurance와 같은 뜻이 아닙니다.
True future variance is often unknown. An actual pilot sample variance is a reference, not a certified future value. Populations, measurement, interventions and selection may change it. Record source, denominator, available n and transport assumptions.
Compare low/reference/high variance scenarios. Doubling variance doubles required n; doubling SD quadruples it. Bayesian assurance averaging over uncertain design parameters is another model, distinct from this chapter’s response-count assurance.
기초Foundations
9. 유한 프레임을 많이 조사하면 표집 변동이 줄어든다9. Sampling much of a finite frame reduces design variation
고정된 N개 값에서 크기 n의 모든 비복원 부분집합을 같은 확률로 선택하는 SRS를 생각합니다. N≥2에서 프레임의 N−1 분모 분산을 S²라고 쓰면 표본평균의 정확한 설계 분산은 다음과 같습니다.
n=N이면 같은 전체를 항상 조사하므로 표집 분산은 0입니다. 이것이 측정 오류·프레임 누락·다른 모집단으로의 일반화 오류까지 0으로 만든다는 뜻은 아닙니다. N=1의 전수조사는 직접 분산 0으로 처리하며 N−1 분모 분산을 정의하려 하지 않습니다.
In SRS without replacement, every size-nsubset of fixed N values is equally likely. For N≥2, define the N−1 frame variance S². The exact mean design variance is
A census n=N has zero sampling variation for this frame. Measurement, coverage and generalization errors do not thereby vanish. A singleton census is handled directly; its N−1 variance is undefined.
학부 연결 · 선택Undergraduate bridge · optional
10. 비복원 추출의 음의 공분산으로 보정을 유도한다10. Derive the correction from negative without-replacement covariance
N≥2인 프레임에서 순서 있는 비복원 추출값을 Y₁, …, Yn이라 합시다. 각 추출의 분산은 N분모 프레임 분산으로 (N−1)S²/N입니다. 서로 다른 추출 s, t의 공분산은 −S²/N입니다. 한 번 큰 값을 뽑으면 남은 평균이 조금 낮아지는 구조입니다.
A is the sum of centered products over ordered distinct element pairs; C_st is the covariance of two draws without replacement. S² retains its finite-population variance definition with divisor N−1.
The cross-product sum is the negative centered sum of squares because centered values sum to zero. Adding diagonal and off-diagonal terms gives
Var(Yˉ)=Nn2n(N−1)S2−n(n−1)S2=NN−nnS2.
Keep N- and N−1 variance conventions distinct. An exact variance formula does not make a normal interval’s coverage exact.
기초Foundations
11. 유한 프레임의 목표 반폭에서 n을 푼다11. Solve a finite-frame halfwidth requirement
N≥2, S²>0, c>0에서 c²(1−n/N)S²/n≤h²를 풀어 보겠습니다. n, N은 양수이므로 안전하게 양변을 곱할 수 있습니다.
최소 정수로 올림하되 최소 1개, 최대 전수 N개 안에서 읽습니다. N=100, S²=100, c=1.96, h=2이면 최소 n=49입니다. 대응 iid 계획 97보다 작은 것은 상당한 프레임 비중을 조사하기 때문입니다. h=0이면 전수가 필요하고, S²=0인 알려진 상수 프레임은 1개부터 표집 분산 0인 별도 경우입니다.
For N≥2, S²>0, c>0, solve the squared-margin inequality:
Round upward, with at least one unit and at most the census N. For N=100, S²=100, c=1.96, h=2, the minimum is 49 rather than the corresponding iid 97. A large sampling fraction matters. Zero halfwidth with positive frame variance requires a census; known constant frames are a separate zero-variance case.
기초Foundations
12. 실습 A · 반폭·올림·유한 보정과 단위를 확인한다12. Lab A · Check halfwidth, rounding, finite correction and units
입력은 SD가 아니라 분산입니다. 선택 배수 c, 원하는 반폭, 현재 n을 바꾸어 정확한 제곱반폭 부등식과 최소 정수를 확인합니다. iid와 finite-SRS를 바꾸면 후자에서는 N−1 프레임 분산과 프레임 크기를 사용합니다.
양의 분산에서 목표 반폭 0을 넣어 iid의 유한 해 부재와 유한 전수의 차이를 보세요. 알려진 분산 0과 파일럿 추정 0을 같은 사실로 읽지 않습니다. 매우 작은 양의 분산이 화면에서 0처럼 보여도 정확한 제곱 부등식 판정은 별도로 유지합니다.
The input is variance, not SD. Vary multiplier, target halfwidth and current n; inspect the exact squared-margin inequality and minimum integer. Finite-SRS uses the N−1 frame variance and frame size.
Try zero target halfwidth at positive variance to compare no finite iid solution with a finite census. Do not equate a zero pilot estimate with known zero variance. Exact squared comparisons remain distinct from tiny positive values that display as zero.
기초Foundations
13. 검정력 계산에는 대안 효과와 검정 규칙이 필요하다13. Power calculations need an alternative effect and a fixed test
한 평균의 기준 대비 차이 또는 독립 두 군의 평균 차이를 Δ라고 합시다. 각 군 안에서는 iid 정규 표본이고 두 군 사이도 독립이며, 각각 n개와 공통 알려진 분산 v>0을 갖는 모형으로 시작합니다. 한 평균이면 a=1, 균형 두 군의 차이면 a=2라고 쓰면 SE=√(av/n)입니다. 두 군에서 n은 전체가 아니라 각 군 수입니다.
ΔZλ∼N(Δ,av/n),=Δ/av/n∼N(λ,1),=Δ/av/n.
이것은 알려진 분산의 Gaussian 참조입니다. 실제 이진시험의 정확 검정력이나, 분산을 추정한 Welch·t 모형과 같다고 부르지 않습니다. 실습은 통상 계획 범위 0<α<1/2, 목표 검정력 1/2보다 큼을 지원하며 이 입력 범위를 모든 가능한 검정의 수학적 정의역으로 주장하지 않습니다.
Let Δbe a mean difference from a reference or a two-arm mean contrast. Observations are iid Gaussian within each arm, and the two arms are independent, with known common variance v>0. Put a=1 for one mean and a=2 for two balanced arms, each with n observations.
ΔZλ∼N(Δ,av/n),=Δ/av/n∼N(λ,1),=Δ/av/n.
This is a known-variance Gaussian reference, not exact binary-trial power or a fitted-variance t/Welch model. The lab supports conventional planning inputs 0<α<1/2 and target power above 1/2, not the mathematical domain of every possible test.
기초Foundations
14. 한쪽 검정의 대안 확률을 직접 구한다14. Calculate one-sided rejection probability under an alternative
큰 양의 차이를 검정하여 Z>c일 때 기각하고 c=z₁₋α라고 합시다. 대안에서 Z=λ+Z₀, Z₀~N(0, 1)이므로 기각확률을 표준정규 누적으로 바꿀 수 있습니다.
PΔ(Z>c)=P(Z0>c−λ)=1−Φ(c−λ)=Φ(λ−c).
Δ=0이면 크기는 α입니다. 양의 Δ에서 n이 커지면 λ가 커져 검정력이 증가합니다. 반대 방향인 음의 Δ에서 n을 키우면 이 양의 한쪽 검정은 더 잘 기각하는 것이 아니라 오히려 덜 기각합니다. 방향은 결과를 본 뒤 유리한 쪽으로 골라 같은 α를 주장할 수 없습니다.
For an upper-sided test rejecting Z> c, where c=z₁₋α, use Z=λ+Z₀under the alternative, with Z₀~N(0, 1):
PΔ(Z>c)=P(Z0>c−λ)=1−Φ(c−λ)=Φ(λ−c).
At Δ=0 the rejection rate is α. Positive Δgains power with larger n, but a negative effect moves away from this rejection region. Choosing the favorable direction after observing outcomes does not preserve the same error rule.
기초Foundations
15. 양쪽 검정력은 두 꼬리의 합이다15. Two-sided power adds both rejection tails
양쪽 검정은 |Z|>c, c=z₁₋α/₂에서 기각합니다. Δ가 양수이든 음수이든 양쪽 꼬리를 모두 더해야 합니다. 한 꼬리만 계산한 값을 정확 양쪽 검정력이라고 쓰지 않습니다.
Power(Δ)=P(Z>c)+P(Z<−c)=Φ(λ−c)+Φ(−λ−c).
표준정규 대칭성 때문에 이 값은 λ의 부호보다 |λ|에 의존합니다. Δ=0에서는 α이고, 0이 아닌 고정 효과의 |λ|가 커지면 1에 가까워집니다. 유한 n의 수학적 확률과 화면에서 반올림한 0·1도 구분해야 합니다. 실습은 작은 꼬리의 로그 확률을 유지하고 양수 underflow를 정확한 확률 0으로 바꾸지 않습니다.
A two-sided test rejects |Z|> c, c=z₁₋α/₂. Include both tails:
Power(Δ)=P(Z>c)+P(Z<−c)=Φ(λ−c)+Φ(−λ−c).
Symmetry makes power depend on |λ|. It equals α at zero and approaches one for a growing noncentrality magnitude. Finite mathematical probabilities differ from displayed zero/one. Tiny tail logs are retained without treating positive underflow as exact zero.
학부 연결 · 선택Undergraduate bridge · optional
16. 익숙한 z 합 계획식은 어떤 기준을 만족하는가16. What does the familiar sum-of-z planning formula establish?
목표 검정력을 1−β>1/2로 정합니다. 한쪽 양의 검정에서 λ−c≥z₁₋β이면 목표를 만족합니다. 양쪽 검정에서도 양의 방향 꼬리만 목표 이상이면 두 꼬리 합은 목표 이상이므로 같은 형태의 충분한 계획을 얻습니다. a=1 또는 2를 유지합니다.
∣Δ∣n/(av)nplan≥c+z1−β,≥Δ2av(c+z1−β)2.
양쪽에서는 c=z₁₋α/₂, 양의 한쪽에서는 c=z₁₋α입니다. 두 경우 c와 z₁₋β는 양수인 지원 범위를 사용합니다. 양쪽 z 합 계획은 정확 양쪽 검정력 방정식을 푼 최소 n과 일반적으로 같지 않습니다. 버린 반대쪽 꼬리가 양수라 약간 보수적인 계획일 수 있습니다. 최종 올림 n에서 위 두 꼬리 공식도 계산합니다.
Δ=0이면 α보다 큰 목표를 유한 n으로 얻을 수 없습니다. 음의 효과를 양의 한쪽 검정으로 잡으려는 경우도 이 계획식을 Δ²로만 바꾸어 정당화할 수 없습니다. 방향 조건을 먼저 확인합니다.
Choose target 1−β>1/2. For a positive one-sided alternative, λ−c≥z₁₋βmeets the target. For a two-sided test, meeting the target in the favorable tail alone is sufficient for the sum. Keeping a=1 or 2 gives
∣Δ∣n/(av)nplan≥c+z1−β,≥Δ2av(c+z1−β)2.
Use c=z₁₋α/₂for two-sided tests or z₁₋α for a positive upper alternative. Our supported planning range makes both quantiles positive. The two-sided z-sum plan is generally not the exact minimum solving full power; the omitted opposite tail makes it potentially conservative. Evaluate both tails at the rounded plan too.
Zero effects cannot attain a target above α. Squaring a wrong-signed effect does not make an upper-sided design appropriate. Check direction before using the formula.
기초Foundations
17. 최소검출효과는 실제 효과의 존재 경계가 아니다17. A minimum detectable effect is not a boundary of effect existence
n과 분산·검정 규칙을 고정하면 z 합 식을 효과에 대해 풀어 계획 MDE를 쓸 수 있습니다. 알려진 분산 정규 참조에서는 |Δ|plan=(c+z₁₋β)√(av/n)입니다. 이 장의 양쪽 MDE는 같은 충분 계획식에 대응하는 참조입니다.
MDE보다 작은 효과가 존재하지 않는다는 뜻도, 그보다 작은 효과는 절대 유의하지 않다는 뜻도 아닙니다. 실제 기각확률은 효과 크기에 따라 연속적으로 달라집니다. 반대로 더 큰 효과도 유한 표본에서 기각하지 못할 수 있습니다. 효과의 실질적 중요도, 평균 추정의 폭, 검정력의 목표를 따로 정해야 합니다.
Fix n, variance and the test. Solving the z-sum plan for effect gives |Δ|plan=(c+z₁₋β)√(av/n). Our two-sided planning MDE corresponds to that sufficient reference.
Smaller effects can exist and can produce significant results; larger effects can fail to reject. Power varies continuously with effect size. Scientific relevance, estimation precision and detection probability are distinct planning choices.
학부 연결 · 선택Undergraduate bridge · optional
18. 각 군 수와 전체 수·배정 비율을 구분한다18. Separate per-arm size, total size and allocation
균형 두 군에서 각 군 n이면 전체는 2n입니다. 서로 독립인 두 평균의 알려진 분산이 v₁, v₀이면 차이의 분산은 v₁/n₁+v₀/n₀입니다. 두 군의 분산과 관측 비용이 같고 전체 수를 고정하면 균형 배정이 이 분산을 줄이는 선택입니다.
Var(Δ)=n1v1+n0v0.
선택 심화로 두 양의 SD σ₁, σ₀와 같은 단위 비용에서 연속 최적 배정은 n₁/n₀=σ₁/σ₀입니다. 비용이 c₁, c₀>0으로 다르고 예산을 고정하면 비는 σ₁√c₀/(σ₀√c₁)입니다. 정수·최소 군 수·현장 제약을 추가하면 후보를 다시 비교해야 합니다. 실습의 기본 계산은 균형 공통분산 모형이며 이 모든 배정을 자동 최적화하지 않습니다.
Two balanced arms of n each require total 2n. For independent means with known variances v₁, v₀, the contrast variance is
Var(Δ)=n1v1+n0v0.
With equal positive variances and unit costs, fixed-total allocation is balanced. Optionally, positive unequal SDs give continuous optimal ratio n₁/n₀=σ₁/σ₀at equal cost. At fixed budget with costs c₁, c₀>0, the ratio becomes σ₁√c₀/(σ₀√c₁). Integer and field constraints need separate checks. The lab uses a balanced common-variance reference, not an automatic optimizer for every allocation.
기초Foundations
19. 실습 B · 대안·SE·방향·두 꼬리와 계획 n을 본다19. Lab B · Inspect alternatives, SE, direction, tails and planned n
현재 각 군 n, 효과 Δ, 공통 분산 v, α, 목표 검정력을 정합니다. 한 평균 또는 균형 두 군을 고르고 한쪽·양쪽을 비교하세요. 현재 SE와 비중심값 λ, 기각확률, 연속 z 합 계획·올림 각 군/전체 n을 확인합니다.
효과 0과 음의 한쪽 효과도 넣어 불가능한 목표를 확인하세요. 화면의 정규 참조 검정력은 실제 이진시험의 정확 검정력도, 과거 결과가 참일 확률도 아닙니다. α와 목표가 지원 범위를 벗어나면 수학적 미존재라고 부르지 않고 실습 입력 범위를 알립니다.
Choose current per-arm n, effect Δ, common variance v, α and target power. Compare one mean with balanced two arms, and upper-sided with two-sided tests. Inspect SE, noncentrality, power and continuous/rounded z-sum plans.
Try zero or wrong-signed upper alternatives. The Gaussian reference is neither exact binary-trial power nor a posterior truth probability. Unsupported α/target inputs are calculation-scope limits, not declarations of mathematical nonexistence.
기초Foundations
20. 같은 군집의 기록 수는 독립 군집 수가 아니다20. Records inside clusters are not independent cluster counts
학교·마을·점포처럼 같은 환경을 공유하는 단위의 결과는 함께 움직일 수 있습니다. 학생 200명을 학교 2곳에서 조사하는 계획과 20곳에서 10명씩 조사하는 계획은 같은 200행이어도 다른 변동을 가집니다. 배정도 학교 단위라면 배정받은 독립 군집 수가 특히 중요합니다.
간단한 계획 모형에서 군집 C개는 서로 독립, 각 군집 크기는 m, 각 결과의 공통 분산은 v>0, 같은 군집 내 서로 다른 두 결과의 공분산은 ρv라고 둡니다. 실습은 통상적인 비음수 ICC 0≤ρ≤1을 지원합니다. 이것을 가능한 모든 상관구조의 전체 수학적 범위라고 주장하지는 않습니다.
School, village or establishment members can move together. Two schools with 100 pupils each differ from twenty schools with ten each, despite the same 200 rows. Cluster-level assignment also makes the number of independent assigned clusters important.
Our simple planning model has C independent equal-size clusters, m members each, common outcome variance v>0 and within-cluster covariance ρv. The lab supports the conventional nonnegative ICC range 0≤ρ≤1, not every mathematically possible correlation structure.
학부 연결 · 선택Undergraduate bridge · optional
21. 설계효과 1+(m−1)ρ를 공분산 합으로 유도한다21. Derive the design effect by summing covariances
총 Cm개의 평균에서 대각 분산항의 합은 Cmv이고, 같은 군집의 순서 있는 비대각 공분산항의 합은 Cm(m−1)ρv입니다. 다른 군집 사이 공분산은 독립 가정에서 0입니다.
m=10, ρ=0.1이면 DE=1.9입니다. 총 200행의 평균 분산은 독립 200개보다 1.9배라 분산 등가 수 200/1.9≈105.26을 쓸 수 있습니다. 그러나 실제 독립 105.26명이나 자유도 104.26을 새로 얻은 것이 아닙니다. 이 단순 모형의 분산 비교값입니다.
The diagonal variance contributions sum to Cmv, and the ordered within-cluster covariance contributions sum to Cm(m−1)ρv. Cross-cluster covariances vanish under independence.
For m=10, ρ=.1, DE=1.9. Two hundred rows have variance-equivalent size 200/1.9≈105.26. This is neither an actual independent headcount nor an automatic degrees-of-freedom formula.
기초Foundations
22. 군집 수·군집 크기·비용을 따로 비교한다22. Compare cluster count, size and cost separately
ρ=1이면 군집 안의 결과가 이 분산 구조에서 완전히 함께 움직여 평균 분산은 v/C입니다. m만 늘려도 독립 군집 정보를 늘리지 못합니다. ρ=0이면 분산식의 DE는 1이지만, 공분산 0만으로 모든 변수의 독립성을 일반적으로 결론낼 수는 없습니다. m=1이면 비교할 군집 내 쌍이 없어 ICC 입력은 분산식에 영향을 주지 않습니다.
군집 하나를 여는 비용 cC와 기록 한 개의 비용 cU를 가정하면 총비용은 C(cC+mcU)입니다. 비용·변동·현장 제약을 함께 비교해야 합니다. 더 많은 군집이 유리한 모형에서도 이동·고정 비용 때문에 단순히 C만 최대화하는 것이 최적 계획은 아닐 수 있습니다. 불균형 군집·탈락 뒤 크기 변화는 같은 DE 식을 자동 유지하지 않습니다.
At ρ=1, the mean variance becomes v/C; adding members does not add independent cluster information. At ρ=0, DE=1 for variance, but zero covariance does not generally imply full independence. With m=1 there are no within-cluster pairs and the ICC input is unused by the variance formula.
Chosen opening cost cC per cluster and member cost cU give total C(cC+mcU). Compare costs, variation and field constraints. Unequal sizes and post-dropout changes require further design calculations.
기초Foundations
23. 기대 응답 수를 채우는 초청 수는 보장이 아니다23. Invitations that meet an expected count do not guarantee the count
각 초청에 독립적으로 같은 확률 r로 응답한다고 가정하면 I명 초청의 응답 수 K는 Binomial(I, r)입니다. 기대값은 Ir입니다. 필요한 가용 수 k를 기대값으로만 넘으려면 I≥k/r를 최소 정수로 올립니다. r은 미래 설계 가정이며 과거 비율이 자동으로 참이 되는 것은 아닙니다.
E[K]=IrIexpected=⌈k/r⌉r>0
예를 들어 k=3, r=1/2이면 기대 기준은 I=6입니다. 그러나 K≥3일 확률은 42/64=0.65625일 뿐입니다. 평균이 목표에 닿았다는 것과 높은 확률로 목표를 확보했다는 것은 다릅니다. 응답자가 많아도 그 결과의 선택 편향이 해결됐다는 뜻도 아닙니다.
Assume independent common response probability r for I invitations. Then K~Binomial(I, r) with mean Ir. An expected-count target kuses
E[K]=IrIexpected=⌈k/r⌉r>0
For k=3, r=1/2, the expected-count plan is six invitations, but P(K≥3)=42/64=.65625. Meeting an expectation differs from high-probability attainment. More respondents also do not automatically remove response selection bias.
기초Foundations
24. 응답 수 확보 확률을 직접 계산한다24. Calculate response-count assurance directly
확보 확률 q를 별도로 정하여 P(K≥k)≥q를 만족하는 최소 초청 수를 찾을 수 있습니다. 고정한 독립 이항 응답 모형에서는 다음 꼬리 합을 계산합니다.
P(K≥k)=j=k∑I(jI)rj(1−r)I−j.
k=3, r=1/2, q=0.9에서 I=8이면 확률은 219/256≈0.85547이고, I=9이면 466/512≈0.91016입니다. 최소는 9입니다. 한 명 더 초청한 응답 수를 기존 응답 수+새 Bernoulli로 연결하면 이 꼬리 확률이 I에 따라 줄지 않음을 알 수 있어 최소 정수 탐색도 정당화됩니다.
이 90%는 응답 수가 3 이상인 사건의 확률입니다. 결과 평균의 신뢰구간 포함률이나 검정력이 아닙니다. 목표 효과·분산 불확실성을 적분한 베이지안 assurance라는 다른 용법과도 구분합니다.
Specify a separate count-assurance target q and find the smallest I with P(K≥k)≥q. Under independent binomial responses,
P(K≥k)=j=k∑I(jI)rj(1−r)I−j.
For k=3, r=1/2, q=.9, eight invitations give 219/256≈.85547 and nine give 466/512≈.91016. The minimum is nine. Coupling K at I+1 as the previous count plus one Bernoulli proves the tail is nondecreasing, enabling integer search.
Ninety percent refers to attaining at least three responses, not confidence coverage or test power. It also differs from Bayesian assurance integrating uncertain effects/variances.
기초Foundations
25. 응답률 0·1과 확보 확률 1의 경계를 읽는다25. Read zero/one response and certainty boundaries
양의 k를 요구할 때 r=0이면 아무리 초청해도 도달하지 못합니다. r=1이면 정확히 I명이 응답하여 최소 k명 초청으로 됩니다. 0<r<1에서는 유한 I의 전원 무응답 확률 (1−r)ᴵ가 양수라 확보 확률 1은 유한 초청으로 달성하지 못합니다.
r이 아주 작은 양수라면 q<1의 목표를 수학적으로 유한 I에서 달성할 수 있어도 실습 상한 5000이나 정밀도 예산을 넘을 수 있습니다. 이 경우 “수학적 해 없음”이 아니라 계산 범위를 넘었다고 표시합니다. 독립 응답 수가 충분하다는 것만으로 군집별 균형이나 탈락 뒤 DE가 유지되는 것도 아닙니다.
For positive k, response r=0 makes attainment impossible. With r=1, the minimum is exactly k. For 0< r<1, any finite I has positive no-response probability (1−r)ᴵ, so assurance one is unattainable at finite invitations.
A tiny positive rmay have a finite mathematical solution for q<1 beyond the lab’s5000 invitation/precision budget. Report a computation limit, not nonexistence. A sufficient total response count does not certify cluster balance or a preserved post-dropout design effect.
기초Foundations
26. 실습 C · 군집 설계와 독립 응답 수를 별도 패널에서 본다26. Lab C · Inspect cluster planning and response counts in separate panels
군집 수·크기·ICC·가정 비용을 바꾸어 총 행 수, DE, 분산 등가 수와 비용을 봅니다. 등가 수를 자유도로 읽지 마세요. 같은 비용이나 같은 행 수에서 어떤 차이가 생기는지 비교할 수 있습니다.
별도 응답 패널에서 필요한 가용 수 k, r, 확보 확률 q와 현재 초청 수를 정합니다. 기대 기준 초청 수, 정확 이항 확보확률, 최소 q 확보 초청 수와 한 명 적을 때의 확률을 비교하세요. 두 패널은 다른 가정 모형이며, 한쪽 수를 계산했다고 다른 쪽 실제 설계를 검증한 것은 아닙니다.
Vary cluster count, size, ICC and assumed costs. Compare rows, DE, variance-equivalent size and cost without treating effective size as degrees of freedom.
Separately choose required responses k, response r, count-assurance q and current invitations. Compare expected-count planning with exact binomial attainment and minimum assurance invitations plus one-fewer probability. These panels are separate chosen submodels; one does not validate the other’s actual design.
기초Foundations
27. 계획한 검정군 전체의 오류를 고려한다27. Consider errors across the planned family of tests
하나의 귀무 p값이 정확 Uniform(0, 1)이고 m≥1개 검정이 서로 독립인 전역 귀무 모형이라면, 각 α 기준에서 한 번 이상 거짓 기각할 확률은 1−(1−α)ᵐ입니다. α=0.05, m=10이면 약 0.4013입니다. 상관된 실제 검정군에 이 독립 등식을 자동 적용하지 않습니다.
FWER=1−(1−α)m
이 등식은 명시한 독립 귀무 법칙 아래에서만 씁니다.
Bonferroni는 각 기준을 α/m으로 두어, 유효한 참귀무 p값과 미리 정한 검정군에서 의존성에 상관없이 합집합 상계로 FWER≤α를 얻습니다. 이 장의 오류 확률은 고정한 반복 법칙에 관한 것이며, 현재 관측한 유의 결과 중 참인 비율을 알려 주는 수가 아닙니다.
For m≥1 independent exactly uniform null p values under a global null, the chance of at least one rejection at marginal α is 1−(1−α)ᵐ. With α=.05, m=10, it is about .4013. Do not impose this independent equality on an arbitrary dependent family.
FWER=1−(1−α)m
This equality applies under the specified independent null law.
Bonferroni’s α/m threshold gives FWER≤α under arbitrary dependence with valid true-null p values and the specified family. The union bound concerns a repeated-law error event, not the fraction of current significant findings that are true.
기초Foundations
28. 오류 기준을 낮추면 같은 효과의 검정력도 달라진다28. A stricter error threshold changes power at the same effect
같은 n·분산·대안 효과에서 α를 α/m으로 낮추면 정규 임계값이 커집니다. 기각 영역이 좁아져 검정력이 줄 수 있고, 같은 목표를 유지하려면 더 큰 계획 n이 필요합니다. 따라서 다중성 규칙을 결과 뒤에 붙이는 일과 처음 설계에서 고려하는 일은 다릅니다.
검정 수를 줄일 때에는 연구 질문과 주요 결과를 실질적으로 정해야 합니다. 유의해 보이는 결과만 남겨 m을 작게 보고하면 원 검정군의 오류 통제가 되지 않습니다. 탐색 질문을 추가할 수는 있지만 그 시점과 분석의 성격을 밝히고 적절한 별도 추론이나 새로운 검증 자료를 사용합니다.
Holding n, variance and alternative fixed, replacing α by α/m raises the critical value and shrinks rejection regions. Maintaining target power can require a larger n. Design multiplicity prospectively rather than attaching it only after outcomes.
Define primary outcomes substantively. Keeping only promising results and reporting a smaller m does not control the original family. Exploratory additions remain valuable when timing and inferential scope are disclosed.
기초Foundations
29. 중간 결과를 보고 멈추는 규칙도 계획의 일부다29. Outcome-dependent stopping is part of the design
“p<0.05가 나올 때까지 계속 모은다”는 절차는 고정 n 검정과 다른 반복 법칙입니다. 같은 누적 자료의 중간 p값들은 독립이 아니므로 단순한 독립 FWER 식을 그 절차의 정확 오류라고 부를 수도 없습니다. 더 중요한 점은 원 고정 n 보장이 자동 유지되지 않는다는 것입니다.
최대 표본 수, 점검 간격, 성공·무용성·현장 중단 규칙과 대체 분석을 미리 적습니다. 정당한 순차 검정·alpha spending·항상 유효한 구간 같은 방법은 자체 정리 조건을 따라야 합니다. 이 실습은 그 절차를 구현하거나 임의 중단의 타당성을 인증하지 않습니다. 결과를 본 뒤 바뀐 규칙은 변경 기록에 남깁니다.
Collecting until p<.05 creates a different repeated law from a fixed-n test. Interim p values from cumulative data are dependent, so the independent-family formula is not its exact error rate either. Ordinary fixed-n guarantees do not automatically survive the change.
Record maximum n, look schedules, success/futility/field stopping and contingencies. Valid sequential tests, alpha-spending or always-valid intervals have their own conditions; the lab does not implement or certify them. Document rules changed after outcomes.
기초Foundations
30. 실습 D · 고정 귀무 검정군과 별도 대안 검정력을 비교한다30. Lab D · Compare a fixed null family with separately specified alternative power
m과 α를 바꾸어 독립 전역 귀무 FWER, Bonferroni 각 기준을 확인합니다. 옆의 검정력은 같은 정규 모형의 특정 대안에서 α와 α/m을 비교한 값입니다. 귀무 오류 법칙과 대안 검정력은 같은 사건이 아닙니다.
m=1에서는 보정 전후가 같아야 합니다. 매우 긴 정밀 입력과 큰 m이 계산 예산을 넘으면 범위 메시지를 읽으세요. 이 모형은 결과에 따라 검정군을 바꾸는 탐색 절차를 자동 보정하지 않습니다.
Vary m, α to inspect independent-global-null FWER and Bonferroni thresholds. The adjacent powers compare α and α/m at a separately specified Gaussian alternative. Null errors and alternative power are different events.
At m=1 the two power references agree. Extreme precision/family inputs can exceed the computation budget. No automatic correction for outcome-selected families is claimed.
기초Foundations
31. 자료를 본 뒤의 검정력은 새로운 증거가 아니다31. Post-outcome power is not additional evidence
설계 검정력은 “효과가 Δ일 때 앞으로 이 절차가 얼마나 자주 기각할까?”를 묻습니다. 이미 얻은 효과 추정치를 Δ 자리에 다시 넣은 이른바 관측 검정력은 다른 역할입니다. 같은 양쪽 정규 z 검정·n·α·SE를 고정하면 이 값은 관측 |z|의 함수이므로 같은 결과를 다시 표현하는 데 그칩니다.
유의하지 않았다는 이유만으로 효과가 없다고 하거나, 관측 검정력이 낮다는 이유만으로 관측 구간에 없는 큰 효과를 지지할 수 없습니다. 추정치와 구간, 설계 가정 및 실질적으로 중요한 효과 범위를 함께 보고합니다. 다음 연구를 계획할 때에는 선택된 첫 효과 하나만 믿지 말고, 문헌·가능한 분산·현장 조건에 대한 여러 시나리오를 비교합니다.
Prospective power asks how often a procedure would reject at a specified future effect. Replacing that effect by the already observed estimate gives a different quantity. With the same two-sided Gaussian z test, n, α and SE, it is a function of observed |z| rather than additional evidence.
A nonsignificant result does not establish no effect, and low observed power does not support effects excluded by the reported interval. Report estimates, intervals and scientifically relevant ranges. Plan future studies across plausible effects, variances and field conditions rather than trusting one selected initial estimate.
기초Foundations
32. 분석 계획은 다른 사람이 같은 결정을 내릴 만큼 구체적으로 쓴다32. Write a plan specific enough to determine the analysis
“설문을 분석하고 유의성을 본다”만으로는 계산이 정해지지 않습니다. 누구를 어떤 방식으로 뽑고, 어느 날짜의 어떤 결과를 어떤 단위로 사용할지 적습니다. 평균 수준, 로그 평균, 변화의 평균, 정책 효과는 서로 다른 표적이므로 추정하려는 양을 식이나 짧은 문장으로 정합니다.
주요 결과·집단 대비·모형·표준오차·제외 기준·결측 처리·다중성·중단을 연결합니다. 예를 들어 “두 시점이 모두 있는 같은 점포의 FTE 변화”라면 한쪽만 있는 행을 0으로 채우지 않고 공동 가용 조건을 밝혀야 합니다. 자료에 없는 조작이나 민감한 개인 정보를 계획에 적을 필요는 없으며, 실제 실행 가능한 절차와 공유 범위를 명시합니다.
“Analyze the survey and check significance”does not determine a computation. Specify units, sampling, time points, outcomes and measurement units. A level mean, a mean log, a mean change and a causal effect are different estimands; write the intended quantity explicitly.
Connect primary outcomes, contrasts, model, SE method, exclusions, missingness, multiplicity and stopping. A paired FTE change requires joint availability rather than replacing an unavailable wave by zero. State executable procedures and appropriate sharing scope.
기초Foundations
33. 기존 자료를 쓸 때에는 이미 알던 정보를 공개한다33. Disclose prior knowledge when planning analyses of existing data
공개 자료는 수집 전에 등록할 수 없는 경우가 많습니다. 그렇다고 새 분석 계획이 무의미하지는 않습니다. 이미 읽은 논문·요약 통계·결과표·직접 본 원자료의 범위를 밝히고, 이전에 알고 있던 정보와 지금 정하는 분석을 구별합니다.
결과를 확인한 뒤 선택한 가설을 “결과를 보기 전에 정했다”고 바꾸어 쓸 수는 없습니다. 이 교재의 실제 자료는 이미 알려진 고정 기록입니다. 여기서 만드는 계획은 그 기록을 이용하는 교육용 계획이며, 새 자료의 결과에 접근하지 않은 사전 계획이라는 뜻이 아닙니다.
Existing public data often cannot be registered before collection. A new analysis plan can still clarify decisions. Disclose literature, summary statistics, result tables and raw outcomes already seen, and separate that knowledge from newly specified analyses.
A hypothesis selected after seeing outcomes cannot be relabeled as pre-outcome. Our source records are already known. A teaching plan using them is not a claim of having avoided access to new-study outcomes.
기초Foundations
34. 파일 작성·외부 등록·결과 접근의 시점은 다른 사실이다34. Local writing, external registration and outcome access are different events
내 컴퓨터에 계획을 저장하는 것, 독립적인 등록 서비스에 제출하는 것, 그 서비스의 시점 기록을 확인하는 것은 서로 다른 작업입니다. 파일 이름에 “사전등록”이라고 쓰거나 수정 가능한 날짜를 적는 것만으로 과거의 의사결정 시점이 증명되지는 않습니다.
어떤 계획은 자료 수집 전, 어떤 계획은 수집 후 결과 접근 전에 만들어집니다. 둘은 알고 있던 정보가 다를 수 있으므로 해당 시점을 구체적으로 보고합니다. 외부 등록 자체도 통계 모형·표집·측정·정직한 실행의 타당성을 자동 인증하지는 않습니다. 계획의 투명성은 연구의 다른 근거와 함께 평가합니다.
Saving a local file, submitting it to an external registry, and verifying an independent timing record are distinct actions. A filename or editable date alone does not establish the historical order of decisions.
Plans before collection and plans after collection but before outcome access can involve different prior information. Report the relevant timing. External registration does not automatically certify sampling, measurement, model assumptions or faithful execution.
기초Foundations
35. 변경은 원계획과 이유·시점을 함께 남긴다35. Keep amendments alongside the original plan
현장에서 폐업 점포가 늘거나 측정 장비가 바뀌면 계획을 조정해야 할 수 있습니다. 변경을 숨기기보다 원안, 바뀐 내용, 이유, 결과를 얼마나 본 뒤 결정했는지, 영향받는 분석을 연결합니다. 결과가 유의하지 않아 다른 결과로 바꾼 경우와 장비 고장에 대응한 경우를 같은 모호한 문장으로 덮지 않습니다.
계획대로 한 분석과 추가 탐색을 모두 제시할 수 있습니다. 변경이 있었다는 사실만으로 모든 연구가 무효가 되는 것도 아니고, 변경을 기록했다는 이유만으로 원 추론 보장이 모두 회복되는 것도 아닙니다. 어떤 주장에 어떤 절차·조건이 적용되는지를 다시 확인합니다.
Field closures or equipment changes can require amendments. Preserve the original, what changed, why, when relative to outcome access, and which analyses are affected. Do not blur outcome-driven selection with operational changes.
Report planned analyses and additional exploration transparently. An amendment does not automatically invalidate everything, and documenting it does not automatically restore every original inferential guarantee. Reassess the procedure and conditions supporting each claim.
기초Foundations
36. 탐색과 새 검증 자료의 역할을 구분한다36. Separate exploration from evaluation on new information
탐색은 이상한 점을 발견하고 더 나은 질문을 만드는 데 필요합니다. 다만 가장 큰 효과·가장 작은 p값·가장 잘 맞는 모형을 고른 뒤 같은 자료를 전혀 선택하지 않은 검정처럼 읽으면 선택이 빠집니다. 탐색이라는 표시, 선택을 다루는 추론, 새 검증 자료는 각각 다른 해결 경로입니다.
검증용 자료를 남겨도 반복해서 열어 보고 모형을 고치면 그 자료도 학습 정보가 됩니다. 사람·점포가 겹치거나 미래 정보가 훈련에 들어가는 분할도 질문에 맞지 않을 수 있습니다. 사용할 단위와 시간, 보지 않을 정보와 최종 평가 규칙을 계획하며, 작은 자료에서 보류로 잃는 정보와 얻는 독립 평가의 가치를 함께 판단합니다.
Exploration finds anomalies and better questions. Selecting the largest effect, smallest pvalue or best-fitting model and then treating the same data as unselected omits selection. Disclosure, selection-aware inference and new evaluation data serve different roles.
Repeatedly opening a holdout to revise the model makes it training information. Overlapping people or future leakage can also invalidate the intended evaluation. Plan units, time and access rules, and weigh information loss against independent evaluation in the specific setting.
기초Foundations
37. 실습 E · 로컬 계획의 내용과 자료 접근 상태를 점검한다37. Lab E · Inspect a local plan and its data-access status
질문·단위·결과·표적·분석·제외·결측·다중성·중단·난수·공유 항목을 작성합니다. 이미 본 정보가 없음, 요약만 봄, 결과를 봄 중 실제 상태를 고릅니다. 결과를 본 뒤 분석을 선택했는지도 별도로 표시합니다. 항목이 모두 채워졌다는 계산은 내용의 정확성이나 전향적 성격을 보증하지 않습니다.
화면의 계획은 로컬 교육용 내용입니다. 이 실습은 외부 등록을 제출하거나 독립 시점 기록을 검증하지 않습니다. 입력한 문장과 알려진 자료 접근 상태를 다시 읽어, 무엇을 계획했고 무엇을 이미 알고 있었는지 말할 수 있는지를 연습합니다.
Fill the question, unit, outcome, estimand, analysis, exclusions, missingness, multiplicity, stopping, seed and sharing fields. Select actual prior access: none, summaries or outcomes, and separately indicate outcome-driven analysis choice. Filled fields do not certify correctness or prospective status.
This is a local teaching plan. The exercise submits no external registration and verifies no independent historical timestamp. Practice describing what was planned and what information was already known.
기초Foundations
38. 같은 계산의 재현과 새 자료의 반복 연구를 나눈다38. Distinguish computational reproduction from a study with new data
이 장은 미국 National Academies 보고서의 용어를 따라, 같은 입력과 계산 절차로 결과를 다시 얻는 일을 계산 재현이라고 부릅니다. 같은 과학 질문을 새 자료로 다시 조사하는 일은 반복 연구로 구별합니다. 분야마다 말의 사용이 다르므로 어떤 의미인지 먼저 밝히는 것이 좋습니다.
같은 CSV와 코드를 다른 언어로 계산해 수가 맞는 것은 중요한 계산 검증이지만 새 표본에서 효과를 확인한 연구는 아닙니다. 반대로 새 자료의 추정값이 원값과 완전히 같을 필요도 없습니다. 차이의 크기·불확실성·측정과 대상의 차이를 살피며, 한쪽만 p<0.05라는 사실만으로 결과가 서로 모순된다고 결론내리지 않습니다.
Following the National Academies’ terminology, we call rerunning the same inputs and computational procedure reproduction, and investigating the scientific question with newly obtained data replication. Terminology varies across fields, so state the intended meaning.
Agreement between two languages on one CSV checks computation but is not a new-sample replication. New estimates need not be identical; compare differences, uncertainty, measurement and populations. One significant and one nonsignificant result alone do not establish a contradiction.
기초Foundations
39. 원본·변환·환경·출력을 이어 추적한다39. Trace source, transformation, environment and output
다른 사람이 표 하나를 다시 만들려면 원자료의 출처·다운로드 시점·파일 식별값, 가용 행 선택, 단위 변환, 파생 열, 가중치와 계산 순서를 알아야 합니다. 원본을 덮어쓰지 않고 정제본과 가정 시나리오를 구별하면 무엇이 실제 기록인지 되짚을 수 있습니다.
파일 해시는 같은 바이트인지 확인하는 도구입니다. 그 바이트의 수치가 현실에서 참인지, 표본이 대표적인지, 방법이 적절한지를 증명하지 않습니다. 난수 사용 시 생성기·시드·인덱스 대응·반복 수를, 실행 환경에는 언어·라이브러리 버전과 필요한 설정을 기록합니다. 시드만 같고 생성기가 다르면 같은 표본 경로가 되지 않을 수 있습니다.
Recreating a table requires source and download information, file identity, row selection, units, derived columns, weights and computation order. Preserve originals separately from cleaned tables and assumed scenarios.
A hash verifies byte identity, not real-world truth, representativeness or methodological validity. For randomness record generator, seed, index mapping and repetitions; for execution record versions and settings. The same seed with a different generator can produce a different path.
기초Foundations
40. 모형 확률과 시뮬레이션 오차를 따로 보고한다40. Report model probability separately from simulation error
정확한 이항 합으로 계산한 확보확률과 B번 가상 연구에서 성공 비율을 센 값은 다릅니다. 독립 반복의 성공 지시값이 Bernoulli(q)이면 모의 비율의 분산은 q(1−q)/B입니다. q를 모르면 관측 비율로 SE를 추정할 수 있지만 극단의 성공 0회가 실제 q=0임을 뜻하지는 않습니다.
qBVar(qB)=B1b=1∑BIb,=Bq(1−q)≤4B1.
최악 경우 모의 SE를 0.005 이하로 하려면 B≥10,000입니다. 이것은 SE 목표이며 오차가 반드시 0.005 이내라는 보장은 아닙니다. MCMC처럼 반복이 의존하면 같은 독립 식을 그대로 쓰지 않습니다. 모형 선택의 오류는 B를 늘려도 해결되지 않습니다.
An exact binomial sum and the success fraction from B simulated studies are different. For independent Bernoulli(q) success indicators, the simulation variance is q(1−q)/B. A plug-in SE is an estimate; zero observed successes do not establish q=0.
qBVar(qB)=B1b=1∑BIb,=Bq(1−q)≤4B1.
A worst-case simulation SE at most .005 requires B≥10000. This is an SE target, not a guaranteed absolute error. Dependent MCMC draws require different variance analysis. More simulations do not fix a misspecified model.
기초Foundations
41. 같은 답이 나오는 검사와 다른 원리의 검산을 함께 한다41. Combine reproducible execution with checks based on different principles
같은 잘못된 식을 두 번 실행하면 두 번 같은 답이 나옵니다. 작은 자료를 손으로 열거하거나, 분산을 편차제곱과 쌍별 거리의 두 식으로 구하거나, 누적확률을 반대 꼬리와 대조하면 서로 다른 오류를 찾을 수 있습니다. 일반 사례뿐 아니라 빈 자료·상수 자료·영확률·경계·단위 변환도 확인합니다.
정확한 분수 계산, 부동소수점 근사, 원자료 독립 재계산, 화면과 모바일 확인은 서로 다른 검증 범위입니다. 모든 입력을 증명한 것처럼 말하지 않고 어떤 가정과 사례를 확인했는지 남깁니다. 수치 일치가 인과 식별을 증명하거나, 화면이 잘 보인다는 사실이 공식의 정확성을 보증하지는 않습니다.
Executing the same erroneous formula twice can reproduce the error. H and enumeration, independent variance identities and complementary tails can catch different failures. Include empty, constant, zero-probability, boundary and unit-conversion cases.
Exact arithmetic, numerical approximation, independent source calculations and mobile inspection have different scopes. Record what was checked instead of claiming universal proof. Numerical agreement does not identify causality, and a readable screen does not establish a correct formula.
기초Foundations
42. 표본 수를 늘리기 전에 식별·측정·대상을 다시 확인한다42. Revisit identification, measurement and targets before increasing n
응답자만의 편향된 평균을 아주 정밀하게 추정해도 전체 평균이 되는 것은 아닙니다. 서로 다른 연도의 국가값을 독립 개인처럼 세거나, 한 기업의 다섯 품목을 다섯 독립 기업이라고 해석하면 n의 의미가 틀립니다. 민감도·가중·군집·시간 의존의 조건은 계산기에 수를 넣는 것보다 먼저 정해야 합니다.
학부 심화에서는 추정량의 점근분산, 최적 배정과 비용 제약을 연결할 수 있습니다. 대학원에서는 nuisance 추정·군집 수 점근·순차 추론·모형 불확실성을 포함한 설계 평가로 확장합니다. 이 장의 단순 정규·동일 군집·독립 응답 모형은 그 복잡한 절차의 자동 인증 도구가 아니라 가정을 드러내는 출발점입니다.
A precise respondent-only estimate need not identify the full-population mean. Country-years are not independent people, and five categories of one firm are not five independent firms. Identification, measurement, clustering and temporal dependence precede calculator inputs.
Advanced work connects asymptotic variance, optimal allocation and costs; graduate extensions include nuisance estimation, few-cluster issues, sequential inference and model uncertainty. Our simple Gaussian, equal-cluster and independent-response submodels expose assumptions rather than certify those more complex procedures.
기초Foundations
43. 국가 사례 · 이미 알려진 16국 프레임에서 설계 법칙을 배운다43. Country case · Learn a sampling design on an already known sixteen-country frame
실제 2024년 16국의 실질 1인당 GDP를 고정한 프레임으로 놓고, 균등 비복원 추출을 가정합니다. 여기서 표적은 이 16개 값의 균등 평균이며 세계인의 소득 평균이 아닙니다. 프레임 전체를 이미 알고 있으므로 새 조사가 필요한 상황을 주장하는 대신 가능한 부분집합의 설계 분포를 정확히 비교합니다.
n=4이면 가능한 집합은 1,820개입니다. 알려진 프레임 S²와 선택 배수 1.96으로 만든 평균 중심 구간이 프레임 평균을 포함하는 집합은 1,734개로, 포함률은 867/910≈0.952747입니다. n=8에서는 12,870개 중 12,262개, 즉 6,131/6,435≈0.952758입니다. 이 유한 값들은 “항상 정확히 95%”라는 주장과 다릅니다.
n=16이면 프레임 평균을 그대로 얻어 설계 분산은 0입니다. 자료 측정·선택 국가의 범위에 관한 불확실성까지 사라졌다는 뜻은 아닙니다. 모집단 정의, 추출 법칙, 구간 구성의 가정을 따로 유지하세요.
Fix actual 2024 real GDP-per-capita values for sixteen countries and impose uniform sampling without replacement. The target is this frame’s uniform mean, not a world-person income mean. Because the frame is already known, we compare subset design distributions rather than claim a new survey is needed.
For n=4, 1734 of 1820 subsets cover the known frame mean using frame S² and multiplier 1.96:867/910≈.952747. At n=8, 12262 of 12870 cover: 6131/6435≈.952758. These finite coverages are not identically .95.
At n=16, the frame mean is recovered with zero sampling-design variance. Measurement limitations and the scope of the chosen countries do not vanish.
기초Foundations
44. 개인 사례 · 과거 로그임금 분산으로 미래 가정을 설계한다44. Person case · Use historical log-wage variance for explicit future assumptions
원자료의 3,613행 중 로그임금 가용 행은 3,010개이고 603개는 가용하지 않습니다. 가용 기록의 표본분산을 미래 분산의 파일럿 값으로 채택하되, 그 값이 미래 모집단의 참분산이거나 비응답이 무작위라는 사실로 바꾸어 읽지 않습니다. 로그 평균의 반폭은 임금 수준 평균의 달러 반폭과 다릅니다.
선택 배수 1.96, 로그 반폭 0.05, DE=1 계획은 가용 응답 303개를 요구합니다. 독립 응답률 0.6을 가정하면 기대 수 기준 초청은 505개지만, 실제 확보확률은 약 0.519315입니다. 확보확률 0.9 이상을 요구하면 최소 529개가 필요합니다. 528개의 확률 약 0.897718과 529개의 약 0.906640을 함께 확인하면 최소성의 뜻이 분명합니다.
반폭을 0.1로 넓히거나 DE를 2로 바꾸거나 응답률을 0.8로 바꾸면 다른 계획을 얻습니다. 각 수는 명시한 가정에서 나온 계획이며 새로 확보한 사람 수나 실제 응답 확률을 관측한 결과가 아닙니다.
Of 3613 source rows, 3010 have available log wages and 603 do not. Adopt the available-record sample variance only as a pilot assumption for a future target. It does not establish future variance or random nonresponse. A log-mean halfwidth differs from a currency-level-mean halfwidth.
Multiplier 1.96, log halfwidth .05 and DE=1 require 303 usable responses. At assumed independent response probability 0.6, the plan uses 505 invitations to meet the expectation criterion but attains the count with probability about .519315. Assurance .9 requires at least 529 invitations: 528 gives about .897718, and 529 about .906640.
Halfwidth .1, DE=2 or response .8 create different scenarios. These are assumed future plans, not newly collected people or observed future response probabilities.
기초Foundations
45. 기업 사례 · 관측 이탈 비율과 가정한 개입 효과를 나눈다45. Company case · Separate observed churn from an assumed intervention effect
실제 고객 3,150개 기록에서 이탈은 495개로 비율은 11/70입니다. 이 고정 자료의 이진 경험분산 p(1−p)=649/4,900을 공통분산 계획값으로 사용합니다. 새 프로그램이 이탈을 0.03 줄인다는 값은 원자료에서 관측한 처치 효과가 아니라 설계를 위한 대안 가정입니다.
두 독립 군·같은 알려진 분산의 정규 참조에서 α=0.05, 목표 검정력 0.8, 절대 차이 0.03을 넣은 통상 z합 계획은 각 군 2,311명입니다. 그 정수에서 계산한 정규 참조 검정력은 약 0.800142입니다. 이는 총 2,311명이 아니라 각 군 수이며, 정확 이항 검정·두 다른 이진 분산·군집·비응답을 포함한 완성된 임상 또는 현장 설계가 아닙니다.
후속 연구에서는 개입의 배정 단위와 윤리·현장 조건, 측정 기간, 불균등 이진 분산, 누락과 다중성에 맞는 절차를 다시 설계합니다. 현재 자료의 설명과 미래 개입의 인과 주장은 구별합니다.
Actual 3150 customer records contain 495 churn outcomes, p=11/70. Use empirical binary variance 649/4900 as a chosen common planning variance. A reduction of .03 is a hypothetical intervention alternative, not a treatment effect observed in these records.
For two independent Gaussian-reference arms with common known variance, α=.05 and target power .8, the conventional z-sum plan gives 2311 per arm at absolute effect .03. Its normal-reference power is about .800142. This is per arm, not total, and is not exact binomial-test power or a complete clustered/nonresponse-adjusted field design.
A future intervention requires appropriate assignment, measurement, variance, missingness and multiplicity procedures. Preserve the distinction between current description and future causal claims.
기초Foundations
46. 실습 F · 실제 원자료와 미래 설계 가정을 함께 읽는다46. Lab F · Read actual records alongside explicitly assumed future designs
국가에서는 n을 바꾸어 유한 프레임의 반폭과 모든 부분집합 포함률을 확인합니다. 개인에서는 반폭·DE·응답률이 정해진 계획을 골라 기대 수와 확보확률을 비교합니다. 기업에서는 가정 효과·목표 검정력별 각 군 수를 읽고 현재 n을 바꾸어 정규 참조 검정력이 어떻게 달라지는지 봅니다.
계획 보기는 이미 결과가 알려진 자료의 교육용 계획을 표시합니다. 외부 등록·새 자료 수집·독립 반복 연구를 수행했다는 뜻은 아닙니다. 각 화면에서 원자료의 수, 가정으로 선택한 수, 정확 설계 확률과 근사 정규 확률을 구분해 설명해 보세요.
Vary country n to inspect finite-frame width and exhaustive subset coverage. Select person halfwidth/DE/response scenarios to compare expected counts with attainment. Read company per-arm plans by assumed effect and target, then vary current n to inspect normal-reference power.
The plan view uses already known outcomes for teaching. It performs no external registration, new collection or independent replication. Identify source quantities, assumed inputs, exact design probabilities and approximate Gaussian probabilities separately.
기초Foundations
47. 국가·개인·기업 사례를 더 깊게 읽는다47. Read the country, person and company case studies
국가 사례 · 표본 크기보다 먼저 표적과 표집을 정한다
World Bank 실제 2024년 선택 16국의 GDPpc는 모두 이미 관측했습니다. 표적은 이 16국의 균등 평균 약 31,100.239 2015년 불변 USD/인입니다. 알려진 평균을 다시 알아내야 한다고 주장하지 않고, 이 고정 프레임에서 n국을 단순무작위 비복원 추출하는 설계 실험을 합니다. 세계 모든 나라나 개인 소득의 대표 표본이라는 뜻은 아닙니다.
분산 공식은 가정한 균등 비복원 설계에서 정확하지만 1.96 배 구간이 정확히95%를 덮는다는 말은 별개입니다. n=4의1820개와 n=8의12870개 가능한 부분집합을 전부 계산해 평균의 불편성·분산과 구간 포함 비율을 직접 확인합니다. 소프트웨어 난수로 몇 번 뽑아본 근사 비율이 아닙니다. 별도 CSV의 처음16개 부분집합은 사전순 예시일 뿐 무작위 추첨 표본도 아닙니다.
정확 전수 설계 검산 · 소수 반올림
n
가능 부분집합
포함 개수
실제 설계 포함 비율
4
1820
1734
0.952747
8
12870
12262
0.952758
먼저 생각한 뒤 풀이 보기: n=16에서 반폭0이면 GDP 발표값도 오차가 전혀 없나요?
아닙니다. 고정한16국 모두를 뽑아 표집 오차만0이 된 것입니다. 지표 측정·개정·프레임 선택과 세계 대표성 문제는 남습니다. 표본을 크게 하는 것과 부적절한 표적·측정·선택을 고치는 것은 다릅니다.
사람 사례 · 필요한 응답 수와 초청 수는 다르다
Card의 실제 가용3010개는 1976년 시간당 임금(센트)의 원 극단값 정리 로그 변수이며 원3613행·결측603개를 보존합니다. 이 자료의 n−1 표본분산 0.19695636 로그단위²를 별도 미래 연구의 계획 참고값으로 써 봅니다. 같은 모집단·기간·분산이 유지된다고 확인된 것은 아닙니다. 목표 반폭 h=0.05 또는0.10은 분석자가 먼저 고른 로그 척도의 정밀도이며 실제 효과 추정값이 아닙니다.
A는 올림 전의 연속적인 응답수 계획값입니다. B_expected는 기대 인원을 맞춘 초청수이며 count assurance와 다릅니다.
DEFF=1 또는2는 여기서 가정한 분산 확대율이며 사람 자료에서 추정한 군집 상관이 아닙니다. 독립적 동일 응답확률 r=0.6 또는0.8도 선택한 계획 입력입니다. B_expected명을 초청하면 기대 응답 수가 목표 이상이지만 실제 목표 응답 수에 도달할 확률이90%라는 뜻은 아닙니다. X~Binomial(B,r)라는 추가 모형 아래 P(X≥n_response)≥0.9인 최소 정수 B를 별도로 찾습니다. 바로 이전 정수에서는0.9 미만임도 확인합니다.
가정한 정밀도·응답 수 설계 · 확률은 반올림
h
DEFF
r
필요 응답
기대수 기준 초청
그때 목표 도달확률
90% 도달 최소 초청
1/20
1
3/5
303
505
0.51931
529
1/20
1
4/5
303
379
0.54087
391
1/20
2
3/5
606
1010
0.51366
1043
1/20
2
4/5
606
758
0.53615
775
1/10
1
3/5
76
127
0.55277
139
1/10
1
4/5
76
95
0.56099
101
1/10
2
3/5
152
254
0.54754
270
1/10
2
4/5
152
190
0.54327
199
먼저 생각한 뒤 풀이 보기: 90% 응답 수 보장이면95% 신뢰구간도 보장되나요?
아닙니다. 첫 확률은 선택한 응답 모형에서 일정 수 이상의 응답을 얻을 확률입니다. 둘째는 적절한 추론 조건에서 구간 절차가 모수를 덮는 빈도입니다. 응답 선택 편향·모형 오지정·잘못된 DEFF는 초청 수를 늘린다고 자동으로 해결되지 않습니다. 표본 크기는 통계 가정과 현장 제약을 연결해 설계해야 합니다.
고객 실무 사례 · 효과를 보기 전에 검정력과 분석 계획 정하기
UCI 실제 익명고객3150개 중 이탈495개라는 관측 비율 p_ref=11/70을 참고값으로 둡니다. 이 파일에는 새 무작위 개입 실험이 없습니다. 절대 이탈 감소 δ=0.03·0.05·0.08은 미래 연구를 상상한 설계 입력이지 관측 효과가 아닙니다. 0.05 감소는5퍼센트포인트 감소이며 상대5% 감소와 다릅니다. 관측 고객을 원치 않는 실제 처치에 배정하거나 외부 연구를 등록하지 않습니다.
양 군에 같은 참고 분산 v_ref=p_ref(1−p_ref)를 고정한 정규 근사 계획을 먼저 배웁니다. 각 군n명의 차이 추정량을 N(−δ,2v_ref/n)로 가정하고 양측 α=.05 고정 검정을 사용합니다. 이 같은 분산은 이진확률 p_ref와 p_ref−δ의 실제 두 분산이 같다는 주장이 아닙니다. 실제 이항 실험의 정확 검정력·반응자 의존·군집·누락·순차 분석은 별도 설계와 계산이 필요합니다.
πₙ은 명시한 양쪽 정규 작업검정의 검정력입니다. z_c와 z_p는 원래의 두 분위수를 줄여 쓴 것입니다.
선택한 공통분산 정규 모형의 설계 · 반올림
가정 절대 감소
목표 검정력
군당n
총n
반올림 n에서 작업 검정력
3/100
4/5
2311
4622
0.800142
3/100
9/10
3093
6186
0.900031
1/20
4/5
832
1664
0.800161
1/20
9/10
1114
2228
0.900164
2/25
4/5
325
650
0.800161
2/25
9/10
435
870
0.900062
학습용 분석계획 초안에는 표적·원자료를 이미 본 사실·주요 결과·군당n·고정 분석 시점·누락 처리·다중 비교·변경 기록을 적었습니다. 이미 공개 결과를 본 뒤 쓴 문서이므로 사전등록이라고 부르지 않습니다. 계획을 바꾸면 무엇을 언제 왜 바꿨는지 남기고 탐색 결과를 따로 표시합니다. 같은 데이터와 코드로 숫자를 다시 얻는 계산 재현과 새 독립 자료에서 결과를 확인하는 실증 반복도 구별합니다.
먼저 생각한 뒤 풀이 보기: 유의해질 때까지 매번 더 모으면 검정력 계산은 그대로인가요?
아닙니다. 고정n 검정에서 결과를 보며 반복 연장하면 같은 오류율이 보장되지 않습니다. 독립적인 귀무 검정5개를 각각α=.05로 하면 적어도 한 번 거짓 기각할 확률은1−.95⁵≈0.226219입니다. 이 독립 예시는 같은 누적 자료를 다섯 번 보는 실제 순차 설계의 정확 확률은 아닙니다. 순차 설계라면 그 의존 구조와 사전 정한 경계를 직접 다뤄야 합니다.
Country case · Specify the target and sampling before choosing n
All actual 2024 GDPpc values for sixteen selected World Bank countries are already observed. The target is their known uniform mean, approximately 31,100.239 constant-2015 USD/person. We do not need to rediscover that mean; instead, use this fixed frame for a simple-random-sampling-without-replacement design experiment. It does not create a representative worldwide or individual-income sample.
The variance formula is exact for the chosen uniform design; exact 95% coverage of a 1.96 interval is a separate question. Enumerate all 1820 subsets at n=4 and 12870 at n=8, checking unbiasedness, variance and interval inclusion directly. This is not a simulated frequency from a few random draws. The first sixteen subsets in a separate CSV are lexicographic illustrations, not random samples.
Exhaustive finite-design check · rounded
n
Possible subsets
Covered subsets
Actual design coverage
4
1820
1734
0.952747
8
12870
12262
0.952758
Think first, then reveal: Does zero halfwidth at n=16 make published GDP error-free?
No. A census of this fixed frame removes only its sampling error. Measurement, revisions, frame choice and worldwide representation remain. Increasing n differs from repairing a poor target, measurement process or selection mechanism.
Person case · Required responses differ from invitations
The 3010 available Card values are source-trimmed logs of 1976 hourly wages in cents/hour; preserve all 3613 rows and 603 missing values. Use their n−1 sample variance, 0.19695636 log-units², only as a planning reference for a separately defined future study. The same population, period and variance have not been validated. Target halfwidths h=.05 or .10 are chosen log-scale precision goals, not observed effect estimates.
A is the continuous response-count planning value before rounding up. B_expected plans the expected count, not count assurance.
DEFF=1 or 2 is an assumed variance inflation, not an estimated cluster correlation in these people. Independent equal response probability r=.6 or .8 is also a chosen input. Inviting B_expected yields enough expected responses, not a 90% chance of reaching the required count. Under the additional model X~Binomial(B,r), find the smallest integer B with P(X≥n_response)≥.9 and verify failure at B−1.
Think first, then reveal: Does 90% response-count assurance guarantee 95% interval coverage?
No. The first concerns reaching a count under the chosen response model; the second concerns a procedure covering a parameter under appropriate inference conditions. More invitations do not automatically remove response bias, misspecification or incorrect DEFF. Connect statistical assumptions with field constraints.
Customer-practice case · Plan power and analysis before seeing effects
Use 495 events among 3150 actual anonymous UCI customers as reference p_ref=11/70. The file contains no new randomized intervention. Absolute reductions δ=.03, .05 and .08 are hypothetical future-design inputs, not observed effects. A reduction of .05 is five percentage points, not a relative 5% reduction. No actual customers are assigned treatments and no external research registration is submitted.
Begin with a Gaussian planning approximation fixing the same reference variance v_ref=p_ref(1−p_ref) in both arms. Assume the difference estimator is N(−δ,2v_ref/n) for n per arm and use one fixed two-sided α=.05 test. This does not assert equal Bernoulli variances at p_ref and p_ref−δ. Exact binary-test power, dependence, clustering, attrition and sequential analyses require separate design calculations.
πₙ is the power of the declared two-sided Gaussian working test. z_c and z_p abbreviate the original two quantiles.
Chosen common-variance Gaussian planning model · rounded
Hypothetical absolute reduction
Power target
n per arm
Total n
Working power at rounded n
3/100
4/5
2311
4622
0.800142
3/100
9/10
3093
6186
0.900031
1/20
4/5
832
1664
0.800161
1/20
9/10
1114
2228
0.900164
2/25
4/5
325
650
0.800161
2/25
9/10
435
870
0.900062
The local teaching-plan draft records the target, prior access to data, primary endpoint, n per arm, fixed analysis time, missingness, multiplicity and changes. It was written after seeing public outcomes, so it is not a preregistration. Timestamp and explain deviations, identifying exploratory outputs. Computational reproduction with the same inputs and code differs from empirical replication using new independent data.
Think first, then reveal: May data collection continue until significance while retaining the original power calculation?
No. Outcome-dependent extension of a fixed-n test does not preserve its stated error rate. For five explicitly independent null tests at α=.05, the chance of at least one false rejection is 1−.95⁵≈0.226219. This independent illustration is not the exact probability for five looks at the same cumulative data. A sequential design needs its actual dependence and prespecified boundaries.
기초Foundations
48. 공식 자료를 좁은 질문과 함께 읽고 총서를 연결한다48. Read primary resources with precise questions and connect the series
J-PAL의 Power calculations에서 Essentials와 설계 입력·군집 논의를 읽고, 효과·분산·배정 단위를 따로 적어 보세요. 이 장의 알려진 공통분산 정규 실습과 실제 현장 연구의 더 복잡한 계산을 구별합니다.
통계학에서는 “어떤 법칙 아래 무엇을 추정하며 얼마나 불확실한가?”를 배웠습니다. 데이터 사이언스에서는 원자료 구조·코드·분할·평가를, 계량경제학에서는 식별과 설계를, 머신러닝·인공지능에서는 학습과 일반화·의사결정의 범위를 연결합니다. 앞 과목의 모든 심화를 끝낼 필요는 없지만, 관측 단위·분모·조건·증거의 구별은 다음 과목에도 가져가세요.
Read J-PAL Power calculations , focusing on Essentials, inputs and clustering. Record effect, variance and assignment unit separately; distinguish our common-known-variance Gaussian lab from richer field calculations.
Statistics asks what is estimated under which law and with what uncertainty. Data science connects data structure, code, splits and evaluation; econometrics connects identification and design; machine learning and AI connect learning, generalization and decisions. You need not finish every advanced prerequisite, but carry units, denominators, conditions and evidence distinctions forward.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
J-PAL · 표집·표본 크기·검정력J-PAL · Sampling, sample size and power
J-PAL · Rachel Glennerster, Sampling and Sample Size
정밀도·효과 크기·설계가 검정력에 어떻게 연결되는지 먼저 봅니다. 숫자 하나를 복사하지 말고 본인의 표적·군집 단위·분산·누락 가정을 표로 적어 보세요.Connect precision, effect size and design with power. Rather than copying one n, write down the target, clustering unit, variance and attrition assumptions.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading더 큰n이면 대표성과 인과 식별도 자동으로 나아지나요?Does larger n automatically fix representation and causal identification?
생각을 점검하는 해설Check your reasoning
아닙니다. 오차의 크기와 선택·측정·설계의 타당성은 구별해야 합니다.No. Random-error size differs from validity of selection, measurement and design.
빅토리아 스토든 · 계산 연구를 다시 실행할 수 있게Victoria Stodden · Making computational research reproducible
Author biography · official USC faculty profile linked
통계·경제·법의 배경에서 데이터·코드 공개와 계산 검증을 연구하는 경로를 읽습니다. 숫자 일치, 재현 가능한 실행 기록, 독립 반복과 타당한 추론을 각각 구별해 보세요.Read the author’s connection of statistics, economics, law, artifact sharing and computational validation. Distinguish matching numbers, reproducible execution records, independent replication and valid inference.
보고 읽은 뒤 답하기Respond after watching/reading파일 해시와 재현 코드가 같으면 결론도 참인가요?Do matching hashes and reproducible code make a conclusion true?
생각을 점검하는 해설Check your reasoning
아닙니다. 계산 입력·절차를 추적하는 데 도움이 되지만 표집·모형·측정·인과 가정을 따로 평가해야 합니다.No. They help trace inputs and computation; sampling, modeling, measurement and causal assumptions still need assessment.
J-PAL · 효과 크기·분산·설계 입력J-PAL · Effect-size, variance and design inputs
Gupta and Kopper · power-calculation essentials/common-variance discussion
Essentials와 단위 무작위배정 계획식의 공통분산 조건·이진 결과에서는 두 분산이 달라질 수 있다는 설명을 읽습니다. 본문은 알려진 분산 정규 근사 연습이며 원문의t 기반 실무 설계를 그대로 구현한 것은 아닙니다.Read Essentials, the common-variance condition and the note that binary arm variances can differ. This chapter practices a known-variance Gaussian approximation, not the source’s full t-based field-design procedure.
보고 읽은 뒤 답하기Respond after watching/reading실제 풀링 이탈 비율만 있으면 미래 처치 효과도 알 수 있나요?Does an actual pooled churn rate identify a future treatment effect?
생각을 점검하는 해설Check your reasoning
아닙니다. 참고 분산·미관측 효과 입력·설계 가정을 분리해야 합니다.No. Separate reference variance, unobserved effect inputs and design assumptions.
COS · 이미 본 자료와 사전등록의 투명성COS · Preregistration and prior knowledge of data
Center for Open Science · existing-data and transparent-change sections
기존 자료를 이미 얼마나 보았는지 밝히는 부분과 계획 변경을 기록하는 부분을 읽습니다. 이 장의 사후 작성 학습 계획은 외부 사전등록이 아니며 탐색 작업도 정확한 이름으로 보고합니다.Read the sections on disclosing prior access to existing data and documenting changes. This after-observation teaching plan is not an external preregistration; label exploratory work honestly.
보고 읽은 뒤 답하기Respond after watching/reading결과를 본 뒤 정한 분석을 과거에 계획했다고 쓰면 될까요?May an analysis selected after seeing outcomes be reported as planned beforehand?
생각을 점검하는 해설Check your reasoning
아닙니다. 당시 알고 있던 정보·결정 시점·변경 이유를 드러내야 합니다.No. Disclose prior knowledge, decision timing and reasons for changes.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 행 수와 독립 단위 수Rows and independent units
20개 학교에서 학교당 학생 10명씩 결과를 측정했습니다. 200개 독립 학교를 조사한 것인가요? 배정이 학교별이면 계획에 어떤 수를 적어야 하나요?
Twenty schools contribute ten pupil outcomes each. Are these two hundred independent schools? What should a school-assigned design record?
풀이와 확인할 이유Solution and explanation
관측 행은 200개지만 학교는 20개입니다. 학교 내 성적이 관련되면 200개 독립 관측이라고 부를 수 없습니다. 배정 단위가 학교라는 사실, 학교 수 C=20, 학교당 관측 m=10, 총 학생 행 200개를 함께 적습니다. 학생 수와 학교 수 중 하나만 쓰면 군집 의존을 숨깁니다.
There are 200 pupil rows and 20 schools. Within-school association can invalidate an iid-row analysis. Record school assignment, C=20, m=10 and 200 outcome rows separately. One count alone hides the clustering structure.
2. SD와 SE의 단위SD and SE units
iid 관측의 알려진 SD가 6 kg이고 n=100입니다. 관측 분산·평균 SE·선택 배수 c=2의 반폭을 구하세요.
IID observations have known SD 6 kg and n=100. Find observation variance, mean SE and halfwidth at chosen multiplier c=2.
풀이와 확인할 이유Solution and explanation
관측 분산은 36 kg²입니다. 평균 분산은 36/100=0.36 kg²이고 SE는 0.6 kg입니다. 반폭은 2×0.6=1.2 kg입니다. 36을 SD인 것처럼 다시 제곱하면 다른 계산이 됩니다.
Observation variance is 36 kg². Mean variance is .36 kg², SE is .6 kg, and halfwidth is 1.2 kg. The variance input is 36, not 6; do not square a supplied variance again.
3. 반폭을 절반으로Halving a halfwidth
iid 분산 v>0와 배수 c>0를 고정합니다. n=100에서의 반폭을 절반으로 하려면 표본 수가 얼마인가요? 네 배 더 정밀하다는 말과도 비교하세요.
Hold iid variance v>0 and multiplier c>0 fixed. Starting at n=100, what n halves the halfwidth? Also consider reducing it to one quarter.
풀이와 확인할 이유Solution and explanation
반폭은 c√v/√n에 비례하므로 절반을 위해 √n을 두 배, n을 네 배로 만들어 400이 필요합니다. 반폭을 원래의 1/4로 줄인다는 뜻의 정밀도 목표라면 n은 16배인 1,600입니다. “정밀도”를 말할 때 어느 폭을 비교하는지 밝힙니다.
Halfwidth is proportional to n⁻¹ᐟ². Halving requires n=400; quartering requires n=1600. State the width objective instead of using an ambiguous phrase such as four times as precise.
4. 올림이 필요한 이유Why round upward
iid 분산 v=100, 선택 배수 c=1.96, 목표 반폭 h=2일 때 최소 양의 정수 n을 구하고 n=96이 되는지 확인하세요.
For iid variance 100, chosen multiplier 1.96 and target halfwidth 2, find the smallest positive integer n and check n=96.
풀이와 확인할 이유Solution and explanation
n≥c²v/h²=96.04이므로 올림한 97입니다. 96에서는 반폭 제곱이 384.16/96≈4.001667로 목표 h²=4보다 큽니다. 반올림하면 목표를 살짝 어깁니다. 1.96은 여기서 선택한 배수이며 정확 정규 임계값과 구별합니다.
The inequality gives n≥96.04, hence 97. At 96, the squared halfwidth is 384.16/96≈4.001667>4. Ordinary rounding would miss the target. Here 1.96 is a chosen multiplier, not an exact normal quantile.
5. 킬로그램에서 그램으로From kilograms to grams
iid v=36 kg², c=2, h=1 kg인 계획을 그램 단위로 바꾸세요. 필요한 n이 바뀌나요?
Convert an iid plan with v=36 kg², c=2, h=1 kg to grams. Does required n change?
풀이와 확인할 이유Solution and explanation
분산은 36,000,000 g², 목표 반폭은 1,000 g입니다. 비율 c²v/h²는 단위 변환에서 분자·분모에 모두 10⁶이 붙어 그대로 144입니다. n=144는 단위에 불변입니다. h만 그램으로 바꾸고 v를 남기면 잘못된 계획이 됩니다.
Use v=36000000g² and h=1000g. Both numerator variance and squared target gain a factor 10⁶, so c²v/h²=144 is unchanged. Converting only one input changes the problem incorrectly.
6. 폭과 반폭Width and halfwidth
선택 구간이 [평균−H, 평균+H]입니다. 전체 폭을 4 이하로 하려는 iid 계획에서 v=100, c=1.96이면 h 입력과 n은 얼마인가요?
An interval is mean ±H. For iid v=100, c=1.96 and total width at most 4, what halfwidth input and n are needed?
풀이와 확인할 이유Solution and explanation
전체 폭은 2H이므로 목표 반폭 h=2입니다. n=ceil(384.16/4)=97입니다. h=4를 넣으면 전체 폭 목표가 8이 되어 원 질문과 다릅니다. 화면의 반폭이라는 단어를 단위와 함께 확인합니다.
Total width is 2H, so h=2 and n=97. Entering h=4 would permit total width 8. Check whether a planning input asks for width or halfwidth.
7. 표본이 상수이면 미래 분산도 0인가A constant pilot is not known zero variance
파일럿 값이 (5, 5, 5)여서 표본분산이 0입니다. 미래 관측의 알려진 분산도 0이라고 단정하고 n=1을 계획해도 되나요?
A pilot (5, 5, 5) has sample variance zero. Does that establish known future variance zero and justify planning n=1?
풀이와 확인할 이유Solution and explanation
아닙니다. 수학적으로 참분산이 알려진 0인 모형과 작은 표본의 추정 분산 0은 다릅니다. 예를 들어 확률변수는 다른 값을 낼 수 있는데 우연히 같은 세 값만 관측했을 수 있습니다. 미래 분산 가정을 따로 정하고 범위를 바꾸어 민감도를 봅니다.
No. Known model variance zero differs from an estimate of zero in a small sample. A nondegenerate population can produce identical observed values. Specify and vary future-variance assumptions rather than equating the two.
8. 유한 프레임의 두 분산Two finite-frame variance conventions
프레임 y=(1, 2, 3, 4, 5)에서 N−1분모 S²와 균등 한 번 추출한 값의 분산을 각각 구하세요.
For frame (1, 2, 3, 4, 5), calculate N−1 frame variance S² and the variance of one uniform draw.
풀이와 확인할 이유Solution and explanation
평균은 3, 편차제곱합은 10입니다. S²=10/4=2.5이지만 균등 한 번 추출의 분산은 10/5=2입니다. 따라서 Var(Y)=((N−1)/N)S²입니다. 같은 다섯 값이라도 분모 관례를 확인해야 합니다.
The mean is 3 and squared deviations sum to 10. Thus S²=10/4=2.5, while the uniform single-draw variance is 10/5=2. The relationship is Var(Y)=(N−1) S²/N.
9. 비복원 두 추출의 공분산Covariance without replacement
프레임 (1, 2, 3, 4, 5)에서 순서 있게 두 개를 균등 비복원 추출합니다. S²=2.5를 이용해 공분산과 두 값 평균의 분산을 구하세요.
Draw two ordered distinct units uniformly from (1, 2, 3, 4, 5). Given S²=2.5, find their covariance and mean variance.
풀이와 확인할 이유Solution and explanation
공분산은 −S²/N=−0.5입니다. 각 주변분산은 2이므로 평균 분산은 (2+2−1)/4=0.75입니다. 유한 보정식 (1−2/5)×2.5/2=0.75와도 일치합니다. 비복원 의존을 무시하면 다른 값이 나옵니다.
Covariance is −S²/N=−.5. Each marginal variance is 2, so mean variance is (2+2−1)/4=.75. It agrees with (1−2/5)2.5/2. Ignoring without-replacement dependence gives the wrong variance.
10. 유한 보정 표본 수Finite-population sample size
N=100인 고정 프레임에서 알려진 S²=100, c=1.96, h=2입니다. 균등 비복원 표본의 최소 n을 구하고 iid 계획과 비교하세요.
For a fixed N=100 frame with known S²=100, c=1.96, h=2, find the minimum uniform-SRS sample size and compare the iid plan.
풀이와 확인할 이유Solution and explanation
유한 공식은 n≥Nc²S²/(Nh²+c²S²)=38416/784.16≈48.990입니다. 최소 n은 49이며 iid 계산의 97보다 작습니다. 이는 이 프레임에서 큰 비율을 조사하면 남는 표집 변동이 작아지기 때문입니다. 새로운 무한 모집단에 이 보정을 적용하지 않습니다.
The finite bound is 38416/784.16≈48.990, hence 49, versus iid 97. Sampling a substantial share of this fixed frame reduces design variation. This correction does not automatically apply to a new infinite-population target.
For uniform SRS with N=25, S²=36, c=2, h=1, compare n=21 and 22.
풀이와 확인할 이유Solution and explanation
연속 경계는 3600/169≈21.3018이어서 최소 22입니다. 직접 비교하면 n=21의 반폭 제곱은 192/175>1이고, n=22에서는 216/275<1입니다. 제곱근을 반올림해 비교하기보다 정확한 제곱 반폭을 쓰면 경계가 보존됩니다.
The bound is 3600/169≈21.3018, so the minimum is 22. Squared halfwidths are 192/175>1 at 21 and 216/275<1 at 22. Exact squared comparisons avoid square-root rounding near a boundary.
12. 반폭 0과 한 원소 프레임Zero halfwidth and a singleton frame
선택 배수 c>0을 고정하고, 양의 분산을 가진 iid 모형과 N개 고정 프레임의 비복원 모형에서 목표 반폭 0을 비교하세요. N=1이면 N−1분모 S²는 어떻게 다루나요?
Fix a chosen multiplier c>0 and compare target halfwidth zero for positive-variance iid sampling and finite-frame SRS. What happens to N−1 variance at N=1?
풀이와 확인할 이유Solution and explanation
iid 양의 분산에서는 유한 n으로 반폭 0이 되지 않습니다. 유한 프레임에서는 전수 n=N이면 설계 분산 0입니다. N=1은 이미 전수이므로 평균 설계 분산 0이지만 S²의 0/0 정의는 사용하지 않습니다. 실습은 이 경계에서 분산 입력을 쓰지 않았다고 표시합니다.
No finite iid n gives zero halfwidth at positive variance. A finite census n=N has zero design variance. For N=1 the mean is already known by census; N−1 variance is undefined and unused rather than assigned a fictitious value.
13. 비중심성의 손계산Calculate noncentrality
각 군 안 iid 정규이고 두 군이 독립이며 공통 알려진 분산 v=4입니다. 각 군 n=50, 참 평균 차이 Δ=1이면 차이 SE와 비중심성 λ는 얼마인가요?
Two independent arms each contain iid Gaussian observations with known common v=4. At n=50 per arm and effect Δ=1, find the contrast SE and λ.
풀이와 확인할 이유Solution and explanation
균형 두 군이므로 a=2입니다. 차이 분산은 2×4/50=0.16, SE는 0.4입니다. λ=Δ/SE=2.5입니다. 전체 관측 수는 100이며, n=100을 각 군 식에 넣으면 다른 설계가 됩니다.
Contrast variance is 2×4/50=.16, SE=.4, and λ=1/.4=2.5. Total observations are 100; substituting 100 as each-arm n changes the design.
Let Z~N(λ, 1) and reject if Z>c, where c=z₁₋α. Derive power using Φ and check λ=0.
풀이와 확인할 이유Solution and explanation
Z=λ+Z₀, Z₀~N(0, 1)로 씁니다. 따라서 P(Z>c)=P(Z₀>c−λ)=1−Φ(c−λ)=Φ(λ−c)입니다. λ=0에서는 Φ(−c)=α입니다. 검정력은 대안 확률이고 현재 귀무가 거짓일 사후확률이 아닙니다.
Write Z=λ+Z₀with standard-normal Z₀. Then P(Z>c)=1−Φ(c−λ)=Φ(λ−c). At λ=0 it equals α. This is rejection probability under a specified effect, not posterior probability that the null is false.
15. 양쪽 검정의 두 꼬리Both tails of a two-sided test
Z~N(λ, 1)이고 |Z|>c에서 기각합니다. c=z₁₋α/₂입니다. 두 꼬리를 더한 검정력과 효과 부호를 바꿀 때의 관계를 구하세요.
For Z~N(λ, 1), reject |Z|>c with c=z₁₋α/₂. Derive power and its relation under a sign reversal.
풀이와 확인할 이유Solution and explanation
오른쪽 꼬리는 Φ(λ−c), 왼쪽은 Φ(−λ−c)이므로 합이 검정력입니다. λ를 −λ로 바꾸면 두 항의 순서만 바뀌어 같은 값을 얻습니다. 한쪽 검정에서는 이 부호 대칭이 성립하지 않습니다.
π(λ)π(−λ)=Φ(λ−c)+Φ(−λ−c),=π(λ).
Add right-tail Φ(λ−c) and left-tail Φ(−λ−c). Reversing λexchanges the terms. This symmetry does not hold for an upper-sided test.
π(λ)π(−λ)=Φ(λ−c)+Φ(−λ−c),=π(λ).
16. 영 효과와 잘못된 방향Zero effect and the wrong direction
유의수준 α=.05인 알려진 분산의 정규 참조 검정에서 Δ=0의 검정력은 얼마인가요? Δ<0일 때 양의 한쪽 검정으로 목표 .8을 만들려고 n을 늘리는 계획도 평가하세요.
At α=.05 in a known-variance Gaussian reference, what is power at Δ=0? Can a negative effect reach target .8 by increasing n for an upper-sided test?
풀이와 확인할 이유Solution and explanation
영 효과에서 검정력은 크기인 .05입니다. 양의 한쪽 검정에서 음의 Δ이면 λ<0이고 n이 커질수록 더 음수가 되어 검정력은 오히려 작아집니다. 음의 효과를 제곱한 z합 식만 보고 .8을 달성한다고 결론내리면 방향 조건을 잃습니다.
At zero effect, power is .05. For a negative effect in an upper-sided test, λbecomes more negative as n grows, and power decreases. Squaring the effect in a sample-size formula cannot erase the directional condition.
17. 통상 z합 계획의 범위Scope of the conventional z-sum plan
계획용 반올림 값 c=1.96, z_goal=.84, 두 군 공통 v=1, 효과 크기 .4를 사용합니다. z합 식의 각 군 n을 구하고 양쪽 검정의 정확 최소라고 불러도 되는지 설명하세요.
Using rounded planning constants c=1.96, z_goal=.84, common two-arm v=1 and effect magnitude .4, find n per arm. Is it the exact two-sided minimum?
풀이와 확인할 이유Solution and explanation
n≥2×(1.96+.84)²/.4²=98이므로 이 반올림 계획에서는 각 군 98입니다. λ≥c+z_goal은 한쪽 꼬리만으로 목표를 충족시키는 충분조건입니다. 양쪽 전체 검정력에는 반대 꼬리도 있으므로 정확 최소 정수라는 뜻이 아닙니다. 실제 계산에서는 정확 분위수와 정수 후보 검정력을 별도로 확인합니다.
The rounded formula gives 2(2.8)²/.4²=98 per arm. Requiring λ≥c+z_goalis sufficient from one tail alone. Two-sided power includes the opposite tail, so this is not a claim of exact integer minimality. Actual calculations should use proper quantiles and check candidate power.
18. 작은 효과의 비용Cost of smaller effects
정규 z합 계획에서 분산·α·목표 검정력·배정비를 고정합니다. 효과 크기를 .4에서 .2로 줄이면 연속 계획 n은 몇 배인가요? 이는 모든 반올림 정수도 정확히 같은 배수라는 뜻인가요?
Hold variance, α, target power and allocation fixed in the z-sum plan. What happens when effect magnitude falls from .4 to .2? Must rounded integer counts have exactly that ratio?
풀이와 확인할 이유Solution and explanation
연속 계획은 Δ²의 역수에 비례하여 4배입니다. 최소 정수 올림은 경계에서 다른 비율을 만들 수 있으므로 항상 정수도 정확히 4배라는 주장은 아닙니다. 효과가 더 작다는 것은 발견 가능성이 사라진다는 뜻이 아니라 같은 목표에 더 많은 정보가 필요하다는 뜻입니다.
Continuous n scales as 1/Δ², so it quadruples. Integer ceilings need not preserve the exact ratio. Smaller effects require more information for the same target; they are not below a hard physical detection boundary.
19. 불균등 배정의 분산Unequal allocation variance
두 독립 군 안에서 iid 관측이고 알려진 분산이 v₁=9, v₀=1입니다. n₁=n₀=50일 때와 총 100을 n₁=75, n₀=25로 배정할 때 차이 분산을 비교하세요.
Independent arms have iid observations with known variances v₁=9, v₀=1. Compare balanced 50:50 with 75:25 at total 100.
풀이와 확인할 이유Solution and explanation
균형 분산은 9/50+1/50=.2입니다. 75:25에서는 9/75+1/25=.12+.04=.16으로 작습니다. 총 수와 단위 비용이 같고 SD가 3:1이면 최적 연속 비율은 3:1입니다. 집단별 비용·최소 수·분산 가정이 바뀌면 다시 계산합니다.
Balanced variance is 9/50+1/50=.2. The 75:25 allocation gives 9/75+1/25=.16. With equal costs and SD ratio 3:1, this is the continuous optimal ratio. Different costs or constraints require a revised design.
20. 양의 비용에서 최적 배정 비율Optimal allocation with positive costs
두 독립 군 평균 차이의 분산 v₁/n₁+v₀/n₀를 고정 예산 c₁n₁+c₀n₀=B에서 줄입니다. B>0이고 v₁, v₀, c₁, c₀>0일 때 연속 최적 배정 비율을 유도하세요.
Minimize v₁/n₁+v₀/n₀under c₁n₁+c₀n₀=B>0, with all variances and costs positive. Derive the continuous allocation ratio.
풀이와 확인할 이유Solution and explanation
라그랑주 조건에서 v₁/n₁²=λc₁, v₀/n₀²=λc₀입니다. 두 식을 나누고 양의 제곱근을 취하면 아래 비율입니다. 비싼 군은 같은 SD에서 적게 배정합니다. 정수·각 군 최소 수·현장 제약은 별도 단계입니다.
n0n1=v0c1v1c0=σ0c1σ1c0.
The first-order conditions give v₁/n₁²=λc₁and v₀/n₀²=λc₀. Divide and take positive square roots. Integer counts, minimum arm sizes and field restrictions remain separate.
n0n1=v0c1v1c0=σ0c1σ1c0.
21. 최소검출효과의 뜻Meaning of a minimum detectable effect
한 정규 참조 설계에서 목표 검정력 .8을 주는 효과 크기를 .3이라고 보고했습니다. .29는 절대 발견할 수 없고 .31은 반드시 발견된다는 뜻인가요?
A Gaussian-reference design reports effect magnitude .3 at target power .8. Is .29 undetectable and .31 certain to be detected?
풀이와 확인할 이유Solution and explanation
둘 다 아닙니다. 최소검출효과는 고정한 α·n·분산·검정 규칙과 목표 검정력에 연결된 설계상의 크기입니다. .29에서도 기각이 일어날 수 있고 .31에서도 비기각이 일어날 수 있습니다. 현재 참효과가 .3이라는 추정도 아닙니다. 목표와 가정을 함께 적어야 수의 의미가 정해집니다.
Neither. The value connects a specified test, n, variance and α to a power target. Rejection can occur at .29 and fail at .31. It is not an estimate of the true effect. State the target and assumptions with the number.
22. 공통 이진 분산의 가정Assuming a common binary variance
참조 이탈 비율 p=11/70에서 .03 절대 감소를 계획합니다. 참조 p(1−p)를 두 군 모두의 분산으로 고정하는 Gaussian 계획과 실제 Bernoulli 두 군 분산을 비교하세요.
Start at churn p=11/70 and plan an absolute reduction .03. Compare fixing p(1−p) in both Gaussian-reference arms with actual Bernoulli variances.
풀이와 확인할 이유Solution and explanation
참조 분산은 649/4900입니다. 가정한 다른 군 확률은 11/70−3/100=89/700이고 그 Bernoulli 분산은 (89/700)(611/700)으로 참조 분산과 다릅니다. 공통분산 정규 계획은 명시한 작업 가정이며 실제 이진 분산이 같다는 사실이 아닙니다. 정확 이진 검정력은 해당 검정의 이산 기각 영역을 따로 정해야 합니다.
The reference variance is 649/4900. The alternative probability is 89/700, whose Bernoulli variance is (89/700)(611/700), not the reference value. A common-variance Gaussian plan is a chosen working assumption. Exact binary-test power requires its own discrete rejection rule.
23. 두 군 수와 전체 수Per-arm and total counts
각 군 832명의 계획에서 모집 총수는 얼마인가요? 군당 10% 비응답이라는 말만 듣고 각 군 832명을 초청하면 같은 가용 수가 확보되나요?
A plan needs 832 usable participants per arm. What is the total? Does inviting 832 per arm preserve that count under assumed 10% nonresponse?
풀이와 확인할 이유Solution and explanation
가용 목표 총수는 1,664명입니다. 각 군 초청 832명에서 응답률 .9를 가정한 기대 가용 수는 748.8명으로 832명보다 작습니다. 기대 기준만 맞추려면 각 군 ceil(832/.9)=925명이고, 높은 확보확률 목표는 이보다 다른 계산을 요구합니다. 실제 응답률도 가정임을 밝혀야 합니다.
The usable total is 1664. Inviting 832 at response .9 gives expected 748.8 per arm. Even the expectation criterion needs ceil(832/.9)=925 invitations per arm; count assurance requires another calculation. The response rate itself remains an assumption.
24. 군집 설계효과Cluster design effect
C=20개 독립 군집, 군집당 m=10, 공통 관측 분산 v>0, 군집 내 모든 서로 다른 쌍의 공분산 ρv와 ρ=.1을 가정합니다. DE와 분산 등가 n을 구하세요.
Assume 20 independent equal clusters of size 10, common v>0 and pairwise within-cluster covariance ρv with ρ=.1. Find DE and variance-equivalent n.
풀이와 확인할 이유Solution and explanation
DE=1+9×.1=1.9입니다. 총 행 수는 200이고, 동일 v의 iid 평균과 분산을 맞춘 수는 200/1.9=2000/19≈105.263입니다. 이것은 105개 독립 군집이나 자유도가 아닙니다. 실제 군집 수는 여전히 20입니다.
DE=1+9(.1)=1.9. The 200 rows have variance-equivalent iid size 200/1.9=2000/19≈105.263. This is neither an independent-cluster count nor degrees of freedom; there are still 20 clusters.
25. 군집 평균 분산의 유도Derive variance of the clustered mean
C≥1개 독립 군집마다 m≥1개 관측이 있고 모두 분산 v>0, 군집 내 서로 다른 쌍의 공분산은 ρv입니다. 전체 평균 분산을 항의 합으로 유도하세요.
For C≥1 independent clusters of size m≥1, all observations have variance v>0 and within-cluster pair covariance ρv. Derive the total-mean variance.
풀이와 확인할 이유Solution and explanation
대각 분산의 합은 Cmv, 같은 군집의 순서 있는 비대각 공분산 합은 Cm(m−1)ρv입니다. 이를 전체 평균의 분모 (Cm)²로 나눕니다. 다른 군집의 항은 독립에서 0입니다.
Var(Yˉ)=(Cm)2Cmv+Cm(m−1)ρv=Cmv{1+(m−1)ρ}.
Diagonal terms sum to Cmv; ordered within-cluster off-diagonal terms sum to Cm(m−1)ρv. Divide by (Cm)². Cross-cluster covariance terms are zero under independence.
Var(Yˉ)=(Cm)2Cmv+Cm(m−1)ρv=Cmv{1+(m−1)ρ}.
26. 같은 200행의 두 설계Two designs with two hundred rows
독립 동일크기 군집 모형과 ρ=.1에서 (C, m)=(20, 10)과 (10, 20)을 비교하세요. 관측 분산 v는 같습니다.
Under independent equal-size clusters, common v and ρ=.1, compare (C, m)=(20, 10) with (10, 20).
풀이와 확인할 이유Solution and explanation
첫 DE는 1.9, 분산 등가 수는 2000/19≈105.263입니다. 둘째 DE는 2.9, 분산 등가 수는 2000/29≈68.966입니다. 같은 행 수에서 양의 군집 관련성이 있으면 더 많은 작은 군집이 유리할 수 있습니다. 비용·군집당 최소 수·배정과 추론 조건까지 고려해야 완성된 선택입니다.
The first has DE 1.9 and equivalent size 2000/19≈105.263; the second DE 2.9 and size 2000/29≈68.966. More smaller clusters can provide more information at the same row count with positive intracluster association. Costs and inference constraints remain relevant.
27. ICC 경계의 의미Interpret ICC boundaries
동일크기 독립 군집 모형에서 ρ=0, ρ=1, m=1을 각각 해석하세요. ρ=0이면 관측 전체가 독립이라고 증명되나요?
Interpret ρ=0, ρ=1 and m=1 in the equal-size independent-cluster model. Does ρ=0 prove full independence?
풀이와 확인할 이유Solution and explanation
ρ=0이면 이 분산식의 DE는 1이지만, 공분산 0만으로 일반적인 독립이 증명되지는 않습니다. ρ=1이면 DE=m이고 전체 평균 분산은 v/C입니다. m=1이면 DE=1이며 군집 안의 서로 다른 쌍이 없어 ICC는 사용되지 않습니다. 경계마다 무엇이 계산에서 사라졌는지 구별합니다.
At ρ=0, DE=1 for this variance formula, but zero covariance need not imply independence. At ρ=1, DE=m and mean variance is v/C. At m=1, DE=1 and there are no distinct within-cluster pairs, so ICC is unused.
28. 군집 비용과 반폭Cluster costs and halfwidth
C=20, m=10, 군집 고정비 100, 개별 관측 비용 2이면 총비용은 얼마인가요? 같은 n의 iid 반폭 H₀>0와 DE=1.9 군집 반폭의 비율도 구하세요.
For C=20, m=10, cost 100 per cluster plus 2 per observation, find total cost. Compare a clustered DE=1.9 halfwidth with iid H₀>0 at the same total n.
풀이와 확인할 이유Solution and explanation
비용은 20(100+10×2)=2,400입니다. 같은 c·v·총 n에서 분산이 DE배이므로 반폭은 H₀√1.9≈1.378405H₀입니다. 비용과 분산을 함께 비교할 수 있지만 이 분산 등가 관계가 자동 t 자유도를 정해 주지는 않습니다.
Cost is 20(100+20)=2400. With the same multiplier, variance and total n, the halfwidth ratio is √1.9≈1.378405. Variance equivalence does not supply t degrees of freedom.
29. 기대 응답 수는 보장이 아니다Expected responses are not a guarantee
독립 응답률 r=.5에서 가용 응답 k=3개가 필요합니다. 기대 수 기준 초청 수와 그때의 실제 확보확률을 손으로 구하세요.
With independent response probability .5 and required count 3, find expectation-based invitations and their actual attainment probability.
풀이와 확인할 이유Solution and explanation
기대 기준은 I=ceil(3/.5)=6입니다. K~Binomial(6, .5)이므로 P(K≥3)=1−(1+6+15)/64=42/64=21/32=.65625입니다. 기대값 3이라는 사실이 3명 확보확률 1이나 .9를 뜻하지 않습니다.
I=6 gives E[K]=3. But K~Binomial(6, .5), so P(K≥3)=1−22/64=21/32=.65625. An expected count of 3 does not imply certainty or assurance .9.
30. 90% 확보 초청 수의 최소성Minimum invitations for ninety-percent attainment
독립 응답률 .5에서 최소 3응답을 .9 이상의 확률로 확보하려 합니다. 초청 8명과9명의 확률을 구하고 왜 최소인지 설명하세요.
At independent response .5, find probabilities of at least 3 responses with 8 and 9 invitations and establish minimum invitations for assurance .9.
풀이와 확인할 이유Solution and explanation
8명에서는 1−(1+8+28)/256=219/256≈.855469입니다. 9명에서는 1−(1+9+36)/512=466/512≈.910156입니다. 한 명을 추가하면 기존 응답 수에 0또는1을 더하므로 확보확률은 감소하지 않습니다. 8명은 실패하고 9명은 충족하므로 최소는 9입니다.
The probabilities are 219/256≈.855469 and 466/512≈.910156. Coupling each new design to the previous responses plus one Bernoulli shows monotonicity. Eight fails and nine succeeds, so nine is minimal.
31. 확보확률의 세 경계Three count-assurance boundaries
필요 응답 k≥1에서 독립 응답률 r=0, r=1, 그리고 0<r<1에서 목표 확보확률 q=1을 비교하세요.
For required k≥1, compare r=0, r=1, and target assurance 1 when 0< r<1 under independent responses.
풀이와 확인할 이유Solution and explanation
r=0이면 양의 k를 확보할 수 없습니다. r=1이면 I≥k일 때 확률 1입니다. 0<r<1이면 유한 I에서 모두 비응답할 확률 (1−r)ᴵ>0이므로 양의 k 확보확률은 항상 1보다 작습니다. q=1을 유한 I로 달성할 수 없다는 결론은 이 가정 아래의 수학적 경계입니다.
At r=0 attainment is impossible. At r=1 it is certain once I≥k. For interior r and finite I, all nonresponse has probability (1−r)ᴵ>0, so positive-count attainment is strictly below 1. This is a model boundary, not just a calculator limit.
32. 계산 한도와 수학적 부재A computation cap is not mathematical nonexistence
초청 상한 100인 실습에서 목표 확보확률이 상한 안에서 달성되지 않았습니다. 이 사실만으로 모든 유한 초청 수에서 달성 불가능이라고 할 수 있나요?
A lab capped at 100 invitations does not reach an assurance target. Does that prove no finite invitation count can reach it?
풀이와 확인할 이유Solution and explanation
아닙니다. “100 이내에 없음”과 “어떤 유한 수에도 없음”은 다릅니다. 예를 들어 0<r<1, k고정, q<1인 독립 모형에서는 더 큰 수가 목표를 충족할 수 있습니다. 계산 정밀도 예산 초과 역시 확률 자체의 미정의가 아닙니다. 상한·입력 범위·수학적 경계를 별도로 보고합니다.
No. Failure within 100 is not failure for every finite count. With interior response probability, fixed k and q<1, a larger count can work. Precision-budget refusal likewise does not make the probability undefined. Report computational limits separately.
33. 확보확률과 구간 포함률Attainment and interval coverage
응답 수를 90% 확률로 확보하고, 가용 응답에서 명목 95% 구간을 만들 계획입니다. 이 두 수를 같은 보장이라고 할 수 있나요?
A plan attains enough responses with probability .9 and proposes a nominal 95% interval. Are these the same guarantee?
풀이와 확인할 이유Solution and explanation
아닙니다. 첫 사건은 K≥k이고, 둘째는 통계 절차의 구간이 표적을 포함하는 사건입니다. 선택·결측 모형이 틀리면 충분한 응답 수를 확보해도 구간이 편향될 수 있습니다. 두 사건의 결합확률도 조건부 구조 없이 단순히 .9×.95라고 정해지지 않습니다.
No. One event is K≥k; the other is coverage of a parameter. Enough responses do not remove selection bias or establish interval assumptions. Their joint probability is not automatically .9×.95 without the relevant conditional structure.
34. 독립 두 귀무 검정의 오류Errors in two independent null tests
전역 귀무에서 두 p값이 독립 Uniform(0, 1)입니다. 각각 α=.1에서 검정하면 FWER는 얼마인가요? Bonferroni로 전체 .1을 목표로 하면 각 기준은요?
Two null p values are independent Uniform(0, 1). Find FWER at marginal α=.1 and the Bonferroni threshold for family target .1.
풀이와 확인할 이유Solution and explanation
둘 다 기각하지 않을 확률은 .9²=.81이므로 FWER=.19입니다. Bonferroni 각 기준은 .1/2=.05입니다. 후자는 유효한 참귀무 p값이면 독립 없이도 FWER≤.1을 보장하지만, 독립일 때 실제 FWER는 1−.95²=.0975로 약간 작습니다.
FWER=1−.9²=.19. Bonferroni uses .05 per test and guarantees at most .1 with valid null p values even without independence. Under independence its actual FWER is 1−.95²=.0975.
35. 합집합 상계의 증명Prove the union-bound guarantee
m≥1개 검정군에서 각 참귀무 p값이 유효합니다. 각 기준 α/m일 때 의존성에 상관없는 FWER≤α를 유도하세요.
For m≥1 tests with valid marginal true-null p values, prove FWER≤α at threshold α/m without assuming independence.
풀이와 확인할 이유Solution and explanation
참귀무 집합을 I₀라고 하면 거짓 기각은 그중 하나라도 p≤α/m인 사건입니다. 합집합 상계를 쓰면 각 확률의 합 이하이고 유효성으로 각각 α/m이하입니다. |I₀|≤m을 사용합니다. 독립 등식을 쓰지 않았다는 점이 핵심입니다.
Take a union over true-null rejection events. The union bound and marginal validity give the result because there are at most m true nulls. No independence equality is used.
36. 사후 검정군 축소Shrinking a family after seeing results
20개 결과를 모두 검정하고 가장 작은 p값 한 개만 남겨 “검정이 한 개여서 보정이 필요 없다”고 보고했습니다. 어떤 선택이 빠졌나요?
Twenty outcomes were tested, then only the smallest pvalue was retained and called a single unadjusted test. What selection is omitted?
풀이와 확인할 이유Solution and explanation
보고한 한 개는 20개 중 결과를 보고 선택한 값입니다. 원 선택 절차의 기회가 사라진 것이 아니므로 처음부터 한 검정만 했을 때의 유효성을 그대로 적용할 수 없습니다. 원 검정군과 선택 규칙을 공개하고 그 절차에 맞는 추론이나 새 검증 자료를 사용합니다.
The reported value was selected from twenty opportunities. Relabeling it one test does not remove that selection. Disclose the original family and selection rule, and use inference appropriate to that procedure or new evaluation data.
37. 누적 자료의 다섯 번 확인Five looks at cumulative data
같은 누적 자료를 다섯 시점에서 고정 n p값으로 확인합니다. 각 α=.05일 때 오류가 정확히 1−.95⁵라고 할 수 있나요?
A fixed-n pvalue is checked at five cumulative looks, each at .05. Is the error exactly 1−.95⁵?
풀이와 확인할 이유Solution and explanation
일반적으로 아닙니다. 같은 기록을 공유하므로 다섯 p값은 독립이 아닙니다. 1−.95⁵는 명시한 독립 전역 귀무의 예이지 이 중간 확인 절차의 정확 오류가 아닙니다. 그렇다고 원 고정 n의 .05 보장이 유지된다는 뜻도 아닙니다. 실제 중단·의존 구조에 맞는 순차 설계가 필요합니다.
Not generally. Shared records make the p values dependent. That formula describes a specified independent null family, not these interim looks. The original fixed-n.05 guarantee also does not automatically survive; an appropriate sequential procedure is needed.
38. 두 가지 0.8Two values of point eight
참조 Gaussian 설계의 검정력이 .8이고 독립 응답 계획의 확보확률도 .8입니다. 숫자가 같으니 같은 사건인가요? 사후 참효과 확률 .8이라고 부를 수 있나요?
Gaussian-reference power and response-count assurance are both .8. Are they the same event or posterior probability of a true effect?
풀이와 확인할 이유Solution and explanation
모두 구별해야 합니다. 검정력은 지정 대안 아래 기각 확률이고, 확보확률은 응답 수가 기준 이상인 사건의 확률입니다. 어느 것도 현재 참효과의 사후확률이라고 바로 바꾸어 읽을 수 없습니다. 수마다 법칙·조건·사건을 문장으로 쓰면 혼동을 줄일 수 있습니다.
No. Power concerns rejection under an explicit effect; assurance concerns reaching a response count. Neither is automatically a posterior probability of a current effect. State the law, conditioning and event for each number.
39. 관측 검정력의 정보Information in observed power
같은 양쪽 Gaussian z 검정에서 n·SE·α를 고정하고 관측 효과를 대안 자리에 다시 넣었습니다. 이 검정력이 관측 p값에 없던 독립 증거를 제공하나요?
For the same two-sided Gaussian z test, hold n, SE and αfixed and plug the observed effect into the alternative. Does resulting power add independent evidence beyond the observed pvalue?
풀이와 확인할 이유Solution and explanation
아닙니다. 관측 z=효과/SE의 절댓값으로 두 값이 함께 정해집니다. 관측 검정력은 같은 통계를 재표현한 것이며 다음 연구의 참효과를 알려 주지 않습니다. 추정 구간과 실질 효과 범위를 보고, 미래 설계에는 불확실한 분산·효과를 여러 가정으로 비교합니다.
No. Both are determined by the same absolute observed z. This re-expression does not reveal the future true effect. Report intervals and substantive ranges, and examine several plausible effect/variance assumptions for future design.
40. 분석 계획의 빠진 부분Missing parts of an analysis plan
계획에 “평균을 비교한다”만 적었습니다. 두 시점의 같은 점포 FTE 자료를 쓴다면 최소 다섯 가지 결정 사항을 구체적으로 보강하세요.
A plan says only“compare means”for two-wave establishment FTE data. Give at least five specific decisions it needs.
풀이와 확인할 이유Solution and explanation
예를 들어 표적을 같은 점포의 변화 평균으로 정하고, 짝 연결 키·두 wave의 단위·공동 가용 조건·집단 대비·SE 및 의존 가정·제외·결측 민감도·다중성·중단을 적습니다. 실제 원행과 중복을 보존하고 결측을 0으로 바꾸지 않습니다. 단어를 늘리는 것이 아니라 계산과 주장 범위를 정하는 것이 목적입니다.
Specify paired-change estimand, link keys, wave units, joint availability, group contrast, SE/dependence assumptions, exclusions, missingness sensitivity, multiplicity and stopping. Preserve source rows and duplicates; do not replace unavailable waves by zero. The purpose is to determine computation and claims.
41. 기존 자료와 전향적 주장Existing data and prospective claims
공개 결과표를 읽고 유망한 변수를 선택한 뒤 로컬 계획을 작성했습니다. “결과를 전혀 보지 않은 사전등록”이라고 쓸 수 있나요? 더 정확한 보고를 제안하세요.
After reading public outcome tables, you selected promising variables and wrote a local plan. May it be called a preregistration made without outcome access?
풀이와 확인할 이유Solution and explanation
그렇게 쓸 수 없습니다. 어떤 결과표와 정보를 먼저 보았는지, 그 정보가 변수 선택에 영향을 주었는지, 이후 어느 분석을 계획했는지 적습니다. 기존 자료의 새 계획도 투명성을 높일 수 있지만 과거 정보 접근을 없애지는 못합니다. 로컬 작성과 외부 등록 여부도 별도로 밝힙니다.
No. Disclose which results were known, how they informed selection, and what analyses were specified afterward. A new plan can improve transparency without undoing prior access. Also separate local writing from external registration.
42. 계획 변경의 보고Reporting an amendment
장비 고장으로 원계획의 측정값을 얻지 못해 대체 결과를 사용했습니다. 어떤 기록을 남겨야 하며 기록만 하면 원래 추론 보장이 자동 회복되나요?
Equipment failure prevented the planned outcome measurement, and a replacement was used. What should be recorded, and does documentation restore the original inferential guarantee?
풀이와 확인할 이유Solution and explanation
원결과·대체 결과·고장 이유·결정 시점·이미 본 정보·영향받은 분석을 남깁니다. 계획대로 할 수 있었던 부분과 변경 부분을 구별합니다. 기록은 변경을 보이게 하지만 측정의 동등성이나 선택 후 추론 타당성을 자동 증명하지는 않습니다. 대체 분석의 가정을 다시 설명합니다.
Record original and replacement outcomes, reason, timing, prior outcome access and affected analyses. Distinguish unchanged and amended procedures. Documentation makes the change visible but does not establish measurement equivalence or selection-aware validity.
43. 로컬 계획과 외부 시점 기록Local plan and an external timing record
실습의 모든 계획 항목을 채우고 파일 이름을 preregistered.txt로 정했습니다. 외부 등록·시점 검증·과학적 타당성이 완료되었나요?
All local plan fields are filled and the file is named preregistered.txt. Are external registration, timing verification and scientific validity established?
풀이와 확인할 이유Solution and explanation
아닙니다. 완성한 것은 로컬 텍스트입니다. 외부 서비스 제출, 독립 시점 기록 확인, 연구의 방법적 타당성은 다른 사실입니다. 실습은 외부 등록을 수행하지 않았습니다. 내용이 채워졌다는 사실과 내용이 적절하다는 판단도 구별합니다.
No. The completed object is local text. External submission, independent historical verification and methodological validity are separate facts. The exercise performs no external registration, and filled fields do not certify appropriate content.
44. 검증 자료를 반복해서 열기Repeatedly opening a holdout
처음 보류한 검증 자료를 보고 모형을 20번 수정했습니다. 마지막 점수를 처음부터 독립인 새 평가처럼 읽을 수 있나요?
You revised a model twenty times after reading the original holdout results. Is its final score still an untouched independent evaluation?
풀이와 확인할 이유Solution and explanation
그 자료가 모형 선택에 영향을 주었으므로 최종 모형에 대해 처음의 독립 평가 역할이 유지되지 않습니다. 사용 이력을 공개하고 새 평가 자료나 선택을 다루는 절차를 고려합니다. 사람·점포 중복과 시간 누출도 별도로 점검합니다. 단순히 holdout이라는 이름이 보장을 만들지 않습니다.
No. The holdout informed model selection. Disclose its use and consider new evaluation data or selection-aware methods. Check unit overlap and temporal leakage separately; the label holdout alone creates no guarantee.
45. 같은 파일과 참인 자료Identical file versus valid data
두 연구자가 CSV의 SHA-256이 같음을 확인했습니다. 현실의 측정 정확성·대표성·인과 해석까지 검증된 것인가요?
Two researchers verify the same CSV SHA-256. Have measurement accuracy, representativeness and causal interpretation also been established?
풀이와 확인할 이유Solution and explanation
해시는 같은 바이트라는 근거입니다. 같은 잘못된 값도 같은 해시를 갖습니다. 측정 과정·프레임·표집·결측·모형·식별을 따로 확인해야 합니다. 해시와 원자료 보존은 추적에 유용하지만 진실과 타당성의 대체물은 아닙니다.
No. A hash supports byte identity. Identical erroneous values have the same hash. Measurement, frame, sampling, missingness, model and identification require separate evaluation.
46. 모의 비율의 분산 유도Derive simulation-fraction variance
B≥1번 독립 모의 연구의 성공 지시값 I_b가 iid Bernoulli(q)입니다. 성공 비율 q̂_B의 기대값과 분산을 구하세요.
For B≥1 independent simulated studies, let I_b be iid Bernoulli(q). Find mean and variance of the success fraction.
Linearity gives mean q. Independence gives variance Bq(1−q) for the sum; division by B² gives q(1−q)/B. Dependent simulations require covariance terms.
E[qB]Var(qB)=q,=B2Bq(1−q).
47. 모의 SE 목표의 반복 수Repetitions for a simulation SE target
독립 Bernoulli 성공 모의에서 q를 모릅니다. 최악 경우 SE≤.005를 위한 B를 구하세요. 절대 오차가 반드시 .005 이하라는 뜻인가요?
For independent Bernoulli-success simulations with unknown q, find B ensuring worst-case SE≤.005. Is absolute error always at most .005?
풀이와 확인할 이유Solution and explanation
q(1−q)≤1/4이므로 SE≤1/(2√B)입니다. 이 상계가 .005이하이려면 B≥10,000입니다. 이것은 표준편차의 한계이지 모든 실행의 절대 오차 한계가 아닙니다. 오차 확률을 보장하려면 별도 농도 부등식이나 구간의 조건을 사용합니다.
Since q(1−q)≤1/4, SE≤1/(2√B), so B≥10000. This controls a standard deviation, not every realized error. A probabilistic error guarantee needs additional analysis.
48. 모의 성공 0회Zero simulated successes
독립 모의 100회에서 성공이 0회였습니다. 참 모형 성공확률 q가 정확히 0인가요? q=.01이어도 같은 결과가 가능한지 계산식으로 보이세요.
One hundred independent simulations yield zero successes. Must q=0? Show that the outcome remains possible at q=.01.
풀이와 확인할 이유Solution and explanation
0회는 모의 결과이지 q=0의 증명이 아닙니다. q=.01에서 100회 모두 실패할 확률은 .99¹⁰⁰≈.366032로 양수입니다. 따라서 0을 정확 확률처럼 보고하지 않고 반복 수와 추정 불확실성을 적습니다. 정확 합으로 계산한 수학적 0과 구별합니다.
No. At q=.01, zero successes has probability .99¹⁰⁰≈.366032. Report the repetition count and estimation uncertainty rather than calling the simulation fraction an exact probability zero.
49. 실제 국가의 전수 설계 포함률Exhaustive coverage on the actual country frame
선택한 실제 16국 프레임에서 n=4 균등 비복원 부분집합 1,820개 중 알려진 S²와 선택 배수 1.96의 평균 구간이 프레임 평균을 포함한 수는 1,734개입니다. 포함률을 구하고 .95와 비교하세요.
On the chosen actual sixteen-country frame, 1734 of 1820 uniform n=4 subsets cover the frame mean using known S² and multiplier 1.96. Compute coverage and compare .95.
풀이와 확인할 이유Solution and explanation
포함률은 1734/1820=867/910≈.952747입니다. 이것은 해당 고정 프레임·구간·설계의 정확 열거값이며, 정확히 .95라고 바꾸어 쓸 수 없습니다. 1,820개를 모두 열거했으므로 이 비교에는 유한 Monte Carlo 비율의 오차가 없습니다. 세계 모든 국가·사람의 구간 포함률로 일반화하지 않습니다.
Coverage is 867/910≈.952747, not exactly .95. This is exhaustive coverage for that frame, design and interval, with no finite Monte Carlo sampling error in the enumeration. It is not a world-country or world-person coverage claim.
50. 실제 국가에서 n을 두 배로Doubling n on the actual country frame
고정 N=16 프레임의 S²>0가 알려져 있고 균등 비복원 추출합니다. n=4와8의 평균 분산·같은 배수 반폭 비율을 구하세요.
For a fixed N=16 frame with known S²>0 and uniform SRS, compare mean variances and equal-multiplier halfwidths at n=4 and 8.
풀이와 확인할 이유Solution and explanation
n=4 분산은 3S²/16, n=8은 S²/16입니다. 분산 비율은 1/3, 반폭 비율은 1/√3입니다. iid에서 n 두 배일 때 1/√2인 관계와 다릅니다. 유한 프레임에서 추출 비율이 커지며 보정도 함께 달라지기 때문입니다.
The variances are 3S²/16 and S²/16. Their ratio is 1/3, and halfwidth ratio is 1/√3, rather than the iid 1/√2. Sampling fraction changes the finite correction as well.
51. 국가 전수의 0은 무엇을 뜻하나What a census zero means
선택한 16국을 모두 포함해 설계 반폭이 0입니다. 경제 지표의 측정·개정 오차와 세계 대표성까지 사라졌나요?
Including all sixteen chosen countries gives zero design halfwidth. Have measurement/revision uncertainty and world representativeness vanished?
풀이와 확인할 이유Solution and explanation
아닙니다. 고정한 발표값의 프레임 평균을 다시 추출하는 표집 오차만 0입니다. 발표값의 생성·개정·누락과 선택 16국 밖의 범위는 다른 문제입니다. 표적을 프레임의 균등 평균으로 유지하면 전수 결과의 정확한 의미를 말할 수 있습니다.
No. Only sampling error for the fixed published frame mean vanishes. Indicator construction, revisions and scope outside the sixteen countries remain separate. Retain the stated uniform-frame target.
52. 실제 로그임금 파일럿의 필요한 응답Responses from the actual log-wage pilot
가용 3,010개 로그임금의 파일럿 표본분산 약 .1969563553을 미래 계획값으로 채택합니다. c=1.96, h=.05, DE=1에서 필요한 응답 수와 단위를 설명하세요.
Adopt available 3010 log-wage records’ sample variance about .1969563553 as a future assumption. At c=1.96, h=.05, DE=1, find required usable responses and explain units.
풀이와 확인할 이유Solution and explanation
n≥1.96²×.1969563553/.05²≈302.651이므로 303개입니다. 정밀 계산에는 보관한 파일럿 분산을 쓰며 여기의 소수는 표시용입니다. h는 로그임금 평균의 반폭이지 달러 수준의 반폭이 아닙니다. 가용 자료의 파일럿이 미래 참분산이나 비응답 무편향을 확정하지 않습니다.
The bound is about 302.651, hence 303. Use preserved precision for the final integer; the displayed variance is rounded. Halfwidth concerns a mean log wage, not a currency-level mean. The pilot does not establish future variance or unbiased nonresponse.
53. 실제 파일럿 계획의 초청Invitations in the actual-pilot scenario
가용 목표 k=303, 독립 응답 가정 r=.6입니다. 기대 기준 초청과 확보확률 .9의 최소 초청을 비교하세요. 528·529 초청의 보관 확률은 각각 약 .897718·.906640입니다.
Require 303 usable responses at assumed independent response .6. Compare expectation-based invitations with minimum assurance .9. Stored attainment probabilities at 528 and 529 are about .897718 and .906640.
풀이와 확인할 이유Solution and explanation
기대 기준은 ceil(303/.6)=505입니다. 505명에서 확보확률은 약 .519315로 .9보다 낮습니다. 보관한 두 꼬리 확률과 단조성에서 .9 확보 최소는 529명입니다. 529는 새로 조사한 인원이 아니라 이 응답 모형의 계획값입니다.
The expectation criterion gives 505, but its attainment probability is about .519315. Monotonicity and the probabilities at 528 and 529 establish minimum 529 for assurance .9. This is a model plan, not newly observed recruitment.
54. 반폭과 DE를 바꾼 파일럿Change pilot halfwidth and DE
같은 파일럿 v≈.1969563553, c=1.96에서 반폭 .05·DE1 계획은 응답303개입니다. 반폭 .1·DE1, 반폭 .1·DE2의 필요한 응답을 구하세요.
Using the same pilot v≈.1969563553 and c=1.96, the h=.05, DE 1 plan requires 303 responses. Find counts for h=.1, DE 1 and h=.1, DE 2.
풀이와 확인할 이유Solution and explanation
반폭 두 배는 연속 계획을 1/4로 줄입니다. 정확 보관 분산으로 .1·DE1 계획은 ceil(약75.6628)=76입니다. DE2에서는 연속 값이 약151.3255가 되어 152입니다. 먼저 정수303을 임의로 나누고 곱하는 대신 연속 식에 가정을 넣고 마지막에 올립니다.
Doubling halfwidth quarters continuous n. With preserved variance, the counts are ceil(about 75.6628)=76 and ceil(about 151.3255)=152. Change assumptions in the continuous formula before taking the final ceiling.
55. 실제 고객 참조의 각 군 수Per-arm counts from the actual customer reference
실제 3,150기록·495이탈에서 p=11/70, v=649/4900을 참조합니다. 가정 절대 감소 .03, 두 독립 Gaussian 군, α=.05, 목표 .8의 계획은 각 군 2,311입니다. 전체 수와 계획 검정력 약 .800142의 의미를 설명하세요.
Actual 3150 records and 495 churns give p=11/70, v=649/4900. A hypothetical .03 reduction, two independent Gaussian arms, α=.05 and target .8 yield 2311 per arm. Interpret total and working power about .800142.
풀이와 확인할 이유Solution and explanation
가용 총수는 4,622입니다. .800142는 명시한 공통 알려진 분산 정규 작업 모형에서 그 정수 n의 대안 기각확률입니다. 실제 원자료에서 새 개입을 실행하거나 효과를 관측한 것이 아닙니다. 정확 이진 검정력·비응답·군집·현장 실행은 별도 설계가 필요합니다.
Total usable count is 4622. The power is alternative rejection probability at that integer n in the specified known-common-variance Gaussian model. No new intervention or observed effect is created. Exact binary power, nonresponse, clusters and implementation need separate design.
56. 퍼센트포인트와 상대 감소Percentage points and a relative reduction
참조 이탈률 p=11/70에서 절대 감소 .05와 상대 5% 감소를 구별하고 새 확률을 각각 구하세요.
From p=11/70, distinguish an absolute .05 reduction from a relative 5% reduction, and compute the new probabilities.
풀이와 확인할 이유Solution and explanation
절대 .05는 5퍼센트포인트여서 새 확률은 11/70−1/20=3/28≈.107143입니다. 상대 5%는 원 확률의 .95배로 209/1400≈.149286입니다. 효과 입력의 단위를 혼동하면 필요한 n이 크게 달라집니다. 둘 모두 여기서는 가정된 대안입니다.
An absolute five-percentage-point decrease gives 3/28≈.107143. A relative 5% decrease gives .95×11/70=209/1400≈.149286. Confusing effect scales changes sample-size plans. Both are hypothetical alternatives here.
57. 포함지시값으로 평균 불편성을 보인다Prove unbiasedness with inclusion indicators
고정 N≥2프레임에서 크기 1≤n≤N의 균등 비복원 표본 S를 뽑습니다. I_i=1{i∈S}와 π_i=n/N을 사용해 표본평균의 불편성을 증명하세요.
For fixed N≥2 and a uniform sample S without replacement of size 1≤n≤N, use I_i=1{i∈S} and π_i=n/N to prove mean unbiasedness.
풀이와 확인할 이유Solution and explanation
각 단위가 같은 포함확률 n/N을 갖습니다. 관측 값은 고정하고 포함지시값에 대해서만 기대합니다. 선형성으로 표본평균의 기대값은 프레임 평균이 됩니다. 이 계산은 선택된 16국 바깥의 대표성을 추가하지 않습니다.
Hold values fixed and take expectation over inclusion indicators. Equal inclusion probabilities and linearity give the frame mean. This design argument does not establish representation outside the frame.
정확한 양의 iid 분산이 v=10⁻⁴⁰⁰, c=2, h=10⁻²⁰⁰입니다. 화면의 일반 수 표시에서 v가 0으로 내려가더라도 필요한 n과 n=1의 반폭은 수학적으로 무엇인가요?
Take exact positive iid v=10⁻⁴⁰⁰, c=2, h=10⁻²⁰⁰. Even if an ordinary numeric display shows v as zero, what are minimum n and the halfwidth at n=1?
풀이와 확인할 이유Solution and explanation
c²v/h²=4이므로 최소 n=4입니다. n=1의 반폭은 2×10⁻²⁰⁰으로 양수이며 일반 부동소수점에서도 이 제곱근 크기는 표현될 수 있습니다. 분산 값의 표시 underflow가 참분산 0이라는 뜻은 아닙니다. 정확 입력·제곱 비교·로그 또는 적절한 척도를 보존해야 합니다.
The exact ratio c²v/h² is4, so n=4. At n=1 the halfwidth is positive 2×10⁻²⁰⁰, and that square-root scale can be representable even when v underflows. Preserve exact input or log-scale computation instead of treating displayed zero as mathematical zero.
59. 작은 설계 보고서를 완성한다Complete a small design report
가상 미래 모형에서 v=4, c=2, h=.5, 독립 동일크기 군집 m=6, ρ=.1입니다. 총 가용 수 기준 계획과 군집 수를 구하고, 독립 응답률 .8의 기대 기준 초청 수가 완성된 군집 비응답 설계인지 평가하세요.
In a hypothetical future model, v=4, c=2, h=.5, equal independent clusters have m=6 and ρ=.1. Find required usable rows and clusters. Does response .8 and an expectation-based invitation count complete a clustered nonresponse design?
풀이와 확인할 이유Solution and explanation
DE=1+5×.1=1.5입니다. 반폭 식에서 가용 n≥c²vDE/h²=96, 따라서 같은 크기 군집은 C=16개입니다. 단순 개별 독립 응답의 기대 기준은 96/.8=120초청입니다. 그러나 비응답 후 군집 크기가 같다는 가정과 공분산 구조는 별도이므로 이 두 계산을 붙였다고 실제 군집 응답 설계가 완성되지는 않습니다. 필요한 군집 유지·할당·누락·확보확률을 다시 지정합니다.
DE=1.5, so usable n≥4×4×1.5/.25=96 and C=16 equal clusters. A separate independent-individual-response expectation gives 120 invitations. It does not preserve equal post-response cluster sizes or certify covariance, retention and assurance. Those design assumptions still require specification.
60. 같은 수를 다시 얻은 뒤 남는 질문Questions remaining after matching computations
한 팀이 실제 원자료를 보존하고 Python과 R에서 같은 표·계획 수를 얻었습니다. 이것을 새로운 독립 실증 반복, 대표성 증명, 인과 효과 확인이라고 불러도 되나요? 다음 확인을 제안하세요.
A team preserves actual inputs and obtains matching tables/plans in Python and R. Is this a new independent empirical replication, proof of representativeness or causal confirmation? Propose the next checks.
풀이와 확인할 이유Solution and explanation
현재 성취는 같은 입력에 대한 계산 재현·대조입니다. 새 독립 자료의 반복 연구나 대표성·인과 식별 증명은 아닙니다. 원자료 생성·단위·결측·추출과 배정 법칙을 확인하고, 주장에 맞는 새로운 자료나 식별 근거·사전 계획·불확실성 평가를 설계합니다. 계산이 맞는다는 사실은 중요하지만 다른 질문의 증거와 구별해야 합니다.
It establishes a scope of same-input computational reproduction and comparison, not new-data replication or causal/representativeness proof. Evaluate data generation, units, missingness, sampling and assignment, and design new evidence or identification arguments appropriate to the claim.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.