부트스트랩·순열검정·재표집 단위Bootstrap, permutation and resampling units
두 값의 복원 손계산에서 실제 짝·연도 블록·정확 배정과 실패 반례까지From two-value replacement sampling to actual pairs, annual blocks, exact assignments and failure cases
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 한 번 모은 자료로 무엇을 다시 반복할까1. What experiment can be repeated after collecting data once?
학생 네 명의 통학 시간을 한 번 조사했습니다. 다시 조사하려면 비용이 들지만, 이미 기록한 네 값에서 복원추출하는 계산은 할 수 있습니다. 이 계산은 새로운 학생을 실제 조사하는 일이 아닙니다. 어떤 반복을 가정했고 그 반복이 원 표집을 얼마나 닮는지가 핵심입니다.
부트스트랩은 자료에서 만든 분포로 다시 표본을 만들고, 순열검정은 귀무 아래 허용된 라벨 배정을 바꿉니다. 짝·집단·시계열에서는 한 번에 움직이는 단위가 중요합니다. 두 방법을 ‘그냥 섞기’로 합치지 않습니다.
Suppose four commuting times were collected once. Another field survey costs effort, but replacement sampling from those four recorded values is computationally possible. It does not observe new students. The key is which repetition was assumed and how it resembles the original sampling process.
Bootstrap samples from an estimated data distribution; permutation tests change labels under a specified null assignment. Pairs, clusters and time blocks require suitable moving units. Neither method is simply “shuffle everything.”
기초Foundations
2. 원 표집과 자료에 조건을 건 재표집을 구별한다2. Separate original sampling from resampling conditional on data
원래 X₁,…, Xₙ이 모집단에서 어떻게 생기는지는 하나의 확률 실험입니다. 그 값을 관측한 뒤 고정하고 별표 *가 붙은 재표본을 뽑는 것은 두 번째 실험입니다. E*, Var*, P*는 관측 자료에 조건을 건 계산을 뜻합니다.
두 번째 법칙을 정확히 계산해도 첫 번째 법칙을 정확히 안다는 뜻은 아닙니다. 반복 수 B를 늘리면 계산 오차는 줄일 수 있지만 원자료 선택 편향·빠진 집단·잘못된 독립 단위는 그대로 남습니다.
Original X₁,…, Xₙ sampling is one probabilistic experiment. Holding observed values fixed and drawing starred resamples is another. E*, Var*, P* refer to the second, conditional calculation.
X1:n=(X1,…,Xn)X1:n∗∣x1:n
X₁:ₙ denotes the original sampling sequence. The starred sequence is resampled conditionally on the fixed observed x₁:ₙ.
Exact calculation of the second law does not reveal the first exactly. More replicates B reduce computational error without repairing selection bias, missing groups or wrong independent units.
기초Foundations
3. 경험분포는 원기록 위치마다 같은 질량을 준다3. The empirical distribution assigns mass to each source position
가용 수치 n개에서 위치 I를 1,…, n 중 균등하게 뽑고 X*=xI라고 합니다. 같은 값이 여러 번 나오면 그 값의 질량은 등장 횟수/n입니다. 서로 다른 숫자 종류마다 같은 비중을 주는 것이 아닙니다.
Fn(t)=n1i=1∑n1{xi≤t}.
가상 (1, 1, 5)는 값 1에 2/3, 값 5에 1/3을 줍니다. 서로 다른 값 (1, 5)만 남기고 각각 1/2로 바꾸면 다른 법칙입니다. null로 표시한 결측은 이 장의 가용값 분석에서 제외하지만 원위치와 제외 수를 남깁니다.
Select an index I uniformly from 1,…, n and set X*=xI. Repeated values receive their combined frequency/n, not equal mass for each distinct number.
Fn(t)=n1i=1∑n1{xi≤t}.
Hypothetical (1, 1, 5) gives masses 2/3 and 1/3. Deduplicating to (1, 5) with equal halves changes the law. Null missing values are omitted for this available-value analysis while source positions remain logged.
기초Foundations
4. 복원추출은 같은 위치가 다시 나올 수 있다는 뜻이다4. Replacement allows the same source position to appear again
원자료 크기 n과 같은 크기의 재표본을 만들 때 매 추출 뒤 후보가 복구됩니다. 각 재표본 안의 n개 위치는 조건부 iid 균등 추출입니다. 한 원기록이 여러 번 나오거나 전혀 안 나올 수 있습니다.
가상 (1, 2)에서 두 번 뽑으면 순서 있는 위치는 (1, 1),(1, 2),(2, 1),(2, 2) 네 가지이며 각각 확률 1/4입니다. 값 평균은 1, 1.5, 1.5, 2입니다. 서로 다른 평균 세 종류는 같은 확률이 아닙니다.
비복원으로 두 값을 모두 뽑아 순서만 바꾸면 평균은 항상 1.5입니다. 평균의 변동을 알아보려는 복원 법칙과 단순 순서 변경은 다른 실험입니다.
For a resample of size n, the candidate index set is restored after each draw. Conditional draws are iid uniform indices, so a record can repeat or be absent.
From hypothetical (1, 2), two draws yield four ordered index pairs, each with probability 1/4. Their means are 1, 1.5, 1.5, 2; the three distinct mean values are not equally probable.
Sampling both values without replacement only changes order and always gives mean 1.5. That is a different experiment from replacement variation of the mean.
기초Foundations
5. 전체 순서열과 같은 통계량의 묶음을 나눈다5. Separate ordered resamples from aggregated statistic values
n개 후보에서 n번 복원하면 순서열은 nⁿ개입니다. n=4이면 256개, n=6이면 46656개입니다. 평균은 순서에 영향받지 않아 여러 순서열이 같은 평균을 만들 수 있습니다. 분포 그림에서는 같은 값을 묶되 그 순서열 수를 보존해야 합니다.
P∗(X∗=t)=nnNt
Nₜ는 평균이 t인 순서 있는 재표본의 개수입니다. 모든 nⁿ개 순서열을 분모로 셉니다.
같은 값을 가진 원기록도 서로 다른 위치로 추출합니다. 실습은 전체 원자표와 고른 한 순서열만 보여 주며 46656개 원배열을 모두 펼치지 않습니다. 계산 범위 제한은 법칙의 수학적 미존재와 다릅니다.
There are nⁿ ordered replacement samples:256 for n=4 and 46656 for n=6. Several sequences can share a mean. Aggregate them while retaining their multiplicities.
P∗(X∗=t)=nnNt
Nₜ counts the ordered resamples whose mean is t; the denominator counts all nⁿ ordered resamples.
Equal-valued records remain distinct index choices. The lab shows aggregated atoms plus one selected sequence instead of copying every raw resample. A computation budget does not imply mathematical nonexistence.
기초Foundations
6. 실습 A: 한 번 뽑기에서 정확 분포까지 연결한다6. Lab A: connect one selected resample to the exact law
가상 (1, 2, 3, 10)에서 원평균과 선택한 네 추출의 평균을 비교하세요. 같은 위치가 반복되는지, 어떤 위치가 빠졌는지 보세요. 선택 순서열을 바꾸는 것은 실제 원자료를 바꾸는 일이 아닙니다.
원자표의 count는 그 평균을 만드는 순서열 수, mass는 count/nⁿ입니다. 가용값이 하나면 별표 분포가 한 점이어도 모집단 불확실성이 없음을 증명하지 않습니다. 가용값이 없으면 균등 추출할 경험분포가 없어 분석을 계산하지 않습니다.
For hypothetical (1, 2, 3, 10), compare the original mean with the four-draw selected mean. Inspect repeated and absent positions. Changing the selected sequence does not change the observed records.
Atom count is ordered multiplicity; mass is count/nⁿ. One available value gives a point resampling law without proving zero population uncertainty. With no available values, there is no empirical distribution to sample.
기초Foundations
7. 평균의 별표 기대값과 분산은 정확히 유도할 수 있다7. The starred mean and variance can be derived exactly
자료를 고정하면 한 번의 X*는 경험평균 x̄, 경험분산 vₙ=Σ(x−x̄)²/n을 가집니다. 재표본 n개가 이 법칙에서 조건부 독립이므로 평균의 분산은 vₙ/n입니다.
E∗[X∗]Var∗(X∗)=x,=n21i∑(xi−x)2=n2n−1s2,n≥2.
마지막 식의 s²는 원자료의 n−1 표본분산입니다. 별표 분산과 원래 iid 표본평균의 추정 분산 s²/n은 유한 n에서 (n−1)/n만큼 다릅니다. 두 수를 이름만 ‘SE’라고 합치지 않습니다.
Conditional on the records, a single X* has mean x̄ and empirical variance vₙ=Σ(x−x̄)²/n. Independence of n starred draws gives mean variance vₙ/n.
E∗[X∗]Var∗(X∗)=x,=n21i∑(xi−x)2=n2n−1s2,n≥2.
s² uses the original n−1 denominator. The starred variance differs from the original iid mean's estimated variance s²/n by factor (n−1)/n. State which SE is meant.
기초Foundations
8. 네 가상 값의 정확 분산을 손으로 확인한다8. Check the exact conditional variance for four illustrative values
256개 순서열을 모두 세어도 별표 분산은 25/8입니다. 계산이 정확하다는 사실과 표본 네 개가 어떤 모집단을 얼마나 대표하는지는 다시 구별합니다.
The mean of (1, 2, 3, 10) is four. Squared deviations 9, 4, 1, 36 sum to 50. Empirical variance is 12.5 and the mean's conditional variance is 50/16=25/8.
s2Var∗(X∗)Variid(X)=50/3,=25/8,=25/6.
Complete enumeration of 256 sequences confirms 25/8. Exact arithmetic does not establish how well four records represent an unknown population.
기초Foundations
9. 분위수는 분포의 질량과 정의를 함께 지정한다9. Quantiles require both a distribution and a convention
재표본 평균들을 작은 순서로 나열하되 같은 값을 만든 모든 순서열을 포함합니다. 이 장의 type1 분위수는 0<p≤1에서 ceil(Mp)번째 값입니다. M은 정확 전체 순서열 수 또는 MC 반복 수입니다.
qp∗=t(⌈Mp⌉),0<p≤1.
p=0은 최솟값을 쓰는 표시 관례를 따로 정합니다. 불연속 분포에서는 q에서의 누적확률이 정확히 p일 필요가 없습니다. 실제 확률은 원자 질량을 합하고, 같은 값의 동률을 버리지 않습니다.
R 기본 type7의 보간과 다를 수 있습니다. 이 실습은 입력 십진 p를 정확 분수로 읽어 순위를 정하며, R 대조에서는 type=1, fuzz=0을 명시합니다. 순위 계산의 정확성과 모집단 구간 타당성은 다릅니다.
Order resample means with all multiplicities retained. Our type 1 quantile uses rank ceil(Mp) for 0< p≤1, where M is the exact sequence count or MC replicate count.
qp∗=t(⌈Mp⌉),0<p≤1.
At p=0, we explicitly use the minimum. A discrete CDF at its quantile need not equal p. Sum actual atom masses and retain ties.
R's default interpolated type 7 can differ. We parse decimal p exactly and compare with R type=1, fuzz=0. Exact rank arithmetic does not certify population coverage.
기초Foundations
10. percentile 구간은 별표 통계량의 두 분위수를 쓴다10. A percentile interval uses two starred-statistic quantiles
이 구간은 중앙값 주위로 거리가 대칭일 필요가 없습니다. 예컨대 비대칭 별표 법칙의 두 꼬리 분위수는 서로 다른 거리에 있을 수 있습니다. 이산 법칙에서는 구간 안 질량도 정확 1−α가 아닐 수 있습니다.
이를 모집단 θ의 신뢰구간으로 쓰려면 통계량·표집·근사 조건이 필요합니다. ‘정확히 계산한 별표 분위수’라는 표현만으로 원래 반복 표집의 95% 보장이 나오지 않습니다.
Percentile endpoints are the α/2 and 1−α/2 quantiles of θ̂*. Conventionally 0<α<1; lab α=0 or 1 explores endpoint/degenerate conventions.
Ipercentile=[qα/2∗,q1−α/2∗].
Endpoints need not be equally distant from the median, and discrete enclosed mass need not equal 1−α. Interpreting this as a population confidence interval requires statistic, sampling and approximation conditions.
Exactly calculated starred quantiles alone do not give exact 95% original-sampling coverage.
기초Foundations
11. basic 구간은 별표 오차를 원추정값 주위로 뒤집는다11. A basic interval reflects starred errors around the original estimate
θ̂−θ의 법칙을 θ̂*−θ̂로 근사한다고 생각하세요. 별표 오차가 qα/2*−θ̂부터 q1−α/2*−θ̂ 사이일 때, 원오차 부등식을 θ에 대해 풀면 양 끝점이 반대로 뒤집힙니다.
Ibasic=[2θ−q1−α/2∗,2θ−qα/2∗].
가상 θ̂=4, q.025*=2, q.975*=8이면 percentile은 [2, 8], basic은 [0, 6]입니다. 항상 같은 구간이 아니며 basic은 원변수의 허용 범위를 벗어날 수도 있습니다. 어느 방법이 모든 자료에서 더 좋다는 보편 순위를 만들지 않습니다.
Approximate θ̂−θ by θ̂*−θ̂. Solving the corresponding error inequalities for θ reflects and reverses the two quantiles.
Ibasic=[2θ−q1−α/2∗,2θ−qα/2∗].
For hypothetical θ̂=4 and quantiles 2, 8, the percentile interval is [2, 8] while basic is [0, 6]. Basic can leave a parameter's allowable range. Neither method has a universal superiority guarantee.
기초Foundations
12. 실습 B: 정의를 고정하고 정확 끝점과 MC 끝점을 비교한다12. Lab B: fix the definition and compare exact versus MC endpoints
같은 자료·α에서 percentile과 basic을 비교하세요. 정확 모드는 작은 자료의 모든 순서열을 집계합니다. MC 모드는 정해진 seed와 B로 일부 재표본을 만들고 그 경험 분위수로 끝점을 추정합니다. 두 모드는 다른 원자료를 관측한 것이 아닙니다.
분위수의 순위·전체 순서열 수 또는 B·정확 분수 값을 함께 읽으세요. MC의 반올림 표시가 안정되어도 모집단 CI의 타당성이 확인된 것은 아닙니다. 단일값·동률·α 경계에서 type1 관례가 어떻게 작동하는지도 확인합니다.
Compare percentile and basic at fixed data and α. Exact mode aggregates every small-data sequence. MC mode generates B resamples with a specified seed and estimates endpoints from their empirical quantiles.
Read ranks, total exact sequences or B, and retained fractions. Stable MC display is not validation of a population CI. Inspect singleton, tie and α-boundary conventions as well.
기초Foundations
13. 계산 표본 수 B와 원관측 수 n은 다른 축이다13. Monte Carlo count B and original sample size n are different axes
자료 n개는 고정한 채 재표본 통계량을 B개 계산할 수 있습니다. 아래 표본분산에는 B≥2가 필요합니다. B개 통계량의 평균·표본분산은 지정한 별표 법칙의 평균·분산을 추정하는 MC 수치입니다. B를 두 배로 했다고 원자료 n이 두 배가 되지 않습니다.
이상적인 독립 시뮬레이션 반복 아래 MC 평균의 조건부분산은 Var*(θ̂*)/B입니다. 따라서 같은 법칙에서 B를 네 배로 늘리면 MC 평균의 SD는 절반이 됩니다. θ̂ 자체의 모집단 SE가 절반이 된 것은 아닙니다. 고정 seed 의사난수 출력은 재현 가능한 계산이며 독립 물리 실험으로 인증하지 않습니다.
Hold n records fixed and compute B starred statistics, with B≥2 for the sample variance below. Their mean and sample variance estimate features of the specified conditional law. Doubling B does not double original n.
Under ideal independent simulation replicates, the MC mean variance is Var*(θ̂*)/B, so quadrupling B halves its SD. That is not a halving of the original estimator's sampling SE. A fixed-seed pseudorandom output is reproducible computation, not certified independent physical sampling.
기초Foundations
14. 꼬리 분위수의 MC 불확실성은 작은 개수에서 드러난다14. Monte Carlo tail-quantile uncertainty appears in small counts
고정 임계값 t에 대해 이상적인 독립 MC 반복 B개 중 θ̂*≤t인 횟수는 Binomial(B, F*(t)) 법칙을 가집니다. 따라서 그 경험 누적 비율의 조건부 SD는 √[F*(t)(1−F*(t))/B]입니다. 이것은 원추정량의 SE와 다른 계산 변동입니다.
F*(t)=0.025, B=512라면 기대 횟수는 12.8이고 횟수 SD는 √(512×0.025×0.975)≈3.533입니다. type1의 2.5% 순위는 ceil(12.8)=13이지만, 그 13번째 값이 seed마다 얼마나 바뀌는지는 근처 원자 질량과 값 간격에도 달립니다.
그러므로 B를 늘리면 순위 기반 끝점의 계산 안정성이 좋아질 수 있어도, 고정된 B만으로 항상 소수 몇 자리까지 정확하다는 보장은 없습니다. 이산 동률과 희박한 꼬리에서는 실제 원자표와 MC 민감도를 함께 봅니다.
At a fixed threshold t, ideal independent MC repetitions give a Binomial(B, F*(t)) count below t. The empirical CDF proportion therefore has conditional SD √[F*(t)(1−F*(t))/B], a computational quantity distinct from the original estimator's SE.
For F*(t)=.025 and B=512, the expected count is 12.8 and its SD about 3.533. The type 1 2.5% rank is 13, but variation in the value at that rank also depends on nearby masses and spacings.
Increasing B can stabilize endpoints without promising a fixed number of correct decimal places. Inspect discrete ties, sparse tails and MC sensitivity together.
기초Foundations
15. seed뿐 아니라 알고리즘·자료 순서·인덱스 규칙을 남긴다15. Record the algorithm, data order and index mapping as well as the seed
같은 seed라도 다른 난수 알고리즘·자료 순서·추출 매핑을 쓰면 결과가 달라집니다. 이 실습은 Park–Miller 의사난수의 상태를 갱신하고, 나머지 매핑 전에 거절 구간을 두어 위치별 매핑 수를 같게 합니다.
sk+1=48271skmod2147483647.
state−1의 후보 범위 0,…, 2147483645를 n개 위치로 나눌 때, 처음 floor(2147483646/n)×n개만 받아 나머지를 취합니다. 남는 꼬리를 그냥 모듈로 보내는 작은 불균형을 피하는 매핑입니다.
이는 알고리즘의 인덱스 매핑 규칙이지 의사난수 전체가 진짜 iid라는 증명이 아닙니다. seed·B·호출 수·거절 수·최종 상태·원키 순서를 기록해 두 언어에서 같은 계산을 재현합니다.
The same seed can give different results with another generator, data order or index mapping. We use Park–Miller state updates and a rejection region before the remainder mapping.
sk+1=48271skmod2147483647.
Map state−1 from 0,…, 2147483645 by accepting only the first floor(2147483646/n)×n candidates, then taking the remainder. This avoids unequal mapping counts from an unmatched final tail.
It specifies index mapping rather than proving that a deterministic stream is truly iid. Record seed, B, calls, rejections, final state and source-key order for reproducibility.
기초Foundations
16. 더 많은 MC는 빠진 모집단 정보를 되살리지 않는다16. More Monte Carlo draws cannot restore missing population information
표본에 매우 큰 드문 값이 한 번도 없었다면 경험분포는 그 값에 질량을 주지 못합니다. 같은 자료를 수백만 번 재표집해도 관측하지 않은 꼬리가 새 실측으로 등장하지 않습니다. 유한한 경험분포의 정확 수치가 실제 꼬리 위험을 충분히 표현한다는 보장은 없습니다.
표본의 선택 편향·잘못된 결측 처리·표본 밖 집단도 같습니다. 계산 오차와 통계적 근사 오차를 나누고 원질문에 맞는 설계·민감도 분석을 검토합니다.
MC 분위수는 특히 꼬리의 적은 빈도에 민감합니다. seed를 바꾸어 변동을 볼 수 있지만, 유리한 seed를 골라 최종 결과를 정하지 않습니다. 반복 수와 선택 규칙을 미리 기록합니다.
If a rare large value is absent from the records, the empirical distribution assigns it no mass. Millions of resamples cannot turn an unobserved tail into new evidence. Exact features of a finite empirical law need not capture population tail risk.
The same limitation applies to selection, missingness and unobserved groups. Separate computational error from statistical approximation and examine design or sensitivity assumptions.
Tail quantiles can depend on sparse MC counts. Compare seeds to assess computation variability, but do not select the most favorable seed after inspection.
기초Foundations
17. 한 번에 움직일 단위를 원자료 생성에 맞춘다17. Match the resampling unit to the data-generating structure
학생이 아니라 학급을 먼저 뽑았다면 학급 안 학생을 모두 독립 위치처럼 재표집하는 방법은 원설계를 놓칠 수 있습니다. 같은 점포의 전후 기록, 같은 사람의 반복 측정, 연속 분기들도 연결을 가집니다.
무엇을 고정하고 무엇을 함께 움직일지 먼저 쓰세요. 이 장은 쌍 전체를 움직이는 재표집과 같은 길이의 시간 블록을 움직이는 가정 실험을 나눕니다. 블록을 골랐다는 사실만으로 적절한 시계열 근사가 증명되지는 않습니다.
복잡한 표집에서는 층·군집·가중치·비복원 추출률까지 보존해야 할 수 있습니다. 한 종류의 부트스트랩을 모든 자료에 쓰는 대신 단위와 목표 모수를 연결합니다.
If classrooms were sampled first, treating their students as independent resampling units can miss the design. Before/after stores, repeated people and adjacent quarters also contain links.
State what stays fixed and what moves together. We distinguish whole-pair replacement from an assumed equal-length time-block experiment. Choosing blocks does not prove a valid time-series approximation.
Complex designs can require strata, clusters, weights and sampling fractions. Match units and targets rather than use one bootstrap mechanically.
기초Foundations
18. 짝 전체를 뽑으면 변화량의 경험분포를 뽑는 것과 같다18. Resampling whole pairs is equivalent to resampling their differences
한 점포의 전후를 (Aᵢ, Bᵢ), 변화를 Dᵢ=Bᵢ−Aᵢ라 합시다. 같은 인덱스 I를 두 시점에 함께 쓰면 재표본 평균 변화는 뽑은 D의 평균입니다. 원래 짝 안의 큰 값·작은 값의 연결을 보존합니다.
v와 c는 가용 n쌍을 분모 n으로 계산한 경험분산·경험공분산입니다. 단위는 원변화의 제곱입니다. 짝들끼리가 원표집에서 독립인지와 이 조건부 법칙 계산 가능성은 따로 확인합니다.
For before/after pair (Aᵢ, Bᵢ), let Dᵢ=Bᵢ−Aᵢ. Using the same sampled index for both waves makes the bootstrap mean change equal the mean of sampled differences, preserving within-pair links.
v and c use denominator n across available pairs. This exact conditional calculation does not verify independent pairs in the original sampling process.
기초Foundations
19. 두 시점을 따로 뽑으면 원래의 짝 공분산이 사라진다19. Independent wave sampling removes the original paired covariance
전 시점의 인덱스 I와 후 시점의 인덱스 J를 따로 독립 추출하면, 같은 점포끼리 비교한다는 연결을 버립니다. 원자료의 전후 공분산을 없앤 다른 별표 실험입니다.
경험공분산이 양수이면 따로 뽑는 분산이 더 크고, 음수이면 더 작을 수 있습니다. 항상 보수적인 실수라는 결론도 없습니다. 원질문이 짝 변화라면 같은 인덱스를 쓰고, 독립 wave는 차이를 보는 가정상 비교로 표시합니다.
Drawing before index I and after index J independently discards same-unit pairing. It defines a different starred experiment with the original cross-wave covariance removed.
Positive empirical covariance makes independent-wave variance larger; negative covariance can reverse that ordering. It is not always a conservative mistake. Preserve pairs for a paired-change question and label independent waves as a hypothetical comparison.
기초Foundations
20. 실습 C: 같은 인덱스인지 먼저 보고 분산을 읽는다20. Lab C: check shared indices before reading variances
첫 재표본의 전·후 원키를 비교하세요. paired에서는 매 추출의 두 키가 같고, independent에서는 다른 추출로 만들어집니다. 원평균 변화와 두 정확 조건부분산, 유한 B회의 MC 표본분산을 나란히 확인합니다.
한 시점이 결측인 행은 두 시점을 함께 제외하고 원키·제외 수를 남깁니다. 결측을 0 변화로 채우지 않습니다. 다른 점포가 같은 원 store 코드를 가질 수 있어 실제 자료에서는 고유 원행 키를 함께 보존합니다.
MC 분산이 정확 조건부분산과 조금 다른 것은 유한 계산 표본의 변동일 수 있습니다. seed를 바꾸면 MC 값이 달라져도 원자료와 정확 참조 분산은 바뀌지 않습니다.
Compare before/after source keys in the first resample. Paired mode shares every index; independent mode draws them separately. Read observed change, two exact conditional variances and finite-B MC sample variance side by side.
Jointly omit an incomplete pair, retaining its source key and omission count. Do not impute zero change. Actual store codes can repeat, so preserve unique original row keys as well.
A finite MC variance can differ from its exact conditional reference. Changing seed changes computation, not source records or the exact conditional variance.
기초Foundations
21. 시간 블록은 내부 연결을 보존하지만 새 시계열이 아니다21. Time blocks preserve internal links but are not newly observed series
연속 분기를 연도별 네 분기씩 묶고 연도 블록을 복원추출하면 같은 연도 안 순서·값의 연결은 보존됩니다. 그러나 추출된 연도가 반복되거나 순서가 뒤섞일 수 있습니다. 그것을 실제 새 역사나 관측한 미래라고 부르지 않습니다.
블록 길이·겹침·경계 처리·정상성·약한 의존 조건에 따라 시계열 부트스트랩의 정당화가 달라집니다. 실제 자료의 블록 네 개를 임의로 선택한 실험은 이런 이론을 검증한 것이 아닙니다.
먼저 정확 조건부 실험의 단위를 배우고, 시계열 과정의 추론으로 확장할 때는 원자료 생성에 맞는 가정과 블록 길이 논의를 더합니다.
Resampling whole four-quarter years preserves values and order inside a year. Years can repeat or change sequence; the result is not a newly observed history or future.
Time-series bootstrap justification depends on block length, overlap, boundaries, stationarity and suitable weak dependence. An arbitrarily chosen four-block classroom experiment does not verify those conditions.
First understand the exact conditional unit, then add process-specific assumptions before interpreting population time-series inference.
기초Foundations
22. 같은 길이 블록에서는 블록 평균의 평균을 쓸 수 있다22. Equal-length blocks allow a mean of block means
m개 블록이 각각 ℓ개 관측을 가지면 전체 평균은 m개 블록 평균의 단순 평균입니다. m개 블록을 복원추출한 전체 평균도 뽑은 블록 평균들의 평균입니다. 따라서 앞의 작은 부트스트랩 법칙을 그대로 적용할 수 있습니다.
블록 크기가 다르면 평균의 단순 평균은 전체 평균과 다를 수 있습니다. 예를 들어 (0)과 (10, 10, 10)은 블록 평균의 평균 5, 전체 평균 7.5입니다. 이 실습은 같은 길이 완전 블록에 범위를 한정하며 불균등 블록을 몰래 같은 무게로 바꾸지 않습니다.
With m blocks of equal length ℓ, the grand mean equals the unweighted mean of block means. Resampling m whole blocks therefore reduces to replacement sampling those means.
Unequal lengths differ:blocks (0) and (10, 10, 10) have mean-of-means five but grand mean 7.5. The lab explicitly restricts itself to equal-sized complete blocks.
기초Foundations
23. 실습 D: 블록과 개별값이 만드는 두 법칙을 비교한다23. Lab D: compare whole-block and individual-value laws
같은 원값들을 유지한 채, 블록 전체를 뽑는 평균 분산과 모든 값을 개별 후보로 뽑는 평균 분산을 비교하세요. 선택한 블록 순서열과 블록 안 원값을 함께 읽습니다. 두 방식 모두 원평균에 중심을 두더라도 분산은 다를 수 있습니다.
한 블록 안 값이 서로 비슷하고 블록끼리 수준이 다르면 개별 추출은 연결을 버릴 수 있습니다. 반대로 어떤 예에서는 블록 분산이 더 작을 수도 있습니다. 크기 순위보다 먼저 원설계와 단위의 적절성을 질문합니다.
Hold original values fixed and compare mean variance under whole-block versus individual-value replacement. Inspect the selected block sequence and its internal values. Both laws can center on the same mean yet have different variances.
Strong within-block similarity can make individual sampling miss a link. Other examples can reverse the variance ordering. Unit appropriateness matters before comparing sizes.
기초Foundations
24. 순열검정은 귀무 아래 바꿔도 되는 라벨을 정한다24. Permutation tests specify which labels may change under the null
값은 고정하고 두 집단의 라벨만 바꾼다고 합시다. 각 집단 크기는 유지합니다. 귀무 아래 어떤 라벨 배정이 같은 확률로 허용되는지 정한 뒤 각 배정의 평균 차이를 계산합니다.
공통 분포에서 iid로 뽑은 두 집단이라는 귀무는 조건부 교환가능성을 뒷받침할 수 있습니다. 무작위 처치 배정에서는 알려진 배정 설계와 적절한 날카로운 귀무가 다른 근거를 제공합니다. 관측 집단 평균이 같다는 조건 하나만으로 모든 라벨이 교환가능하지는 않습니다.
어떤 것을 바꾸지 말아야 하는지도 적으세요. 학교·쌍·시간 구조를 무시한 전체 라벨 섞기는 다른 반복 실험이 될 수 있습니다.
Hold values fixed and change group labels while preserving group sizes. Specify which allocations are equally likely under the null, then calculate a mean difference for each.
An iid common-distribution null can support conditional exchangeability. Randomized treatment assignment with an appropriate sharp null provides another justification. Equality of observational group means alone does not imply exchangeable labels.
Also state what must remain fixed. Ignoring schools, pairs or time structure changes the reference experiment.
기초Foundations
25. 집단 안 순서가 중요하지 않으면 조합으로 셀 수 있다25. Use combinations when within-group order does not affect the statistic
전체 N개 중 첫 집단 n₁개를 고르면 나머지는 둘째 집단입니다. 집단 안 순서가 평균에 영향을 주지 않으므로 서로 다른 배정은 C(N, n₁)개입니다. 후보 배정을 균등하게 놓는 가정 아래 각 배정의 질량은 그 역수입니다.
같은 숫자를 가진 관측들도 원위치가 다르면 다른 배정입니다. 여러 배정이 같은 T를 만들면 질량을 합칩니다. 집단별 가용 수는 결측 제외 뒤 양수여야 하고, 원입력 위치와 가용 위치를 구별합니다.
Select n₁ of N positions for group one; the complement is group zero. Mean differences ignore within-group order, leaving C(N, n₁) distinct allocations, each equally weighted under the specified assignment law.
Equal values at distinct positions remain distinct allocations. Aggregate masses for shared T values. Both available groups must remain nonempty after missing-value exclusion; original and retained positions can differ.
기초Foundations
26. 네 값의 여섯 배정을 손으로 나열한다26. List all six allocations of four values
가상 값 (1, 2, 3, 4)에서 첫 두 원위치를 집단 1로 관측했습니다. 관측 평균 차이는 (1+2)/2−(3+4)/2=−2입니다. 첫 집단에 넣는 위치를 하나씩 바꾸어 봅니다.
Each allocation has mass 1/6, but zero has mass 1/3. The inclusive |T|≥2 tail contains two allocations, giving p=1/3. Values stay fixed while hypothetical null labels change.
기초Foundations
27. 양쪽의 극단성 정의를 이름 뒤에 숨기지 않는다27. State two-sided extremeness rather than hide it behind a label
이 장은 p=P*(|T|≥|T관측|)를 양쪽으로 정의합니다. 동률을 포함합니다. 한쪽은 T≤T관측 또는 T≥T관측입니다. 두 배 작은 꼬리나 Fisher 질량 순서와 일반적으로 다릅니다.
가상 값 (0, 1, 10)에서 한 값만 집단 1로 놓으면 T는 −5.5,−4, 9.5입니다. 관측 집단 1이 값 10일 때 절댓값 꼬리는 1/3이고, 두 배 작은 한쪽 꼬리는 2/3입니다. 귀무 배정은 같아도 순서 정의가 달라 결과가 다릅니다.
SciPy의 기본 양쪽 정의와도 다를 수 있으므로 같은 함수 이름만 비교하지 않습니다. 이 장은 정확 유리수 통계량으로 동률을 판정합니다. 부동소수점 근접 값을 임의로 다른 사건으로 만들지 않습니다.
Here two-sided means P*(|T|≥|Tobserved|), including ties. One-sided tails use ≤ or ≥. This differs generally from doubled-minimum-tail and Fisher probability-mass ordering.
For (0, 1, 10) with one group-one value, statistics are −5.5,−4, 9.5. If ten is observed in group one, the absolute tail is 1/3 while the doubled smaller one-sided tail is 2/3.
Our convention can differ from SciPy's default, so compare events rather than function names. Exact rational statistics preserve ties without ambiguous near-equality rounding.
기초Foundations
28. 실습 E: 관측 배정과 전체 귀무 배정을 나란히 본다28. Lab E: inspect observed and all null allocations together
값과 첫 집단의 원입력 위치를 정하세요. 각 배정의 통계량과 꼬리 포함 여부를 보며 관측 배정도 포함되었는지 확인합니다. 원자표에서는 같은 T가 여러 배정에서 나오는지 살펴봅니다.
group 1 위치는 결측 제거 전 원입력 위치입니다. 결측 값을 제외하면 실제 가용 집단 수가 바뀐다고 명시합니다. 한 집단이 비면 평균 차이가 정의되지 않습니다. 모든 값이 같으면 통계량 0 한 점과 p=1이 될 수 있으며, 그것이 모든 원질문이 해결됐다는 뜻은 아닙니다.
Set values and original positions in group one. Inspect each statistic and inclusive-tail membership, including the observed assignment. Aggregated atoms show shared statistic values.
Group positions refer to the original array before missing removal. The lab reports changed available group counts. An empty group makes the mean difference undefined. Identical values can yield one zero atom and p=1 without settling every substantive question.
학부 연결 · 선택Undergraduate bridge · optional
29. 유효한 배정 대칭 아래 순위 p가 오류를 제어한다29. Valid assignment symmetry gives rank-based error control
유한한 허용 배정 전체에서 관측 배정도 같은 법칙으로 생긴다고 합시다. 절댓값 통계량을 큰 순서로 묶고 동률 배정들을 함께 더하면, 꼬리 확률이 α 이하인 관측들의 총질량은 α를 넘지 않습니다.
PH0(ppermutation≤α)≤α.
이것이 정확 유한표본 검정의 근거입니다. 배정 수가 적으면 가능한 p가 듬성하여 실제 오류는 α보다 작을 수 있습니다. 전체 배정을 정확히 센 사실과 관측 자료가 그 배정 법칙에서 왔다는 사실이 모두 필요합니다.
관측 라벨 교환가능성이 없으면 같은 계산은 가정 실험의 꼬리일 뿐 원자료에 대한 유효한 오류 확률이라고 보장할 수 없습니다.
Assume the observed allocation follows the same finite null assignment law. Group absolute statistics in decreasing order and include complete ties. The total mass of observations with tail probability at most α cannot exceed α.
PH0(ppermutation≤α)≤α.
This gives finite-sample validity under the symmetry. Discreteness can make size smaller than α. Exact enumeration and correct assignment justification are both required.
Without observational exchangeability, the number is a tail for an assumed experiment rather than certified error control for the field data.
기초Foundations
30. 평균이 같아도 분포가 다르면 라벨은 교환가능하지 않다30. Equal means with different distributions need not give exchangeable labels
가상 집단 A는 −1,+1을 같은 확률로, 집단 B는 −10,+10을 같은 확률로 가집니다. 둘 다 평균 0이지만 변동의 규모가 다릅니다. 큰 절댓값은 B에서만 나올 수 있으므로 원라벨을 임의로 바꿔도 같은 결합법칙이라는 조건이 성립하지 않습니다.
따라서 단순 비표준화 평균 차이의 일반 라벨 순열을 ‘평균 같음’만으로 정확 검정이라 부를 수 없습니다. 특정 studentized 통계량과 점근 조건을 쓰는 방법은 별도의 결과입니다.
표본 크기가 같다고 원분포 동일성이 생기는 것도 아닙니다. 귀무 문장을 ‘같은 평균’과 ‘같은 분포/교환가능한 배정’ 중 무엇으로 쓰는지 명확히 합니다.
Hypothetical A is uniform on −1,+1 and B on −10,+10. Both means are zero, but large magnitudes occur only in B. Arbitrary relabeling does not preserve their joint law.
Thus a simple unstudentized mean-difference permutation is not automatically exact for the weak equal-means null. Studentized asymptotic methods use separate results and assumptions.
Equal sample sizes do not make distributions identical. State whether the null concerns means, common distributions or an exchangeable assignment design.
학부 연결 · 선택Undergraduate bridge · optional
31. 무작위 배정의 날카로운 귀무와 평균 귀무를 나눈다31. Separate a randomized sharp null from an average-effect null
각 단위의 잠재결과 Yᵢ(1), Yᵢ(0)가 있고 처치 집단 수를 고정해 무작위 배정했다고 합시다. 날카로운 귀무 Yᵢ(1)=Yᵢ(0)가 모든 i에서 성립하면 관측하지 않은 배정에서도 같은 고정 결과 값을 사용할 수 있습니다.
이때 알려진 배정 설계에 따라 라벨을 바꾸는 randomization 검정이 가능합니다. 평균 처치 효과만 0이라는 귀무는 단위별 효과가 서로 상쇄될 수 있으므로 같은 값들을 모든 배정에 그대로 쓰는 근거가 아닙니다.
짝 안 처치 교환·부호 뒤집기도 정당화가 필요합니다. 짝 차이의 평균 0만으로 모든 부호 조합이 같은 확률인 것은 아닙니다. 실험 설계와 관측 분포의 대칭을 구별합니다.
Suppose fixed potential outcomes Yᵢ(1), Yᵢ(0) accompany randomized treatment with fixed group sizes. The sharp null Yᵢ(1)=Yᵢ(0) for every unit allows the same observed outcomes to be imputed under all assignments.
A randomization test then follows the known assignment design. An average-zero effect can hide offsetting unit effects and does not justify the same imputation.
Within-pair swaps and sign flips also need design or distributional symmetry. Mean-zero paired differences alone do not make every sign pattern equally probable.
학부 연결 · 선택Undergraduate bridge · optional
32. 일부 순열만 뽑는 계산에서는 0 꼬리를 조심한다32. Be careful with zero simulated tails when only some permutations are sampled
전체 배정이 너무 많아 B개만 무작위 추출하는 방법도 있습니다. 실제 관측 배정과 추가 배정들이 귀무 아래 적절하게 교환가능한 방식으로 구성되면, b개 추가 배정이 관측 이상 극단일 때 (b+1)/(B+1)을 쓰는 보수적 순위 규칙이 가능합니다.
pMC,rank=B+1b+1.
이 수는 고정 관측에 대한 정확 전체 꼬리의 단순 불편 추정 b/B와 목적이 다릅니다. b=0이어도 정확 확률 0을 증명하지 않습니다. B=99이면 이 순위 p의 최소값은 0.01입니다.
본 장 실습 E는 작은 전체 배정을 정확히 계산하므로 이 MC 보정을 섞지 않습니다. 무작위 순열 알고리즘을 쓸 때는 중복 허용·관측 배정 포함·추출 설계를 함께 명시해야 합니다.
When full enumeration is infeasible, one can sample B allocations. If observed and additional assignments are constructed with the required null exchangeability, the inclusive randomized-rank rule uses (b+1)/(B+1).
pMC,rank=B+1b+1.
This testing rule differs from the simple conditional tail estimator b/B. No simulated exceedances do not prove exact zero; at B=99, the smallest rank p is .01.
Lab E enumerates all small allocations and does not mix in this correction. A randomized implementation must specify replacement, observed-assignment inclusion and its sampling scheme.
선택 심화Optional extension
33. B가 아니라 n이 커질 때의 근사 정당화를 따로 묻는다33. Statistical justification concerns growing n, not only growing B
원자료가 iid이고 모집단 평균 μ, 양의 유한 분산 σ²를 가진다고 합시다. 표본평균의 원래 중심오차 √n(X̄−μ)는 정규 한계에 접근합니다. 부트스트랩은 자료에 조건을 건 √n(X̄*−X̄)가 같은 한계에 접근하는지 묻습니다.
Uₙ*와 Fₙ*는 각각 조건부 재표집 평균의 중심화·척도변환과 그 조건부 CDF를 짧게 쓴 것입니다.
예를 들어 E|X|³<∞까지 가정하면 충분한 조건 아래 이 결론을 보일 수 있습니다. 이는 최소 조건이라는 뜻이 아니라 증명을 보기 쉬운 충분조건입니다. 확률 수렴은 원자료 표집의 무작위성에 관한 것입니다. B를 늘리는 MC 수렴과 혼동하지 않습니다.
이 같은 한계 정당화도 모든 유한 n 구간의 정확 95%를 뜻하지 않습니다. 실제 원자료가 iid인지와 대상 통계량의 매끄러움을 따로 살펴야 합니다.
For original iid observations with mean μ and positive finite variance σ², the centered mean has a normal limit. Bootstrap justification asks whether the conditional centered starred mean approaches that same law.
Uₙ* abbreviates the centered, scaled resample mean; Fₙ* is its conditional CDF.
Adding E|X|³<∞ gives a convenient sufficient setting for the next proof sketch, not a claim of minimal assumptions. Probability convergence concerns original sampling, not increasing MC B.
A shared asymptotic limit does not give exact 95% coverage at every finite n. Check original iid structure and the chosen statistic.
선택 심화Optional extension
34. 조건부 중심극한정리의 오차를 자료 모멘트로 묶는다34. Control conditional normal approximation with empirical moments
원래 iid 변수의 E|X|³<∞,σ²>0를 가정합니다. 자료를 고정하면 X*는 경험분포에서 iid이고 경험분산 vₙ을 가집니다. vₙ>0인 사건에서 Berry–Esseen 상계는 다음 형태입니다.
큰수의 법칙으로 vₙ→σ²이고 분자의 경험 3차 절대모멘트는 확률적으로 유계입니다. 따라서 오른쪽은 0으로 가고,√vₙ을 σ로 바꾸는 단계도 정당화됩니다. vₙ=0인 작은 표본이 생길 수 있지만 σ²>0 아래 그 확률은 큰 n에서 사라집니다.
유한표본의 대칭성이나 정확 정규성을 주장한 것이 아닙니다. 이 증명은 조건부 법칙이 원래 한계를 따라가는 이유를 보여주는 선택 심화입니다.
Assume original iid observations, E|X|³<∞ and σ²>0. Conditional starred draws are iid from the empirical law. On vₙ>0, a Berry–Esseen bound has the displayed form.
Laws of large numbers give vₙ→σ² and a probabilistically bounded empirical third absolute moment, so the bound vanishes. Replacing √vₙ by σ is then justified. Small-sample zero variance is possible, but its probability vanishes under positive population variance.
This is an optional consistency argument, not finite-sample symmetry or exact normality.
선택 심화Optional extension
35. 매끄러운 변환은 같은 1차 근사를 연결할 수 있다35. Smooth transformations can transfer a first-order approximation
평균 추정값에 g를 적용한다고 합시다. g가 μ 근처에서 연속 미분 가능하고 g′(μ)≠0이면 Taylor의 1차 전개로 원래 오차와 별표 오차를 같은 도함수 배율로 연결할 수 있습니다. 앞의 평균·모멘트 조건과 일치성을 유지합니다.
Uₙ과 Vₙ은 원래 표집의 두 척도변환이며, v는 여기서 나타나는 극한 정규분포의 분산입니다. 별표 식은 기존과 같이 조건부 재표집 법칙을 가리킵니다.
별표 식들은 관측 자료에 조건을 건 법칙이 같은 정규 한계에 접근한다는 뜻이며, 그 접근은 원 표집에 관한 확률수렴으로 해석합니다.
도함수가 0이면 1차 한계가 퇴화하고 다른 차수·스케일이 중요할 수 있습니다. 최댓값 같은 경계 통계량은 단순 매끄러운 평균 변환으로 처리되지 않습니다.
Studentized·BCa 구간은 오차 척도·편향·왜도 등을 다르게 보정하는 확장입니다. 각각 추가 정당화와 비퇴화 조건이 필요하며, 이 장의 percentile/basic 실습에 그런 보정을 구현했다고 주장하지 않습니다.
If g is continuously differentiable near μ with g′(μ)≠0, Taylor linearization can transfer original and conditional mean limits under the preceding conditions.
Uₙ and Vₙ are the two original-sampling scalings; v is the limiting normal variance. The starred expression retains the conditional-resampling interpretation.
The starred expressions describe the conditional law approaching the same normal limit, with convergence interpreted in probability over original sampling.
At a zero derivative, the first-order limit degenerates and another scale can matter. Boundary statistics such as maxima are not covered by a simple smooth-mean transformation argument.
Studentized and BCa intervals modify scaling, bias or skewness under additional conditions. They are distinct from the percentile/basic procedures implemented here.
선택 심화Optional extension
36. studentized 구간은 재표본마다 오차 척도도 계산한다36. Studentized intervals also recompute an uncertainty scale per resample
평균의 오차를 적절한 SE로 나누면 원분포 의존을 줄이는 피벗을 만들 수 있습니다. Studentized 부트스트랩은 θ̂*뿐 아니라 각 재표본의 SE*도 계산합니다. 단순 percentile 통계량과 다른 법칙입니다.
분모 SE*가 0인 재표본이 생길 수 있습니다. 예를 들어 (1, 2)에서 (1, 1)을 뽑으면 표본 SD가 0입니다. 이런 재표본을 말없이 버리면 다른 조건부 법칙이 됩니다. 분모·정칙성·실패 처리 규칙을 명시해야 합니다.
본 실습은 studentized를 구현하지 않습니다. 이 선택 심화는 구간 이름 뒤에 서로 다른 오차 근사와 추가 조건이 있다는 점을 보여줍니다. 고차 정확도 개선도 그에 맞는 모멘트·매끄러움 조건 아래의 결과입니다.
Standardizing an error can reduce distribution dependence. Studentized bootstrap computes SE* as well as θ̂* for each resample, a different law from percentile statistics.
SE* can be zero:resampling (1, 1) from (1, 2) gives zero sample SD. Silently discarding such replicates changes the conditional law. State denominator, regularity and failure policies.
This optional extension is not implemented in our percentile/basic lab. Higher-order accuracy claims also require suitable moment and smoothness assumptions.
선택 심화Optional extension
37. 별표 편향 추정이 모든 추정량의 진짜 편향은 아니다37. A starred bias estimate is not automatically the true bias of every estimator
별표 평균 E*[θ̂*]−θ̂는 모집단 대신 경험분포를 넣은 편향의 근사입니다. 평균의 경우 정확히 0이지만, 그 사실만으로 원자료가 편향 없이 뽑혔음을 확인하지 못합니다.
원표본분산 S²=Σ(X−X̄)²/(n−1), n≥2를 다시 표본분산 통계량으로 재표집하면 E*[S²*]=vₙ=(n−1)S²/n입니다. 따라서 별표 편향은 −S²/n입니다.
biasbootstrap(S2)=−S2/n.
하지만 원래 iid 유한분산 모집단에서 S²는 이미 불편합니다. 이를 보고 ‘진짜 편향이 −S²/n’이라고 단정하거나 무조건 보정해 더 좋은 추정량이 된다고 말할 수 없습니다. 근사·표적·유한표본 성질을 함께 봅니다.
E*[θ̂*]−θ̂ is a plug-in bias approximation. It is exactly zero for the mean without verifying unbiased source acquisition.
For sample variance S² with n−1 denominator, n≥2, the starred sample-variance statistic satisfies E*[S²*]=vₙ=(n−1) S²/n.
biasbootstrap(S2)=−S2/n.
Yet original S² is unbiased under iid finite-variance sampling. This plug-in estimate is not literally its true bias, and automatic correction need not improve finite-sample performance.
선택 심화Optional extension
38. 최댓값 부트스트랩은 매끄러운 평균과 다르게 실패할 수 있다38. Bootstrap maxima can fail unlike regular sample means
가상 Xᵢ가 iid Uniform[0, 1]이고 Mₙ=max Xᵢ라고 합시다. 연속분포라 최대 관측은 확률 1로 유일합니다. 재표본 최대 Mₙ*가 원최대와 같으려면 그 원위치를 한 번 이상 뽑으면 됩니다.
P∗(Mn∗=Mn)=1−(1−1/n)n⟶1−e−1.
원래 n(1−Mₙ)은 연속인 Exp(1) 한계로 갑니다. 반면 별표 n(Mₙ−Mₙ*)는 0에 사라지지 않는 약 0.632 질량을 가집니다. 따라서 같은 연속 한계를 근사할 수 없습니다. 이 통계량의 일반 n개 경험 부트스트랩은 단순 평균과 같은 정당화를 갖지 않습니다.
B를 무한히 늘리면 잘못된 조건부 근사를 더 정확히 계산할 뿐입니다. 다른 크기 재표집이나 경계 모형은 별도 방법이며 여기서 자동 해결했다고 하지 않습니다.
Let iid Xᵢ follow Uniform[0, 1] and Mₙ be their maximum. It is almost surely unique. The starred maximum equals Mₙ whenever its original position is selected at least once.
P∗(Mn∗=Mn)=1−(1−1/n)n⟶1−e−1.
Original n(1−Mₙ) approaches continuous Exp(1), but starred n(Mₙ−Mₙ*) retains about .632 mass at zero and cannot approach that same continuous law. Ordinary n-out-of-n empirical bootstrapping is inconsistent for this normalized maximum.
Infinite B would compute the wrong approximation more precisely. Alternative resampling sizes or boundary models are separate methods.
기초Foundations
39. 작은 표본의 전부 0은 관측하지 않은 성공률을 감춘다39. An all-zero small sample hides an unobserved success probability
가상 iid Bernoulli(p=0.01)를 n=10개 관측하면 전부 0일 확률은 0.99¹⁰≈0.904382입니다. 그 자료의 경험 부트스트랩 비율은 언제나 0이므로 percentile 구간도 [0, 0]입니다. 참 p=0.01은 포함하지 못합니다.
따라서 이 percentile 규칙의 실제 포함률은 이 예에서 최대 1−0.99¹⁰≈0.095618에 불과할 수 있습니다. 다른 표본에서는 모두 포함한다고 가장 유리하게 계산해도 그 상계를 넘지 못합니다. ‘항상 95%’라는 보편 주장의 명확한 반례입니다.
성공이 드문 사건에는 표본 크기·비율 모형·정확 구간·표적 범위를 검토해야 합니다. 재표본 반복 수를 늘리는 것만으로 한 번도 관측하지 않은 성공을 새 근거로 만들 수 없습니다.
For hypothetical iid Bernoulli(p=.01) with n=10, all zeros occur with probability .99¹⁰≈.904382. Every empirical bootstrap proportion is then zero and the percentile interval [0, 0] misses p=.01.
Even granting coverage for every other original sample, the actual coverage is at most 1−.99¹⁰≈.095618. This directly disproves a universal 95% claim for the rule.
Rare-event inference needs appropriate sample size, model and interval choices. More resamples cannot create observed successes that were absent.
학부 연결 · 선택Undergraduate bridge · optional
40. 회귀의 cases·잔차 재표집은 다른 조건을 가진다40. Case and residual bootstraps for regression use different conditions
앞 장의 회귀에서 (xᵢ, yᵢ) 쌍을 통째로 뽑는 cases 방식은 무작위 설계의 쌍 분포를 재표집하는 관점입니다. x와 y를 따로 뽑으면 연관을 파괴합니다. 어떤 재표본은 설계 랭크가 떨어질 수도 있어 실패 처리도 정해야 합니다.
잔차 방식은 고정 x·맞춘 선형 평균에 재표집한 중심 잔차를 더하는 관점입니다. 일반적인 단순 잔차 복원은 공통 오차 법칙·등분산 같은 조건을 사용하며, 이분산이면 잔차를 모든 x에 같은 방식으로 보내는 일이 맞지 않을 수 있습니다.
Wild·군집·시계열 회귀 부트스트랩은 다른 목적과 가정을 가집니다. ‘부트스트랩 SE’라는 이름만 보고 어느 단위와 어떤 귀무를 썼는지 숨기지 않습니다. 본 장 상호작용은 평균·짝·블록·라벨에 집중합니다.
A case bootstrap resamples whole (xᵢ, yᵢ) records from a random-design perspective. Independently sampling coordinates destroys association. Some resamples can lose design rank and require an explicit failure policy.
A residual bootstrap holds x fixed and adds resampled centered residuals to fitted means. Ordinary residual replacement uses a common-error-law/homoskedastic framework and need not preserve heteroskedastic patterns.
Wild, cluster and time-series regression bootstraps have distinct purposes and assumptions. Specify units and nulls behind any “bootstrap SE.” Our labs concentrate on means, pairs, blocks and labels.
기초Foundations
41. 분석 절차와 결측 선택도 반복 실험의 일부다41. Analysis steps and missingness choices belong to the repeated procedure
모형 선택·변환·가용 행 선정·대치까지 원분석이 여러 단계를 거쳤다면, 무엇을 재표본마다 다시 실행하고 무엇을 고정하는지 적어야 합니다. 이미 고른 결과만 고정한 변동과 선택까지 포함한 절차의 변동은 다른 표적입니다.
결측을 버린 자료를 재표집하면 그 가용 경험분포를 반복합니다. 빠진 사람들의 값이나 선택 과정을 자동 복원하지 않습니다. 가중 표집이나 비복원 추출률이 크면 원설계에 맞는 별도 재표집이 필요할 수 있습니다.
같은 자료로 방법·seed·구간을 여러 번 바꾼 뒤 유리한 것만 보고하면 계산의 재현성만으로 선택 문제를 해결할 수 없습니다. 다음 장에서 다중 검정과 선택 편향을 더 다룹니다.
If the original analysis selected models, transformations, available rows or imputations, state which steps are rerun per resample. Variability conditional on a selected result differs from variability of the entire selection procedure.
Resampling complete cases repeats their empirical law rather than reconstructing missing people or acquisition. Weighted designs and large sampling fractions may require design-specific methods.
Choosing favorable methods, seeds or endpoints after repeated inspection is not repaired by reproducible code. The next chapter develops multiplicity and selection bias.
기초Foundations
42. 실제 국가: 16분기와 네 연도 블록의 정확 비교42. Actual country records: sixteen quarters and four whole-year blocks
BIS 한국 실질 주택지수의 2021–2024년 실제 16분기를 고정합니다. 2010년 평균=100인 지수이며 전체 관측 평균 115.80830625는 이미 계산됩니다. 네 연도를 같은 길이의 블록으로 놓는 것은 설명용 가정입니다.
네 연도를 네 번 복원하는 4⁴=256개 순서열의 정확 조건부 평균 분산은 1033328781243/102400000000, SD≈3.176649입니다. 개별 16분기를 iid 후보로 놓는 다른 조건부분산의 SD는 약 1.703062입니다. 같은 원평균이어도 단위가 법칙을 바꿉니다.
정확 type1 2.5%, 97.5% 분위수는 109.625125와 121.9914875입니다. 이 끝점을 실제 주택 시계열의 타당한 95% CI라고 인증하지 않습니다. 원 16분기를 새 관측으로 늘린 것도 아닙니다.
Hold fixed 16 actual BIS Korean real-housing-index quarters from 2021–2024, with 2010 average=100. Their observed mean is already known:115.80830625. Four equal year blocks are an assumed teaching unit.
The 4⁴=256 ordered whole-year resamples have exact conditional mean variance 1033328781243/102400000000 and SD≈3.176649. Individual-quarter replacement has a different SD≈1.703062.
Exact type 1 2.5%/97.5% quantiles are 109.625125 and 121.9914875. They are not certified 95% time-series confidence limits, and no new quarters were observed.
기초Foundations
43. 실제 사람: 명시적으로 고른 네 기록의 가정 순열43. Actual people: a hypothetical permutation of four explicitly selected records
Card의 가용 원 로그 임금 중 1976년 SMSA 집단별 원 인원 코드가 작은 첫 두 개를 골랐습니다. 집단 1의 코드는 2, 3, 집단 0의 코드는 30, 35입니다. 이는 실제 사람 네 기록을 명시적으로 선택한 사례이지 전체 남성을 무작위 표집한 것이 아닙니다.
로그값은 (6.30627529, 6.17586727, 6.58755001, 7.24422752)이고 관측 집단 1−0 평균 차이는 −134963497/200000000≈−0.674817485입니다. 두 명씩 나누는 여섯 균등 라벨 배정을 가정하면 절댓값 꼬리 p=1/3입니다.
원 SMSA 라벨이 실제로 교환가능하다는 사실은 확인되지 않았습니다. 따라서 정확한 여섯 배정 계산을 거주지의 인과 효과나 실제 모집단 유효 p로 바꾸지 않습니다. 전체 가용 3010개와 이 선택 네 개의 분모를 구별합니다.
Among available Card source log wages, we explicitly select the first two original person codes in each 1976 SMSA group:2, 3 versus 30, 35. These are four actual records, not a random sample of all men.
Log values are (6.30627529, 6.17586727, 6.58755001, 7.24422752), with observed difference −134963497/200000000≈−.674817485. Under six equally likely two-versus-two allocations, the inclusive absolute-tail p is 1/3.
Actual SMSA-label exchangeability was not verified. Exact arithmetic therefore does not identify a residence effect or certify a field-population p-value. Distinguish all 3010 available logs from these selected four.
기초Foundations
44. 실제 기업: 384점포 쌍과 512회 계산을 분리한다44. Actual stores: separate 384 observed pairs from 512 computed resamples
원 점포 기록은 410개이고 전후 FTE가 모두 있는 384쌍만 재표집합니다. 26개 불완전짝은 원자료에 보존하고 0으로 채우지 않습니다. 원평균 변화는 −541/7680≈−0.07044271 FTE입니다.
같은 점포 쌍을 복원하는 정확 조건부분산은 약 0.211433221 FTE², SD≈0.459819입니다. 두 wave를 따로 뽑는 가정상 법칙의 SD는 약 0.687239로 다릅니다. 지정한 seed=20261022로 512회 만든 MC 평균은 약 −0.06475805, 표본분산은 약 0.207914987입니다.
원행 키 42와 168은 같은 store 코드 407을 갖지만 변화는 각각 0, 2.5 FTE인 다른 원기록입니다. 코드 하나로 합치거나 제거하지 않습니다. MC type1 끝점 [−1.048828125, 0.8079427083]은 고정 계산 결과이며 정책의 인과 효과·iid 점포 표집·유효 95% CI를 인증하지 않습니다.
Of 410 source store records, 384 have both FTE waves. Preserve 26 incomplete pairs without zero-filling. Observed mean change is −541/7680≈−.07044271 FTE.
Exact whole-pair conditional variance is about .211433221 FTE² with SD≈.459819. Independent-wave replacement instead has SD≈.687239. With seed 20261022, the 512 computed replicates have mean about −.06475805 and sample variance .207914987.
Source rows 42 and 168 share store code 407 but have changes zero and 2.5 FTE. Retain both unique records. MC type 1 endpoints [−1.048828125,.8079427083] are reproducible calculations, not certified policy causality, iid store sampling or 95% coverage.
기초Foundations
45. 실습 F: 원자료 키·단위·정확 참조와 MC를 함께 본다45. Lab F: inspect source keys, units, exact references and Monte Carlo together
국가는 연도 블록, 개인은 여섯 라벨 배정, 기업은 점포 전체 쌍을 움직입니다. 선택한 원키와 각 실험이 고정하는 내용을 먼저 읽으세요. 같은 실습 버튼이 같은 표집 정당화를 뜻하지 않습니다.
기업의 mode·B·seed를 바꾸면 MC 값이나 선택 조건부 법칙이 바뀝니다. 원자료 410기록·384완전짝·26불완전짝은 바뀌지 않습니다. 국가와 개인의 작은 법칙은 전체를 셀 수 있어 정확한 집계이며, 기업 512회 히스토그램은 조건부 법칙의 MC 근사입니다.
Country resampling moves year blocks, person permutation moves labels, and store resampling moves whole pairs. Read source keys and what each experiment holds fixed before comparing outputs.
Changing store mode, B or seed changes computation or the selected conditional law, not 410 records, 384 complete pairs or 26 missing pairs. Small country/person laws are fully enumerated; the 512-store-replicate histogram approximates a conditional law.
기초Foundations
46. 국가·개인·점포의 출처와 재현 사례를 읽는다46. Read source and reproduction cases for countries, people and stores
국가 사례 · 분기를 하나씩 뽑을까, 한 해를 통째로 뽑을까?
BIS의 실제 2021–2024년 한국 실질 주택지수 16분기를 사용합니다. 완전히 관측한 평균 115.808306 지수포인트는 이미 알려져 있습니다. 그 평균을 다시 계산한다고 실제 불확실성이 새로 생기는 것은 아닙니다. 여기서는 자료를 고정하고 “무엇을 재표집 단위로 삼느냐”에 따라 별도로 정의한 조건부 재표집 분포가 어떻게 바뀌는지 확인합니다. 기준은 2010년 평균=100입니다.
한 블록에 같은 해 네 분기를 보존
실제 연도 블록
분기 수
블록 관측 평균
2021
4
121.090750
2022
4
122.892225
2023
4
111.483625
2024
4
107.766625
연도 블록 네 개에서 복원·독립으로 블록 네 개를 고릅니다. 한 블록의 분기 순서와 값은 함께 움직이고, 반복해서 고른 연도는 그대로 반복됩니다. 가능한 블록 순서열 4⁴=256개를 모두 계산하므로 모의오차 없이 그 지정 법칙의 평균·분산·분위수를 얻습니다. 연도를 다시 뽑았다는 것은 실제 시간이 되감기거나 새 해를 관측했다는 뜻이 아닙니다.
Var∗(Xblock∗)=vy/4Var∗(Xquarter∗)=vq/16
vᵧ는 연도별 블록 평균의 경험분산이고, v_q는 개별 분기 값의 경험분산입니다. 각 경험분산은 해당 원자료 개수를 분모로 사용합니다.
같은 고정 자료, 서로 다른 가정 재표집 분포
선택 단위
조건부 평균
조건부 SD 지수포인트
연도 네 블록
115.808306
3.176649
각 분기 16개를 iid로 선택
115.808306
1.703062
먼저 생각한 뒤 풀이 보기: 블록으로 묶으면 실제 시계열에 대한 95% 신뢰구간이 자동 완성되나요?
아닙니다. 네 연도가 독립·동일한 블록이라는 근거나 충분한 블록 수를 확보하지 않았습니다. 블록 길이·경계·추세·정상성 등을 따로 검토해야 합니다. 여기서 확인한 것은 선택한 유한 재표집 법칙의 분포이지 실제 모집단 추론의 타당성이 아닙니다.
먼저 생각한 뒤 풀이 보기: 2.5%와 97.5% 분위수는 어떤 규칙으로 정했나요?
정렬한 256개 값에서 p 분위수를 ceil(256p)번째 값으로 정했습니다(역경험CDF, type1). 이 규칙의 두 끝은 877001/8000와 9759319/80000입니다. 이산 자료의 동률·분위수 정의 때문에 정확히 95% 질량이나 중앙값 양쪽의 같은 길이를 보장하지 않습니다. 구간의 반복 포함률은 별도로 평가해야 합니다.
개인 자료 사례 · 라벨을 바꾸는 순열검정에는 무엇이 필요할까?
원 변수 lwage76은 1976년 시간당 임금(센트)의 로그를 원 코드북에서 극단값 정리한 변수입니다. Card의 실제 3010개 관측 log 임금 중 1976년 SMSA=1·0 각각에서 원 ID 순서로 처음 두 명만 선택합니다. 네 기록은 원자료의 실제값이지만 이 편의 선택이 대표 표본은 아닙니다. 실제 도시권 라벨도 무작위 배정이 아닙니다. 작은 예에서 가능한 라벨 배치를 모두 세기 위한 선택임을 먼저 밝힙니다. 원자료 전체 3613명과 603개 결측의 의미도 사라지지 않습니다.
명시한 규칙으로 선택한 실제 네 기록
원 개인 ID
관측 SMSA
실제 source log 임금
2
1
6.30627529
3
1
6.17586727
30
0
6.58755001
35
0
7.24422752
지정한 참조 법칙에서는 네 고정 임금에 두 개의 그룹1 라벨을 배정하는 여섯 방법을 똑같이 1/6로 둡니다. 통계량은 그룹1 평균−그룹0 평균입니다. 원래 관측 라벨의 차이 -0.67481749와 절댓값을 비교하여 같은 정도 이상 극단적인 배치를 셉니다. 임금값은 바꾸지 않고 라벨 배치만 바꾸며, 복원추출하는 부트스트랩과 다릅니다.
모든 여섯 라벨 배치
배치 ID
가정 그룹1 원 ID
가정 평균 차이
관측 이상 극단적인가
0
2|3
-0.67481749
예
1
2|30
-0.26313475
아니오
2
2|35
0.39354277
아니오
3
3|30
-0.39354277
아니오
4
3|35
0.26313475
아니오
5
30|35
0.67481749
예
먼저 생각한 뒤 풀이 보기: 이 여섯 배치가 실제 조사에서 같은 확률이라고 증명했나요?
아닙니다. 이 p=1/3는 지정한 교환가능 라벨 법칙 아래의 정확 계산입니다. 실제 관측 집단에는 임금분포·교육·나이·이주 선택 차이가 있을 수 있습니다. 평균이 같다는 조건만으로 일반적인 원시 라벨 교환가능성이 보장되지 않습니다. 무작위 배정 실험이라면 실제 배정 설계가 허용하는 라벨만 재배정해야 합니다.
먼저 생각한 뒤 풀이 보기: 자료를 더 많이 재배열하면 네 명이 대표 표본이 되나요?
아닙니다. 배치 수를 늘리는 계산은 새로운 사람을 조사하지 않습니다. 선택 편향·결측·관측 설계는 그대로 남습니다. 전체 자료에서의 집단 차이와 이 편의 부분집합의 차이가 달라도 계산 오류라고 단정하지 말고 표적·선택 단위를 확인하세요.
점포 사례 · 전후 기록을 따로 뽑으면 같은 점포의 짝이 깨진다
공개 NJ·PA 410점포 중 전후 FTE가 모두 있는 384개 짝을 원 점포 코드와 원행 번호 순서로 정렬합니다. 원 store 코드407은 원행42(PA, chain2)와168(NJ, chain4)에 중복됩니다. 두 행을 합치거나 삭제하지 않고, 원 public.dat의 1부터 시작하는 행 번호 source_row_id를 유일 재표집 키로 씁니다. 원행 키 하나를 뽑으면 그 행의 전·후 FTE 두 값이 함께 따라옵니다. 이 방법은 먼저 각 점포 변화 D=후−전을 만든 뒤 D를 복원추출하는 것과 정확히 같습니다. 나머지 26개 불완전짝은 0으로 채우지 않습니다. FTE는 정규직+0.5×시간제+관리자입니다.
표본 조건부 법칙에서 384개 점포짝을 균등 복원추출하여 384쌍으로 된 재표본을 만듭니다. 재표본 512개는 고정 seed=20261022의 의사난수 계산 결과이며 실제 새 점포 조사가 아닙니다. 전체 짝 법칙은 384³⁸⁴개의 순서열을 가지므로 여기서는 그 전체를 열거하지 않습니다. 반복수 512는 실습 재현을 위한 선택이며 모든 실제 추론에 충분한 반복수라고 보장하지 않습니다.
vD=vY+vX−2cXYVar∗(D∗)=vD/384
v_D, v_Y, v_X는 같은 384개 완전짝에서 계산한 변화·후기·전기 값의 경험분산이고, c_XY는 그 짝의 경험공분산입니다.
표의 SD·평균 소수는 화면 표시용 반올림입니다. 정확한 유리수 모멘트와 원행 키는 CSV에 보존합니다.
짝 보존과 짝 파괴의 다른 조건부 분포
항목
FTE 단위 값
원 완전짝 평균변화
-0.07044271
정확한 짝 부트스트랩 SD
0.45981868
전후를 독립 재표집한 잘못된 SD
0.68723903
512회 모의 평균들의 표본 SD
0.45597696
512회 평균의 평균
-0.06475805
먼저 생각한 뒤 풀이 보기: 부트스트랩 512회 분포가 정확한 전체 조건부 분포인가요?
아닙니다. 각 재표본의 산술은 정확히 재현하지만 512회 결과는 거대한 조건부 법칙의 모의 근사입니다. 반복수·seed를 바꾸면 경험 분위수와 SD가 달라집니다. 이 평균의 조건부 분산은 위 식으로 별도 정확 계산할 수 있어 모의값의 흔들림과 구별합니다. 분위수는 같은 type1 규칙을 사용합니다.
먼저 생각한 뒤 풀이 보기: 짝 부트스트랩이면 체인·지역 군집과 정책 인과 문제도 해결되나요?
아닙니다. 같은 점포의 두 시점을 보존할 뿐 점포 간 체인·지역 의존성, 누락 점포 선택이나 정책 반사실을 식별하지 않습니다. 실제 독립 표집 단위와 목표에 맞춰 군집·층화·시간 단위를 다시 설계해야 합니다. 단순 평균변화의 재표집을 정책의 인과효과 신뢰구간이라고 부르지 않습니다.
먼저 생각한 뒤 풀이 보기: Python과 R의 seed 숫자만 같으면 같은 결과가 나오나요?
난수 생성기와 정수 매핑 규칙이 다르면 같은 seed여도 다릅니다. 이 실습은 두 언어에서 같은 Park–Miller 정수 갱신과 편향 없는 범위 매핑을 구현하고 원 ID 순서·반복수를 함께 기록합니다. 코드에서의 재현 가능성과 현실에서의 올바른 표집 설계는 다른 조건입니다.
Country case · Resample separate quarters or an entire year?
Use 16 actual BIS Korea real housing-index quarters in 2021–2024. Their complete mean 115.808306 index points is already known; recalculating it creates no new actual uncertainty. Hold the data fixed and compare separately defined conditional resampling distributions under different units. The index reference is 2010 average=100.
Preserve the four quarters within each year block
Actual year block
Quarter count
Observed block mean
2021
4
121.090750
2022
4
122.892225
2023
4
111.483625
2024
4
107.766625
Choose four independent replacement draws from the four year blocks. Each block’s four values and internal quarter order move together; a selected year can repeat. Enumerating all 4⁴=256 ordered block samples gives the specified law’s moments and quantiles without Monte Carlo error. Resampling a year neither rewinds actual time nor observes a new year.
Var∗(Xblock∗)=vy/4Var∗(Xquarter∗)=vq/16
vᵧ is the empirical variance of annual block means; v_q is the empirical variance of individual quarterly values. Each empirical variance uses its own number of retained values as divisor.
Same fixed data, different assumed resampling laws
Chosen unit
Conditional mean
Conditional SD, index points
Four year blocks
115.808306
3.176649
Sixteen separately iid-drawn quarters
115.808306
1.703062
Think first, then reveal: Does choosing blocks automatically create a valid 95% time-series CI?
No. Independence/identical distribution of four years and an adequate number of blocks are unverified. Block length, boundaries, trends and stationarity require separate assessment. This computes a specified finite resampling law, not validation of population inference.
Think first, then reveal: How are the 2.5% and 97.5% quantiles defined?
Use the ceil(256p)-th sorted value, the inverse empirical CDF/type1 rule. The endpoints are 877001/8000 and 9759319/80000. Ties and discrete quantiles need not give exactly 95% mass or equal distances around a median. Repeated coverage is a separate question.
Person-record case · What licenses permuting group labels?
The source variable lwage76 is the source-trimmed log of 1976 hourly wages measured in cents/hour. From Card’s 3,010 observed source log wages, select the first two original IDs within each 1976 SMSA group. These four values are actual, but this convenience subset is not representative and actual SMSA labels were not randomized. The selection only makes all label allocations countable. It does not erase the full 3,613-record source or 603 missing wages.
Four actual records selected by an explicit rule
Original person ID
Observed SMSA
Actual source log wage
2
1
6.30627529
3
1
6.17586727
30
0
6.58755001
35
0
7.24422752
The specified reference law assigns equal probability 1/6 to each allocation of two group1 labels across the four fixed wages. Use group1 mean−group0 mean, and compare absolute values with the original-label difference -0.67481749. Wage values stay fixed while label allocations change. This differs from bootstrap replacement sampling.
Every one of the six allocations
Allocation ID
Assumed group1 original IDs
Assigned mean difference
At least as extreme
0
2|3
-0.67481749
Yes
1
2|30
-0.26313475
No
2
2|35
0.39354277
No
3
3|30
-0.39354277
No
4
3|35
0.26313475
No
5
30|35
0.67481749
Yes
Think first, then reveal: Have we established equal allocation probabilities in the actual survey?
No. The p=1/3 is exact under the specified exchangeable-label law. Actual groups may differ in wage distributions, schooling, age and migration selection. Equal means alone do not generally justify raw-label exchangeability. In a randomized experiment, reassign only labels permitted by its actual assignment design.
Think first, then reveal: Do more rearrangements turn four records into a representative sample?
No. More computation does not survey new people. Selection, missingness and study design remain. A convenience subset can differ from the full-data comparison without an arithmetic error; inspect the target and selection units.
Store case · Separately resampling waves destroys the same-store pair
Sort the 384 complete before/after FTE pairs among 410 public NJ/PA stores by original store code and source-row number. Code407 occurs in source rows42 (PA, chain2) and168 (NJ, chain4). Keep both without merging or deletion, and use the one-based public.dat row number source_row_id as the unique resampling key. Drawing one source-row key carries that row’s two waves together. This is exactly equivalent to first forming store changes D=after−before and resampling D with replacement. Preserve the other 26 incomplete pairs rather than zero-filling them. FTE=full-time+.5×part-time+managers.
The conditional law draws 384 whole store pairs uniformly with replacement to form one resample. The 512 displayed replicates are pseudorandom computations with fixed seed=20261022, not newly surveyed stores. The full law has 384³⁸⁴ ordered samples and is not exhaustively enumerated here. Choosing 512 replicates supports a reproducible exercise, not a guarantee of adequate Monte Carlo precision for every inferential purpose.
vD=vY+vX−2cXYVar∗(D∗)=vD/384
v_D, v_Y and v_X are empirical variances of changes, after values and before values on the same 384 complete pairs; c_XY is their empirical covariance.
Displayed SDs and means are rounded decimals. Exact rational moments and unique source-row keys remain in the CSVs.
Different conditional laws with and without pairing
Quantity
Value in FTE
Original complete-pair mean change
-0.07044271
Exact paired-bootstrap SD
0.45981868
Incorrect independently resampled-wave SD
0.68723903
Sample SD of 512 replicate means
0.45597696
Mean of 512 replicate means
-0.06475805
Think first, then reveal: Are the 512 replicates the exact full conditional distribution?
No. Arithmetic within each replicate is reproducible, but 512 outcomes approximate a much larger conditional law. Changing B or seed changes empirical quantiles and SD. The mean’s conditional variance is separately calculable exactly, separating the target from Monte Carlo fluctuation. Quantiles use the same type1 convention.
Think first, then reveal: Does paired bootstrap solve chain/geographic clustering and policy causality?
No. It preserves a store’s two waves but does not repair between-store dependence, selection of missing stores or identify policy counterfactuals. Match resampling to genuine independent units and targets, considering clusters, strata or time. Do not call a bootstrap of simple mean changes a causal policy-effect interval.
Think first, then reveal: Does using the same seed number guarantee identical Python and R results?
Not with different generators or index mappings. This exercise implements the same Park–Miller integer update and rejection mapping in both languages, recording original ID order and replicate count. Computational reproducibility and a justified real sampling design are different conditions.
47. 결과보다 먼저 재표집 설계 카드를 쓴다47. Write a resampling-design card before reporting results
목표 모수·원추정량·관측 단위·포함 수·결측 규칙·원키를 적으세요. 그다음 별표 법칙에서 고정하는 것과 움직이는 것을 선언합니다. 쌍·군집·시계열·가중치·귀무 라벨 제한이 있다면 먼저 표시합니다.
정확 전수법인지 MC인지, 통계량의 순서 정의·동률·분위수 관례·구간 방법을 씁니다. MC라면 B·seed·알고리즘·자료 순서·인덱스 매핑도 남깁니다. 조건부분산과 MC 표본분산, 계산 오차와 모집단 근사 오차를 분리해 보고합니다.
마지막에 어떤 원표집·교환가능성·정칙성 가정이 추론을 뒷받침하는지 적습니다. 확인하지 않은 조건은 확인했다고 쓰지 않습니다. 정확 계산·멋진 히스토그램·같은 seed만으로 원자료를 새 실험으로 만들 수 없습니다.
Record target, statistic, observational units, inclusion, missingness and source keys. Then specify what the starred experiment fixes and moves, including pairing, clusters, time, weights and null-label restrictions.
State enumeration versus MC, ordering, ties, quantile convention and interval method. For MC, record B, seed, generator, data order and index mapping. Separate conditional variance, MC sample variance, computation error and population approximation.
Finally name the original-sampling, exchangeability or regularity assumptions supporting inference. Exact arithmetic, a histogram and a seed do not create a new field experiment.
기초Foundations
48. 공식 자료의 매개변수와 정당화 범위를 대조한다48. Compare primary parameter definitions and justification scopes
Compare paired, n_resamples, rng and method parameters in official SciPy bootstrap. Do not turn broad introductory prose into universal exact discrete coverage or distance symmetry. Check allocation and alternative conventions in permutation_test; its default two-sided rule differs from ours.
Section 3 on printed pages 7–8 of Berkeley DS102 Discussion 5 asks for the maximum counterexample; do not conflate its earlier posterior-predictive section. Read assumption-based justification together with a failure case.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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.
StatQuest · 부트스트랩의 기본 생각StatQuest · Bootstrapping main ideas
Josh Starmer / StatQuest
복원추출이 원자료와 같은 크기의 재표본을 만드는 과정을 봅니다. 그 반복이 새로운 사람·해·점포 관측을 추가하는 것은 아니라는 점과 실제 재표집 단위를 함께 확인하세요.Watch replacement sampling create resamples of the original size. It does not add newly observed people, years or stores; check the actual resampling unit.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading행 수만 맞추면 짝 자료도 따로 재표집해도 되나요?Is matching row count enough to resample paired measurements separately?
생각을 점검하는 해설Check your reasoning
아닙니다. 같은 관측 단위의 연결을 보존하는 동일 인덱스를 사용해야 합니다.No. Use common indices to preserve linked measurements of the same unit.
공식 대학 소개의 부트스트랩 연구와 응용·이론을 함께 연구한다는 설명을 읽습니다. 계산량을 늘리는 것과 추론 가정을 타당하게 하는 것은 구별합니다.Read the official university account of bootstrap research and the connection of theory with applications. More computation and better-justified assumptions are different goals.
보고 읽은 뒤 답하기Respond after watching/reading재표본 수를 무한히 늘리면 원자료의 선택 편향도 사라지나요?Would infinitely many resamples remove selection bias in the original data?
생각을 점검하는 해설Check your reasoning
아닙니다. 지정한 조건부 재표집 법칙은 더 정확히 계산할 수 있어도 원자료에 빠진 정보와 표집 편향은 그대로 남습니다.No. The conditional resampling law can be computed more precisely while missing information and acquisition bias remain.
SciPy 공식 문서 · paired·반복수·난수 상태SciPy documentation · paired, repetitions and RNG state
SciPy official API documentation
Parameters의 paired, n_resamples, rng 정의만 읽습니다. paired=True의 같은 인덱스 재표집을 두 언어 코드와 연결하세요. 함수의 일반 설명을 모든 자료에서의 95% 보장으로 읽지 않습니다.Read only the parameter definitions for paired, n_resamples and rng. Connect common-index paired=True resampling to the two-language code; do not infer universal 95% validity from a software function.
보고 읽은 뒤 답하기Respond after watching/readingpaired=False는 실제 두 시점 자료의 어떤 연결을 버리나요?What connection does paired=False discard in two-wave measurements?
생각을 점검하는 해설Check your reasoning
두 배열의 같은 인덱스가 같은 점포라는 연결을 버리고 각각 재표집합니다. 그것이 목표 설계와 일치하는지 확인해야 합니다.It independently resamples the arrays, discarding the shared-store relationship at matching indices. Check whether that matches the design.
Berkeley · 순열검정의 교환가능성 정의Berkeley · Exchangeability in permutation tests
UC Berkeley Data102 · Lecture5, §2 definition only
마지막 쪽 §2에서 교환가능성의 정의와 귀무 아래 순열 구성 부분만 읽습니다. 앞 온라인 FDR 근사와 별개로, 동률은 배치별 확률을 합쳐 처리하며 관측 집단의 평균 같음만으로 교환가능성을 단정하지 않습니다.Read only the exchangeability definition and null permutation construction in final-page §2. Exclude the preceding online-FDR approximation; sum tied allocation probabilities and do not equate equal group means with exchangeability.
보고 읽은 뒤 답하기Respond after watching/reading서로 다른 배치가 같은 통계량을 만들면 그 통계량의 확률도 1/6인가요?If several allocations give the same statistic, does that statistic still have probability 1/6?
생각을 점검하는 해설Check your reasoning
각 배치가 1/6이고, 같은 통계량을 만드는 배치들의 확률은 합합니다. 통계량의 서로 다른 값들이 모두 같은 확률인 것은 아닙니다.Each allocation has probability 1/6; add probabilities for allocations sharing a statistic. Distinct statistic values need not be equally probable.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 두 반복 실험Two repetition layers
학생 4명의 값을 고정한 채 1000회 재표집했습니다. 실제 1000개 새 학생 표본을 얻은 건가요?
Four student values are fixed and resampled 1000 times. Have you observed 1000 new student samples?
풀이와 확인할 이유Solution and explanation
아닙니다. 원자료에 조건을 건 계산 표본입니다. 실제 관측 수는 4이며 재표집 법칙은 그 경험분포를 사용합니다. 원표집과 조건부 계산을 구별해야 합니다.
No. These are computational resamples conditional on four observed records. Separate original sampling from the empirical resampling law.
2. 중복값의 질량Repeated-value mass
원기록 값 (1, 1, 5)의 경험분포에서 값 1과 5의 질량을 구하세요.
Find empirical masses of values 1 and 5 from records (1, 1, 5).
풀이와 확인할 이유Solution and explanation
각 위치 질량은 1/3이므로 값 1은 2/3, 값 5는 1/3입니다. 중복을 제거하고 두 값에 1/2씩 주면 다른 법칙입니다.
Each position has mass 1/3; combined masses are 2/3 and 1/3. Equal halves after deduplication would change the law.
3. 두 값의 모든 재표본All two-value resamples
값 (1, 2)에서 크기 2 복원추출의 네 순서열과 평균 분포를 쓰세요.
From (1, 2), list all size-two replacement samples and their mean law.
풀이와 확인할 이유Solution and explanation
값 순서열은 (1, 1),(1, 2),(2, 1),(2, 2), 각각 1/4입니다. 평균 1, 1.5, 2의 질량은 1/4, 1/2, 1/4입니다. 세 원자가 균등하지 않습니다.
The four equally likely sequences are (1, 1),(1, 2),(2, 1),(2, 2). Mean masses at 1, 1.5, 2 are 1/4, 1/2, 1/4.
4. 비복원 평균Without-replacement mean
(1, 2)를 크기 2로 비복원 추출해 순서만 바꾸면 평균의 분산은 무엇인가요? 복원과 같나요?
Sample both values (1, 2) without replacement. What is mean variance, and does it equal replacement variance?
풀이와 확인할 이유Solution and explanation
평균은 언제나 1.5라 분산 0입니다. 복원 법칙은 평균 1과 2도 허용하므로 분산이 양수입니다. 어떤 반복을 가정했는지부터 정해야 합니다.
It is zero because the mean is always 1.5. Replacement allows other means, so the experiments differ.
5. 네 기록의 순서열 수Four-record sequence count
가용 기록 n=4를 크기 4로 복원할 때 모든 순서열 수와 각 순서열 확률을 구하세요.
For four available records and a size-four replacement sample, find ordered count and each sequence probability.
풀이와 확인할 이유Solution and explanation
4⁴=256개이며 각각 1/256입니다. 같은 통계량의 질량은 해당 순서열 수를 합해야 합니다. 원값이 중복되어도 위치 선택 수는 256입니다.
There are 256 sequences, each of mass 1/256. Shared-statistic probabilities aggregate multiplicities even if source values repeat.
6. 원자 수와 순서열 수Atoms versus ordered sequences
n=6이면 전체 순서열은 몇 개인가요? 서로 다른 평균의 수도 그 수와 항상 같나요?
How many sequences arise at n=6, and must all mean values be distinct?
풀이와 확인할 이유Solution and explanation
6⁶=46656개입니다. 평균은 순서를 무시하고 중복값도 있으므로 서로 다른 평균 수는 더 작을 수 있습니다. 집계 원자의 질량을 균등하게 놓지 않습니다.
There are 46656 sequences. Shared means can aggregate many sequences, so distinct mean atoms need not number 46656 or have equal masses.
7. 선택 순서열 번호Selected sequence index
실습의 (1, 2, 3, 10)에서 0기반 순서열 번호 5를 네 자리 4진수로 읽으면 어떤 추출과 평균인가요?
For (1, 2, 3, 10), decode zero-based resample index 5 as four base-four digits.
풀이와 확인할 이유Solution and explanation
5는 0011₄이므로 가용 위치 (0, 0, 1, 1), 값 (1, 1, 2, 2), 평균 1.5입니다. 마지막 자리가 가장 빠르게 변하는 순서열 번호 관례입니다.
5=0011₄ gives indices (0, 0, 1, 1), values (1, 1, 2, 2) and mean 1.5. The final digit changes fastest in this indexing convention.
8. 네 값의 조건부분산Four-value conditional variance
값 (1, 2, 3, 10)의 원평균과 정확 별표 평균 분산을 구하세요.
For (1, 2, 3, 10), find the observed mean and exact starred mean variance.
This exact conditional variance is also recovered by enumerating all 256 sequences.
9. 유한 n의 분산 차이Finite-n variance difference
n=4, S²=50/3에서 원 iid 평균의 분산 추정 S²/n과 별표 평균 분산을 비교하세요.
For n=4 and S²=50/3, compare S²/n with starred mean variance.
풀이와 확인할 이유Solution and explanation
앞은 25/6, 뒤는 (n−1)S²/n²=25/8입니다. 뒤/앞=3/4입니다. 둘의 계산이 틀려서가 아니라 경험분산의 n 분모와 원 표본분산 n−1의 차이입니다.
They are 25/6 and 25/8, with ratio 3/4. The empirical n denominator differs from the sample-variance n−1 correction.
10. 한 값의 재표집Resampling one value
가용값이 7 하나뿐이면 부트스트랩 평균과 분산은 무엇이며 무엇을 증명하지 않나요?
If the only available value is 7, what are bootstrap mean and variance, and what does this not prove?
풀이와 확인할 이유Solution and explanation
조건부 평균은 7, 분산은 0입니다. 원모집단의 변동이나 평균 불확실성이 0이라는 증거는 아닙니다. 관측 지지집합 한 점에 갇힌 경험 법칙입니다.
The conditional mean is seven and variance zero. It does not establish zero population variation or mean uncertainty; the empirical support has one point.
11. 빈 경험분포Empty empirical data
원배열 (null, null)에서 가용값 부트스트랩 평균을 계산할 수 있나요?
Can the available-value bootstrap mean be computed from (null, null)?
풀이와 확인할 이유Solution and explanation
가용 수가 0이라 이 실습의 균등 경험분포와 평균을 정의하지 않습니다. 결측 두 개를 값 0 두 개로 바꾸면 다른 자료가 됩니다. 원배열 위치와 제외 수는 남깁니다.
No available records define the empirical law or mean. Replacing missing entries by zeros changes the data; preserve source positions and omission count.
For sorted values (1, 1, 1.5, 1.5, 2, 3, 4, 8), compare type 1 q.25, q.5 and the conventional median.
풀이와 확인할 이유Solution and explanation
M=8이라 순위는 2와 4, 따라서 q₀.₂₅=1, q₀.₅=1.5입니다. 통상 짝수 중앙값은 (4번째+5번째)/2=1.75입니다. 관례가 다른 정의입니다.
Ranks are two and four, giving one and 1.5. The conventional even-sample median averages entries four and five, giving 1.75. These are different conventions.
13. 이산 구간의 질량Mass of a discrete interval
값 (1, 2)의 크기 2 평균 법칙은 1, 1.5, 2에 질량 1/4, 1/2, 1/4입니다. α=0.5 percentile 구간과 그 안의 질량을 구하세요.
A size-two mean law from (1, 2) has masses 1/4, 1/2, 1/4 at 1, 1.5, 2. Find the α=.5 percentile interval and its enclosed mass.
풀이와 확인할 이유Solution and explanation
q₀.₂₅=1, q₀.₇₅=1.5라 구간은 [1, 1.5]이고 양 끝을 포함한 질량은 3/4입니다. 명목 중앙 50%라도 이산 분위수 구간이 정확히 50% 질량을 담지는 않습니다.
Type 1 endpoints are one and 1.5. The inclusive interval contains mass 3/4, not exactly the nominal central half.
14. percentile과 basicPercentile and basic
가상 θ̂=4, q₀.₀₂₅*=2, q₀.₉₇₅*=8입니다. 두 구간을 계산하세요.
For hypothetical θ̂=4 and starred quantiles two and eight, find percentile and basic intervals.
풀이와 확인할 이유Solution and explanation
Percentile은 [2, 8], basic은 [2×4−8, 2×4−2]=[0, 6]입니다. 반사하면서 끝점 순서를 바꾸며 두 방법을 같은 것으로 처리하지 않습니다.
Percentile is [2, 8]; basic is [0, 6] after reflection and endpoint reversal. They are not generally identical.
15. 모수 범위와 반사Parameter range and reflection
양의 모수 추정 θ̂=1, 별표 분위수 0.5와 3이면 basic 구간은 무엇인가요? 음의 끝점을 몰래 0으로 잘라도 되나요?
For a positive parameter, θ̂=1 and starred quantiles .5 and three, find the basic interval. Can its negative endpoint be silently clipped?
풀이와 확인할 이유Solution and explanation
Basic은 [−1, 1.5]입니다. 알려진 모수공간 Θ=(0,∞)와 원구간 I의 교차라고 명시하면 결과는 (0, 1.5]입니다. 모든 참 θ∈Θ에 대해 {θ∈I∩Θ}={θ∈I}이므로 포함사건은 같습니다. 이는 원래 부트스트랩의 타당성을 새로 보장하지 않으며, 임의 끝점 이동과도 다릅니다. 규칙을 숨기지 않고 원구간과 교차 규칙을 함께 보고합니다.
The basic interval is [−1, 1.5]. If the known parameter space is Θ=(0,∞), explicitly intersecting I with Θ gives (0, 1.5]. For every true θ∈Θ, the events {θ∈I∩Θ} and {θ∈I} agree, so coverage is preserved. This does not newly validate the bootstrap and differs from arbitrary endpoint movement. Report the original interval and intersection rule openly.
16. B와 nB and n
원자료 n=4, B=1000에서 4000개의 재표본 안 값을 만들었습니다. 원관측 수는 몇인가요?
With n=4, B=1000, you produce 4000 values inside resamples. How many original observations exist?
풀이와 확인할 이유Solution and explanation
원관측은 여전히 4개입니다. 4000개는 네 값의 위치를 반복 선택해 만든 계산 값이며 새로운 정보 4000개가 아닙니다. 계산 반복 B와 표집 크기 n을 분리합니다.
Still four. The 4000 are repeated computational selections, not newly acquired evidence. Keep B separate from n.
17. MC 평균의 변동MC mean variability
이상적 독립 재표본 통계량의 조건부분산은 25/8입니다. B=100과 400에서 MC 평균의 분산을 구하세요.
Ideal independent replicate statistics have conditional variance 25/8. Find MC mean variance at B=100 and 400.
풀이와 확인할 이유Solution and explanation
각각 (25/8)/100=1/32,(25/8)/400=1/128입니다. B를 네 배로 하여 MC 평균의 SD는 절반이지만 원추정량의 SE가 절반이 된 것은 아닙니다.
The values are 1/32 and 1/128. Quadrupling B halves computational mean SD, not the original estimator’s sampling SE.
18. MC 표본분산 분모MC sample-variance denominator
MC 통계량 세 개가 (1, 2, 5)입니다. 평균과 B−1 표본분산을 구하세요.
For three MC statistics (1, 2, 5), find their mean and B−1 sample variance.
풀이와 확인할 이유Solution and explanation
tb∑(tb−t)2sMC2=8/3,=26/3,=(26/3)/2=13/3.
B=3으로 나눈 26/9는 다른 경험분산입니다. 표본분산에는 B≥2가 필요합니다.
tsMC2=8/3,b∑(tb−t)2=26/3,=13/3.
Dividing by three gives a different empirical variance. Sample variance requires B≥2.
19. 꼬리 횟수와 순위Tail count and rank
이상적 독립 MC에서 F*(t)=0.025, B=512입니다. t이하 기대 횟수·횟수 분산·type1 순위를 구하세요.
For ideal independent MC, F*(t)=.025 and B=512. Find expected count, count variance and type 1 rank.
풀이와 확인할 이유Solution and explanation
기대는 12.8, 분산은 512×0.025×0.975=12.48, 순위는 ceil(12.8)=13입니다. 13번째 값 자체의 변동은 원자 간격과 질량에도 달립니다.
They are 12.8, 12.48 and 13. Variation of the value at rank 13 also depends on atom spacings and masses.
20. 첫 의사난수 인덱스First pseudorandom index
seed=1에서 s새=48271s mod2147483647을 한 번 갱신하고 후보 state−1을 네 위치로 거절 매핑합니다. 첫 0기반 인덱스는요?
Start seed=1, update s by 48271s mod 2147483647, and rejection-map state−1 to four positions. Find the first zero-based index.
풀이와 확인할 이유Solution and explanation
새 상태 48271, 후보 48270입니다. 허용 한계 2147483644보다 작아 채택하며 48270 mod4=2입니다. 원배열 세 번째 위치를 고릅니다. 이것은 재현 규칙이지 물리적 무작위 추출 인증이 아닙니다.
The state is 48271 and candidate 48270, below limit 2147483644. Remainder two selects the third source position. This is a reproducible mapping rule, not certification of physical randomness.
21. 거절 매핑의 이유Why rejection mapping
가상 균등 후보 0,…, 5를 네 위치로 mod4 매핑하면 각 위치의 후보 수는 어떻게 되나요? 균등 매핑을 위해 무엇을 버리나요?
Map hypothetical equally likely candidates 0,…, 5 to four positions using mod 4. How many candidates map to each, and what should be rejected?
풀이와 확인할 이유Solution and explanation
나머지 0, 1은 후보가 두 개씩이고 2, 3은 한 개씩입니다. 후보 4, 5를 거절하고 0,…, 3만 쓰면 각 위치 후보 수가 하나씩입니다. 실제 난수 상태 범위에서도 같은 나눗셈 원리를 적용합니다.
Positions zero and one receive two candidates each; two and three receive one. Rejecting four and five equalizes mapping counts.
22. seed만 같은 재현Same seed alone
같은 seed를 써도 원자료 순서를 바꾸면 평균 재표본 경로가 항상 같나요?
Does the same seed guarantee an identical mean-resample path after changing source order?
풀이와 확인할 이유Solution and explanation
아닙니다. 같은 위치 인덱스도 다른 원값을 가리킬 수 있습니다. 원키 순서·알고리즘·매핑·B를 함께 고정해야 같은 경로를 재현합니다. 전체 정확 법칙은 같은 값의 순서 변경에 불변일 수 있어도 한 MC 경로는 다릅니다.
No. Identical indices can address different values. Record source order, generator, mapping and B. A full exact law can be order-invariant while a particular MC path changes.
23. 짝 분산 손계산Paired variance by hand
전 A=(1, 2), 후 B=(2, 4) 두 쌍입니다. 평균 변화와 정확 paired·independent wave 평균 변화 분산을 구하세요.
For before A=(1, 2), after B=(2, 4), find observed mean change and exact paired/independent-wave resampling variances.
Discarding pairing increases conditional variance by one half here.
24. 음의 짝 공분산Negative paired covariance
전 A=(1, 2), 후 B=(2, 1)입니다. 두 재표집 평균 차이 분산을 비교하세요.
For before A=(1, 2), after B=(2, 1), compare conditional mean-change variances.
풀이와 확인할 이유Solution and explanation
변화 (1,−1)의 경험분산은 1이라 paired 분산은 1/2입니다. 개별 wave 경험분산은 각각 1/4라 독립 wave 분산은 1/4입니다. 연결을 버리면 이 예에서는 오히려 더 작아집니다.
Paired differences (1,−1) give variance 1/2 for the resampled mean. Independent waves give (1/4+1/4)/2=1/4. Discarding pairing can make variance smaller.
25. 같은 추출 위치Shared draw positions
전 A=(1, 2), 후 B=(2, 4)에서 1기반 위치 (2, 2)를 두 wave에 함께 적용합니다. 평균 변화는요? 전은 (1, 1), 후는 (2, 2)를 쓰면요?
For A=(1, 2), B=(2, 4), use one-based positions (2, 2) for both waves. Find mean change; then use (1, 1) before and (2, 2) after.
풀이와 확인할 이유Solution and explanation
함께 적용하면 전 (2, 2), 후 (4, 4)여서 평균 변화 2입니다. 따로 적용하면 전 (1, 1), 후 (4, 4)여서 3입니다. 뒤 값은 같은 원점포쌍을 보존한 재표본이 아닙니다.
Shared positions give mean change two. Independent positions in the second construction give three and do not preserve original pairs.
26. 짝 공동 제외Joint pair omission
전 (1, null, 3), 후 (2, 5, null)에서 0기반 원위치와 가용 쌍 수를 구하세요.
For before (1, null, 3), after (2, 5, null), find retained zero-based positions and pair count.
풀이와 확인할 이유Solution and explanation
원위치 0의 (1, 2) 한 쌍만 남고 1, 2는 공동 제외합니다. 한 쌍의 경험 변화 법칙이 퇴화해도 모집단 변화 불확실성이 사라진 것은 아닙니다.
Only position zero with pair (1, 2) remains; positions one and two are jointly omitted. A one-pair empirical law does not eliminate population uncertainty.
27. 조건부분산과 MC 분산Conditional versus MC variance
정확 조건부분산은 0.2인데 B=100 MC 통계량의 B−1 표본분산이 0.19입니다. 어느 계산이 반드시 틀렸나요?
The exact conditional variance is .2 and the B−1 variance of 100 MC statistics is .19. Must one be wrong?
풀이와 확인할 이유Solution and explanation
이 차이만으로 틀렸다고 할 수 없습니다. 유한 MC 표본분산은 확률적 계산 표본의 변동을 가집니다. 원법칙·알고리즘·B를 확인하고 MC 민감도를 살피며 두 수를 같은 정확량으로 표시하지 않습니다.
Not from that discrepancy alone. Finite MC sample variance fluctuates. Check the law and algorithm and report both roles distinctly.
28. 같은 길이 블록Equal-sized blocks
블록 A=(1, 3), B=(5, 7)에서 전체 평균·블록 복원평균 분산·개별값 복원평균 분산을 구하세요.
For blocks A=(1, 3), B=(5, 7), find grand mean, whole-block mean variance and individual-value mean variance.
The same values produce different laws under different resampling units.
29. 길이가 다른 블록Unequal block lengths
A=(0), B=(10, 10, 10)에서 블록 평균의 단순 평균과 전체 평균을 구하세요.
For A=(0), B=(10, 10, 10), find the unweighted block-mean average and grand mean.
풀이와 확인할 이유Solution and explanation
단순 블록 평균은 5, 원관측 전체 평균은 7.5입니다. 같은 길이 블록 공식을 불균등 블록에 그대로 쓰면 표적이 달라집니다. 실습은 이런 입력을 다른 모형 필요 범위 오류로 안내합니다.
They are five and 7.5. Equal-length formulas cannot be silently reused for unequal units; the lab rejects that unsupported specification.
30. 블록 하나A single block
블록이 실제 한 연도뿐인데 그 연도를 같은 길이로 반복 복원하면 평균 분산은 0입니다. 시계열 평균을 정확히 안다는 뜻인가요?
A sole observed year is repeatedly sampled as one block, so conditional mean variance is zero. Is the time-series mean exactly known?
풀이와 확인할 이유Solution and explanation
아닙니다. 후보 블록이 한 개라 조건부 실험이 퇴화한 것입니다. 관측하지 않은 연도·장기 평균·시계열 의존에 관한 불확실성은 별도입니다.
No. The resampling experiment has only one candidate. Unobserved years, long-run means and dependence remain separate uncertainties.
31. 네 라벨의 조합 수Allocation combinations
N=4 중 집단 1에 두 위치를 놓는 배정 수는 몇인가요? 전체 순서 순열 24와 왜 다르나요?
How many allocations choose two of four positions for group one, and why not 24 full permutations?
풀이와 확인할 이유Solution and explanation
C(4, 2)=6개입니다. 집단 안 순서가 평균 차이에 영향이 없어 각 배정은 2!2!=4개 전체 순열을 묶습니다. 24/4=6으로 같은 확률 질량을 보존합니다.
There are six. Each allocation groups 2!2!=4 full permutations because within-group order does not change mean differences.
32. 순열의 원자 질량Permutation atom masses
값 (1, 2, 3, 4)를 두 명씩 나누면 평균 차이는 −2,−1, 0, 0, 1, 2입니다. 각 서로 다른 통계량의 질량을 구하세요.
Two-versus-two allocations of (1, 2, 3, 4) give statistics −2,−1, 0, 0, 1, 2. Find masses of distinct statistics.
풀이와 확인할 이유Solution and explanation
±2,±1은 각각 1/6, 0은 2/6=1/3입니다. 배정은 균등하지만 통계량의 서로 다른 값은 균등하지 않습니다.
Each of ±2,±1 has mass 1/6; zero has mass 1/3. Equal allocation probabilities do not imply equal statistic-atom probabilities.
33. 관측 −2의 꼬리Tails at observed minus two
앞의 여섯 통계량 −2,−1, 0, 0, 1, 2에서 관측 T=−2입니다. 작은 쪽·큰 쪽·절댓값 양쪽 p를 구하세요.
For null statistics −2,−1, 0, 0, 1, 2 and observed T=−2, find less, greater and absolute two-sided p-values.
풀이와 확인할 이유Solution and explanation
각각 1/6, 1, 2/6=1/3입니다. 모두 동률과 관측 배정 자체를 포함합니다. 기각 방향을 결과를 본 뒤 바꾸면 다른 선택 절차입니다.
They are 1/6, one and 1/3. Include the observed allocation and ties; changing direction after inspection creates another procedure.
34. 다른 양쪽 정의Different two-sided conventions
값 (0, 1, 10)에서 집단 1은 한 명이고 관측은 값 10입니다. 통계량은 −5.5,−4, 9.5입니다. 절댓값 꼬리와 두 배 작은 한쪽 꼬리를 비교하세요.
For values (0, 1, 10), group one has one observation, observed ten. Null statistics are −5.5,−4, 9.5. Compare absolute and doubled-minimum tails.
풀이와 확인할 이유Solution and explanation
관측 절댓값 9.5 이상은 한 배정이라 p=1/3입니다. 작은 한쪽 꼬리는 1/3이라 두 배 규칙은 2/3입니다. 같은 귀무 배정 아래서도 극단성 정의가 달라집니다.
The absolute tail is 1/3; doubling the smaller one-sided tail gives 2/3. The ordering convention matters even with the same assignment law.
35. 모든 값의 동률All ties
값 네 개가 모두 3이고 두 명씩 나눕니다. 평균 차이 법칙과 포함하는 양쪽 p는요?
Four values are all three and allocated two versus two. Find the mean-difference law and inclusive two-sided p.
풀이와 확인할 이유Solution and explanation
모든 배정 T=0이므로 한 원자 질량 1, p=1입니다. 동률을 빼고 |T|>0만 세면 0이 되어 이 장 정의와 다른 잘못된 결과입니다.
Every allocation gives zero, so mass one is at zero and p=1. Excluding ties with a strict > would incorrectly change this rule.
36. 정확 순열의 조건Condition for exact permutation validity
모든 배정을 세어 유리수 p를 얻었습니다. 원라벨 교환가능성의 근거 없이 실제 오류 확률이 α 이하라고 보장할 수 있나요?
All allocations were enumerated exactly. Can field type-I error≤α be guaranteed without justification of label exchangeability?
풀이와 확인할 이유Solution and explanation
아닙니다. 정확 계산은 선언한 배정 법칙에 관한 것입니다. 관측 배정도 그 귀무 법칙을 따라야 순위 오류 제어가 연결됩니다. 원분포·실험 설계와의 연결을 따로 확인해야 합니다.
No. Enumeration is exact for the declared assignment law. The observed allocation must follow the appropriate null law before rank error control applies.
37. 평균 같음 반례Equal-mean counterexample
A는 ±1, B는 ±10을 각각 동일 확률로 갖습니다. 같은 평균이므로 라벨 교환가능하다는 주장이 맞나요?
A is uniform on ±1 and B on ±10. Do equal means make labels exchangeable?
풀이와 확인할 이유Solution and explanation
둘 다 평균 0이지만 분포가 다릅니다. 절댓값 10은 B에서만 나와 라벨을 바꾼 결합법칙이 같지 않습니다. 같은 평균 귀무와 같은 분포/배정 대칭 귀무를 구별합니다.
No. Both means are zero but distributions differ; only B can produce magnitude ten. Equal means do not imply the same joint relabeling law.
38. 날카로운 귀무Sharp versus average null
두 단위의 처치 효과가 +1,−1입니다. 평균 효과 0이면 모든 단위의 효과 0이라는 귀무와 같나요?
Two units have effects +1 and −1. Is average effect zero the same as every unit having zero effect?
풀이와 확인할 이유Solution and explanation
다릅니다. 평균은 상쇄되어 0이지만 각 잠재결과 차이는 0이 아닙니다. 날카로운 귀무의 모든 배정 결과 대치와 평균 효과 귀무의 검정은 같은 문제가 아닙니다.
No. The effects cancel on average but the sharp null is false. Imputing all assignments under a sharp null differs from testing only average effects.
39. 평균 0과 부호 대칭Mean zero and sign symmetry
짝 차이 D가 −1을 확률 2/3,+2를 확률 1/3로 가집니다. 평균 0이면 부호 뒤집기가 대칭인가요?
A paired difference is −1 with probability 2/3 and +2 with probability 1/3. Does mean zero imply sign symmetry?
풀이와 확인할 이유Solution and explanation
E[D]=0이지만 D와 −D의 분포는 다릅니다. ±1의 동일 크기 부호가 같은 확률로 발생하는 구조도 아닙니다. 평균 0만으로 균등 부호 순열을 정확 검정이라고 할 수 없습니다.
No. E[D]=0 but D and −D have different laws. Uniform sign-flip testing needs an appropriate symmetry or randomization justification.
40. MC p의 최소값Minimum randomized-rank p
적절한 교환가능 MC 순위 검정에서 B=99개 추가 배정 중 관측 이상 극단인 것이 0개입니다. (b+1)/(B+1)은요?
Under a valid exchangeable randomized-rank construction, B=99 additional assignments give zero exceedances. Compute (b+1)/(B+1).
풀이와 확인할 이유Solution and explanation
1/100=0.01입니다. 0/99를 정확 p=0으로 보고하지 않습니다. 실습 E처럼 전체를 열거한 꼬리와 일부 배정 MC 순위 규칙을 구별합니다.
It is .01, not proof of exact p=0. Distinguish the randomized-rank rule from an exhaustively enumerated tail.
41. 두 극한의 질문Two different limits
원자료 n개를 고정하고 B를 무한히 늘리는 일과 원 표집 크기 n을 늘리는 일은 각각 무엇을 개선하나요?
What changes when B grows while n original observations stay fixed, and when the original sampling size n grows?
풀이와 확인할 이유Solution and explanation
적절한 독립 모의실험에서 B 증가는 고정 경험법칙의 평균·누적확률 같은 계산량에 대한 MC 오차를 줄입니다. n 증가는 원 표집 모형 아래 경험법칙과 추정량의 성질에 관한 점근 질문입니다. B가 커도 잘못된 재표집 단위나 선택 편향은 고쳐지지 않습니다. 분위수의 값 수렴에는 해당 분위수의 유일성과 법칙의 형태 같은 조건도 따로 봅니다.
Under appropriate independent simulation, increasing B reduces MC error for quantities of the fixed empirical law, such as its mean or CDF. Increasing n asks an asymptotic question about the empirical law and estimator under original sampling. More B does not repair wrong units or selection bias. Convergence of quantile values also needs attention to uniqueness and the shape of the conditional law.
42. 평균 부트스트랩의 충분조건Sufficient conditions for the mean bootstrap
원래 iid X가 E|X|³<∞, Var(X)=σ²>0를 만족합니다. 경험분산 vₙ과 경험 중심 3차 절대모멘트를 이용한 조건부 정규근사의 상계는 왜 0으로 가나요?
Original iid X satisfies E|X|³<∞ and Var(X)=σ²>0. Why does the conditional normal-approximation bound using empirical variance and third absolute central moment vanish?
풀이와 확인할 이유Solution and explanation
vₙ=n⁻¹Σ(Xᵢ−X̄)²이며, Δₙ은 √n(X̄*−X̄)/√vₙ의 조건부 CDF와 표준정규 Φ 사이의 모든 실수 t에 대한 절대 차이의 최소상한(sup)입니다.
m3,nΔn=n−1i∑∣Xi−X∣3,≤vn3/2nCm3,n.
큰수의 법칙과 중심화의 연속성으로 vₙ→σ²이고 m₃,ₙ은 확률적으로 유계입니다. 양의 σ² 덕분에 분모의 vₙ이 0에 접근하는 문제가 사라지며 √n이 상계를 0으로 보냅니다. vₙ=0인 사건에서는 표시 분수를 쓰지 않지만 그 사건의 확률은 0으로 갑니다. 이는 편리한 충분조건이지 모든 부트스트랩의 최소 가정은 아닙니다.
Define vₙ=n⁻¹Σ(Xᵢ−X̄)². Here Δₙ is the supremum over real t of the absolute difference between the conditional CDF of √n(X̄*−X̄)/√vₙ and standard-normal Φ.
m3,nΔn=n−1i∑∣Xi−X∣3,≤vn3/2nCm3,n.
Laws of large numbers and centering give vₙ→σ² and a probabilistically bounded m₃,ₙ. The positive variance controls the denominator and √n makes the bound vanish. The fraction is not used on vₙ=0, whose probability vanishes. These are convenient sufficient conditions, not universal minimal bootstrap assumptions.
43. 변환의 1차 분산First-order variance of a transformation
원 표본은 iid이고 E|X|³<∞, 평균 μ=2, 분산 σ²=1입니다. g(x)=x²에서 √n{g(X̄)−g(μ)}의 한계분산은요? 같은 모멘트 조건에서 μ=0이면 같은 비퇴화 결론을 내릴 수 있나요?
The original sample is iid with E|X|³<∞, μ=2 and σ²=1. For g(x)=x², find the limiting variance of √n{g(X̄)−g(μ)}. Under the same moment conditions, does the same nondegenerate conclusion hold at μ=0?
풀이와 확인할 이유Solution and explanation
g′(2)=4이므로 한계분산은 4²×1=16입니다. 조건부 별표 변환도 같은 1차 한계를 근사합니다. μ=0이면 g′(0)=0이라 √n 척도의 한계는 퇴화하고, 예를 들어 nX̄² 같은 2차 척도가 중요해집니다. 1차 분산 0은 유한표본 변동이 전혀 없다는 뜻이 아닙니다.
The derivative at two is four, so the limiting variance is 16. Conditional transformed resampling has the same first-order limit. At μ=0 the derivative vanishes; the √n limit degenerates and a second-order scale such as nX̄² matters. Zero first-order limiting variance is not zero finite-sample variability.
44. 별표 SE가 0인 재표본Zero starred standard errors
원자료 (1, 2)에서 크기 2 복원 재표본의 평균을 studentize하려 합니다. S*/√2=0인 재표본의 확률을 구하고, 이를 말없이 버려도 되는지 설명하세요.
Studentize the size-two bootstrap mean from (1, 2) using S*/√2. Find the probability of a zero denominator and explain whether those resamples may be silently discarded.
풀이와 확인할 이유Solution and explanation
네 순서열 중 (1, 1),(2, 2)의 두 개가 상수라 S*=0입니다. 조건부 확률은 1/2입니다. 분모가 0인 피벗을 일반 실수처럼 계산하지 않습니다. 그런 재표본을 버리면 원래 조건부 법칙이 바뀌므로, 정의·비퇴화 조건·대체 절차를 명시해야 합니다. 반복 B를 늘리는 것만으로 이 문제가 해결되지 않습니다.
Two of the four ordered resamples, (1, 1) and (2, 2), are constant, giving probability one half. Their pivot is not an ordinary finite real number. Discarding them changes the conditional law and requires an explicitly different procedure and justification. More simulation alone does not remove this issue.
45. 표본분산의 별표 편향Starred bias of sample variance
iid 원 표본 n=4에서 S²=50/3이며 S²는 분모 n−1을 씁니다. 같은 공식을 각 크기 4 별표 표본에 적용할 때 E*[S*²]와 별표 편향을 구하세요.
For an original iid sample n=4, S²=50/3 uses denominator n−1. Apply the same statistic to size-four resamples and find E*[S*²] and starred bias.
풀이와 확인할 이유Solution and explanation
E∗[S∗2]E∗[S∗2]−S2=nn−1S2=225,=−625.
경험법칙의 분산은 원래 S²와 다릅니다. 원래 iid 모형에서는 E[S²]=σ²일 수 있으므로, 이 별표 편향을 실제 표본분산의 정확한 모집단 편향이라고 읽으면 안 됩니다.
E∗[S∗2]E∗[S∗2]−S2=43350=225,=−625.
The empirical-law variance differs from S². Original-model unbiasedness E[S²]=σ² can still hold. A starred bias is not automatically the exact population bias of the original estimator.
46. 최댓값이 그대로 남을 확률Probability of retaining the maximum
서로 다른 연속 원자료 네 개의 최댓값 M에서 크기 4 복원 부트스트랩을 합니다. 별표 최댓값 M*가 M과 같을 확률을 구하세요.
Four distinct continuously generated observations have maximum M. In a size-four replacement bootstrap, find P*(M*=M).
풀이와 확인할 이유Solution and explanation
최댓값 위치를 네 번 모두 피할 확률은 (3/4)⁴=81/256입니다. 따라서 P*(M*=M)=175/256입니다. 일반 n에서는 1−(1−1/n)ⁿ→1−e⁻¹로 양의 원자가 남습니다. 연속 원자료라도 조건부 별표 법칙은 이산일 수 있습니다.
All draws avoid the maximum with probability (3/4)⁴=81/256, so the requested probability is 175/256. For general n it tends to 1−e⁻¹. Continuously generated original values still induce a discrete conditional resampling law.
47. 균등 최댓값의 다른 한계A different limit for the uniform maximum
iid Uniform(0, 1) 표본의 최댓값 Mₙ에 대해 고정 t≥0에서 P{n(1−Mₙ)>t}의 한계를 구하고, 별표 n(Mₙ−Mₙ*)의 0 원자와 비교하세요.
For iid Uniform(0, 1) maximum Mₙ and fixed t≥0, find the limit of P{n(1−Mₙ)>t}. Compare with the zero atom of n(Mₙ−Mₙ*).
풀이와 확인할 이유Solution and explanation
an(t)=P{n(1−Mn)>t}an(t)=(1−t/n)nan(t)⟶e−t
고정된 t≥0에서 n>t인 경우의 식입니다.
진짜 한계는 평균 1 지수법칙으로 0에 원자가 없습니다. 별표 오차는 0에 약 1−e⁻¹의 원자를 계속 두므로 같은 연속 한계를 근사하지 못합니다. 경험분포를 쓰면 언제나 일치한다는 주장의 반례입니다.
an(t)=P{n(1−Mn)>t}an(t)=(1−t/n)nan(t)⟶e−t
These equalities apply to fixed t≥0 with n>t.
The limit is exponential with mean one and no atom at zero. The starred error retains a zero atom near 1−e⁻¹ and fails to approximate that continuous limit. Empirical resampling is not automatically consistent for every statistic.
48. 희귀사건의 구간 실패An interval failure for rare events
실제 생성 모형이 iid Bernoulli(p=0.01), n=10이라고 가정합니다. 원자료가 모두 0일 확률과, 그때 percentile 평균 구간이 [0, 0]인 절차의 실제 포함률 상계를 구하세요.
Assume original iid Bernoulli(p=.01), n=10. Find the all-zero probability and an upper bound on actual coverage when the percentile mean procedure gives [0, 0] on all-zero data.
All-zero data produce only zero starred means for every B. The true p=.01 is outside [0, 0], so coverage fails throughout that event. Even success on every other dataset cannot exceed the displayed bound.
49. 보이지 않은 집단과 BAn unobserved group and B
원자료에 특정 지역이 하나도 없습니다. B=100만으로 늘려 그 지역의 평균 정보를 얻을 수 있나요?
No original record comes from a particular region. Can increasing B to one million recover its mean information?
풀이와 확인할 이유Solution and explanation
경험분포 복원은 관측한 위치만 다시 고릅니다. 빠진 지역의 값이나 선택 확률을 새로 만들지 못합니다. 표적 모집단·추출틀·가중치·민감도 가정 또는 추가 자료가 필요한 문제이며, MC 반복을 늘려 해결되는 계산 정밀도 문제와 다릅니다.
Empirical resampling only revisits observed positions. It creates neither missing-region measurements nor their inclusion probabilities. Address the target, frame, weights, sensitivity assumptions or additional data; this is not merely MC precision.
50. 회귀의 움직이는 단위The moving unit in regression
독립 단위의 실제 (xᵢ, yᵢ) 쌍으로 무작위 설계 회귀를 적합했습니다. x와 y를 서로 따로 복원추출하는 것과 행 전체를 뽑는 것의 차이는요?
Actual (xᵢ, yᵢ) pairs from independent units fit a random-design regression. How does resampling whole rows differ from resampling x and y independently?
풀이와 확인할 이유Solution and explanation
행 전체 복원은 관측된 x–y 연결을 보존합니다. 따로 뽑으면 경험 주변분포의 곱을 만들어 원래 결합관계를 지웁니다. 고정 설계 잔차 부트스트랩은 또 다른 절차로, 평균 모형과 오차 교환가능성 등 조건을 확인해야 합니다. 이분산·집단 의존이 있으면 단순 iid 잔차 복원이 맞지 않을 수 있습니다.
Whole-row resampling preserves observed predictor–response links. Independent coordinate draws create the product of empirical margins and erase the joint relationship. Fixed-design residual resampling is another procedure requiring a suitable mean model and exchangeable errors. Heterogeneous variance or clustering can invalidate simple iid residual draws.
51. 실제 분기의 네 블록Four blocks of actual quarters
실제 한국 주택지수 2021~24년의 16개 분기를 네 연도 블록으로 묶었습니다. 전체 평균은 18529329/160000입니다. 연도 블록 네 번 복원의 순서열 수와 평균 단위를 설명하세요.
Sixteen actual Korean housing-index quarters in 2021–24 form four annual blocks. The grand mean is 18529329/160000. Explain the number of four-block resample sequences and the mean’s unit.
풀이와 확인할 이유Solution and explanation
순서열은 4⁴=256개입니다. 평균은 115.80830625이며 원지수와 같은 2010년 평균=100의 지수 단위입니다. 256개는 새로 관측한 연도 수가 아니라 네 원블록의 계산 조합 수입니다. 16분기 또는 네 연도가 독립이라는 증거를 제공하지 않습니다.
There are 4⁴=256 sequences. The mean is 115.80830625 in index units with the 2010 average set to 100. These are computational combinations of four source blocks, not 256 newly observed years or evidence of independent years or quarters.
52. 실제 256개 분위수Quantiles of the actual 256 sequences
앞 실제 네 연도 블록 평균의 정확 순서열은 256개입니다. α=0.05 type1 양 끝 순위와, 끝값 109.625125·121.9914875의 의미를 설명하세요.
The preceding actual four-year block law has 256 sequences. Find α=.05 type 1 endpoint ranks and interpret endpoint values 109.625125 and 121.9914875.
풀이와 확인할 이유Solution and explanation
순위는 ceil(256×0.025)=7과 ceil(256×0.975)=250입니다. 이 값들은 선언한 경험 블록 법칙의 정확 분위수입니다. 수치적 열거의 정확성은 실제 장기 주택지수 평균에 대한 95% 신뢰구간의 타당성과 다른 주장입니다. 시계열 생성 구조와 블록 선택의 근거가 더 필요합니다.
Ranks are seven and 250. The values are exact quantiles of the declared empirical block law. Exact enumeration alone does not validate a 95% confidence interval for a long-run housing-index mean; temporal structure and the block scheme need separate justification.
53. 실제 단위 비교의 SDActual-unit comparison of standard deviations
같은 16개 실제 분기에서 연도 블록 평균 SD≈3.1766494, 개별 분기 복원 평균 SD≈1.703062입니다. 큰 값이 항상 올바른 SE인가요?
From the same 16 actual quarters, annual-block mean SD≈3.1766494 and individual-quarter resampling SD≈1.703062. Is the larger value always a valid SE?
풀이와 확인할 이유Solution and explanation
아닙니다. 두 값은 같은 자료에서 서로 다른 조건부 실험을 정한 결과입니다. 연도 안 연결을 보존하는 블록 실험의 변동이 이 자료에서는 더 크지만, 실제 표집·시계열 의존 구조와 맞는지는 별도 검토입니다. 더 크거나 더 작은 결과만으로 타당성을 판정하지 않습니다.
No. They describe different conditional experiments. Preserving within-year links produces greater variability here, but compatibility with actual sampling and time dependence requires separate assessment. Size alone does not establish validity.
54. 선택한 임금 네 기록Four selected wage records
실제 가용 로그임금 3010개 중 metro별 앞의 두 기록씩, 원코드 2·3·30·35를 골랐습니다. 네 라벨 순열을 전국 근로자 표본의 검정이라고 부를 수 있나요?
From 3010 available actual log wages, the first two records per metro group have source codes 2, 3, 30, 35. Is their permutation a national-worker sample test?
풀이와 확인할 이유Solution and explanation
그렇게 부를 근거가 없습니다. 앞의 두 기록이라는 결정적 선택은 전국 확률표집이나 라벨 무작위 배정이 아닙니다. 원코드와 선택 규칙을 공개하고 네 고정 값의 가정 배정 비교로 한정합니다. 원본 전체 3613개 중 로그임금 비관측 603개도 감추지 않습니다.
Not on that basis. A deterministic first-two selection is neither national probability sampling nor randomized labels. Preserve keys and disclose the selection as a hypothetical assignment comparison on four fixed values. The original 3613 records and 603 unavailable log wages remain relevant.
55. 실제 로그임금의 가정 꼬리Hypothetical tail for actual log wages
선택한 네 실제 로그임금에서 집단 평균 차이는 −134963497/200000000이고, 가정한 두 명 대 두 명 배정 여섯 개 중 두 개가 그 절댓값 이상입니다. 차이와 양쪽 p를 구하고 범위를 설명하세요.
For four selected actual log wages, the mean contrast is −134963497/200000000. Two of six hypothetical two-versus-two assignments are at least as extreme in absolute value. Compute the contrast and p, stating their scope.
풀이와 확인할 이유Solution and explanation
차이는 −0.674817485 로그 단위이고 p=2/6=1/3입니다. 원시간당 임금의 센트 차이가 아닙니다. 이는 네 고정 로그값에 선언한 균등 라벨 배정의 꼬리입니다. 실제 metro 효과의 인과 추론이나 모든 원기록의 대표성을 자동 보장하지 않습니다.
The contrast is −.674817485 log units and p=1/3. It is not a cent difference in hourly pay. The tail concerns the declared uniform assignment of four fixed values, not automatic causal inference about metro status or representative inference for all source records.
56. 실제 전후의 분모Denominator for actual before–after records
실제 점포 원행 410개 중 전후 FTE가 함께 가용한 것은 384개입니다. 빠진 수와 paired 재표집의 가용 분모를 구하세요.
Of 410 actual store source rows, 384 have both before and after FTE available. Find omissions and the paired-resampling denominator.
풀이와 확인할 이유Solution and explanation
공동 비가용은 26개이며 각 재표본의 후보 쌍은 384개입니다. 전과 후의 가용값을 따로 정렬하거나 다른 분모로 뽑으면 같은 점포 변화의 경험법칙을 보존하지 못합니다. 원행 410개와 각 결측 지위는 남기고 완전짝이라는 분석 대상을 밝힙니다.
There are 26 joint omissions and 384 candidate pairs per resample. Separately sorting or sampling wave-specific available values loses the same-store change law. Preserve all 410 source rows and their missingness while identifying the complete-pair target.
57. 같은 점포 코드의 두 원행Two source rows sharing a store code
실제 원행 42와 168은 모두 store code 407입니다. 전후 FTE는 각각 (11, 11), (12, 14.5)입니다. 변화와 보존할 키를 설명하세요.
Actual source rows 42 and 168 both have store code 407. Their before–after FTE values are (11, 11) and (12, 14.5). Explain changes and preserved keys.
풀이와 확인할 이유Solution and explanation
변화는 각각 0과 2.5 FTE입니다. 점포 코드가 같아도 서로 다른 원행이며, 근거 없이 하나로 합치지 않습니다. 이 장은 고유 원행 키 42·168과 원점포 코드 407을 함께 보존합니다. 같은 코드가 같은 독립 단위인지의 설계 문제는 별도로 조사해야 합니다.
The changes are zero and 2.5 FTE. Equal store codes do not justify merging distinct source rows without evidence. Preserve unique source-row keys 42/168 alongside store code 407. Whether the rows represent one independent sampling unit is a separate design question.
58. 실제 정확 분산과 512회 분산Actual exact variance and 512-replicate variance
실제 384개 완전짝의 paired 평균 변화 조건부분산은 4788802103/22649241600이고, 정해진 512회 MC 통계량의 표본분산은 641695646227/3086336655360입니다. 두 양의 역할과 단위를 구별하세요.
For 384 actual complete pairs, conditional mean-change variance is 4788802103/22649241600, while the fixed 512-replicate sample variance is 641695646227/3086336655360. Distinguish roles and units.
풀이와 확인할 이유Solution and explanation
V∗(D∗)sMC2≈0.211433220925,≈0.207914987211.
모두 평균 변화 통계량의 FTE² 단위지만, 앞은 관측 경험 쌍 법칙에서 공식으로 구한 정확 조건부분산이고 뒤는 유한 512개 계산 통계량의 B−1 표본분산입니다. 뒤 값을 정확 법칙의 분산과 동일하다고 보고하지 않습니다. 이것만으로 실제 정책효과의 SE가 인증되는 것도 아닙니다.
V∗(D∗)sMC2≈.211433220925,≈.207914987211.
Both use FTE² for the mean-change statistic. The first is the exact conditional empirical-pair variance from a formula; the second is the B−1 variance of 512 computed statistics. Do not label the finite-MC variance as the exact law variance or as automatic certification of a policy-effect SE.
59. 실제 평균과 모의 평균Actual and simulated means
실제 완전짝 평균 변화는 −541/7680 FTE이고, 고정 seed의 512회 별표 평균들을 다시 평균하면 −254639/3932160 FTE입니다. 무엇을 비교한 것이며 차이가 원추정량의 편향을 증명하나요?
The actual complete-pair mean change is −541/7680 FTE. The fixed-seed average of 512 starred means is −254639/3932160 FTE. What is compared, and does their difference prove original-estimator bias?
풀이와 확인할 이유Solution and explanation
각각 약 −0.07044270833과 −0.06475804647 FTE입니다. 조건부 별표 평균의 정확 기대값은 원자료 평균 변화지만, 유한 MC 평균은 그 주변에서 달라질 수 있습니다. 한 seed의 차이는 원모집단에서의 추정량 편향을 증명하지 않습니다. B·발생기·매핑·원키 순서와 유한 MC 결과를 함께 기록합니다.
The values are about −.07044270833 and −.06475804647 FTE. The exact conditional starred expectation equals the observed mean change, but a finite MC average can differ. One seed’s discrepancy does not establish population bias. Record B, generator, mapping, source-key order and the finite-MC result.
60. 재표집 분석 카드A resampling analysis card
실제 자료로 부트스트랩 또는 순열 결과를 한 장의 분석 카드에 보고합니다. 재현과 해석에 필요한 핵심 항목을 구성하세요.
Design a one-page card reporting a bootstrap or permutation result from actual data. Which items are needed for reproducibility and interpretation?
풀이와 확인할 이유Solution and explanation
표적과 단위, 원출처·키·기간, 원행/가용/공동 제외 수, 원추정량과 단위를 먼저 적습니다. 다음으로 경험 복원인지 귀무 배정인지, 한 번에 움직인 행·짝·블록, 정확 열거인지 유한 MC인지, 분위수·양쪽 꼬리 정의를 적습니다. MC라면 B·seed·발생기·정수 매핑·원키 순서를 남깁니다. 끝으로 원표집/교환가능성/의존 가정과 자료 밖 추론 범위를 밝힙니다. 계산의 정확성, 모의 정밀도, 현장 타당성을 나누어 읽을 수 있는 카드여야 합니다.
State the target and units, source/keys/period, original and available counts, joint omissions and observed statistic. Specify empirical replacement versus null assignment, moving rows/pairs/blocks, exhaustive enumeration versus finite MC, and quantile/two-sided-tail conventions. For MC retain B, seed, generator, integer mapping and source-key order. State original sampling, exchangeability and dependence assumptions and the scope of inference. Let readers distinguish exact calculation, simulation precision and field validity.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.