STAT-14 · STATISTICS

분할표·카이제곱·분산분석Contingency tables, chi-square and ANOVA

범주 빈도의 분모에서 정확 조건부 표와 수치 평균의 제곱합 분해까지From category-count denominators to exact conditional tables and numerical mean decompositions

실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions

기초Foundations

1. 숫자 점수와 범주 기록은 다른 방식으로 비교한다1. Numerical responses and category records ask different comparisons

가상 동아리 세 곳의 독서 시간을 비교할 때는 사람마다 기록한 시간이 필요합니다. 반면 ‘참여/불참’과 ‘만족/불만족’을 비교할 때는 네 칸의 사람 수를 셀 수 있습니다. 시간을 범주로 잘라 표를 만들 수도 있지만, 그때는 질문과 보존되는 정보가 달라집니다.

이 장의 앞부분은 분할표에서 두 범주의 결합 비율이 독립 모형과 얼마나 다른지 묻습니다. 뒷부분은 여러 집단의 수치 평균이 같은지 묻는 분산분석으로 이어집니다. 두 경우 모두 관측된 차이, 기준 분포를 쓰는 가정, 인과 설명은 따로 확인합니다.

Comparing reading time across three hypothetical clubs uses a numerical response for each person. Comparing participation with satisfaction can instead use counts in four category cells. Cutting time into categories is possible, but changes the question and discards within-bin information.

The first part compares joint category proportions with an independence model. The second compares several numerical means using analysis of variance. Observed differences, reference-distribution assumptions and causal explanations remain separate questions.

기초Foundations

2. 한 기록이 어느 칸에 한 번 들어가는지 정한다2. Define which single cell receives each record

분할표의 한 행은 사람이 아니라 범주 이름일 수 있습니다. 실제 원자료의 한 관측이 행 범주 하나와 열 범주 하나를 가져야 그 교차 칸에 1을 더할 수 있습니다. 같은 기록을 여러 칸에 복제하면 총수가 관측 수와 달라집니다.

서로 겹치지 않고 분석 대상 전체를 덮는 범주를 먼저 정하세요. 결측·해당 없음·복수 선택은 원자료 설계에 맞게 따로 처리합니다. ‘모름’을 임의로 ‘아니오’에 넣는 것은 단순 표 정리가 아니라 변수의 뜻을 바꾸는 일입니다.

시간별 기록 180개를 셌다고 독립된 국가 180개를 관측한 것은 아닙니다. 표에 들어간 단위와 행 사이의 의존을 원자료에서 확인해야 합니다.

A table row may name a category rather than a person. Each source record must receive one row category and one column category to contribute one count. Duplicating a record across cells changes the observational count.

Specify mutually exclusive, exhaustive categories for the analysis set. Handle missing, not-applicable and multiple-response entries according to their source meaning. Replacing “unknown” by “no” changes the variable.

Counting 180 time records does not create 180 independent countries. Identify observational units and dependence before assigning a sampling reference.

기초Foundations

3. 합계의 위치를 읽고 분모를 고른다3. Read margins before choosing a denominator

가상 표 O=((10,20),(20,10))은 첫 행 합 30, 둘째 행 합 30, 두 열 합도 각각 30입니다. 전체 N=60입니다. 왼쪽 위 10을 전체 60으로 나누면 결합 비율 1/6입니다. 첫 행 30으로 나누면 그 행 안의 조건부 비율 1/3입니다.

Oi+=∑jOij,O+j=∑iOij,N=∑i∑jOij,p^ij=OijN.\begin{aligned} O_{i+}&=\sum_j O_{ij},&O_{+j}&=\sum_i O_{ij},\\ N&=\sum_i\sum_jO_{ij},& \widehat p_{ij}&=\frac{O_{ij}}N. \end{aligned}

점선 아래 합계 하나를 잘못 읽으면 다른 질문의 답을 얻게 됩니다. ‘전체에서 몇 %인가’와 ‘이 집단 안에서 몇 %인가’를 문장으로 먼저 쓰세요. 한 행이나 열을 바꾸어 재집계한 뒤 합계가 맞는지도 확인합니다.

The hypothetical table O=((10,20),(20,10)) has row totals 30 and 30, column totals 30 and 30, and N=60. The upper-left 10 divided by 60 gives joint proportion 1/6; dividing by its row total 30 gives conditional proportion 1/3.

Oi+=∑jOij,O+j=∑iOij,N=∑i∑jOij,p^ij=OijN.\begin{aligned} O_{i+}&=\sum_j O_{ij},&O_{+j}&=\sum_i O_{ij},\\ N&=\sum_i\sum_jO_{ij},& \widehat p_{ij}&=\frac{O_{ij}}N. \end{aligned}

State “among all records” or “within this group” before calculating. Recompute margins after changing a cell; different denominators answer different questions.

기초Foundations

4. 실습 A: 같은 칸을 세 가지 분모로 본다4. Lab A: view one cell with three denominators

실습은 음이 아닌 정수 빈도표를 받습니다. 전체 결합 비율, 행 안의 조건부 비율, 열 안의 조건부 비율을 나란히 읽으세요. 첫 셀을 늘릴 때 그 셀만이 아니라 행·열·전체 합계도 변합니다.

기본 표에서 왼쪽 위 셀은 전체의 1/6, 첫 행의 1/3, 첫 열의 1/3입니다. 행 전체가 0이면 그 행을 조건으로 한 비율은 미정의입니다. 전체 N=0이면 모든 결합 비율도 미정의입니다. 빈도 0과 분모 없는 비율을 같은 0으로 표시하지 않습니다.

Enter nonnegative integer counts and compare joint, row-conditional and column-conditional proportions. Increasing one cell also changes its row, column and grand totals.

In the default table the upper-left cell is 1/6 of all records,1/3 of its row and 1/3 of its column. A zero row total makes conditioning on that row undefined. When N=0, joint proportions are also undefined. Zero counts do not justify filling a missing ratio with zero.

기초Foundations

5. 독립 모형은 결합 확률을 주변 확률의 곱으로 쓴다5. Independence writes joint probability as a product of margins

두 범주변수 A, B의 독립 귀무는 모든 셀에서 pᵢⱼ=pᵢ₊p₊ⱼ라는 제한입니다. 양의 확률을 가진 행에서는 그 행 안의 첫 열 비율이 전체 첫 열 비율과 같다는 뜻으로 읽을 수 있습니다. 표에 나타난 비율이 우연히 다를 수 있으므로 관측 표의 완전한 곱 일치만을 요구하는 검정은 아닙니다.

H0:pij=pi+p+jfor all i,j.H_0:\quad p_{ij}=p_{i+}p_{+j}\quad\text{for all }i,j.

표본에서 두 범주가 관련되어 보인다는 말은 원인과 결과의 방향을 정하지 않습니다. 학력·지역·연령·선택 방식 같은 다른 요인이 관련될 수 있습니다. 범주 이름에 ‘처치’가 있다고 무작위 배정이 생기지는 않습니다.

The independence null restricts every joint probability to pᵢⱼ=pᵢ₊p₊ⱼ. Within a positive-probability row, the column proportion then equals the overall column proportion. Sampling variation can prevent exact factorization in an observed table.

H0:pij=pi+p+jfor all i,j.H_0:\quad p_{ij}=p_{i+}p_{+j}\quad\text{for all }i,j.

Association does not specify a causal direction. Other variables and selection mechanisms can matter. Naming a category “treatment” does not randomize its assignment.

기초Foundations

6. 독립성과 동질성은 표 모양이 같아도 표집 질문이 다르다6. Independence and homogeneity can share a table but differ in sampling

한 모집단에서 iid 기록 N개를 뽑아 두 범주를 함께 기록하면 독립성 질문을 만들 수 있습니다. 반면 여러 모집단에서 정해진 수만큼 따로 뽑아 열 범주 분포가 같은지 물으면 동질성 질문입니다. 후자는 행 합계가 설계로 고정될 수 있습니다.

두 기본 모형에서는 같은 Pearson 식과 같은 자유도가 나타날 수 있습니다. 그렇다고 두 표집 설계가 같다는 뜻은 아닙니다. 반복 관측·군집·가중 표본에서는 분산과 기준 분포를 다시 살펴야 합니다.

표만 받은 분석자는 어떤 합계가 정해졌고 어떤 것이 우연인지 확인해야 합니다. 추정량의 모양이 같아도 그 표를 만드는 반복 실험은 다를 수 있습니다.

One iid sample recording two categories supports an independence question. Separate samples with prespecified sizes from several populations support a homogeneity question about common column distributions; row totals may then be fixed by design.

These basic models can yield the same Pearson formula and degrees of freedom without being identical sampling designs. Repeated, clustered or survey-weighted observations need another variance/reference assessment.

Ask which margins were fixed and which were random. An identical-looking statistic need not describe the same repeated experiment.

기초Foundations

7. 기대 빈도는 같은 주변 합계를 가진 독립 모형의 예측이다7. Expected counts fit independence with the observed margins

행 비율과 열 비율을 관측 주변 비율로 추정하면, 기대 빈도는 전체 N에 두 비율을 곱한 값입니다. ‘기대’는 셀 수가 반드시 그 정수여야 한다는 뜻이 아닙니다. 모형 아래 반복한 빈도의 평균은 소수일 수 있습니다.

E^ij=NOi+NO+jN=Oi+O+jN,N>0.\begin{aligned} \widehat E_{ij} &=N\frac{O_{i+}}N\frac{O_{+j}}N\\ &=\frac{O_{i+}O_{+j}}N,\qquad N>0. \end{aligned}

기본 표의 기대 빈도는 네 셀 모두 15입니다. 기대 표의 행·열 합계는 원표와 정확히 같습니다. 각 행에서 ΣⱼEᵢⱼ=Oᵢ₊ΣⱼO₊ⱼ/N=Oᵢ₊이기 때문입니다. 이 보존을 손으로 검사하면 곱셈의 방향을 헷갈리지 않을 수 있습니다.

Estimate row and column probabilities by their observed margins. An expected count is N times their product. It is a model expectation, so it can be noninteger even though actual counts are integers.

E^ij=NOi+NO+jN=Oi+O+jN,N>0.\begin{aligned} \widehat E_{ij} &=N\frac{O_{i+}}N\frac{O_{+j}}N\\ &=\frac{O_{i+}O_{+j}}N,\qquad N>0. \end{aligned}

Every expected cell is 15 in the default table. Its fitted margins exactly reproduce the observed margins because summing a row gives Oᵢ₊ΣⱼO₊ⱼ/N=Oᵢ₊. Check this identity by hand before proceeding.

기초Foundations

8. 차이를 제곱한 뒤 기대 빈도로 나누는 이유를 본다8. Square deviations and scale them by expected counts

O−E를 그냥 모두 더하면 행·열 합계가 맞아서 0이 됩니다. 부호가 상쇄되지 않도록 제곱하고, 큰 기대 빈도에서의 차이와 작은 기대 빈도에서의 차이를 같은 척도로 보기 위해 E로 나눕니다. 이 가중 제곱합이 Pearson 통계량입니다.

X2=∑i=1R∑j=1C(Oij−Eij)2EijEij>0\begin{gathered}X^2=\sum_{i=1}^{R}\sum_{j=1}^{C}\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\E_{ij}>0\end{gathered}

기본 표는 차이 −5,+5,+5,−5를 줍니다. 각 기여는 25/15=5/3이므로 X²=20/3입니다. X²는 음수가 아니며, 모든 기대 빈도가 양수일 때 X²=0은 각 O=E와 동치입니다. 작다고 인과적 관계가 없음을 증명하는 것은 아닙니다.

Signed O−E differences sum to zero because fitted margins match. Squaring prevents cancellation, and dividing by E scales deviations relative to expected counts. Their sum is Pearson's statistic.

X2=∑i=1R∑j=1C(Oij−Eij)2EijEij>0\begin{gathered}X^2=\sum_{i=1}^{R}\sum_{j=1}^{C}\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\E_{ij}>0\end{gathered}

Default deviations are −5,+5,+5,−5. Each contributes 25/15=5/3, so X²=20/3. It is nonnegative; with positive expectations it is zero exactly when every observed cell equals its expectation. A small statistic does not prove causal absence.

기초Foundations

9. 실습 B: 표 크기와 차이의 크기를 함께 바꾼다9. Lab B: change sample size as well as cell discrepancies

기본 표와 그 빈도를 모두 두 배로 한 표를 비교하세요. 비율과 Cramér V는 같지만 Pearson X²는 두 배입니다. 같은 크기의 비율 차이도 기록 수가 커지면 기준 분포에서 더 극단적으로 보일 수 있습니다.

실습의 p값은 χ² 기준 분포의 위쪽 꼬리를 수치 계산한 근사입니다. 이 계산 자체는 원자료의 독립성을 검증하지 않습니다. 영 주변합이 있으면 선언한 표의 자유도를 그대로 사용하지 않고 미정의로 안내합니다. 범주를 삭제할지는 분석 질문을 다시 정하고 결정해야 합니다.

Compare the default table with one doubling every count. Proportions and Cramér V stay fixed, but Pearson X² doubles. The same proportional discrepancy can appear more extreme with more observations.

The displayed p-value is a numerical upper-tail probability from an approximate chi-square reference. It does not verify independent field sampling. A zero margin makes this declared-table reference undefined; deciding to remove a category requires an explicit change to the analysis.

학부 연결 · 선택Undergraduate bridge · optional

10. 자유도는 마음대로 바꿀 수 있는 셀 수에서 시작한다10. Degrees of freedom start with freely variable cells

행·열 합계를 고정한 2×2 표에서는 왼쪽 위 셀을 정하면 나머지 세 셀이 결정됩니다. 합계 조건이 같은 정보를 중복해서 포함하기 때문입니다. R×C 표에서는 왼쪽 위 (R−1)×(C−1) 셀을 정한 뒤 마지막 행·열을 합계로 채울 수 있습니다. 단, 채운 값도 허용되는 음이 아닌 빈도여야 합니다.

df=RC−R−C+1=(R−1)(C−1).\begin{aligned} df&=RC-R-C+1\\ &=(R-1)(C-1). \end{aligned}

iid 다항 모형의 확률 자유도 RC−1에서 독립 모형의 주변 모수 (R−1)+(C−1)를 빼도 같은 수입니다. 이 차원 계산은 점근 χ² 기준의 자유도를 설명합니다. 표를 만들지 못하는 구조적 영 셀이 있으면 이 일반 식을 그대로 적용하지 않습니다.

With fixed 2×2 margins, one upper-left cell determines the other three. For R×C margins, the upper-left (R−1)×(C−1) cells determine the last row and column, subject to nonnegative feasibility.

df=RC−R−C+1=(R−1)(C−1).\begin{aligned} df&=RC-R-C+1\\ &=(R-1)(C-1). \end{aligned}

Equivalently, subtract the independence-model dimension (R−1)+(C−1) from the unrestricted multinomial dimension RC−1. This motivates asymptotic chi-square degrees of freedom. Structural impossibility of some cells changes the model and can invalidate the ordinary formula.

기초Foundations

11. χ² 기준은 제곱합 모양만으로 자동 생기지 않는다11. A squared-sum appearance does not automatically imply chi-square

독립 표준정규 변수 ν개의 제곱합은 정확히 χ²ᵥ 분포입니다. Pearson 표의 셀 잔차는 서로 독립 표준정규가 아닙니다. 주변 합계를 추정하고 합계 제한이 있기 때문입니다. 적절한 독립 표집과 양의 확률 아래 큰 표본 근사로 앞의 자유도 χ²가 나타납니다.

작은 기대 빈도는 근사가 불안정할 수 있다는 진단입니다. ‘모든 E≥5’ 같은 점검은 유용한 경험칙일 수 있지만, 그 하나가 군집·의존·선택 문제를 해결하는 정리는 아닙니다. 영 확률·희소 구조·불균형도 확인합니다.

기준 상위 α 임계값 이상이면 이 기준 아래 기각합니다. p값은 H₀가 참일 확률이 아닙니다. 기준 분포가 부적절하면 작은 수치 p도 원 질문의 정확한 오류 확률로 해석할 수 없습니다.

A sum of ν independent standard-normal squares has an exact chi-square distribution. Fitted contingency-cell residuals are not independent standard normals:estimated margins and constraints matter. Under an appropriate independent sampling model with positive probabilities, the Pearson reference is asymptotic.

Small expected counts warn about approximation quality. A rule such as “all E≥5” can be a diagnostic, but cannot repair clustering, dependence or selection. Inspect sparse and impossible cells and severe imbalance as well.

Reject above the upper α critical value under the chosen reference. The p-value is not the probability that H₀ is true. An invalid reference does not become valid because its numerical tail is tiny.

기초Foundations

12. 전체 통계량을 어느 셀이 만드는지 나눈다12. Decompose the global statistic into signed cell residuals

큰 X²만으로는 어느 범주의 결합이 기대보다 많은지 알 수 없습니다. Pearson 잔차 r=(O−E)/√E는 방향을 보존합니다. 양수는 기대보다 많음, 음수는 적음을 뜻합니다. r²는 해당 셀의 X² 기여입니다.

rij=Oij−EijEij,X2=∑i,jrij2.\begin{aligned} r_{ij}&=\frac{O_{ij}-E_{ij}}{\sqrt{E_{ij}}},\\ X^2&=\sum_{i,j}r_{ij}^2. \end{aligned}

기본 표는 잔차 부호가 −,+,+,−이고 크기는 모두 √(5/3)≈1.291입니다. 셀 네 개가 동등하게 전체 차이를 만듭니다. 주변 비율까지 고려한 조정 잔차는 E(1−Oᵢ₊/N)(1−O₊ⱼ/N)의 제곱근으로 나눕니다. 둘을 같은 숫자로 부르지 않습니다.

A large global X² does not locate excess or deficit combinations. Pearson residual r=(O−E)/√E retains direction:positive means more than fitted expectation; negative means less. Its square is the cell contribution.

rij=Oij−EijEij,X2=∑i,jrij2.\begin{aligned} r_{ij}&=\frac{O_{ij}-E_{ij}}{\sqrt{E_{ij}}},\\ X^2&=\sum_{i,j}r_{ij}^2. \end{aligned}

The default signs are −,+,+,−, with common magnitude √(5/3)≈1.291. All cells contribute equally. Adjusted residuals instead divide by √[E(1−row/N)(1−column/N)]; they are not the same numbers.

기초Foundations

13. 실습 C: 색의 방향과 제곱 기여를 함께 읽는다13. Lab C: read direction together with squared contribution

잔차 실습에서 관측−기대, 부호 있는 잔차, 셀 기여를 비교하세요. 양수와 음수가 섞여도 제곱 기여는 모두 0 이상입니다. 색이 진하다는 사실만으로 원인·정책 중요도·큰 모집단 효과를 선언하지 마세요.

여러 잔차를 본 뒤 가장 큰 셀만 골라 독립적인 사전 검정처럼 말하면 선택 문제가 생깁니다. 개별 셀의 참고 척도와 전체 검정의 α는 다릅니다. 탐색 발견은 탐색이라고 표시하고, 후속 비교에는 다중 비교와 표집 모형을 함께 설계합니다.

Compare observed-minus-expected, signed residuals and cell contributions. Mixed signs still produce nonnegative squared contributions. Dark color alone establishes neither a cause nor practical importance.

Selecting the largest cell after inspection is not a preplanned independent test. Cell-level reference scales differ from the omnibus α. Label exploration as exploration and account for multiplicity and sampling design in follow-up comparisons.

기초Foundations

14. Cramér V는 비율 차이의 크기를 다른 척도로 요약한다14. Cramér V summarizes association on another scale

X²는 빈도를 복제하면 커집니다. 양의 주변합을 가진 표에서 V=√[X²/{N min(R−1, C−1)}]는 기록 수를 나누어 관련 정도를 요약합니다. 기본 표에서는 X²/N=(20/3)/60=1/9이므로 V=1/3입니다.

V=X2Nmin⁡(R−1,C−1).V=\sqrt{\frac{X^2}{N\min(R-1,C-1)}}.

V는 방향이 없는 숫자입니다. 같은 V라도 어느 셀에서 어떤 차이가 생겼는지는 다를 수 있으므로 원비율·잔차를 함께 봅니다. 표 크기와 분야마다 해석도 달라집니다. V를 인과 효과 비율이나 ‘설명한 확률’로 읽지 않습니다.

Replicating counts increases X². For positive margins, Cramér V divides by N and a dimension factor. The default table gives X²/N=1/9 and V=1/3.

V=X2Nmin⁡(R−1,C−1).V=\sqrt{\frac{X^2}{N\min(R-1,C-1)}}.

V has no sign. Tables with the same V can differ in the location and direction of discrepancies, so retain original proportions and residuals. Interpretation depends on context and table shape; V is not a causal effect or an “explained probability.”

학부 연결 · 선택Undergraduate bridge · optional

15. 2×2 Pearson과 두 비율 z의 제곱이 만난다15. The uncorrected 2×2 Pearson statistic equals pooled z squared

첫 행 성공 k₁, 총수 n₁, 둘째 행 성공 k₂, 총수 n₂를 두면 합친 성공 비율은 p̂=(k₁+k₂)/(n₁+n₂)입니다. 양의 행·열 합계 아래 Pearson 식을 정리하면 이전 장의 합친 귀무 분산 z²가 됩니다.

z=k1/n1−k2/n2p^(1−p^)(1/n1+1/n2),X2=z2,df=1.\begin{aligned} z&=\frac{k_1/n_1-k_2/n_2} {\sqrt{\widehat p(1-\widehat p)(1/n_1+1/n_2)}},\\ X^2&=z^2,\qquad df=1. \end{aligned}

정규 Z의 제곱이 χ²₁이므로 양쪽 z 꼬리와 χ²₁ 위쪽 꼬리도 같은 근사 p를 줍니다. 이 등식은 연속성 보정 없는 Pearson과 합친 비율 z에 관한 것입니다. Fisher의 조건부 p나 비합친 Wald 구간까지 같다는 뜻은 아닙니다.

Let row successes be k₁, k₂ and totals n₁, n₂. With positive margins, the pooled-null proportion is p̂=(k₁+k₂)/(n₁+n₂). Algebra reduces uncorrected Pearson to the previous chapter's pooled z squared.

z=k1/n1−k2/n2p^(1−p^)(1/n1+1/n2),X2=z2,df=1.\begin{aligned} z&=\frac{k_1/n_1-k_2/n_2} {\sqrt{\widehat p(1-\widehat p)(1/n_1+1/n_2)}},\\ X^2&=z^2,\qquad df=1. \end{aligned}

Since Z² has a χ²₁ law for standard-normal Z, the two-sided z and upper chi-square reference tails coincide. This statement concerns uncorrected Pearson and pooled-null z, not Fisher conditional probabilities or an unpooled Wald interval.

기초Foundations

16. 관측 0·영 주변합·구조적 불가능을 구별한다16. Separate observed zeros, zero margins and structural impossibility

관측 셀이 0이어도 행·열 합계가 양수이면 E는 양수일 수 있고 해당 Pearson 기여는 E입니다. ‘이번에 한 번도 안 나옴’은 사건이 원리상 불가능하다는 말이 아닙니다.

반면 영 주변합이면 해당 범주에 기록이 전혀 없어 일반 표의 일부 E가 0입니다. 0/0 셀을 그냥 0 기여로 채우고 원래 자유도를 유지하지 않습니다. 분석 대상에서 범주를 제거할 근거가 있으면 새 표와 새 질문을 명시합니다.

구조적 영 셀은 설계·정의상 나올 수 없는 조합입니다. 그 제약을 가진 모형은 일반 독립 모형과 다를 수 있습니다. 이번 실습은 구조적 영 모형을 자동 추정하지 않습니다.

An observed zero with positive row and column margins can have positive E; its Pearson contribution equals E. “Not seen this time” does not mean logically impossible.

A zero margin leaves some expectations zero. Do not silently fill 0/0 contributions with zero while preserving the original df. If removing a category is justified, declare the revised table and question.

A structural zero is impossible by definition or design. Its constrained model may differ from ordinary independence. This lab does not automatically fit structural-zero models.

기초Foundations

17. 작은 표에서는 합계를 고정한 반복을 직접 센다17. For a small table, count repetitions with fixed margins

가상 2×2 표 ((1,9),(11,3))의 행 합은 10,14, 열 합은 12,12입니다. 이 합계들을 고정하면 왼쪽 위 값 K 하나가 표 전체를 정합니다. 가능한 K는 0부터 10까지입니다. 이 반복은 임의의 모든 표를 같은 확률로 뽑는 것이 아닙니다.

귀무의 공통 성공률 아래 전체 성공 12개 중 첫 행 10개에 몇 개가 들어가는지를 보면 초기하 분포입니다. 모집단에서 성공 12개·실패 12개가 있는 24개 중 10개를 균등하게 비복원 선택하는 조합 계산과 같습니다.

실제 표집이 두 주변합을 모두 설계로 고정하지 않았더라도, 기본 독립/동질성 모형의 귀무 아래 합계에 조건을 걸어 이 분포를 얻을 수 있습니다. 원모형과 조건부 반복을 모두 밝히세요.

The hypothetical table ((1,9),(11,3)) has row totals 10,14 and column totals 12,12. Fixing those margins leaves one free cell K with feasible values 0 through 10. These tables are not equally probable.

Under the common-success null, K counts successes in a first-row selection of 10 from 24 items containing 12 successes. Uniform sampling without replacement gives a hypergeometric law.

Even when both margins were not fixed by the original design, conditioning on them under the basic null model can yield this law. State both the source model and the conditional repetition.

기초Foundations

18. 조합 수를 나누어 한 표의 정확 질량을 만든다18. Divide combination counts to obtain an exact table mass

전체 N, 첫 행 합 r, 첫 열 합 c를 고정합니다. 첫 행 r개를 고르는 전체 조합은 C(N, r)개입니다. 그중 첫 열에서 k개, 둘째 열에서 r−k개를 고르는 경우가 C(c, k)C(N−c, r−k)개입니다.

P(K=k∣r,c,N)=(ck)(N−cr−k)(Nr),max⁡(0,r+c−N)≤k≤min⁡(r,c).\begin{aligned} P(K=k\mid r,c,N) &=\frac{\binom ck\binom{N-c}{r-k}}{\binom Nr},\\ \max(0,r+c-N)&\le k\le\min(r,c). \end{aligned}

가능한 k의 질량 합은 1입니다. 분모는 정수 조합 수이므로 이 실습은 입력 정수에 대해 유리수로 정확히 셉니다. 표의 빈도가 임의의 소수 가중치라면 동일한 조합 실험을 적용할 수 없습니다.

Fix grand total N, first-row total r and first-column total c. There are C(N, r) selections for the first row. Selecting k first-column items and r−k others gives C(c, k) C(N−c, r−k) choices.

P(K=k∣r,c,N)=(ck)(N−cr−k)(Nr),max⁡(0,r+c−N)≤k≤min⁡(r,c).\begin{aligned} P(K=k\mid r,c,N) &=\frac{\binom ck\binom{N-c}{r-k}}{\binom Nr},\\ \max(0,r+c-N)&\le k\le\min(r,c). \end{aligned}

The feasible masses sum to one. Integer combination counts allow exact rational calculation in this lab. Arbitrary fractional survey weights do not define this same counting experiment.

기초Foundations

19. 양쪽 Fisher는 관측표보다 확률이 작은 표들을 합친다19. Two-sided Fisher sums tables no more probable than the observed table

한쪽 ‘작음’은 K≤k관측, 한쪽 ‘큼’은 K≥k관측의 질량을 더합니다. 여기서 양쪽은 귀무 질량이 관측표의 질량 이하인 모든 가능한 표를 합칩니다. 같은 질량의 표도 포함합니다.

m(k)=P(K=k∣r,c,N),ptwo=∑{k:m(k)≤m(kobs)}m(k).\begin{aligned} m(k)&=P(K=k\mid r,c,N),\\ p_{\rm two} &=\sum_{\{k:m(k)\le m(k_{\rm obs})\}}m(k). \end{aligned}

이 정의는 단순히 한쪽 p에 2를 곱하거나 평균에서 같은 거리의 표를 합치는 정의와 일반적으로 다릅니다. 통계학 12장의 이항 거리 기준 양쪽 검정과도 구별하세요. ‘양쪽’이라는 이름만 같다고 사건이 같지는 않습니다.

((1,9),(11,3))에서는 양쪽 p=41/14858≈0.00275946입니다. 정확하다는 말은 이 조건부 귀무와 이 극단성 정의 아래 계산했다는 뜻입니다. 표본 선택·인과 해석까지 정확해진다는 뜻은 아닙니다.

The less tail sums K≤observed K; the greater tail sums K≥observed K. Our two-sided definition includes every feasible table whose null mass is no larger than the observed mass, including ties.

m(k)=P(K=k∣r,c,N),ptwo=∑{k:m(k)≤m(kobs)}m(k).\begin{aligned} m(k)&=P(K=k\mid r,c,N),\\ p_{\rm two} &=\sum_{\{k:m(k)\le m(k_{\rm obs})\}}m(k). \end{aligned}

This need not equal twice a one-sided tail or a distance-from-mean tail. It also differs from the binomial distance ordering in Statistics Chapter 12. A shared “two-sided” label does not specify a shared event.

For ((1,9),(11,3)), p=41/14858≈0.00275946. Exactness refers to this conditional null and ordering, not to selection validity or a causal interpretation.

기초Foundations

20. 실습 D: 가능한 표 전체와 꼬리를 확인한다20. Lab D: inspect the entire feasible table law

첫 셀을 바꾸면 행·열 합계도 달라질 수 있으므로 조건부 법칙이 새로 만들어집니다. 고정 합계 안에서 가능한 K와 질량, 포함된 꼬리를 읽으세요. 한쪽 방향은 첫 행·첫 열 순서와 연결되므로 범주 순서를 먼저 적습니다.

전체 N=0이면 관측 기록이 없으므로 이 실습은 관측 집단 비교와 p값을 계산하지 않습니다. 조합식 자체의 N=r=c=0은 형식적으로 한 점 법칙을 만들 수 있지만, 그것을 빈 관측의 검정 결과로 쓰지 않는 분석 범위 선택입니다. N>0인데 주변합 때문에 가능한 K가 한 점뿐이면 그 점의 질량은 1이고 세 방향 p도 1입니다. 이 퇴화 법칙은 Pearson의 양의 기대 빈도 조건과 다릅니다.

실습의 정확 유리수는 일반 표시 소수보다 작을 수 있습니다. 화면 소수 0은 정확 확률 0과 다릅니다. 정해진 계산 범위를 넘으면 범위 오류로 안내하며, 그것을 수학적 확률의 미존재로 읽지 않습니다.

Editing a cell can change the margins and hence the conditional law. Inspect feasible K values, their masses and selected tails. A one-sided direction depends on the declared row and column order.

With N=0 there are no observed records, so this lab does not calculate an observed-group comparison or p-value. The combination formula can formally define a one-point law at N=r=c=0; our refusal to interpret it as a test of empty observations is an analysis-scope choice. With N>0, zero margins can leave a single feasible K of mass one, so every tail p is one. This differs from Pearson's positive-expectation requirement.

Exact positive probabilities can be smaller than ordinary decimal display. Displayed zero need not be exact zero. A computation-range error is not mathematical nonexistence of the probability.

학부 연결 · 선택Undergraduate bridge · optional

21. 정확 검정도 이산성과 검정력의 선택을 가진다21. An exact test still involves discreteness and power choices

유한한 표에서는 가능한 p값이 듬성듬성합니다. α=0.05라고 해도 실제 귀무 기각 확률이 정확히 0.05일 필요는 없습니다. 동률을 포함한 p≤α 규칙은 조건부 귀무 아래 제1종 오류를 α 이하로 제어하지만 더 작을 수 있습니다.

왜 그럴까요? 관측 질량의 순서로 같은 수준을 묶으면,‘누적 질량≤α’인 묶음까지 더한 확률만 기각 집합이 됩니다. 다음 묶음을 통째로 넣으면 α를 넘을 수 있어 넣지 못하는 것입니다.

무작위화 검정이나 mid-p는 다른 규칙입니다. 여기서는 그것으로 몰래 바꾸지 않습니다. 정확 조건부 계산과 점근 Pearson이 다른 p를 주면, 유리한 쪽만 고르지 말고 사전 질문·표집 모형·극단성 정의를 확인합니다.

Finite tables have discrete attainable p-values. At nominal α=.05, the actual null rejection probability need not equal .05. Inclusive p≤α controls conditional type-I error at or below α and may be conservative.

Group equal-probability tables by mass order. Only groups whose cumulative probability remains at most α enter rejection; adding the next complete group can exceed α.

Randomized and mid-p rules are different procedures. This lab does not substitute them silently. If Fisher and asymptotic Pearson differ, inspect the planned question, sampling model and ordering rather than choosing the more favorable number.

기초Foundations

22. 여러 수치 집단에서는 평균과 집단 안 변동을 함께 본다22. Several numerical groups require means and within-group variation

이제 수치 자료로 돌아옵니다. 가상 세 집단 A=(1,2,3), B=(2,3,4), C=(4,5,6)의 평균은 2,3,5입니다. 각 평균의 차이만 나열하면 집단 안에서 얼마나 퍼져 있는지 빠집니다. 같은 평균 차이라도 자료가 심하게 겹치면 증거는 다릅니다.

분산분석은 ‘집단 평균이 같은가’를 제곱합으로 묻습니다. 이름에 분산이 들어가지만, 이 장의 귀무는 집단 분산이 같다는 것이 아니라 μ₁=⋯=μₖ입니다. 공통 오차 분산은 고전 기준 분포를 얻는 별도 가정입니다.

수치는 원단위를 보존합니다. 독서 시간·로그 임금·저항 변화는 같은 공식으로 계산할 수 있어도 해석은 다릅니다. 집단을 어떤 기준으로 만들었는지도 기록합니다.

Return to numerical data. Hypothetical groups A=(1,2,3), B=(2,3,4), C=(4,5,6) have means 2,3,5. Mean differences alone omit within-group spread. The same differences can provide different evidence when observations overlap more strongly.

Analysis of variance asks whether numerical group means are equal. Despite its name, the null here is μ₁=⋯=μₖ, not equality of group variances. Common error variance is a separate assumption for classical calibration.

Retain units and grouping definitions. Reading time, logged wages and resistance changes share algebra without sharing a substantive interpretation.

기초Foundations

23. 전체 평균은 집단 평균의 관측 수 가중평균이다23. The grand mean weights group means by observed counts

비어 있지 않은 K개 집단의 크기를 nᵢ, 총수를 N이라 씁니다. 전체 평균은 모든 관측을 한 번씩 더해 N으로 나눈 값입니다. 집단 크기가 다르면 집단 평균의 단순 평균과 다를 수 있습니다.

y‾i=1ni∑j=1niyij,y‾=1N∑iniy‾i,N=∑ini.\begin{aligned} \overline y_i&=\frac1{n_i}\sum_{j=1}^{n_i}y_{ij},\\ \overline y&=\frac1N\sum_i n_i\overline y_i,\qquad N=\sum_i n_i. \end{aligned}

가상 집단 (0,0,0)과 (10)의 전체 평균은 2.5이며 두 집단 평균의 단순 평균 5가 아닙니다. ‘각 집단을 같은 비중으로 고르는 실험’의 평균을 원한다면 다른 표적을 정의한 것입니다. 여기 제곱합은 각 관측에 같은 비중을 줍니다.

Let K nonempty groups have sizes nᵢ and total N. The grand mean counts every observation once. Unequal group sizes generally make it different from the unweighted mean of group means.

y‾i=1ni∑j=1niyij,y‾=1N∑iniy‾i,N=∑ini.\begin{aligned} \overline y_i&=\frac1{n_i}\sum_{j=1}^{n_i}y_{ij},\\ \overline y&=\frac1N\sum_i n_i\overline y_i,\qquad N=\sum_i n_i. \end{aligned}

Groups (0,0,0) and (10) have grand mean 2.5, not the group-balanced mean 5. Giving each group equal selection probability defines another target. Our sums of squares weight individual observations equally.

기초Foundations

24. 한 편차를 집단 안 편차와 평균 차이로 쪼갠다24. Split each deviation into a within-group part and a mean shift

관측 yᵢⱼ에서 전체 평균을 뺄 때 집단 평균을 한 번 더하고 빼세요. 그러면 관측−자기 집단 평균과 자기 집단 평균−전체 평균으로 나뉩니다. 예를 들어 B의 값 4는 전체 평균 10/3에서 2/3 위입니다. 집단 평균 3에서 1 위이고, 그 평균은 전체보다 1/3 아래이므로 1−1/3=2/3입니다.

yij−y‾=(yij−y‾i)+(y‾i−y‾),∑j(yij−y‾i)=0.\begin{aligned} y_{ij}-\overline y &=(y_{ij}-\overline y_i) +(\overline y_i-\overline y),\\ \sum_j(y_{ij}-\overline y_i)&=0. \end{aligned}

마지막 합이 0이라는 사실이 제곱할 때 생기는 교차항을 없앱니다. 이는 정규성·독립성 없이, 유한한 수치 자료와 집단 평균 정의만으로 성립합니다.

Add and subtract the group mean. A deviation becomes observation-minus-own-group-mean plus group-mean-minus-grand-mean. In group B, the value 4 lies 2/3 above grand mean 10/3:it is 1 above its group mean 3, whose shift is −1/3.

yij−y‾=(yij−y‾i)+(y‾i−y‾),∑j(yij−y‾i)=0.\begin{aligned} y_{ij}-\overline y &=(y_{ij}-\overline y_i) +(\overline y_i-\overline y),\\ \sum_j(y_{ij}-\overline y_i)&=0. \end{aligned}

The zero within-group sum cancels the cross term after squaring. This is finite-data algebra, requiring neither normality nor independence.

기초Foundations

25. 전체 제곱합은 안쪽 제곱합과 사이 제곱합의 합이다25. Total squared variation equals within plus between

앞 식을 제곱해 모든 관측에 합합니다. 집단 평균 차이는 그 집단의 모든 관측에 똑같이 붙으므로 nᵢ배가 됩니다. 교차항은 집단 안 편차 합 0 때문에 사라집니다.

SST=∑i,j(yij−y‾)2,SSW=∑i,j(yij−y‾i)2,SSB=∑ini(y‾i−y‾)2,SST=SSW+SSB.\begin{aligned} SS_T&=\sum_{i,j}(y_{ij}-\overline y)^2,\\ SS_W&=\sum_{i,j}(y_{ij}-\overline y_i)^2,\\ SS_B&=\sum_i n_i(\overline y_i-\overline y)^2,\\ SS_T&=SS_W+SS_B. \end{aligned}

통계학 3장의 집단 안/사이 분산 분해와 같은 구조입니다. 여기서는 우선 분모를 붙이지 않은 제곱합을 보존합니다. 문헌마다 SST를 총합 또는 처치 합에 다르게 쓰므로, 이 장에서는 T=total, B=between, W=within으로 뜻을 고정합니다.

Square the preceding identity and sum all observations. The group-mean shift repeats nᵢ times, and the cross term vanishes through the zero within-group deviation sum.

SST=∑i,j(yij−y‾)2,SSW=∑i,j(yij−y‾i)2,SSB=∑ini(y‾i−y‾)2,SST=SSW+SSB.\begin{aligned} SS_T&=\sum_{i,j}(y_{ij}-\overline y)^2,\\ SS_W&=\sum_{i,j}(y_{ij}-\overline y_i)^2,\\ SS_B&=\sum_i n_i(\overline y_i-\overline y)^2,\\ SS_T&=SS_W+SS_B. \end{aligned}

This matches the within/between decomposition from Statistics Chapter 3. First preserve sums before assigning denominators. Sources use “SST” differently; here T means total, B between and W within.

기초Foundations

26. 아홉 수로 제곱합을 끝까지 계산한다26. Complete the sums of squares for nine numbers

A=(1,2,3), B=(2,3,4), C=(4,5,6)에서 각 집단 안 편차는 (−1,0,1)입니다. 따라서 각 집단 SS_W 기여는 2, 전체는 6입니다. 전체 평균은 (6+9+15)/9=10/3입니다.

SSB=3(2−10/3)2+3(3−10/3)2+3(5−10/3)2=16+1+253=14,SST=14+6=20.\begin{aligned} SS_B &=3(2-10/3)^2\\ &\quad+3(3-10/3)^2+3(5-10/3)^2\\ &=\frac{16+1+25}{3}=14,\\ SS_T&=14+6=20. \end{aligned}

원자료에서 전체 평균을 직접 뺀 제곱합도 20인지 확인하세요. 두 계산이 다르면 반올림·그룹 크기·행 선택을 점검합니다. 집단 평균을 먼저 거칠게 반올림하면 정확한 분해가 어긋날 수 있습니다.

For A=(1,2,3), B=(2,3,4), C=(4,5,6), each within-group deviation vector is (−1,0,1), contributing 2. Thus SS_W=6. The grand mean is (6+9+15)/9=10/3.

SSB=3(2−10/3)2+3(3−10/3)2+3(5−10/3)2=16+1+253=14,SST=14+6=20.\begin{aligned} SS_B &=3(2-10/3)^2\\ &\quad+3(3-10/3)^2+3(5-10/3)^2\\ &=\frac{16+1+25}{3}=14,\\ SS_T&=14+6=20. \end{aligned}

Directly centering all nine observations must also give 20. A discrepancy signals rounding, group-size or row-selection problems. Prematurely rounding group means can destroy an exact identity.

기초Foundations

27. 평균을 맞추며 쓴 자유도를 세고 평균제곱을 만든다27. Count fitted-mean degrees of freedom before forming mean squares

N개 수에서 전체 평균 하나를 맞추면 중심화 편차 공간은 N−1차원입니다. 집단 평균 K개를 각각 맞춘 잔차는 집단마다 합 0이라는 K개 독립 제한을 가져 N−K차원입니다. 그 차이가 집단 사이 K−1차원입니다.

dfB=K−1,MSB=SSBK−1,dfW=N−K,MSW=SSWN−K.\begin{aligned} df_B&=K-1,&MS_B&=\frac{SS_B}{K-1},\\ df_W&=N-K,&MS_W&=\frac{SS_W}{N-K}. \end{aligned}

K≥2, N>K이고 집단은 비어 있지 않아야 합니다. 기본 예에서는 df_B=2, df_W=6이므로 MS_B=7, MS_W=1입니다. 평균제곱은 원변수 단위의 제곱입니다. 확률적 분산 추정으로 부를 때는 모형 가정을 더해야 합니다.

Fitting one grand mean leaves an N−1-dimensional centered space. Fitting K nonempty group means leaves K independent zero-sum residual constraints and dimension N−K. The difference is K−1.

dfB=K−1,MSB=SSBK−1,dfW=N−K,MSW=SSWN−K.\begin{aligned} df_B&=K-1,&MS_B&=\frac{SS_B}{K-1},\\ df_W&=N-K,&MS_W&=\frac{SS_W}{N-K}. \end{aligned}

Require K≥2 and N>K. The default example has df_B=2, df_W=6, MS_B=7 and MS_W=1. Mean squares have squared response units; calling them statistical variance estimators adds model assumptions.

기초Foundations

28. F는 두 평균제곱의 비율이며 위쪽을 본다28. F is a mean-square ratio with an upper-tail reference

같은 집단 평균 귀무 아래 집단 사이 평균제곱도 오차 분산의 규모를 반영합니다. 집단 평균이 벌어지면 집단 사이 제곱합이 추가로 커질 수 있습니다. 그래서 MS_B/MS_W가 큰 쪽을 봅니다.

F=MSBMSW,MSW>0.F=\frac{MS_B}{MS_W},\qquad MS_W>0.

기본 예의 F=7입니다. 고전 정규·독립·공통분산 모형을 가정하면 기준은 F₂,₆이고 위쪽 p=0.027입니다. 이 p는 자료의 단위를 바꾸어도 같지만, 모형이 적절하다는 자동 확인은 아닙니다.

귀무에서 F가 항상 정확히 1인 것은 아닙니다. 반복 표본마다 달라지는 확률변수입니다. F 분포의 평균도 분모 자유도에 의존하며, 분모 자유도가 작으면 존재하지 않을 수 있습니다.

Under equal means, the between-group mean square reflects error-scale variation. Separating group means can add signal to it, so large MS_B/MS_W is the rejection direction.

F=MSBMSW,MSW>0.F=\frac{MS_B}{MS_W},\qquad MS_W>0.

The example gives F=7. Under the classical independent-normal common-variance model, the reference is F₂,₆ and the upper tail is .027. A unit-invariant p-value does not validate that model.

F is not always one under the null. It varies across repetitions, and even its distributional mean depends on denominator df and may not exist for small df.

기초Foundations

29. 실습 E: 수치를 바꿔 항등식과 기준을 따로 확인한다29. Lab E: separate the numerical identity from calibration

집단 수치 하나를 바꾼 뒤 집단 평균·전체 평균·세 제곱합을 확인하세요. 집단 전체에 같은 상수를 더하면 집단 안 제곱합은 유지되고 평균 차이는 바뀝니다. 모든 집단에 같은 상수를 더하면 모든 제곱합이 유지됩니다.

한 집단에 관측이 하나뿐이어도 전체 N>K와 양의 SS_W가 있으면 수치 F는 계산할 수 있습니다. 하지만 모든 집단이 한 점이면 df_W=0입니다. SS_W=0인 경우도 이 실습의 양의 잔차 평균제곱 기준은 미정의입니다. 임의로 p=0이나 F=∞를 채우지 않습니다.

입력 자료는 가상 실습입니다. 화면에서 정규성·독립성·공통분산이 검증되는 것이 아닙니다. 실제 자료는 다음 실습과 사례에서 원자료 범위에 맞게 따로 다룹니다.

Edit a value and inspect group means, the grand mean and all three sums of squares. Shifting one entire group preserves its within variation but changes mean separation. Shifting every group equally preserves all centered sums.

A singleton group is numerically allowed if overall N>K and SS_W>0. All-singleton groups give df_W=0. With SS_W=0, the lab's positive-residual-mean-square reference is also undefined; it does not invent p=0 or F=∞.

These are hypothetical inputs, not verification of normality, independence or common variance. Actual records are treated separately in the next lab and cases.

기초Foundations

30. 기각은 적어도 한 평균이 다르다는 전체 질문의 답이다30. Omnibus rejection says at least one mean differs

H₀:μ₁=⋯=μₖ의 부정은 적어도 한 쌍이 다르다는 뜻입니다. 모든 평균이 서로 다르다는 뜻이 아닙니다. 예를 들어 모집단 평균 (0,0,5)는 귀무가 거짓이지만 첫 두 평균은 같습니다.

어느 집단이 얼마나 다른지 알려면 사전 대비나 다중 비교를 설계해야 합니다. 전체 검정 뒤 수많은 쌍 중 유리한 것만 고르면 개별 0.05 기준이 전체 오류 0.05를 보장하지 않습니다. 비기각도 모든 평균의 실질적 동등성을 증명하지 않습니다.

집단 평균·차이의 원단위·구간·자료 분포를 함께 보고하세요. 평균만 같은 두 집단도 분포 모양이나 분산은 다를 수 있습니다. 이 장의 질문과 분포 전체가 같은 질문을 혼동하지 않습니다.

The alternative to μ₁=⋯=μₖ is that at least one pair differs, not that every pair differs. Population means (0,0,5) violate the null while the first two remain equal.

Locating differences needs planned contrasts or multiplicity-aware follow-up. Selecting favorable pairs after many comparisons does not preserve overall .05 error by applying individual .05 cutoffs. Nonrejection does not establish practical equivalence.

Report means, raw-unit differences, intervals and distributions. Equal means can coexist with different shapes or variances; mean equality and distributional equality are different questions.

기초Foundations

31. η²는 관측된 제곱합에서 집단 사이 몫을 나타낸다31. Eta squared is a between-group share of observed squared variation

SS_T>0이면 η²=SS_B/SS_T입니다. 기본 예는 14/20=0.7입니다. 이는 이 자료·이 그룹화·이 중심화 제곱합에서 집단 사이 부분의 몫입니다. 전체 기록의 70%가 어떤 집단 때문에 생겼다는 인과 해석이 아닙니다.

0≤η2=SSBSST≤1,SST>0.0\le\eta^2=\frac{SS_B}{SS_T}\le1,\qquad SS_T>0.

모든 값을 같은 상수로 만들면 SS_T=0이므로 η²는 0/0으로 미정의입니다. 집단을 세분하면 SS_W가 줄고 η²가 커질 수 있어, 자료에 맞춘 그룹 수 증가 자체가 실질 설명력을 보장하지 않습니다. 표본 기술량과 모집단 효과 추정을 구별하세요.

For SS_T>0, η²=SS_B/SS_T. The example gives .7, a share of centered squared variation for these records and this grouping. It is not a causal claim that groups produced 70% of observations.

0≤η2=SSBSST≤1,SST>0.0\le\eta^2=\frac{SS_B}{SS_T}\le1,\qquad SS_T>0.

If every value is identical, SS_T=0 and η² is undefined rather than zero. Refining groups can reduce SS_W and inflate η²; more fitted groups alone do not establish substantive explanation. Distinguish sample description from population effect estimation.

학부 연결 · 선택Undergraduate bridge · optional

32. 고전 기준은 독립 정규 오차와 공통 양의 분산을 가정한다32. Classical calibration assumes independent normal errors and common positive variance

고전 일원 모형은 Yᵢⱼ=μᵢ+εᵢⱼ입니다. 모든 오차는 서로 독립이고 같은 N(0,σ²),σ²>0 분포를 가진다고 가정합니다. 집단 크기는 양의 정수이고 K≥2, N>K입니다. 같은 학교·점포·사람의 반복 기록은 이 독립 가정에 별도 근거가 필요합니다.

Yij=μi+εij,εijindependentN(0,σ2),H0:μ1=⋯=μK.\begin{aligned} Y_{ij}&=\mu_i+\varepsilon_{ij},\\ \varepsilon_{ij}&\mathrel{\rm independent}N(0,\sigma^2),\\ H_0&:\mu_1=\cdots=\mu_K. \end{aligned}

귀무는 평균에 대한 제한이며 오차 가정은 기준 분포에 대한 조건입니다. 관측 제곱합은 언제나 계산할 수 있어도, 이 조건 없이 정확 F 검정이라고 부를 수는 없습니다. 무작위 배정은 인과 비교에 도움을 주지만 모든 정규·공통분산 조건을 자동 증명하지 않습니다.

The classical one-way model is Yᵢⱼ=μᵢ+εᵢⱼ with mutually independent N(0, σ²) errors and σ²>0. Require positive integer group sizes, K≥2 and N>K. Repeated school, store or person records need separate justification of independence.

Yij=μi+εij,εijindependentN(0,σ2),H0:μ1=⋯=μK.\begin{aligned} Y_{ij}&=\mu_i+\varepsilon_{ij},\\ \varepsilon_{ij}&\mathrel{\rm independent}N(0,\sigma^2),\\ H_0&:\mu_1=\cdots=\mu_K. \end{aligned}

The null restricts means; error assumptions calibrate the reference. Calculating SS does not establish an exact F test. Random assignment can support causal interpretation without proving normality or common variance.

선택 심화Optional extension

33. 평균 공간과 잔차 공간이 직교한다33. Mean and residual spaces are orthogonal

N차원 벡터로 관측을 모으면, 집단마다 같은 값을 가지는 벡터들의 공간은 K차원입니다. 여기에 전체 상수 벡터의 1차원 공간이 포함됩니다. 그룹별 평균을 맞추는 것은 이 집단 상수 공간에 직교 투영하는 일입니다.

전체 중심화 공간은 전체 상수에 직교하는 N−1차원입니다. 이 안에서 집단 평균 대비 공간 K−1차원과 집단 안 잔차 공간 N−K차원이 직교 분해됩니다. 실제 제곱합 분해는 피타고라스 정리입니다.

rank⁡(PB)=K−1rank⁡(PW)=N−KPBPW=0SSB=∥PBY∥2SSW=∥PWY∥2\begin{gathered}\operatorname{rank}(P_B)=K-1\\\operatorname{rank}(P_W)=N-K\\P_BP_W=0\\SS_B=\|P_BY\|^2\\SS_W=\|P_WY\|^2\end{gathered}

여기 P_B는 집단 상수 투영에서 전체 상수 투영을 뺀 직교 투영입니다. 수리기초 15장의 투영을 다시 떠올리세요. 평균이 다른 모형에서도 이 기하학은 성립하지만, 귀무 아래 분포 주장은 다음 조건을 더 씁니다.

Collect observations into an N-vector. Vectors constant within each group form a K-dimensional space containing the one-dimensional grand-constant space. Fitting group means is orthogonal projection onto that space.

The centered N−1-dimensional space splits orthogonally into K−1 group-contrast directions and N−K within-residual directions. The SS identity is Pythagoras.

rank⁡(PB)=K−1rank⁡(PW)=N−KPBPW=0SSB=∥PBY∥2SSW=∥PWY∥2\begin{gathered}\operatorname{rank}(P_B)=K-1\\\operatorname{rank}(P_W)=N-K\\P_BP_W=0\\SS_B=\|P_BY\|^2\\SS_W=\|P_WY\|^2\end{gathered}

P_B is the group-constant projector minus the grand-constant projector. Recall Mathematical Foundations Chapter 15. This geometry holds beyond the null; the next distributional claim requires additional assumptions.

선택 심화Optional extension

34. 정규 벡터를 직교 좌표로 바꾸면 독립 제곱합이 나온다34. Orthogonal normal coordinates yield independent sums of squares

귀무 아래 평균 벡터는 전체 상수 공간에 있으므로 P_B와 P_W가 모두 이를 제거합니다. 오차 ε/σ는 독립 표준정규 N벡터입니다. 직교 좌표변환은 밀도 exp(−‖z‖²/2)를 보존하므로 새 좌표도 독립 표준정규입니다.

SSB/σ2∼χK−12SSW/σ2∼χN−K2SSB⊥SSWF=SSB/(K−1)SSW/(N−K)F∼FK−1,N−K\begin{gathered}SS_B/\sigma^2\sim\chi^2_{K-1}\\SS_W/\sigma^2\sim\chi^2_{N-K}\\SS_B\perp SS_W\\F=\frac{SS_B/(K-1)}{SS_W/(N-K)}\\F\sim F_{K-1,N-K}\end{gathered}

서로 직교하는 두 좌표 묶음의 제곱합이므로 독립입니다. 단지 공분산 0이라는 이유만으로 일반 비정규 변수의 독립까지 결론낸 것이 아닙니다. 정규 벡터의 구조가 중요합니다. 분모 제곱합은 이 모형에서 확률 1로 양수입니다.

Under equal means, the mean vector lies in the grand-constant space and both projections remove it. The standardized error is an independent standard-normal N-vector. Orthogonal coordinates preserve its exp(−‖z‖²/2) density and independence.

SSB/σ2∼χK−12SSW/σ2∼χN−K2SSB⊥SSWF=SSB/(K−1)SSW/(N−K)F∼FK−1,N−K\begin{gathered}SS_B/\sigma^2\sim\chi^2_{K-1}\\SS_W/\sigma^2\sim\chi^2_{N-K}\\SS_B\perp SS_W\\F=\frac{SS_B/(K-1)}{SS_W/(N-K)}\\F\sim F_{K-1,N-K}\end{gathered}

Disjoint orthogonal normal-coordinate blocks yield independent squared sums. This is not the invalid general inference “uncorrelated implies independent.” Normal-vector structure is essential. The denominator is positive almost surely under this model.

선택 심화Optional extension

35. 대안에서는 집단 사이 평균제곱에 평균 차이 항이 더해진다35. Under alternatives, between-group mean square gains a mean-separation term

같은 독립·공통분산 모형에서 μ가 서로 다르면, 관측 제곱합의 기대값을 계산해 무엇을 비교하는지 볼 수 있습니다. μ가중=Σnᵢμᵢ/N으로 두세요.

μw=μweightedE[MSW]=σ2E[MSB]=σ2+∑ini(μi−μw)2K−1\begin{gathered}\mu_w=\mu_{\rm weighted}\\E[MS_W]=\sigma^2\\E[MS_B]=\sigma^2+\frac{\sum_i n_i(\mu_i-\mu_w)^2}{K-1}\end{gathered}

두 번째 추가항은 음이 아니며 모든 평균이 같을 때만 0입니다. 이 계산은 ‘평균 차이를 분산 비로 찾는다’는 이름의 이유를 보여줍니다. 그러나 E[MS_B/MS_W]를 E[MS_B]/E[MS_W]로 바꾼 것은 아닙니다. 비율의 기대값은 일반적으로 기대값의 비율과 다릅니다.

정규 모형의 대안 기준은 비중심 F로 연결되지만, 이 장에서는 귀무 F와 제곱합의 뜻을 우선 익힙니다. 관측 η²를 이 추가항의 불편 추정값이라고 자동 부르지 않습니다.

Under the same independent common-variance model, unequal means add a nonnegative term. Write μweighted=Σnᵢμᵢ/N.

μw=μweightedE[MSW]=σ2E[MSB]=σ2+∑ini(μi−μw)2K−1\begin{gathered}\mu_w=\mu_{\rm weighted}\\E[MS_W]=\sigma^2\\E[MS_B]=\sigma^2+\frac{\sum_i n_i(\mu_i-\mu_w)^2}{K-1}\end{gathered}

The extra term vanishes exactly when all means agree. This explains why a variance ratio can detect mean separation. It does not assert E[MS_B/MS_W]=E[MS_B]/E[MS_W]; expectations of ratios generally differ from ratios of expectations.

A normal-model alternative leads to noncentral F, but first master null calibration and SS interpretation. Observed η² is not automatically an unbiased estimator of the displayed population term.

기초Foundations

37. 가정 위반의 종류마다 필요한 대안이 다르다37. Different assumption failures call for different responses

분산이 집단마다 다르면 일반 고전 F의 정확 정규 기준이 달라질 수 있습니다. 표본 수가 크게 다르고 분산도 다르면 특히 분모와 평균 차이 변동의 연결을 살펴야 합니다. ‘큰 표본’이라는 말만으로 모든 문제를 없애지 않습니다.

비정규 극단값은 평균·제곱합을 강하게 바꿀 수 있습니다. 군집·시계열 의존은 독립 기준의 유효 정보량을 바꿉니다. 결측은 관측 집단 자체를 바꿀 수 있습니다. 강건 방법·Welch형 일원 비교·군집/시계열 모형·정의에 맞는 재표집은 서로 같은 처방이 아닙니다.

먼저 연구 질문과 자료 생성을 확인하세요. 순위 검정으로 바꾸면 평균 동일성 대신 다른 분포적 질문과 가정이 생길 수 있습니다. 정규성 검정의 비기각도 원모형의 증명은 아닙니다.

Unequal group variances can invalidate exact classical F calibration, especially with unequal sizes. A generic “large sample” label does not remove every problem.

Outliers can dominate means and SS. Cluster or time dependence changes independent-reference information; missingness changes the observed groups. Robust methods, Welch-type ANOVA, dependence-aware models and justified resampling address different failures.

Begin with the question and data generation. A rank method can ask a different distributional question rather than test mean equality. Nonrejection by a normality diagnostic is not proof of the entire model.

기초Foundations

38. 평행 이동과 단위 환산은 검정 비율을 보존한다38. Common shifts and unit conversions preserve test ratios

모든 y를 ay+b로 바꾸되 a≠0이면 세 제곱합 모두 a²배입니다. 따라서 F와 η²는 변하지 않습니다. 분에서 시간으로 바꾸면 제곱합 단위는 1/3600배가 되어도 비교 비율은 같습니다. 집단마다 다른 환산을 하면 같은 변수의 비교가 아닐 수 있습니다.

SS∙(ay+b)=a2SS∙(y),F(ay+b)=F(y),a≠0.\begin{aligned} SS_\bullet(ay+b)&=a^2SS_\bullet(y),\\ F(ay+b)&=F(y),\qquad a\ne0. \end{aligned}

로그는 선형 환산이 아닙니다. 로그 임금의 평균 차이와 수준 임금의 평균 차이는 다른 표적입니다. 로그 평균을 지수화하면 기하 중심이지 일반 산술 평균이 아닙니다. 실질적 해석은 비율 불변이라는 사실만으로 끝나지 않습니다.

Replacing every response by ay+b with a≠0 multiplies all centered SS by a², leaving F and η² unchanged. Converting minutes to hours scales squared units by 1/3600 without changing the ratio. Different group-specific conversions may cease to compare one common variable.

SS∙(ay+b)=a2SS∙(y),F(ay+b)=F(y),a≠0.\begin{aligned} SS_\bullet(ay+b)&=a^2SS_\bullet(y),\\ F(ay+b)&=F(y),\qquad a\ne0. \end{aligned}

A logarithm is not a linear unit conversion. Mean log wages and mean wage levels are different targets. Exponentiating a log mean gives a geometric center, not generally an arithmetic mean.

선택 심화Optional extension

39. 평균 대비는 사전에 정한 질문을 수치로 쓴다39. A planned contrast expresses a prespecified mean question

세 집단에서 첫 두 집단의 평균과 셋째를 비교하려면 C=(μ₁+μ₂)/2−μ₃라고 쓸 수 있습니다. 대비 계수의 합은 0입니다. 전체 수준을 모두 b만큼 이동해도 대비는 바뀌지 않습니다.

C=∑iciμi,∑ici=0,C^=∑iciY‾i,Var⁡(C^)=σ2∑ici2ni.\begin{aligned} C&=\sum_i c_i\mu_i,\qquad\sum_i c_i=0,\\ \widehat C&=\sum_i c_i\overline Y_i,\\ \operatorname{Var}(\widehat C) &=\sigma^2\sum_i\frac{c_i^2}{n_i}. \end{aligned}

마지막 식은 집단 안팎 관측이 서로 독립이고, 각 집단 안에서 같은 평균과 공통분산을 갖는 모형에서 성립합니다. 고전 정규 모형에서는 MS_W로 σ²를 추정해 N−K 자유도 t 기준을 만듭니다. 대비가 여러 개이면 전체 오류를 따로 관리해야 합니다. 자료를 본 뒤 고른 대비를 사전 대비라고 부르지 않습니다.

For three groups, a planned question comparing the first two with the third is C=(μ₁+μ₂)/2−μ₃. Contrast coefficients sum to zero, so a common shift cancels.

C=∑iciμi,∑ici=0,C^=∑iciY‾i,Var⁡(C^)=σ2∑ici2ni.\begin{aligned} C&=\sum_i c_i\mu_i,\qquad\sum_i c_i=0,\\ \widehat C&=\sum_i c_i\overline Y_i,\\ \operatorname{Var}(\widehat C) &=\sigma^2\sum_i\frac{c_i^2}{n_i}. \end{aligned}

The variance uses mutually independent observations within and across groups, with a common mean within each group and common variance. Classical normal calibration substitutes MS_W and uses N−K t df. Multiple contrasts require multiplicity control; one selected after inspection is not prespecified.

기초Foundations

40. 여러 쌍을 보면 적어도 하나의 오기각이 늘어난다40. Testing many pairs raises the chance of at least one false rejection

K개 집단의 서로 다른 쌍은 K(K−1)/2개입니다. K=5이면 10개입니다. 각 검정의 오류가 0.05 이하라는 것만으로 적어도 하나의 오류가 0.05 이하라는 결론은 나오지 않습니다.

P ⁣(⋃ℓ=1mAℓ)≤∑ℓ=1mP(Aℓ).P\!\left(\bigcup_{\ell=1}^{m}A_\ell\right) \le\sum_{\ell=1}^{m}P(A_\ell).

따라서 m개의 유효한 개별 검정에 각각 α/m을 쓰는 Bonferroni 방식은 검정들 사이의 독립을 요구하지 않고 전체 오류를 α 이하로 제어합니다. 보수적일 수 있고, 자료 선택·무효한 개별 p값을 고쳐주는 것은 아닙니다.

후속 장에서 동시 추론을 더 다룹니다. 여기서는 전체 F 기각이 개별 쌍들의 유효한 오류 관리를 자동 대신하지 않는다는 점을 기억하세요.

K groups yield K(K−1)/2 pairs:five groups yield ten. Controlling every individual error at .05 does not control the probability of at least one error at .05.

P ⁣(⋃ℓ=1mAℓ)≤∑ℓ=1mP(Aℓ).P\!\left(\bigcup_{\ell=1}^{m}A_\ell\right) \le\sum_{\ell=1}^{m}P(A_\ell).

Bonferroni therefore uses α/m for m valid individual tests to control familywise error at α without requiring independence among tests. It can be conservative and does not repair invalid individual p-values or unaccounted selection.

A later chapter develops simultaneous inference. For now, omnibus F rejection does not automatically provide valid pairwise error control.

기초Foundations

41. 합친 표의 방향은 조건별 표의 방향과 다를 수 있다41. An aggregated association can reverse conditional associations

가상 성공률이 낮은 과제에서 A는 9/100, B는 0/10 성공하고, 높은 성공률의 다른 과제에서는 A는 10/10, B는 90/100 성공했다고 합시다. 각 과제 안에서는 A의 성공 비율이 B보다 큽니다. 그런데 합치면 A는 19/110, B는 90/110이 되어 방향이 뒤집힙니다.

A가 어려운 쪽에 많이 배정되고 B가 쉬운 쪽에 많이 배정된 구성 차이가 있습니다. 조건별 비율을 서로 다른 가중치로 섞으면 이런 현상이 가능합니다. 이 숫자는 설명용 가상 자료이며 실제 교육 효과를 측정한 것이 아닙니다.

따라서 합친 표의 큰 X²만 보고 방향을 일반화하지 않습니다. 어떤 조건 변수를 통제할지에는 연구 질문과 자료 생성의 근거가 필요합니다. 층별 표도 무작위 배정이나 모든 교란 제거를 자동 보장하지 않습니다.

In a hypothetical low-success task, A succeeds 9/100 and B 0/10; in another high-success task, A succeeds 10/10 and B 90/100. Within each task, A has the higher rate. Aggregating yields A 19/110 versus B 90/110, reversing the direction.

A has more observations in the difficult task and B more in the easier one. Mixing conditional rates with different composition weights can reverse an association. These are illustrative assumptions, not observed educational effects.

A large aggregated X² does not settle the relevant conditional direction. Choosing adjustment variables needs substantive and data-generation justification. Stratified tables alone do not guarantee random assignment or removal of all confounding.

기초Foundations

42. 실제 국가 자료: 주택지수의 시대별 빈도와 시간 의존42. Actual country records: period counts and time dependence in housing indices

BIS의 실제 한국 실질 주택지수 180개 분기 기록(1980년 1분기–2024년 4분기)을 1980–1999,2000–2009,2010–2024 구간과 지수 100 초과/이하로 나누었습니다. 100은 2010년 평균 기준이며 적정가격·거품의 경계가 아닙니다. 빈도는 ((58,22),(12,28),(55,5))입니다. 행 합 80,40,60은 구간 길이가 다르기 때문이므로 원빈도만으로 초과 비율을 비교하지 않습니다.

초과 비율은 58/80=0.725,12/40=0.3,55/60≈0.916667입니다. Pearson X²=60012/1375≈43.6451, df=2, V≈0.492415입니다. χ²₂ 기준 꼬리는 약 3.33111×10⁻¹⁰입니다.

이 분기들은 독립 추출된 180개 국가가 아닙니다. 시간 의존·선택한 시대 구분·고정 기준 100이 함께 있습니다. 매우 작은 기준 꼬리를 ‘시대가 주택 가격을 인과적으로 바꾼 확률’로 읽지 않습니다. 원시계열도 함께 보세요.

BIS provides 180 actual Korean real-housing-index quarters from 1980 Q1 through 2024 Q4. Divide them into 1980–1999,2000–2009 and 2010–2024, with columns index above 100 versus at most 100. The 100 threshold is the 2010 average base, not a fair-price or bubble boundary. Counts are ((58,22),(12,28),(55,5)); row totals 80,40,60 reflect unequal period lengths.

Above-threshold proportions are .725,.3 and about .916667. Pearson X²=60012/1375≈43.6451, df=2 and V≈.492415. The χ²₂ reference tail is about 3.33111×10⁻¹⁰.

These are not 180 independently sampled countries. Serial dependence, chosen periods and the fixed threshold matter. A tiny reference tail is not a causal probability for period effects. Retain the underlying time series.

기초Foundations

43. 실제 사람 자료: 학력 구간별 로그 임금의 분해43. Actual person records: log-wage decomposition by education bands

Card 자료의 전체 기록 3613개 중 원 로그 임금이 있는 3010개를 사용합니다. 학력 연수 구간 ≤11,=12,13–15,≥16의 가용 기록 수는 497,992,704,817입니다. 같은 구간의 전체 수는 612,1194,838,969이므로 결측 115,202,134,152가 빠져 있습니다. 603개 결측을 0 로그 임금으로 채우지 않습니다.

가용값의 전체 로그 평균은 약 6.261831918입니다. 실제 제곱합에서 F≈110.2685297, df=(3,3006),η²≈0.09913841입니다. 고전 F 기준 꼬리는 약 9.80736×10⁻⁶⁸입니다. 이 값은 로그 척도의 관측 집단 요약입니다.

학력이 무작위 배정되었다거나 임금 결측이 무작위라거나 오차가 독립 정규·등분산이라는 사실은 확인되지 않았습니다. 따라서 전체 집단 차이는 교육의 인과 수익률을 식별하지 않습니다. 원 로그의 역사적 단위와 선택 범위를 보존합니다.

Use 3010 source log wages available among 3613 Card records. Education bands ≤11,=12,13–15,≥16 have available counts 497,992,704,817. Their full counts are 612,1194,838,969, leaving 115,202,134,152 missing. Do not replace 603 missing logs with zero.

The available grand log mean is about 6.261831918. Actual sums give F≈110.2685297, df=(3,3006) and η²≈.09913841. The classical F reference tail is about 9.80736×10⁻⁶⁸, a comparison on the logged-response scale.

Random schooling assignment, random missingness and independent normal equal-variance errors were not verified. This comparison does not identify causal returns to schooling. Preserve historical log units and selection scope.

기초Foundations

44. 실제 기업 자료: 불만과 이탈의 연관을 두 척도로 확인한다44. Actual company records: complaint and churn association on two scales

실제 고객 3150개 기록의 행은 불만 1/0, 열은 이탈 1/0입니다. 표는 ((200,41),(295,2614))이고 두 불만 집단의 이탈 비율은 200/241과 295/2909입니다. 차이는 약 0.7284661, 즉 72.84661%p입니다.

보정 없는 Pearson X²≈891.7031179, df=1, V≈0.532053입니다. 이는 이전 장 합친 귀무 비율 z≈29.8613985의 제곱과 정확히 같습니다. χ²₁ 위쪽 꼬리는 약 6.24414×10⁻¹⁹⁶입니다. 수치가 작아도 원비율과 차이 크기를 함께 봅니다.

불만은 첫 9개월 정보이고 이탈은 12개월 말 결과입니다. 시간 순서는 있으나 불만을 무작위 배정한 자료는 아닙니다. 고객 선택·기저 상태·기타 요인이 관련될 수 있으므로 불만을 만들면 이탈이 이만큼 증가한다는 인과 주장으로 바꾸지 않습니다.

Among 3150 actual customer records, rows are complaint 1/0 and columns churn 1/0. Counts are ((200,41),(295,2614)); churn proportions are 200/241 and 295/2909. Their difference is about .7284661, or 72.84661 percentage points.

Uncorrected Pearson X²≈891.7031179, df=1 and V≈.532053. It exactly equals the preceding chapter's pooled-null z² with z≈29.8613985. The χ²₁ reference tail is about 6.24414×10⁻¹⁹⁶. Retain original proportions and effect size alongside this tiny number.

Complaints describe the first nine months and churn the end of month twelve. Timing does not randomize complaints. Selection, baseline status and other variables can explain association; the difference is not an identified causal complaint effect.

기초Foundations

45. 실습 F: 실제 값은 보존하고 참고 기준만 구별한다45. Lab F: preserve actual values and distinguish working references

세 실제 자료를 바꾸며 관측 수, 표의 합계 또는 집단별 가용 수, 단위, 자유도, 효과 요약을 확인하세요. 국가·기업은 범주 표, 사람은 수치 로그 응답의 집단 분해입니다. 같은 p 표시라도 원 질문은 다릅니다.

표에서 계산한 정확 유리수와 χ²·F 꼬리의 수치 근사를 구별합니다. 참고 기준을 계산했다고 원자료의 시간 의존·선택·인과 문제가 해결되지 않습니다. 실제 기록은 바꾸지 않으며 자세한 원표·출처·시각화는 다음 사례에서 읽을 수 있습니다.

Switch among actual records and inspect counts, available denominators, units, df and effect summaries. Country and company examples use category tables; the person example decomposes a numerical logged response.

Distinguish exact rational summaries from numerical χ²/F reference tails. Calculating a reference does not resolve time dependence, selection or causality. Actual records remain fixed; the following cases provide source details and visualizations.

기초Foundations

46. 국가·개인·기업의 실제 사례를 깊게 읽기46. Read the country, person and company cases in depth

국가 사례 · 시기별 주택지수를 범주로 바꾸면 무엇이 남고 사라질까?

BIS의 실제 한국 실질 주택지수 180분기(1980년 1분기–2024년 4분기)를 모두 사용합니다. 매 분기를 “지수>100” 또는 “지수≤100”으로 분류하고, 수업용 기간 1980–1999 / 2000–2009 / 2010–2024와 교차 집계합니다. 100은 2010년 평균이라는 기준일 뿐 적정가격·거품·정책 성공의 경계가 아닙니다. 세 기간도 공식적으로 식별한 구조변화 시점이 아니라 미리 정한 설명용 구분입니다.

기간마다 분기 수가 다른 실제 집계
수업용 기간>100 관측 수≤100 관측 수전체 분기>100 비율
1980-199958228029/40
2000-20091228403/10
2010-20245556011/12
Eij=ni+n+jnX2=∑i,j(Oij−Eij)2Eijdf=(r−1)(c−1)\begin{gathered}E_{ij}=\frac{n_{i+}n_{+j}}{n}\\X^2=\sum_{i,j}\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\df=(r-1)(c-1)\end{gathered}

독립 모형의 기대도수는 실제 관측을 바꾼 값이 아닙니다. 행·열의 주변합은 유지하면서 두 범주가 독립이라면 기대할 셀 수를 계산한 것입니다. 기간별 분기 수가 80·40·60으로 다르므로 관측 수만 비교하지 말고 행 내 비율도 보세요. 기대도수가 정수가 아니어도 문제없습니다. 각 셀의 기여도는 (관측−기대)²/기대이며 모두 0 이상입니다.

셀별 관측·기대·기여도
기간지수 범주관측 O독립 기대 Eχ² 기여
1980-1999지수>1005855.55560.10756
1980-1999지수≤1002224.44440.24444
2000-2009지수>1001227.77788.96178
2000-2009지수≤1002812.222220.36768
2010-2024지수>1005541.66674.26667
2010-2024지수≤100518.33339.69697

집계의 Pearson χ²=43.645091, 자유도 2, 기술적 Cramér V≈0.492415입니다. χ²₂ 분포를 기계적으로 대입한 참조 꼬리값은 약 3.33111e-10이지만, 이것을 실제 시계열의 타당한 p값으로 인증하지 않습니다. 분기 의존성·추세가 있고 180개의 무작위 독립 분기를 뽑았다고 입증하지 않았습니다. 여기서는 완전히 관측한 표의 연관성과 기대도수 계산을 배웁니다.

먼저 생각한 뒤 풀이 보기: 기대도수가 모두 5 이상이면 시계열 독립 조건도 통과하나요?

아닙니다. 기대도수 크기는 카이제곱 근사의 한 점검일 뿐입니다. 표집·측정 단위의 독립성은 별도 문제입니다. 작은 기대도수라면 근사 대신 정확·모의 방법 등을 검토할 수 있지만, 단순 무작위 재배열도 시계열 의존성을 자동으로 보존하지 않습니다.

먼저 생각한 뒤 풀이 보기: 지수를 두 범주로 바꾸면 어떤 정보가 사라지나요?

101과 140은 모두 >100이므로 크기 차이가 사라집니다. 같은 기간 안 시간 순서와 상승·하락 경로도 표에서는 보이지 않습니다. 범주 표는 질문에 맞는 압축일 수 있으나 연속 지수·시계열 그래프를 대체하지 않습니다. 기준과 구간을 결과가 유리하도록 사후 변경하지 마세요.

개인 자료 사례 · 학력 연수 네 구간의 평균 차이를 ANOVA로 분해하기

Card의 실제 1976년 남성 기록을 교육 연수 ≤11 / 12 / 13–15 / ≥16의 네 구간으로 미리 나눕니다. 이것은 실제 보고된 교육 연수에서 유도한 범주이며 특정 학위 취득을 확인한 라벨이 아닙니다. 3613개 기록 중 log 임금이 있는 3010개를 분석하고 603개 결측은 채우지 않습니다. 집단별 결측 수와 관측 평균을 함께 남겨 어느 분모를 사용했는지 확인할 수 있게 합니다.

교육 연수 구간별 실제 기록과 관측 log 임금
유도한 연수 구간전체관측결측평균 log표본분산
≤11년6124971155.9932610.180491
12년11949922026.2490240.175638
13–15년8387041346.2765070.166247
≥16년9698171526.4281160.188034
SST=∑g,i(Lgi−L‾)2SSB=∑gng(L‾g−L‾)2SSW=∑g,i(Lgi−L‾g)2SST=SSB+SSW\begin{gathered}SS_T=\sum_{g,i}(L_{gi}-\overline L)^2\\SS_B=\sum_g n_g(\overline L_g-\overline L)^2\\SS_W=\sum_{g,i}(L_{gi}-\overline L_g)^2\\SS_T=SS_B+SS_W\end{gathered}

먼저 이것은 어떤 표집 가정도 필요 없는 자료의 대수적 항등식입니다. 각 사람의 전체 평균 대비 차이를 “그 집단 평균과 전체 평균의 차이”와 “그 사람과 집단 평균의 차이”로 나눕니다. 집단 안 잔차의 합이 0이어서 제곱 전개의 교차항이 사라집니다. 공개 CSV에는 실제값·집단 적합값·잔차·잔차제곱 3010행을 모두 넣었습니다. 전체 평균은 네 집단 평균의 단순 평균이 아니라 관측 인원으로 가중한 평균입니다.

F=SSB/(k−1)SSW/(n−k)k=4,n=3010η2=SSBSST\begin{gathered}F=\frac{SS_B/(k-1)}{SS_W/(n-k)}\\k=4,\quad n=3010\\\eta^2=\frac{SS_B}{SS_T}\end{gathered}
실제 제곱합에서 만든 일원 ANOVA 표
구성자유도제곱합 log²평균제곱 log²
집단 간358.75355112419.584517041
집단 내3006533.8881220210.177607492
전체3009592.641673145—

관측 F≈110.268530, 기술적 η²≈0.099138입니다. η²는 이 표본 log 임금의 전체 제곱편차 중 이 네 구간의 평균 차이가 설명하는 몫이며, 교육이 인과적으로 만든 비율이 아닙니다. 정규·독립·집단 공통분산 오차의 고전적 귀무모형을 가정하면 F3,3006 참조 꼬리값은 약 9.80736e-68입니다. 실제 조사에 그 조건이 성립한다고 검증하지 않았습니다. 집단별 분산이 다를 수 있으므로 잔차·표집을 확인하고 필요하면 Welch ANOVA나 강건 방법을 검토해야 합니다.

먼저 생각한 뒤 풀이 보기: F 검정에서 기각하면 네 평균이 모두 서로 다르다고 말하나요?

아닙니다. 귀무가설은 네 모평균이 모두 같음이고 대립가설은 적어도 하나가 다름입니다. 어느 쌍이 다른지는 계획된 대비·다중 비교와 그 조건을 따로 검토해야 합니다. 네 집단의 여섯 쌍을 각각 .05로 검사한 결과를 전체 .05 오류 통제라고 보고하지 않습니다.

먼저 생각한 뒤 풀이 보기: 교육 연수를 1·2·3·4라는 구간 코드로 바꿔 평균 코드를 비교해도 같은 문제인가요?

아닙니다. 교육 연수 범주 코드는 라벨이며 구간의 간격·폭은 같지 않습니다. ANOVA의 반응은 실제 log 임금이고 설명 범주는 학력 연수 구간입니다. 범주의 숫자 이름을 연속 반응으로 바꿔서는 안 됩니다. 학위 취득 여부나 교육의 수익률도 이 라벨만으로 추가하지 않습니다.

먼저 생각한 뒤 풀이 보기: 작은 F 꼬리값이 관측된 교육–임금 차이를 인과로 바꾸나요?

아닙니다. 교육 선택과 임금의 공통 원인, 결측·원자료 절단·조사 가중치의 부재가 남습니다. 원래 연구가 다룬 도구변수 식별을 이 ANOVA가 대신하는 것도 아닙니다. 자료의 제곱합 분해와 고전적 검정 모형, 인과 질문을 구별합니다.

기업 고객 사례 · 같은 2×2 표를 카이제곱과 두 비율로 읽기

UCI 실제 고객 3150명의 첫 9개월 불만 지표와 12개월 이탈 지표를 교차 집계합니다. 불만 집단 241명 중 이탈 200명, 무불만 집단 2909명 중 이탈 295명입니다. 불만·이탈의 0/1은 서로 다른 이진 변수의 이름표이며, 두 변수를 “불만이 곧 이탈”이라는 같은 값으로 합치지 않습니다. 수집 연도는 명시되지 않았고, 공개일 2020년을 수집 연도로 대체하지 않습니다.

같은 고객 표의 관측 수와 독립 기대도수
불만이탈관측 O기대 EPearson 잔차χ² 기여
불만 있음이탈20037.8714326.34533694.07663
불만 있음비이탈41203.12857-11.37559129.40412
불만 없음이탈295457.12857-7.5829957.50171
불만 없음비이탈26142,451.871433.2742410.72066
X2=Zpooled2(2×2 table)no continuity correctionV=X2/n\begin{gathered}X^2=Z_{\rm pooled}^2\\(2\times2\text{ table})\\\text{no continuity correction}\\V=\sqrt{X^2/n}\end{gathered}

이 2×2 표에서 연속성 보정을 쓰지 않은 Pearson χ²는 앞 장의 합동 귀무 SE를 사용한 두 비율 z의 제곱과 정확히 같습니다. 관측 차이의 방향은 제곱하면서 사라지므로 “어느 집단이 더 높은가?”는 관측 비율 표에서 읽어야 합니다. 여기 χ²=891.703118, V≈0.532053, 자유도 1의 참조 꼬리값은 약 6.2441372e-196입니다. 이항 독립 작업모형에서의 근사 계산이며 이 통신사의 모든 미래 고객이나 다른 회사에 대한 정확한 예측·인과 보장이 아닙니다.

먼저 생각한 뒤 풀이 보기: Pearson 잔차의 부호와 χ² 기여도의 부호는 왜 다른가요?

잔차 (O−E)/√E는 기대보다 많으면 양수, 적으면 음수입니다. χ² 기여도는 그 제곱이어서 음수가 없습니다. 잔차는 어떤 셀이 모형보다 많고 적은지 설명하지만, 여러 잔차를 보고 가장 큰 것만 사후 유의하다고 고르는 일에는 추가 다중 비교 문제가 있습니다.

먼저 생각한 뒤 풀이 보기: 행을 복제해 고객 수를 두 배로 만들면 χ²와 V는 어떻게 되나요?

모든 셀을 같은 배수 c로 복제하면 χ²는 c배이고 n도 c배라 V는 같습니다. 그러나 복제 행은 새로운 독립 고객이 아닙니다. 커진 n으로 더 작은 p값을 얻는 것은 유효한 새로운 증거가 아닙니다. 원래 관측 단위와 중복·반복 구조를 보존하세요.

먼저 생각한 뒤 풀이 보기: 이 표의 독립성 귀무가설이 기각되면 불만 처리로 이탈을 줄인다고 결론내리나요?

아닙니다. 불만은 무작위 처치가 아니며 서비스·사용량·계약 조건 등과 섞일 수 있습니다. 연관성의 크기·실제 집계·조건부 비교는 다음 분석의 출발점이지 개입 효과의 결론이 아닙니다. 이 사례에서는 원자료를 유지한 정확 집계와 명시한 참조 모형을 공부합니다.

자료·가공·재현: actual180-quarters-and-defined-period-index-categories.csv · actual-period-by-index-six-observed-expected-cells.csv · actual-housing-categorical-association-summary.csv · actual3613-person-records-and-derived-education-bands.csv · actual-four-education-band-log-wage-moments.csv · actual3010-within-band-fits-and-residuals.csv · actual-one-way-ANOVA-sum-of-squares-table.csv · actual-one-way-ANOVA-summary-and-working-tail.csv · actual3150-customer-complaint-and-churn-records.csv · actual-four-complaint-churn-observed-expected-cells.csv · actual-customer-Pearson-and-two-proportion-identity.csv · provenance

Country case · What is retained and lost when housing indices become categories?

Use all 180 actual BIS Korea real housing-index quarters, 1980-Q1–2024-Q4. Classify each as index>100 or index≤100, then cross-tabulate prespecified teaching periods 1980–1999 / 2000–2009 / 2010–2024. The threshold 100 is the 2010-average reference, not fair value, a bubble criterion or a policy-success threshold. These periods are explanatory divisions, not officially identified structural breaks.

Actual counts with unequal period lengths
Teaching periodObserved >100Observed ≤100All quartersFraction >100
1980-199958228029/40
2000-20091228403/10
2010-20245556011/12
Eij=ni+n+jnX2=∑i,j(Oij−Eij)2Eijdf=(r−1)(c−1)\begin{gathered}E_{ij}=\frac{n_{i+}n_{+j}}{n}\\X^2=\sum_{i,j}\frac{(O_{ij}-E_{ij})^2}{E_{ij}}\\df=(r-1)(c-1)\end{gathered}

An independence-model expected count does not replace an observed value. It preserves row and column margins while calculating cell expectations under independence. Since periods contain 80, 40 and 60 quarters, compare within-row fractions as well as counts. Expected counts need not be integers. Every contribution (observed−expected)²/expected is nonnegative.

Observed, expected and contribution in each cell
PeriodIndex categoryObserved OIndependence Eχ² contribution
1980-1999Index>1005855.55560.10756
1980-1999Index≤1002224.44440.24444
2000-2009Index>1001227.77788.96178
2000-2009Index≤1002812.222220.36768
2010-2024Index>1005541.66674.26667
2010-2024Index≤100518.33339.69697

The table has Pearson χ²=43.645091, df=2, and descriptive Cramér V≈0.492415. Mechanically substituting a χ²₂ reference gives a tail about 3.33111e-10, but this is not certified as a valid p-value for the actual time series. Quarters may have dependence and trends; no independent random sample of 180 quarters has been established. Learn observed table association and expected-count arithmetic here.

Think first, then reveal: Do expected counts above five establish independent time-series observations?

No. Expected-count size is only one approximation check. Independence of sampling/measurement units is separate. Sparse expected cells may call for exact or simulation methods, but naive random permutation does not automatically preserve time-series dependence either.

Think first, then reveal: What information is lost after binning the index?

Values 101 and 140 both become >100, losing their magnitude difference. Within-period time order and rise/fall paths also disappear. A table is a question-specific summary, not a replacement for continuous values and a time-series plot. Do not change cutoffs after inspecting results to favor a conclusion.

Person-record case · Decompose differences across four schooling-year bands with ANOVA

Prespecify four bands of reported schooling years in Card’s actual 1976 men’s records: ≤11 / 12 / 13–15 / ≥16. These are derived year bands, not verified degree credentials. Analyze 3,010 available log wages from 3,613 records and retain the 603 missing wages. List group missing counts and observed means so the denominator remains visible.

Actual records and observed log wages by schooling-year band
Derived year bandAllObservedMissingMean logSample variance
≤11 years6124971155.9932610.180491
12 years11949922026.2490240.175638
13–15 years8387041346.2765070.166247
≥16 years9698171526.4281160.188034
SST=∑g,i(Lgi−L‾)2SSB=∑gng(L‾g−L‾)2SSW=∑g,i(Lgi−L‾g)2SST=SSB+SSW\begin{gathered}SS_T=\sum_{g,i}(L_{gi}-\overline L)^2\\SS_B=\sum_g n_g(\overline L_g-\overline L)^2\\SS_W=\sum_{g,i}(L_{gi}-\overline L_g)^2\\SS_T=SS_B+SS_W\end{gathered}

First, this is an algebraic identity requiring no sampling assumption. Split each person’s deviation from the grand mean into a group-mean deviation plus a within-group residual. Within-group residuals sum to zero, eliminating cross terms in the squared expansion. A public CSV includes all 3,010 actual values, group fits, residuals and squared residuals. The grand mean weights group means by observed group sizes; it is not their simple average.

F=SSB/(k−1)SSW/(n−k)k=4,n=3010η2=SSBSST\begin{gathered}F=\frac{SS_B/(k-1)}{SS_W/(n-k)}\\k=4,\quad n=3010\\\eta^2=\frac{SS_B}{SS_T}\end{gathered}
One-way ANOVA table from actual sums of squares
ComponentdfSum of squares, log²Mean square, log²
Between groups358.75355112419.584517041
Within groups3006533.8881220210.177607492
Total3009592.641673145—

Observed F≈110.268530 and descriptive η²≈0.099138. Here η² is the fraction of sample total squared log-wage deviations accounted for by differences among these four group means, not a fraction causally created by schooling. Under the classical normal, independent, common-error-variance null model, the F3,3006 reference tail is about 9.80736e-68. Those conditions are not verified for the actual survey. Check residuals and sampling; unequal variances may call for Welch ANOVA or robust approaches.

Think first, then reveal: Does rejecting the F test mean all four means differ from one another?

No. The null says all four population means are equal; the alternative says at least one differs. Identifying pairs requires planned contrasts or multiple-comparison procedures and their assumptions. Six pairwise .05 tests do not automatically provide .05 familywise control.

Think first, then reveal: Would averaging band codes 1,2,3,4 address the same question?

No. The band codes are labels with unequal year widths and gaps. The ANOVA response is actual log wage, while schooling-year band is the categorical predictor. Do not turn numeric category names into a continuous response or infer degree completion and returns to schooling from the labels.

Think first, then reveal: Does a tiny F tail turn the schooling–wage association into causation?

No. Shared causes of schooling selection and wages, missingness, source trimming and unused survey weights remain. This ANOVA does not substitute for the original study’s instrumental-variable identification. Keep a descriptive sum-of-squares decomposition, a classical testing model and a causal question distinct.

Customer case · Read the same 2×2 table through chi-square and two proportions

Cross-tabulate first-nine-month complaints and month-12 churn for 3,150 actual UCI customers. There are 200 churns among 241 complaint records and 295 among 2,909 no-complaint records. The 0/1 flags label distinct binary variables; do not collapse complaint and churn into the same concept. Collection years are unspecified; the 2020 release date is not a collection year.

Observed and independence-expected customer counts
ComplaintChurnObserved OExpected EPearson residualχ² contribution
Complaint recordedChurn20037.8714326.34533694.07663
Complaint recordedNo churn41203.12857-11.37559129.40412
No complaintChurn295457.12857-7.5829957.50171
No complaintNo churn26142,451.871433.2742410.72066
X2=Zpooled2(2×2 table)no continuity correctionV=X2/n\begin{gathered}X^2=Z_{\rm pooled}^2\\(2\times2\text{ table})\\\text{no continuity correction}\\V=\sqrt{X^2/n}\end{gathered}

For this 2×2 table, Pearson χ² without continuity correction equals the square of the previous chapter’s two-proportion z using the pooled-null SE. Squaring removes direction, so read which group has the higher observed fraction from the proportion table. Here χ²=891.703118, V≈0.532053, and the df1 reference tail is about 6.2441372e-196. This is an approximate working-model calculation, not exact prediction or causal assurance for all future customers or other companies.

Think first, then reveal: Why can Pearson residuals be signed while χ² contributions cannot?

A residual (O−E)/√E is positive for an excess and negative for a deficit. Its squared contribution is nonnegative. Residuals help describe cell deviations, but declaring only the largest inspected residual significant creates an additional multiple-comparison issue.

Think first, then reveal: What happens to χ² and V if every customer row is duplicated?

Multiplying all cells by c multiplies χ² and n by c, leaving V unchanged. Duplicated records are not new independent customers. A smaller p-value obtained from the inflated n is not valid new evidence. Preserve observational units and duplicate/repeated-record structure.

Think first, then reveal: Does rejecting independence show that complaint handling will reduce churn?

No. Complaints are not randomized treatments and may share causes with service quality, usage and contract features. Association magnitude, actual counts and conditional comparisons can motivate further work but do not conclude an intervention effect. Here the goal is exact source-preserving counts and an explicit reference model.

Data, processing and reproduction: actual180-quarters-and-defined-period-index-categories.csv · actual-period-by-index-six-observed-expected-cells.csv · actual-housing-categorical-association-summary.csv · actual3613-person-records-and-derived-education-bands.csv · actual-four-education-band-log-wage-moments.csv · actual3010-within-band-fits-and-residuals.csv · actual-one-way-ANOVA-sum-of-squares-table.csv · actual-one-way-ANOVA-summary-and-working-tail.csv · actual3150-customer-complaint-and-churn-records.csv · actual-four-complaint-churn-observed-expected-cells.csv · actual-customer-Pearson-and-two-proportion-identity.csv · provenance

기초Foundations

47. 계산 전에 분석 카드를 한 장 쓴다47. Write an analysis card before calculating

먼저 관측 단위·원행 키·기간·변수 단위·범주/집단 정의·결측 처리·포함 수를 적으세요. 다음에 기술 표적인지 모집단 평균/확률인지, 인과 효과인지 구별합니다. 표집·배정·반복 의존의 근거도 따로 적습니다.

분할표라면 관측/기대 빈도, 주변합, 희소·구조적 영, 검정의 극단성 정의를 확인합니다. 수치 집단이라면 평균·분포·집단 안 퍼짐, 세 제곱합, 자유도와 기준 가정을 확인합니다. 효과 크기와 불확실성을 함께 보고하세요.

정확 유리수 계산은 분수 보존의 장점이 있지만 입력 측정·선택을 정확하게 만들지는 않습니다. 소프트웨어 범위 오류, 화면 underflow, 수학적 미정의를 구별하고 분석 선택을 숨기지 않습니다.

Record observational units, source keys, period, units, category/group definitions, missingness and included counts. Then distinguish a descriptive target, population parameter and causal effect. Separately justify sampling, assignment and dependence assumptions.

For tables, inspect observed/expected cells, margins, sparsity, structural zeros and extremeness ordering. For numerical groups, inspect means, distributions, within variation, SS, df and reference assumptions. Report effect magnitude with uncertainty.

Exact fractions preserve arithmetic, not measurement or selection validity. Separate computation-range errors, display underflow and mathematical undefinedness, and disclose analytic choices.

기초Foundations

48. 공식 참고자료에서 정의와 조건을 대조한다48. Compare definitions and assumptions in primary references

R 공식 chisq.test의 Details와 Value에서는 점근 기준·2×2 기본 연속성 보정·Pearson/조정 잔차를 구분해 읽으세요. 이 장의 실습은 보정 없는 Pearson이므로 R과 대조할 때 correct=FALSE를 명시합니다.

R 공식 fisher.test의 Details에서는 2×2 초기하 조건부 법칙과 질량 순서 양쪽 정의를 읽으세요. NIST 일원 ANOVA 표는 제곱합 기호가 이 장과 다를 수 있으므로 ‘집단 사이/안/전체’ 뜻으로 대응시키세요.

NIST F 분포와 χ² 분포는 정의·자유도·꼬리 모양을 확인하는 자료입니다. F를 독립인 두 χ²/자유도의 비로 구성한다는 조건과, 표의 Pearson은 점근 기준이라는 차이를 이 장 증명과 연결하세요. 다음 장의 회귀에서는 범주별 평균 맞춤을 조건부 평균과 선형 투영으로 확장합니다.

Python · R · 원자료·단위·가공·출처

Read Details and Value in the official R chisq.test documentation for asymptotic calibration, default 2×2 continuity correction and residual definitions. Our lab uses uncorrected Pearson, so specify correct=FALSE for comparison.

The official Fisher documentation defines the 2×2 hypergeometric conditional law and probability-mass-ordered two-sided tail. Map NIST's ANOVA table by between/within/total meanings rather than assuming identical SS abbreviations.

NIST F and chi-square references describe df and tail shape. Connect the independent chi-square-ratio construction with our proof, and distinguish it from asymptotic Pearson calibration. The next chapter extends group means to regression, conditional means and linear projection.

Python · R · Inputs, units, transformations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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.

python stat14-reproduce.py
Rscript --vanilla --encoding=UTF-8 stat14-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. 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.

Khan Academy · 독립성 카이제곱 검정Khan Academy · Chi-square test for association

Khan Academy · AP Statistics

본문에서 기대도수가 주변합의 곱/전체 수로 계산되는 이유를 따라갑니다. 손·발 예시를 외우기보다 이 장의 실제 고객 표에서 직접 계산해 보세요.Follow why expected counts equal a product of margins divided by the total; then calculate them in the actual customer table rather than memorizing the video’s example.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 독립 모형의 기대도수는 관측 수와 꼭 같아야 하나요?Must an independence-model expected count equal the observed count?

생각을 점검하는 해설Check your reasoning

아닙니다. 관측과 기대의 차이를 모아 적합 정도를 봅니다. 기대도수도 합계·표집 모형에 의존하며 새 관측은 아닙니다.No. Their differences measure lack of fit. Expected counts depend on margins and a model and are not new observations.

칼 피어슨 · 범주 빈도를 비교하는 통계량Karl Pearson · A statistic comparing categorical counts

University of St Andrews · MacTutor

통계학 공헌 중 1900년 카이제곱 검정 부분을 읽습니다. 방법의 역사와 우생학 등 인물의 사회적 주장을 구별하고, 범주 선택과 측정이 누구를 어떻게 나타내는지 비판적으로 살펴보세요.Read the contribution concerning the 1900 chi-square test. Distinguish methodological history from eugenic social claims, and examine critically whom categories and measurements represent.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 유명한 학자가 만든 방법이면 변수 분류도 가치중립적으로 정답인가요?Does a famous method make every variable classification objectively correct?

생각을 점검하는 해설Check your reasoning

아닙니다. 범주·측정·표집과 해석은 연구자가 설명하고 검토해야 합니다. 통계량은 잘못 정한 질문을 자동으로 고치지 않습니다.No. Researchers must justify categories, measurements, sampling and interpretation; a statistic cannot repair a poorly framed question.

Penn State · 독립성 기대도수와 자유도Penn State · Independence expected counts and degrees of freedom

Penn State Statistics · STAT200 Lesson11, independence section

두 변수 독립성 부분의 E=행합×열합/n, Pearson 식, 자유도와 기대도수 점검만 지정해 읽습니다. 표집 독립성은 별도로 필요합니다.Read only the independence section’s expected-count formula, Pearson statistic, df and expected-count checks. Sampling independence remains a separate requirement.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 적합도 검정의 df=k−1을 모든 교차표에 쓰나요?Is the goodness-of-fit df=k−1 valid for every two-way table?

생각을 점검하는 해설Check your reasoning

아닙니다. 여기 독립성 교차표는 (행수−1)(열수−1)을 사용합니다. 추정 모수·표집 설계가 달라지면 조건을 다시 확인합니다.No. These independence tables use (rows−1)(columns−1); check conditions again when fitted parameters or sampling design differ.

NIST · 일원 ANOVA의 집단·잔차·제곱합NIST · Groups, residuals and sums of squares in one-way ANOVA

NIST/SEMATECH e-Handbook

두 모형 표현·잔차 정의·제곱합과 자유도·모형 점검 안내를 읽습니다. F 참조에는 정규·독립·공통분산 조건을 함께 적용합니다.Read the model expressions, residual definitions, sum-of-squares/df decomposition and model-validation guidance. Apply the F reference with normality, independence and common-variance conditions.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 제곱합 항등식이 맞으면 정규성도 증명되나요?Does a valid sum-of-squares identity prove normal errors?

생각을 점검하는 해설Check your reasoning

아닙니다. 대수적 항등식과 확률모형의 분포 가정은 서로 다른 사실입니다.No. An algebraic identity and a probability model’s distribution assumptions are different facts.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 칸 수와 기록 수Cells versus records

2×3 표에 서로 다른 기록 24개가 정확히 한 번씩 들어갔습니다. 행 수가 관측 수인가요?

A 2×3 table contains 24 distinct records, each counted once. Is the row count the observational count?

풀이와 확인할 이유Solution and explanation

아닙니다. 행 2개는 범주 수이고 관측 수는 셀 빈도 합 24입니다. 6개 셀도 기록 6개를 뜻하지 않습니다. 원자료 한 기록이 한 셀에 한 번 들어갔다는 포함 규칙을 확인해야 합니다.

No. Two rows are categories; the observational count is the sum of cell counts,24. Six cells do not imply six records. The one-record-one-cell rule is essential.

2. 주변 합계Margins

O=((2,8),(6,4))의 행 합·열 합·총수를 구하세요.

Find row totals, column totals and N for O=((2,8),(6,4)).

풀이와 확인할 이유Solution and explanation

행 합은 10,10, 열 합은 8,12, 총수는 20입니다. 행 합의 합과 열 합의 합이 모두 20인지 검사합니다.

Row totals are 10,10; column totals 8,12; N=20. Both sets of margins sum to the same grand total.

3. 같은 셀의 세 비율Three proportions

O=((2,8),(6,4))에서 왼쪽 위의 결합·행조건·열조건 비율을 구하세요.

For the upper-left cell of O=((2,8),(6,4)), find joint, row-conditional and column-conditional proportions.

풀이와 확인할 이유Solution and explanation

각각 2/20=0.1,2/10=0.2,2/8=0.25입니다. 첫 값은 전체 기록, 둘째는 첫 행, 셋째는 첫 열을 조건으로 한 질문입니다.

They are 2/20=.1,2/10=.2 and 2/8=.25. The denominators refer to all records, the first row and the first column respectively.

4. 영행의 비율A zero row

O=((0,0),(2,3))의 첫 행에서 첫 열 조건부 비율은 0인가요?

Is the first-column conditional proportion within row one of O=((0,0),(2,3)) zero?

풀이와 확인할 이유Solution and explanation

미정의입니다. 분자가 0이어도 행 분모도 0이므로 0/0입니다. 전체 결합 비율의 왼쪽 위 값 0/5=0과 구별합니다.

It is undefined:0/0. The joint upper-left probability 0/5=0 is defined and answers another question.

5. 소수 기대 빈도Fractional expectations

O=((1,2),(3,4))에서 독립 모형의 기대 표를 구하세요.

Find fitted independence expectations for O=((1,2),(3,4)).

풀이와 확인할 이유Solution and explanation

행 합은 3,7, 열 합은 4,6, N=10입니다. 기대 표는 ((6/5,9/5),(14/5,21/5))입니다. 기대값은 소수일 수 있지만 원관측 빈도는 정수입니다.

Margins are 3,7 and 4,6 with N=10. Expectations are ((6/5,9/5),(14/5,21/5)). Expectations can be fractional while observed counts are integers.

6. 기대 표의 합계 보존Preserving fitted margins

Eᵢⱼ=Oᵢ₊O₊ⱼ/N, N>0에서 기대 행 합이 원 행 합임을 보이세요.

Show that Eᵢⱼ=Oᵢ₊O₊ⱼ/N reproduces each row total when N>0.

풀이와 확인할 이유Solution and explanation
∑jEij=Oi+N∑jO+j=Oi+NN=Oi+.\begin{aligned} \sum_jE_{ij} &=\frac{O_{i+}}N\sum_jO_{+j}\\ &=\frac{O_{i+}}N N=O_{i+}. \end{aligned}

열 합도 같은 계산입니다. 독립 모형에 적합한 주변합은 관측 주변합을 재현합니다.

∑jEij=Oi+N∑jO+j=Oi+NN=Oi+.\begin{aligned} \sum_jE_{ij} &=\frac{O_{i+}}N\sum_jO_{+j}\\ &=\frac{O_{i+}}N N=O_{i+}. \end{aligned}

The column calculation is analogous. Fitting independence preserves observed margins.

7. 네 셀 PearsonFour-cell Pearson

O=((10,20),(20,10))에서 X²를 손으로 계산하세요.

Compute X² by hand for O=((10,20),(20,10)).

풀이와 확인할 이유Solution and explanation

각 기대값은 15, 차이는 ±5입니다. 셀당 25/15=5/3이므로 X²=4×5/3=20/3입니다. 차이를 그냥 합한 0을 통계량으로 사용하지 않습니다.

Every E=15 and every absolute deviation is 5. Four contributions of 25/15 give X²=20/3. The signed deviations sum to zero but are not the statistic.

8. 관측 0의 기여Contribution of an observed zero

한 셀에서 O=0, E=4라면 Pearson 기여는 무엇인가요?

What is the Pearson contribution if O=0 and E=4?

풀이와 확인할 이유Solution and explanation

(0−4)²/4=4입니다. 관측값 0은 기여 0이 아닙니다. 분모가 양수여서 계산 가능하며 구조적 영이라는 결론도 나오지 않습니다.

(0−4)²/4=4. An observed zero need not contribute zero and need not be structurally impossible. Positive E makes this contribution defined.

9. 자유도Degrees of freedom

모든 주변합이 양수인 일반 3×4 독립 표의 점근 자유도를 구하세요.

Find asymptotic df for an ordinary 3×4 independence table with positive margins and no structural zeros.

풀이와 확인할 이유Solution and explanation

(3−1)(4−1)=6입니다. unrestricted 확률 차원 12−1=11에서 주변 모수 2+3=5를 빼도 6입니다. 구조적 영 제약은 없다고 가정합니다.

(3−1)(4−1)=6. Equivalently, unrestricted probability dimension 11 minus marginal-parameter dimension 2+3 leaves 6.

10. 고정 합계의 한 셀One cell with fixed margins

2×2 표의 행 합은 10,14, 열 합은 12,12입니다. 왼쪽 위가 k이면 나머지 표와 가능한 k를 쓰세요.

Rows total 10,14 and columns total 12,12. Write the table in terms of upper-left k and its feasible values.

풀이와 확인할 이유Solution and explanation

표는 ((k,10−k),(12−k,2+k))입니다. 네 값이 음이 아니어야 하므로 정수 k=0,…,10입니다. 자유로운 정수 하나가 전체 표를 정합니다.

The table is ((k,10−k),(12−k,2+k)). Nonnegativity gives integer k=0,…,10. One free integer determines the table.

11. 빈도 두 배Doubling counts

표 O의 모든 빈도를 2배로 하면 E, X², V는 어떻게 바뀌나요? 양의 주변합을 가정하세요.

If every count in a positive-margin table doubles, what happens to E, X² and V?

풀이와 확인할 이유Solution and explanation

E도 2배, 각 (O−E)²/E는 2배이므로 X²도 2배입니다. N도 2배라 V는 같습니다. 복제 기록이 실제 독립 관측 증가를 뜻하는지는 별도 문제입니다.

E doubles and each Pearson contribution doubles, so X² doubles. N also doubles, leaving V unchanged. Physically duplicating records does not establish independent new observations.

12. 기본 VDefault V

2×2 표에서 X²=20/3, N=60일 때 Cramér V를 계산하세요.

Compute Cramér V for a 2×2 table with X²=20/3 and N=60.

풀이와 확인할 이유Solution and explanation

min(R−1, C−1)=1이므로 V²=(20/3)/60=1/9, V=1/3입니다. V는 양의 제곱근을 쓰는 방향 없는 요약입니다.

The dimension factor is one, so V²=1/9 and V=1/3. Its nonnegative square root has no association direction.

13. 독립과 양의 행Independence with a positive row

P(A)=0.4, P(B)=0.3이고 독립이면 P(A∩B)와 P(B|A)는 무엇인가요?

If P(A)=.4, P(B)=.3 and A, B are independent, find P(A∩B) and P(B|A).

풀이와 확인할 이유Solution and explanation

결합 확률은 0.12, 조건부는 0.12/0.4=0.3입니다. P(A)>0이라 비율이 정의됩니다. 독립이어도 P(A)=0이면 이 비율 정의의 조건부는 미정의입니다.

The joint probability is .12 and the ratio is .12/.4=.3. Positive P(A) makes the ratio defined. Independence alone would not define that ratio when P(A)=0.

14. 작은 기준 꼬리A tiny reference tail

χ² 기준 꼬리가 10⁻¹⁰이면 H₀가 참일 확률이 10⁻¹⁰인가요?

Does a χ² reference tail of 10⁻¹⁰ mean that H₀ has probability 10⁻¹⁰?

풀이와 확인할 이유Solution and explanation

아닙니다. 지정한 귀무 기준 아래 관측 통계량 이상이 나올 꼬리 확률입니다. 귀무 사후 확률도 아니고 기준 가정의 검증도 아닙니다.

No. It is an upper-tail probability under the specified null reference, not a posterior probability of H₀ or validation of the reference assumptions.

15. 연관과 인과Association and causality

불만과 이탈 표에서 매우 큰 X²가 나오면 불만을 유발하는 처치의 인과 효과를 알 수 있나요?

Does a very large complaint/churn X² identify the causal effect of an intervention that induces complaints?

풀이와 확인할 이유Solution and explanation

아닙니다. 표는 집단의 관측 연관을 요약합니다. 불만 배정·선택·교란·시간 구조를 따로 다뤄야 하며 관측 비율 차이를 인과 처치 효과라고 바꿀 근거가 없습니다.

No. It summarizes observed association. Assignment, selection, confounding and time structure require separate identification; the table does not turn a group-rate difference into an intervention effect.

16. 부호 있는 잔차Signed residuals

O=((10,20),(20,10)), E=15인 기본 표의 Pearson 잔차 부호와 크기를 구하세요.

Find signs and magnitudes of Pearson residuals for O=((10,20),(20,10)) with E=15 throughout.

풀이와 확인할 이유Solution and explanation

부호는 −,+,+,−입니다. 각 크기는 5/√15=√(5/3)≈1.291입니다. 부호는 기대보다 많고 적음을 나타내며 제곱하면 기여 5/3입니다.

Signs are −,+,+,− and every magnitude is 5/√15=√(5/3)≈1.291. Squaring yields cell contribution 5/3.

17. 조정 잔차와 다른 분모Adjusted residual denominator

기본 표 O=((10,20),(20,10))의 왼쪽 위 조정 잔차를 계산하세요. 행·열 비율은 각각 1/2입니다.

Compute the upper-left adjusted residual in O=((10,20),(20,10)); row and column proportions are both 1/2.

풀이와 확인할 이유Solution and explanation

분모는 √[15(1−1/2)(1−1/2)]=√(15/4)입니다. 값은 −5/√(15/4)=−√(20/3)≈−2.582입니다. Pearson 잔차 −1.291과 다른 조정입니다.

The denominator is √[15(1−1/2)(1−1/2)]=√(15/4), giving −√(20/3)≈−2.582. This differs from the ordinary Pearson residual ≈−1.291.

18. 잔차 합의 오해Which residual squares sum

Pearson 잔차의 제곱합이 X²라는 사실이 조정 잔차의 제곱합에도 그대로 적용되나요?

Does X² equal the sum of squared adjusted residuals as well as squared ordinary Pearson residuals?

풀이와 확인할 이유Solution and explanation

아닙니다. X²는 Σ(O−E)²/E이므로 보통 Pearson 잔차의 제곱합입니다. 조정 잔차에는 주변비율 인자가 더 있어 같은 항등식이 아닙니다.

No. Its defining denominator is E. Adjusted residuals include additional marginal factors, so their squares do not obey that same identity.

19. 구조적 영Structural zero

정의상 불가능한 셀 하나를 0으로 넣고 일반 (R−1)(C−1) 자유도를 사용해도 되나요?

Can an impossible-by-definition cell simply be entered as zero while retaining ordinary (R−1)(C−1) df?

풀이와 확인할 이유Solution and explanation

자동 적용할 수 없습니다. 가능한 표의 모형·차원이 달라질 수 있습니다. 단순 관측 영과 구별하고 구조 제약에 맞는 모형을 세워야 합니다.

Not automatically. The feasible model and its dimension may change. Distinguish structural impossibility from a sampling zero and specify the constrained model.

20. 2×2의 z²The 2×2 z squared identity

독립 두 행에서 성공은 10/30,20/30입니다. 보정 없는 pooled z²와 Pearson을 비교하세요.

Two independent rows have success counts 10/30 and 20/30. Compare uncorrected pooled z² with Pearson.

풀이와 확인할 이유Solution and explanation
p^=1/2,SE02=14(130+130)=160,z2=(1/3−2/3)21/60=203=X2.\begin{aligned} \widehat p&=1/2,\quad SE_0^2=\tfrac14(\tfrac1{30}+\tfrac1{30})=\tfrac1{60},\\ z^2&=\frac{(1/3-2/3)^2}{1/60}=\frac{20}3=X^2. \end{aligned}

이는 합친 귀무 비율의 보정 없는 연결입니다. Fisher p까지 같은 것은 아닙니다.

p^=1/2,SE02=14(130+130)=160,z2=(1/3−2/3)21/60=203=X2.\begin{aligned} \widehat p&=1/2,\quad SE_0^2=\tfrac14(\tfrac1{30}+\tfrac1{30})=\tfrac1{60},\\ z^2&=\frac{(1/3-2/3)^2}{1/60}=\frac{20}3=X^2. \end{aligned}

This is the uncorrected pooled-null identity, not equality with Fisher p-values.

21. 초기하 가능 범위Hypergeometric support

N=10, r=7, c=6이면 고정 주변합 첫 셀 K의 가능한 정수를 구하세요.

For fixed N=10, r=7, c=6, find feasible integer values of first cell K.

풀이와 확인할 이유Solution and explanation

하한 max(0,7+6−10)=3, 상한 min(7,6)=6이므로 K=3,4,5,6입니다. 첫 행 성공이 3 미만이면 나머지 행에 성공 6개를 담을 수 없습니다.

The lower limit is 3 and upper limit 6, so K=3,4,5,6. Smaller K would require more remaining successes than the other row can hold.

22. 세 원자 질량Three exact masses

N=4, r=c=2인 초기하 귀무의 K=0,1,2 질량을 구하세요.

Find masses for K=0,1,2 under fixed N=4, r=c=2.

풀이와 확인할 이유Solution and explanation

분모 C(4,2)=6, 분자는 각각 1,4,1입니다. 질량은 (1/6,2/3,1/6)이며 합 1입니다. 가능한 K를 균등 1/3씩 놓는 것은 다른 법칙입니다.

The denominator is C(4,2)=6 and numerators are 1,4,1. Masses are (1/6,2/3,1/6), not equal thirds.

23. Fisher 기본 예Default Fisher decision

O=((1,9),(11,3))의 양쪽 Fisher p=41/14858일 때 α=0.01과 0.001에서 판단하세요.

For O=((1,9),(11,3)), two-sided Fisher p=41/14858. Decide at α=.01 and .001.

풀이와 확인할 이유Solution and explanation

p≈0.00275946이므로 0.01에서는 기각,0.001에서는 비기각입니다. 정확 조건부 규칙의 결과이며 귀무가 참임을 비기각으로 확정하지 않습니다.

Since p≈.00275946, reject at .01 and do not reject at .001. This is a conditional rule; nonrejection does not establish the null.

24. 가운데 원자의 양쪽Two-sided at the middle atom

N=4, r=c=2, 관측 K=1이면 질량 순서 Fisher 양쪽 p와 작은 쪽 p를 구하세요.

With N=4, r=c=2 and observed K=1, find mass-ordered two-sided p and the less-tail p.

풀이와 확인할 이유Solution and explanation

관측 질량 2/3은 모든 원자보다 크거나 같으므로 양쪽 p=1입니다. 작은 쪽은 P(K≤1)=1/6+2/3=5/6입니다. 두 배 작은 꼬리는 5/3이므로 그대로 확률로 쓸 수도 없습니다.

All masses are at most observed mass 2/3, so two-sided p=1. The less tail is 5/6. Uncapped doubling would even give 5/3 and cannot be a probability.

25. 한쪽 방향One-sided directions

N=4, r=c=2, 관측 K=0에서 작은 쪽과 큰 쪽 p는 무엇인가요?

With N=4, r=c=2 and observed K=0, find less and greater p-values.

풀이와 확인할 이유Solution and explanation

작은 쪽은 P(K≤0)=1/6, 큰 쪽은 P(K≥0)=1입니다. 관측 자체를 포함하며 범주 순서를 바꾸면 방향의 해석도 바뀝니다.

The less tail is 1/6; the greater tail is 1. Both include the observed atom, and changing category order changes directional meaning.

26. 동률 포함Including probability ties

N=4, r=c=2, 관측 K=0에서 양쪽 Fisher p를 구하세요.

For N=4, r=c=2 and observed K=0, find the two-sided Fisher p.

풀이와 확인할 이유Solution and explanation

K=0과 K=2는 모두 질량 1/6으로 동률입니다. 둘을 포함하므로 양쪽 p=1/3입니다. 관측과 같은 질량의 반대 원자를 빼면 이 장의 정의가 아닙니다.

K=0 and K=2 both have mass 1/6. Include both ties to obtain 1/3. Excluding the equal-probability opposite atom changes the definition.

27. 이산 제1종 오류Discrete type-I error

N=4, r=c=2의 Fisher 양쪽 p≤α 규칙에서 α=0.05와 α=1/3의 귀무 기각 확률을 구하세요.

Under N=4, r=c=2, find null rejection probability for the inclusive two-sided Fisher rule at α=.05 and α=1/3.

풀이와 확인할 이유Solution and explanation

가능한 p는 극단 두 점의 1/3과 가운데의 1입니다. α=0.05에서는 아무것도 기각하지 않아 오류 0입니다. α=1/3에서는 K=0,2를 기각하여 오류 1/3입니다.

Attainable p-values are 1/3 at the extremes and 1 at the middle. Rejection probability is zero at .05 and 1/3 at α=1/3.

28. 양의 총수와 퇴화 법칙Positive total with a degenerate law

O=((0,0),(2,3))의 Fisher 조건부 법칙과 Pearson 기본 기준을 비교하세요.

Compare Fisher and ordinary Pearson handling for O=((0,0),(2,3)).

풀이와 확인할 이유Solution and explanation

총수 5이고 첫 행 합이 0이라 K=0 한 점뿐입니다. 조건부 질량과 모든 꼬리 p는 1입니다. Pearson은 영 기대 빈도가 있어 선언한 2×2 기본 기준을 미정의로 둡니다.

N=5 but the first row total is zero, so K=0 is the only conditional atom and all tail p-values are one. Ordinary declared-table Pearson has zero expectations and is undefined in this lab.

29. 빈 표An empty table

O=((0,0),(0,0))이면 결합 비율과 Fisher p를 0으로 채워도 되나요?

Can joint proportions and Fisher p be filled with zero for an all-zero 2×2 table?

풀이와 확인할 이유Solution and explanation

안 됩니다. 전체 분모 N=0이라 결합 비율은 미정의이고, 실습은 관측 집단 비교 p값을 계산하지 않습니다. 형식적 N=r=c=0 초기하 법칙은 한 점으로 정의할 수 있어도 빈 기록의 검정 결과로 쓰지 않는 범위 선택입니다.

No. N=0 leaves joint proportions undefined, and the lab declines an observed-group p-value. A formal N=r=c=0 hypergeometric law can be a point mass; not using it as a test of empty records is an analysis-scope choice.

30. 분수 빈도Fractional counts

가중 표의 셀 1.5를 일반 Fisher 조합 공식에 그대로 넣을 수 있나요?

Can a cell weight 1.5 be inserted directly into the ordinary Fisher combination formula?

풀이와 확인할 이유Solution and explanation

이 정수 기록 조합 모형에는 넣을 수 없습니다. 확률 가중·노출량·분수 응답은 원자료 설계에 맞는 별도 모형이 필요합니다. 편의상 반올림해도 같은 실험이 되지 않습니다.

Not in this integer-record counting model. Fractional weights or exposures require a justified model; rounding does not preserve the original experiment.

31. 전체 평균Grand mean

A=(1,2,3), B=(2,3,4), C=(4,5,6)의 집단 평균과 전체 평균을 구하세요.

Find group means and the grand mean for A=(1,2,3), B=(2,3,4), C=(4,5,6).

풀이와 확인할 이유Solution and explanation

집단 평균은 2,3,5이며 모든 크기가 3이므로 전체 평균은 (2+3+5)/3=10/3입니다. 원합 30을 총수 9로 나누어도 같습니다.

Group means are 2,3,5. Equal sizes give grand mean 10/3, also obtained from raw sum 30 divided by nine.

32. 불균형 크기의 평균Unequal group sizes

A=(0,0,0), B=(10)일 때 전체 평균과 집단 균등 평균을 비교하세요.

Compare the observation-weighted grand mean and group-balanced mean for A=(0,0,0), B=(10).

풀이와 확인할 이유Solution and explanation

전체 관측 평균은 10/4=2.5, 집단 평균의 단순 평균은 (0+10)/2=5입니다. 서로 다른 가중 표적입니다. ANOVA의 전체 평균에는 관측 수 가중치를 사용합니다.

The grand mean is 2.5; the unweighted mean of group means is 5. They target different weights. Ordinary ANOVA uses observation-count weights.

33. 한 편차의 분해One deviation split

B=(2,3,4)의 값 4, 집단 평균 3, 전체 평균 10/3에서 편차 분해를 쓰세요.

Split the deviation of value 4 in B=(2,3,4), with group mean 3 and grand mean 10/3.

풀이와 확인할 이유Solution and explanation

4−10/3=(4−3)+(3−10/3)=1−1/3=2/3입니다. 두 성분이 반대 부호일 수 있으므로 각각을 제곱해 더하는 항등식은 한 관측에 곧바로 성립하지 않습니다. 교차항은 집단 전체 합에서 사라집니다.

4−10/3=(4−3)+(3−10/3)=2/3. The components have opposite signs. Their squared sum is not an identity for each observation; cross terms cancel only after summing within groups.

34. 교차항이 사라지는 이유Why the cross term vanishes

집단 i의 평균 ȳᵢ와 전체 평균 ȳ에 대해 교차항 합을 0으로 보이세요.

Show that the within-group cross-term sum is zero for group mean ȳᵢ and grand mean ȳ.

풀이와 확인할 이유Solution and explanation
Si=∑j(yij−y‾i)=0Ci=∑j2(yij−y‾i)Ci=⋅(y‾i−y‾)Ci=2(y‾i−y‾)Si=0\begin{gathered}S_i=\sum_j(y_{ij}-\overline y_i)=0\\C_i=\sum_j2(y_{ij}-\overline y_i)\\\hphantom{C_i={}}\cdot(\overline y_i-\overline y)\\C_i=2(\overline y_i-\overline y)S_i=0\end{gathered}

마지막 합은 평균 정의로 0입니다. 독립·정규 가정은 이 대수 항등식에 필요하지 않습니다.

Si=∑j(yij−y‾i)=0Ci=∑j2(yij−y‾i)Ci=⋅(y‾i−y‾)Ci=2(y‾i−y‾)Si=0\begin{gathered}S_i=\sum_j(y_{ij}-\overline y_i)=0\\C_i=\sum_j2(y_{ij}-\overline y_i)\\\hphantom{C_i={}}\cdot(\overline y_i-\overline y)\\C_i=2(\overline y_i-\overline y)S_i=0\end{gathered}

The last sum is zero by definition of the mean, without normality or independence.

35. 집단 안 제곱합Within sum of squares

A=(1,2,3), B=(2,3,4), C=(4,5,6)의 SS_W를 구하세요.

Find SS_W for A=(1,2,3), B=(2,3,4), C=(4,5,6).

풀이와 확인할 이유Solution and explanation

각 집단 편차는 (−1,0,1)이므로 제곱합 2씩, 전체 SS_W=6입니다. 집단 평균의 제곱을 더하는 것이 아니라 각 관측에서 자기 평균을 뺍니다.

Each deviation vector is (−1,0,1), contributing 2, so SS_W=6. Center individual observations within their own groups.

36. 집단 사이 제곱합Between sum of squares

집단 크기 모두 3, 평균 2,3,5, 전체 평균 10/3에서 SS_B를 구하세요.

For equal group sizes 3, means 2,3,5 and grand mean 10/3, find SS_B.

풀이와 확인할 이유Solution and explanation
SSB=3(2−10/3)2+3(3−10/3)2+3(5−10/3)2=16/3+1/3+25/3=14.\begin{aligned} SS_B&=3(2-10/3)^2\\ &\quad+3(3-10/3)^2+3(5-10/3)^2\\ &=16/3+1/3+25/3=14. \end{aligned}

각 평균 차이는 그 집단의 관측 수만큼 반복되므로 크기 3을 곱합니다.

SSB=3(2−10/3)2+3(3−10/3)2+3(5−10/3)2=16/3+1/3+25/3=14.\begin{aligned} SS_B&=3(2-10/3)^2\\ &\quad+3(3-10/3)^2+3(5-10/3)^2\\ &=16/3+1/3+25/3=14. \end{aligned}

Each mean shift repeats for its three observations.

37. 전체 제곱합Total squared variation

동일 자료에서 SS_B=14, SS_W=6입니다. SS_T와 전체 경험분산(ddof=0)을 구하세요. N=9입니다.

With N=9, SS_B=14 and SS_W=6, find SS_T and empirical variance using ddof=0.

풀이와 확인할 이유Solution and explanation

SS_T=20이고 전체 경험분산은 20/9입니다. 20/8은 n−1로 나눈 표본분산입니다. 제곱합 자체에는 아직 분산 분모를 붙이지 않았습니다.

SS_T=20 and empirical variance is 20/9. Dividing by 8 instead gives sample variance. A sum of squares does not yet specify either denominator.

38. 자유도와 평균제곱Degrees and mean squares

K=3, N=9, SS_B=14, SS_W=6에서 세 자유도와 MS_B, MS_W를 구하세요.

For K=3, N=9, SS_B=14, SS_W=6, find between, within, total df and both mean squares.

풀이와 확인할 이유Solution and explanation

사이 2, 안 6, 전체 8이며 2+6=8입니다. MS_B=14/2=7, MS_W=6/6=1입니다. 전체 제곱합은 총 자유도 8과 연결됩니다.

Degrees are 2,6,8 with 2+6=8. MS_B=7 and MS_W=1.

39. 기본 F와 판단Default F decision

고전 독립 정규 공통분산 모형에서 K=3, N=9, MS_B=7, MS_W=1입니다. F₂,₆ 위쪽 꼬리 0.027을 α=0.05와 비교하세요.

Under the classical independent-normal common-variance model, K=3, N=9, MS_B=7, MS_W=1 and F₂,₆ upper tail .027. Decide at α=.05.

풀이와 확인할 이유Solution and explanation

F=7, p=0.027<0.05이므로 같은 평균 귀무를 기각합니다. 적어도 한 평균 차이에 대한 결론이며 모든 쌍의 차이를 확정하지 않습니다.

F=7 and .027<.05, so reject equal means. The conclusion is at least one difference, not every pair.

40. η²Eta squared

SS_B=14, SS_T=20이면 η²는 무엇이며 무엇을 뜻하지 않나요?

For SS_B=14 and SS_T=20, find η² and state what it does not mean.

풀이와 확인할 이유Solution and explanation

η²=0.7입니다. 해당 자료의 중심화 제곱합에서 집단 사이 몫입니다. 집단이 결과의 70%를 인과적으로 만들었다거나 새 자료 예측력이 70%라는 뜻은 아닙니다.

η²=.7, the between share of centered squared variation in these records. It is neither a causal 70% nor automatically 70% predictive performance on new data.

41. 단위 환산Unit conversion

모든 응답을 y*=y/60으로 바꾸면 SS_B=14, SS_W=6, F=7,η²=0.7은 어떻게 변하나요?

Convert every response to y*=y/60 when SS_B=14, SS_W=6, F=7, η²=.7. What changes?

풀이와 확인할 이유Solution and explanation

제곱합은 각각 14/3600,6/3600입니다. 두 평균제곱도 같은 비율로 줄어 F=7,η²=0.7은 유지됩니다. 원단위가 분에서 시간으로 변한 것과 무차원 요약을 구별합니다.

The sums become 14/3600 and 6/3600. Both mean squares scale equally, leaving F=7 and η²=.7. Squared physical units change while ratios do not.

42. 모든 값이 같음All values identical

A=(2,2), B=(2,2)에서 세 제곱합과 η², F를 설명하세요.

For A=(2,2), B=(2,2), describe the three SS, η² and F.

풀이와 확인할 이유Solution and explanation

세 제곱합은 모두 0입니다. η²=0/0, F=0/0이라 이 실습의 비율은 미정의입니다. 관측 평균이 같다는 기술 사실과 확률적 모집단 평균 동일성의 증명은 다릅니다.

All sums are zero. Both η² and F involve 0/0 and are undefined in this lab. Equal observed means do not prove equal population means.

43. 모두 한 점 집단All singleton groups

A=(1), B=(2), C=(3)이면 SS 분해는 성립하나요? 고전 F 분모는요?

For A=(1), B=(2), C=(3), does the SS identity hold, and is the classical F denominator defined?

풀이와 확인할 이유Solution and explanation

평균 2, SS_T=2, SS_W=0, SS_B=2라 항등식은 성립합니다. 그러나 N=K=3이라 잔차 자유도 0, MS_W도 정의되지 않아 이 실습의 F 기준을 계산하지 않습니다.

Grand mean 2 gives SS_T=2, SS_W=0, SS_B=2. The identity holds, but N=K=3 leaves zero residual df, so MS_W and the F reference are not defined.

44. 집단 안 변동 0Zero within variation

A=(0,0), B=(1,1)에서 SS_W=0입니다. p=0을 자동 출력해도 되나요?

For A=(0,0), B=(1,1), SS_W=0. Should the lab automatically output p=0?

풀이와 확인할 이유Solution and explanation

이 실습의 양의 잔차 평균제곱 피벗은 정의되지 않습니다. 관측 차이가 존재한다는 기술과 고전 연속 양의 오차분산 모형의 검정 결과를 나눠야 합니다. 숫자 ∞를 넣는 것으로 모형 적합성을 확보할 수 없습니다.

No. Its positive-residual-mean-square pivot is undefined. Distinguish the descriptive difference from a test under a positive-variance continuous error model; inserting infinity does not validate that model.

45. 전체 대안의 뜻Meaning of the omnibus alternative

모집단 평균이 (0,0,5)이면 μ₁=μ₂=μ₃ 귀무는 참인가요? 모든 쌍은 다른가요?

For population means (0,0,5), is the equal-means null true, and does every pair differ?

풀이와 확인할 이유Solution and explanation

귀무는 거짓이지만 첫 두 평균은 같습니다. 전체 대안은 적어도 한 쌍 차이이며 모든 쌍 차이가 아닙니다. 전체 F 기각만으로 개별 유의 쌍을 모두 선언할 수 없습니다.

The null is false but the first pair is equal. Omnibus alternatives require at least one difference, not every pair. Rejection does not label every individual pair significant.

46. 두 집단 F=t²Two-group F equals t squared

A=(1,2,3), B=(3,4,5)에서 pooled t²와 고전 ANOVA F를 구하세요.

For A=(1,2,3), B=(3,4,5), compute pooled t² and classical ANOVA F.

풀이와 확인할 이유Solution and explanation
d=2−4=−2SSW=4,MSW=1t2=41(1/3+1/3)=6SSB=3⋅36 4=6F=6\begin{gathered}d=2-4=-2\\SS_W=4,\quad MS_W=1\\t^2=\frac{4}{1(1/3+1/3)}=6\\SS_B=\frac{3\cdot3}{6}\,4=6\\F=6\end{gathered}

모집단 해석에서 같은 정규·독립·공통분산 조건을 쓰는 두 절차의 연결입니다.

d=2−4=−2SSW=4,MSW=1t2=41(1/3+1/3)=6SSB=3⋅36 4=6F=6\begin{gathered}d=2-4=-2\\SS_W=4,\quad MS_W=1\\t^2=\frac{4}{1(1/3+1/3)}=6\\SS_B=\frac{3\cdot3}{6}\,4=6\\F=6\end{gathered}

Inference uses the same independent-normal common-variance assumptions for both procedures.

47. 분해와 분포Identity versus distribution

SS_T=SS_W+SS_B가 성립하면 F가 정확 F 분포라는 결론이 나오나요?

Does SS_T=SS_W+SS_B imply an exact F distribution?

풀이와 확인할 이유Solution and explanation

아닙니다. 분해는 평균 정의의 대수입니다. 정확 고전 F 기준에는 귀무와 독립 정규 공통 양의 분산 모형, 양의 잔차 자유도가 더 필요합니다. 비정규·의존 자료에서도 항등식 자체는 성립합니다.

No. The identity is algebra. Exact classical calibration additionally needs the null, independent normal common-positive-variance errors and positive residual df. The algebra survives dependence and nonnormality.

48. 투영 차원Projection dimensions

비어 있지 않은 K=4개 집단, N=20에서 전체 상수·집단 대비·집단 안 잔차 공간 차원을 구하세요.

For K=4 nonempty groups and N=20, find dimensions of grand constants, group contrasts and within residuals.

풀이와 확인할 이유Solution and explanation

각각 1,3,16입니다. 전체 20=1+3+16이며 중심화 공간 19=3+16입니다. 이 직교 분해가 SS와 귀무 정규 제곱합의 자유도를 연결합니다.

They are 1,3,16. Thus 20=1+3+16 and centered dimension 19=3+16, connecting SS geometry with normal-null df.

49. 평균제곱의 기대값Expected mean squares

독립 공통분산 모형에서 nᵢ=2,μ=(0,0,3),σ²=4, K=3입니다. E[MS_B], E[MS_W]를 구하세요.

Under independent common-variance errors, nᵢ=2, μ=(0,0,3), σ²=4, K=3. Find E[MS_B] and E[MS_W].

풀이와 확인할 이유Solution and explanation

가중 평균은 1이고 Σnᵢ(μᵢ−1)²=2(1+1+4)=12입니다. 따라서 E[MS_B]=4+12/2=10, E[MS_W]=4입니다. 이 비 2.5를 E[F]라고 자동 부를 수는 없습니다.

The weighted mean is 1 and separation sum is 12. Thus E[MS_B]=10 and E[MS_W]=4. Their ratio 2.5 is not automatically E[F].

50. 대비의 분산Contrast variance

각 집단 안 관측은 iid이며 집단 사이도 독립인 공통분산 모형에서 C=(μ₁+μ₂)/2−μ₃, n=(4,4,8),σ²=16입니다. 대비 계수와 Var(Ĉ)를 구하세요.

Observations are iid within each group and independent across groups, with common variance. For C=(μ₁+μ₂)/2−μ₃, n=(4,4,8), σ²=16, find coefficients and Var(Ĉ).

풀이와 확인할 이유Solution and explanation
c=(1/2,1/2,−1),∑ci=0,Var⁡(C^)=16(1/44+1/44+18)=16(1/4)=4.\begin{aligned} c&=(1/2,1/2,-1),\quad\sum c_i=0,\\ \operatorname{Var}(\widehat C) &=16\left(\frac{1/4}{4}+\frac{1/4}{4}+\frac18\right)\\ &=16(1/4)=4. \end{aligned}

표준편차는 2입니다. 실제 추정에서 σ² 대신 MS_W를 넣는 단계는 모형 기반 SE 계산입니다.

c=(1/2,1/2,−1),∑ci=0,Var⁡(C^)=16(1/44+1/44+18)=4.\begin{aligned} c&=(1/2,1/2,-1),\quad\sum c_i=0,\\ \operatorname{Var}(\widehat C) &=16\left(\frac{1/4}{4}+\frac{1/4}{4}+\frac18\right)\\ &=4. \end{aligned}

The SD is 2. Replacing σ² by MS_W is a further model-based SE step.

51. 열 쌍의 오류 관리Ten pairwise tests

5개 집단의 모든 쌍을 비교합니다. 각 개별 검정이 유효할 때 Bonferroni로 전체 α=0.05를 관리하는 개별 기준을 구하세요.

Compare all pairs of five groups using valid individual tests. Find a Bonferroni cutoff for familywise α=.05.

풀이와 확인할 이유Solution and explanation

쌍은 5×4/2=10개이므로 각각 0.005입니다. 합집합 상계로 전체 오류≤10×0.005=0.05입니다. 검정들 사이 독립은 필요 없지만 개별 검정의 유효성은 필요합니다.

There are ten pairs, so use .005 each. The union bound gives total error at most .05 without independence among tests, but individual validity remains necessary.

52. 합친 방향의 역전Aggregation reversal

가상 과제 L에서 A=9/100, B=0/10 성공, H에서 A=10/10, B=90/100 성공입니다. 조건별과 합친 방향을 비교하세요.

In hypothetical task L, A succeeds 9/100 and B 0/10; in H, A succeeds 10/10 and B 90/100. Compare conditional and aggregated directions.

풀이와 확인할 이유Solution and explanation

L에서는 0.09>0, H에서는 1>0.9로 A가 높습니다. 그러나 합친 A는 19/110≈0.172727, B는 90/110≈0.818182입니다. 과제 구성 가중치가 달라 방향이 뒤집힙니다. 조건별 우위도 인과 효과를 자동 식별하지 않습니다.

A is higher in each task:.09>0 and 1>.9. Aggregation gives A 19/110≈.172727 versus B 90/110≈.818182. Different composition weights reverse the direction, without identifying any causal effect.

53. 실제 시대별 분모Actual period denominators

실제 주택지수 표 ((58,22),(12,28),(55,5))에서 총수와 각 행의 100 초과 비율을 구하세요.

For actual housing counts ((58,22),(12,28),(55,5)), find N and each above-100 row proportion.

풀이와 확인할 이유Solution and explanation

총수는 80+40+60=180입니다. 초과 비율은 58/80=0.725,12/40=0.3,55/60=11/12입니다. 행의 기간 길이가 달라 원빈도 58,12,55만 비교하면 노출 수를 놓칩니다.

N=180. Row proportions are .725,.3 and 11/12. Unequal period lengths mean raw counts alone ignore different record totals.

54. 국가 기준 꼬리Housing reference tail

실제 표의 X²=60012/1375, df=2입니다. χ²₂ 위쪽 꼬리가 exp(−x/2)임을 이용해 계산하고 해석 범위를 쓰세요.

For actual X²=60012/1375 and df=2, use the χ²₂ upper tail exp(−x/2), then state its scope.

풀이와 확인할 이유Solution and explanation
preference=exp⁡ ⁣(−600122750)≈3.33110965×10−10.\begin{aligned} p_{\rm reference} &=\exp\!\left(-\frac{60012}{2750}\right)\\ &\approx3.33110965\times10^{-10}. \end{aligned}

이는 선택한 χ² 기준의 꼬리입니다. 실제 180분기 기록의 시간 의존을 검증하지 않았으므로 정확 시계열 오류 확률이나 시대의 인과 효과로 부르지 않습니다.

preference=exp⁡ ⁣(−600122750)≈3.33110965×10−10.\begin{aligned} p_{\rm reference} &=\exp\!\left(-\frac{60012}{2750}\right)\\ &\approx3.33110965\times10^{-10}. \end{aligned}

This is a reference tail, not validated time-series error control or a causal period effect for the 180 quarter records.

55. 로그 임금의 가용 수Available log-wage counts

실제 학력 4구간의 가용 수는 497,992,704,817이고 전체 기록은 3613개입니다. 결측 수와 ANOVA 자유도를 구하세요.

Actual available counts across four education bands are 497,992,704,817 out of 3613 source records. Find missingness and ANOVA df.

풀이와 확인할 이유Solution and explanation

가용 합은 3010, 결측은 603입니다. K=4이므로 사이 df=3, 안 df=3006, 전체 df=3009입니다. 전체 기록 3613을 잔차 분모에 넣으면 가용 로그 제곱합과 다른 표본을 섞습니다.

The available total is 3010 and missing total 603. Between, within, total df are 3,3006,3009. Using 3613 in the residual denominator would mix a different sample with available-log SS.

56. η²에서 F 확인Check F from eta squared

K=4, N=3010,η²≈0.0991384065394721인 실제 로그 임금 자료에서 F를 제곱합 비율로 확인하세요.

For actual log wages, K=4, N=3010 and η²≈.0991384065394721. Recover F using SS ratios.

풀이와 확인할 이유Solution and explanation
F=η2/(K−1)(1−η2)/(N−K)≈0.0991384065394721/30.9008615934605279/3006≈110.2685297.\begin{aligned} F&=\frac{\eta^2/(K-1)} {(1-\eta^2)/(N-K)}\\ &\approx\frac{0.0991384065394721/3} {0.9008615934605279/3006}\\ &\approx110.2685297. \end{aligned}

공통 SS_T를 약분한 대수입니다. η² 기술량과 F 참고 꼬리 모두 교육의 인과 수익률을 자동 뜻하지 않습니다.

F=η2/(K−1)(1−η2)/(N−K)≈0.0991384065394721/30.9008615934605279/3006≈110.2685297.\begin{aligned} F&=\frac{\eta^2/(K-1)} {(1-\eta^2)/(N-K)}\\ &\approx\frac{0.0991384065394721/3} {0.9008615934605279/3006}\\ &\approx110.2685297. \end{aligned}

This cancels a common SS_T algebraically. Neither descriptive η² nor the reference F tail identifies causal returns to schooling.

57. 실제 기업과 전 장 연결Actual company link

실제 불만/이탈 표 ((200,41),(295,2614))에서 pooled z≈29.8613984588입니다. Pearson X²와 효과 차이의 원단위를 설명하세요.

For actual complaint/churn counts ((200,41),(295,2614)), pooled z≈29.8613984588. State Pearson X² and the raw proportion effect.

풀이와 확인할 이유Solution and explanation

보정 없는 X²=z²≈891.7031179입니다. 관측 비율 차이는 200/241−295/2909≈0.7284661, 즉 72.84661%p입니다. z²는 무차원 기준 통계량이고 %p 차이는 원 비율 척도의 효과 요약이며 두 값을 같은 의미로 읽지 않습니다.

Uncorrected X²=z²≈891.7031179. The observed rate difference is about .7284661, or 72.84661 percentage points. A dimensionless reference statistic and a raw rate difference serve different purposes.

58. 유한 F의 양의 꼬리A positive tail at finite extreme F

가상 실습에서 유한 F≈1.3333333333334×10³⁰⁸, df=(2,3)입니다. 꼬리가 화면에서 0이면 정확 0인가요? 꼬리 공식은 [3/(3+2F)]³ᐟ²입니다.

A hypothetical lab has finite F≈1.3333333333334×10³⁰⁸ with df=(2,3). Is a displayed zero tail exact zero? Its tail formula is [3/(3+2F)]³ᐟ².

풀이와 확인할 이유Solution and explanation
log⁡p=32{log⁡3−log⁡(3+2F)}≈−1063.6176384.\begin{aligned} \log p &=\tfrac32\{\log3-\log(3+2F)\}\\ &\approx-1063.6176384. \end{aligned}

유한 양수 F에서 진짜 꼬리는 양수입니다. 일반 부동소수점 표시는 underflow로 0이 될 수 있습니다. 2F를 먼저 계산하면 중간 overflow도 생기므로 로그 비율로 계산하며 유한 로그와 정확 0 아님을 보존합니다.

log⁡p=32{log⁡3−log⁡(3+2F)}≈−1063.6176384.\begin{aligned} \log p &=\tfrac32\{\log3-\log(3+2F)\}\\ &\approx-1063.6176384. \end{aligned}

The true tail is positive at finite F. Ordinary display can underflow to zero. Forming 2F first can also overflow, so log ratios preserve the finite log and nonzero-probability status.

59. 그룹을 한 관측씩 세분One group per observation

모든 값이 같지는 않은 N≥2개 관측을 각각 한 집단으로 만들면 η²가 왜 1이 되나요? 좋은 일반화 성능의 증거인가요?

For N≥2 nonconstant observations, why does assigning each its own group give η²=1? Does this prove good generalization?

풀이와 확인할 이유Solution and explanation

각 관측이 자기 평균이어서 SS_W=0이고, 비상수 자료에서는 SS_B=SS_T>0이라 η²=1입니다. 그러나 K=N, 잔차 자유도 0입니다. 이 과적합 기술량은 새 자료 예측력이나 고전 F 검정의 유효성을 보장하지 않습니다.

Every observation equals its own fitted group mean, so SS_W=0 and SS_B=SS_T>0. Thus η²=1, but K=N leaves zero residual df. This overfit description proves neither predictive generalization nor a valid classical F test.

60. 마지막 분석 보고 문장A final analysis report

실제 3010개 가용 로그 임금을 네 학력 구간으로 나누어 F≈110.27, p참고≈9.81×10⁻⁶⁸,η²≈0.099를 얻었습니다. 안전하고 구체적인 세 문장 보고를 써보세요.

Four education bands of 3010 available source log wages give F≈110.27, reference p≈9.81×10⁻⁶⁸ and η²≈.099. Write a precise three-sentence report.

풀이와 확인할 이유Solution and explanation

예: ‘전체 3613개 중 원 로그 임금이 있는 3010개를 학력 네 구간으로 비교했다. 관측 제곱합의 집단 사이 몫은 약 0.099이고, 독립 정규 공통분산을 작업 기준으로 계산한 F는 약 110.27, 자유도 (3,3006)이다. 해당 참고 꼬리는 매우 작지만 결측·비무작위 학력·모형 미검증 때문에 이를 교육의 인과 효과로 해석하지 않는다.’ 숫자와 단위·포함 수·가정을 함께 말합니다.

Example: “We compared four education bands among 3010 available source log wages out of 3613 records. The between share of observed centered SS was about .099; using an independent-normal common-variance working reference gave F≈110.27 with df (3,3006). Its reference tail was tiny, but missingness, nonrandom schooling and unverified model assumptions prevent a causal schooling interpretation.” Preserve counts, scale, assumptions and scope together.

자료와 출처Data and sources

실제 자료 사례Actual-data cases · 원자료·단위·결측·변환·출처Inputs, units, missingness, transformations and sources

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms