STAT-13 · STATISTICS

평균·비율 비교와 Welch 검정Comparing means and proportions; Welch tests

두 평균의 분산합에서 짝 공분산·분수 자유도·비율 귀무와 실제 비교까지From difference variance to paired covariance, fractional df, null proportions and actual comparisons

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

기초Foundations

1. 두 평균을 나란히 놓은 다음 직접 차이를 묻는다1. After placing two means side by side, ask about their difference

가상 수업 A의 평균 점수는 10, B는 9였습니다. 차이 1을 발견했다고 끝나는 것이 아닙니다. 다른 학생들을 뽑아도 그 차이가 비슷할지, 점수 단위로 1이 중요한지, 두 반이 왜 다른지까지는 서로 다른 질문입니다.

이 장은 직접 차이 Δ=μ₁−μ₂를 표적으로 삼습니다. 두 집단을 각각 0과 검정한 결과를 비교하는 대신, 차이 자체의 추정값·표준오차·구간·검정을 만듭니다. 같은 사람의 전후를 비교하면 짝을 유지하고, 독립 집단이면 독립 합의 분산을 사용합니다.

비율도 같은 원리로 시작하지만 귀무 아래 합친 비율과 일반 차이를 추정할 때의 분산이 다릅니다. 실제 국가의 같은 분기 짝, 사람의 거주 지표 집단, 고객의 불만 여부 집단을 차례로 보며 자료 생성과 원단위를 함께 확인합니다.

Hypothetical class means are 10 and 9. The difference is 1, but repeatability, practical importance and causal explanation remain different questions.

This chapter targets the direct contrast Δ=μ₁−μ₂. Rather than compare two separate versus-zero significance labels, construct an estimate, SE, interval and test for the difference itself. Preserve pairs for before/after records and use independent-sum variance for independent groups.

Proportion comparisons follow a related idea, but pooled-null variance differs from variance used to estimate a general difference. Actual same-quarter pairs, residential groups and complaint groups keep data generation and units visible.

기초Foundations

2. 어느 집단에서 어느 집단을 빼는지 먼저 쓴다2. State which group is subtracted from which

Δ=μ₁−μ₂와 μ₂−μ₁은 부호가 반대입니다. 먼저 집단 이름·변수·시점을 적고 순서를 고정하세요. 독립 집단 실습은 첫 집단−둘째 집단, 짝 실습은 after−before입니다. 실제 자료에서도 표에 그 순서를 적습니다.

Δ^=X‾1−X‾2H0:Δ=Δ0.\begin{gathered}\widehat\Delta=\overline X_1-\overline X_2\\H_0:\Delta=\Delta_0.\end{gathered}

Δ₀=0이면 같은 평균을 묻고, 양의 기준 차이를 넣으면 그 기준과의 비교입니다. 차이가 양수라는 말은 정의한 순서에서 첫 집단 평균이 더 크다는 뜻이지, 항상 더 좋다는 뜻은 아닙니다. 비용·오염·오류 횟수 같은 변수는 작은 것이 목적일 수도 있습니다.

Δ=μ₁−μ₂ reverses sign when the group order reverses. Declare names, variable and time first. Independent-group labs use first minus second; the paired lab uses after minus before.

Δ^=X‾1−X‾2H0:Δ=Δ0.\begin{gathered}\widehat\Delta=\overline X_1-\overline X_2\\H_0:\Delta=\Delta_0.\end{gathered}

Zero reference asks about equal means; a nonzero reference asks about that difference. Positive does not automatically mean better:cost, pollution or errors can favor smaller values.

기초Foundations

3. 단위와 관측 단위를 함께 맞춘다3. Align measurement units and observational units

kg 평균에서 g 평균을 그대로 빼면 잘못된 차이입니다. 두 변수를 같은 측정 좌표로 바꾸어야 합니다. 같은 통화라도 기준 연도·물가 조정·세전/세후가 다르면 다시 정의를 확인해야 합니다.

사람 100명의 평균과 같은 사람의 반복 기록 100개도 서로 다른 표집 구조입니다. ‘집단마다 행 100개’만으로 독립 정보량이 같다고 할 수 없습니다. 원행 키·사람/점포/국가 식별·반복 시점·집단 정의를 먼저 적습니다.

실제 고객 사례의 불만은 첫 9개월의 기록이고 이탈은 12개월 말 결과입니다. 집단 정의가 무작위 처치 배정을 뜻하지 않습니다. 시간 순서와 집단 비교의 기술·인과 질문을 구별합니다.

Subtracting a mean in grams from one in kilograms without conversion is invalid. Align measurement coordinates, including price base years or before/after-tax definitions when relevant.

One hundred people differ from one hundred repeated records on the same people. Equal row counts need not imply equal independent information. Record source keys, unit identifiers, time and group definitions first.

Actual complaints refer to the first nine months and churn to the end of month twelve. Defining groups does not randomize a treatment. Preserve timing and distinguish description from causality.

기초Foundations

4. 독립 집단과 짝 자료는 줄 수로 결정하지 않는다4. Row counts do not determine independence or pairing

서로 다른 사람 두 집단은 독립 표집이라는 설계가 있을 수 있습니다. 한 사람의 전후나 같은 점포의 두 시점은 대응 관계가 있으므로 짝 차이를 만들 수 있습니다. 두 열의 길이가 같다고 임의로 같은 줄을 짝지으면 안 됩니다.

짝이 있으면 두 시점 안의 상관을 버리지 않습니다. 그러나 짝들끼리도 자동 독립인 것은 아닙니다. 같은 학교·지역·시간에 속한 짝들의 의존은 별도입니다. 이 장의 기본 짝 SE는 iid 짝이라는 작업 가정을 밝힙니다.

Distinct people in two groups can support an independent-sampling design. The same person or store at two times supplies a correspondence for paired differences. Equal column lengths alone do not justify pairing arbitrary rows.

Preserve within-pair covariance, but do not automatically assume different pairs are independent. Shared schools, regions or times can introduce another dependence layer. The basic paired SE declares an iid-pairs working assumption.

기초Foundations

5. 직접 차이의 기대값과 오차를 생각한다5. Consider the expectation and error of the direct difference

집단별 표본평균이 각 모평균에 불편이면 차이도 Δ에 불편입니다. 이 기대값 계산 자체에는 집단 간 독립이 필요하지 않습니다. 독립은 뒤에서 오차의 분산을 단순하게 더할 때 사용합니다.

E[Δ^]=E[X‾1]−E[X‾2]=μ1−μ2.E[\widehat\Delta] =E[\overline X_1]-E[\overline X_2] =\mu_1-\mu_2.

불편하다고 이번 관측 차이가 참 차이와 같다는 뜻은 아닙니다. 오차 Δ̂−Δ가 표본마다 얼마나 바뀌는지 알아야 구간과 검정을 만들 수 있습니다. 결측·선택 때문에 집단별 가용 평균이 원래 목표를 추정하는지도 먼저 판단해야 합니다.

If each group mean is unbiased for its population mean, their difference is unbiased for Δ. This expectation identity does not itself require between-group independence. Independence enters the simpler variance sum.

E[Δ^]=E[X‾1]−E[X‾2]=μ1−μ2.E[\widehat\Delta] =E[\overline X_1]-E[\overline X_2] =\mu_1-\mu_2.

Unbiasedness does not make one observed difference equal the target. Study its sampling error. Also check whether available group means actually target the intended populations under missingness and selection.

기초Foundations

6. 독립이면 두 평균의 분산이 더해진다6. Independent means contribute a sum of variances

각 집단 안에서 iid이고 집단 사이도 독립이며 유한 분산 σ₁², σ₂²를 가진다고 합시다. 차이의 분산은 다음과 같습니다. 빼는 연산인데 분산이 더해지는 이유는 −1이 제곱되기 때문입니다.

Var⁡(X‾1−X‾2)=Var⁡(X‾1)+Var⁡(X‾2)−2Cov⁡(X‾1,X‾2)=σ12/n1+σ22/n2.\begin{gathered} \operatorname{Var}(\overline X_1-\overline X_2) =\operatorname{Var}(\overline X_1) +\operatorname{Var}(\overline X_2)\\ \quad-2\operatorname{Cov}(\overline X_1,\overline X_2)\\ =\sigma_1^2/n_1+\sigma_2^2/n_2. \end{gathered}

마지막 줄은 집단 간 독립으로 공분산을 0으로 놓았습니다. 독립이 없어도 공분산 0인 경우는 있지만, 근거 없이 0을 넣을 수는 없습니다. 이 분산 항등식에 정규성은 필요하지 않고, 정확 정규 참조를 쓰는 다음 단계에서 정규 조건을 추가합니다.

Assume iid observations within each group, independence between groups and finite variances σ₁², σ₂². Subtraction still adds variance because the coefficient−1 is squared.

Var⁡(X‾1−X‾2)=σ12/n1+σ22/n2−2Cov⁡(X‾1,X‾2)=σ12/n1+σ22/n2.\begin{gathered} \operatorname{Var}(\overline X_1-\overline X_2) =\sigma_1^2/n_1+\sigma_2^2/n_2\\ \quad-2\operatorname{Cov}(\overline X_1,\overline X_2)\\ =\sigma_1^2/n_1+\sigma_2^2/n_2. \end{gathered}

Between-group independence sets covariance to zero. It is sufficient, not necessary, for zero covariance. The variance identity needs no normality; the exact normal pivot adds normal-sampling conditions next.

기초Foundations

7. 알려진 두 σ의 정규 차이를 표준화한다7. Standardize a normal difference with two known SDs

독립인 두 iid 정규 집단에서 σ₁, σ₂를 안다면 평균 차이도 정규입니다. 전체 차이 분산이 양수일 때 귀무 Δ=Δ₀의 z통계량과 구간을 만듭니다.

V=σ12/n1+σ22/n2>0,Z0=(Δ^−Δ0)/V,H0⟹Z0∼N(0,1),C=Δ^±z1−α/2V.\begin{gathered} V=\sigma_1^2/n_1+\sigma_2^2/n_2>0,\\ Z_0=(\widehat\Delta-\Delta_0)/\sqrt V,\\ H_0\Longrightarrow Z_0\sim N(0,1),\\ C=\widehat\Delta\pm z_{1-\alpha/2}\sqrt V. \end{gathered}

집단별 n이 같을 필요는 없습니다. 원단위 차이와 그 SE를 보고, 표준화한 숫자는 그 다음에 읽습니다. 두 집단 분산이 모두 0이면 양의 SE 피벗을 쓰지 않으며 알려진 상수법칙으로 별도 해석해야 합니다.

Two independent iid normal groups with known SDs yield a normal mean difference. If total difference variance is positive, the null pivot and interval are

V=σ12/n1+σ22/n2>0,Z0=(Δ^−Δ0)/V,H0⟹Z0∼N(0,1),C=Δ^±z1−α/2V.\begin{gathered} V=\sigma_1^2/n_1+\sigma_2^2/n_2>0,\\ Z_0=(\widehat\Delta-\Delta_0)/\sqrt V,\\ H_0\Longrightarrow Z_0\sim N(0,1),\\ C=\widehat\Delta\pm z_{1-\alpha/2}\sqrt V. \end{gathered}

Group sizes need not match. Read raw difference and SE before the standardized statistic. If both variances are zero, use a separate known-constant model rather than this positive-SE pivot.

기초Foundations

8. 두 표준오차를 그냥 더하지 않는다8. Do not simply add two standard errors

가상 독립 정규 집단에서 평균은 10과 9, 알려진 σ는 2와 3, n₁=n₂=25입니다. 두 평균의 SE는 .4와 .6입니다. 차이의 SE는 .4+.6이 아니라 제곱을 더해 제곱근을 취합니다.

Δ^=1,V=.42+.62=.52,SE⁡(Δ^)=.52≈.7211103,z0=1/.52≈1.3867505.\begin{gathered} \widehat\Delta=1,\\ V=.4^2+.6^2=.52,\\ \operatorname{SE}(\widehat\Delta)=\sqrt{.52}\approx .7211103,\\ z_0=1/\sqrt{.52}\approx1.3867505. \end{gathered}

귀무 기준 0의 양쪽 .05에서는 1.95996보다 작아 비기각입니다. 이번 차이 1이 참으로 0이라는 증명이 아니라, 정한 모형과 표본 정밀도에서의 판단입니다.

Hypothetical independent normal groups have means 10 and 9, known SDs 2 and 3, and n₁=n₂=25. Their mean SEs are .4 and .6. The difference SE is not .4+.6.

Δ^=1V=.42+.62=.52,SE⁡=.52≈.7211103,z0=1/.52≈1.3867505.\begin{gathered} \widehat\Delta=1\\V=.4^2+.6^2=.52,\\ \operatorname{SE}=\sqrt{.52}\approx .7211103,\\ z_0=1/\sqrt{.52}\approx1.3867505. \end{gathered}

A two-sided .05 test against zero does not reject. That is a model-based precision judgment, not proof of zero difference.

기초Foundations

9. 독립 차이 실습: 어느 집단이 분산을 더 많이 보태는가9. Difference lab: which group contributes more variance?

두 집단의 평균·알려진 표준편차·표본 크기를 바꾸세요. 분산 기여 σ₁²/n₁와 σ₂²/n₂를 따로 보고 어느 집단을 더 관측하면 SE가 많이 줄어들지 생각합니다. 평균 차이가 같아도 분모가 바뀌면 구간 폭과 p값은 달라집니다.

기본 .52를 맞춘 뒤 첫 집단 n만 늘리고 둘째 집단 n만 늘린 결과를 비교합니다. 독립 집단의 설정이며 같은 사람 두 열에는 공분산을 버린 채 그대로 적용하지 않습니다.

Change means, known SDs and group sizes. Inspect σ₁²/n₁ and σ₂²/n₂ separately before deciding where extra observations would most reduce SE. Fixed mean differences can have different interval widths and p-values.

Match the default variance .52, then increase one group size at a time. This is an independent-group setting, not a rule that discards covariance between two measurements on the same people.

기초Foundations

10. 두 s도 서로 다른 모분산을 추정할 수 있다10. Two sample SDs can estimate different population variances

현장에서는 σ₁, σ₂를 모르는 경우가 많습니다. 각 집단 nⱼ≥2에서 sⱼ²=Σ(Xⱼᵢ−X̄ⱼ)²/(nⱼ−1)을 계산합니다. 두 집단이 독립이면 각각의 s를 넣은 V̂=s₁²/n₁+s₂²/n₂로 차이 분산을 추정할 수 있습니다.

그렇다고 분모를 추정한 비율이 정확 표준정규가 되는 것은 아닙니다. 두 모분산이 같은 추가 모형과 서로 달라도 되는 모형을 구별해야 합니다. 표본 SD 두 개가 눈으로 비슷해 보이는 것과 모분산이 같다는 과학적 가정도 같지 않습니다.

Population SDs are often unknown. With nⱼ≥2, compute sⱼ² from each group using denominator nⱼ−1. Under independent groups, V̂=s₁²/n₁+s₂²/n₂ estimates the difference variance.

Plugging in estimated spreads does not produce an exact standard-normal pivot. Distinguish a common-population-variance model from one allowing unequal variances. Similar-looking observed SDs do not establish equal population variances.

기초Foundations

11. 같은 모분산을 가정하면 잔차 제곱합을 모은다11. A common-variance model pools residual sums of squares

두 독립 iid 정규 집단의 모분산이 같은 σ²라고 추가 가정합시다. 각 집단의 잔차 제곱합은 (nⱼ−1)sⱼ²이며, 둘을 더해 전체 잔차 자유도 n₁+n₂−2로 나누면 pooled 분산입니다.

sp2=(n1−1)s12+(n2−1)s22n1+n2−2,V^pooled=sp2(1/n1+1/n2).\begin{gathered} s_p^2=\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2},\\ \widehat V_{\rm pooled} =s_p^2(1/n_1+1/n_2). \end{gathered}

두 s²를 단순 반반 평균한 것이 아닙니다. 집단별 잔차 자유도로 가중했습니다. 집단 평균 차이가 만드는 집단 사이 제곱합을 이 안에 넣지도 않습니다. 같은 σ²의 두 잔차 정보를 모으는 계산입니다.

Now additionally assume two independent iid normal groups share population variance σ². Their residual sums of squares are (nⱼ−1) sⱼ². Add them and divide by total residual degrees of freedom.

sp2=(n1−1)s12+(n2−1)s22n1+n2−2,V^pooled=sp2(1/n1+1/n2).\begin{gathered} s_p^2=\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2},\\ \widehat V_{\rm pooled}=s_p^2(1/n_1+1/n_2). \end{gathered}

This weights by residual degrees of freedom rather than averaging two variances equally. It does not add the between-group mean difference to the within-group residual sum.

대학원 연결Graduate bridge

12. pooled t의 정확성은 공통 σ와 정규 독립성을 사용한다12. Exact pooled t calibration uses common SD and normal independence

선택 심화입니다. n₁, n₂≥2이고 독립 iid 정규 집단이 양의 공통 분산 σ²를 가지면, 각 잔차 제곱합/σ²는 서로 독립인 χ²입니다. 합은 자유도 n₁+n₂−2의 χ²이고 두 표본 평균과도 독립입니다.

(n1+n2−2)sp2σ2∼χn1+n2−22,Tp=Δ^−Δ0sp1/n1+1/n2,H0⟹Tp∼tn1+n2−2.\begin{gathered} \frac{(n_1+n_2-2)s_p^2}{\sigma^2} \sim\chi^2_{n_1+n_2-2},\\ T_p=\frac{\widehat\Delta-\Delta_0} {s_p\sqrt{1/n_1+1/n_2}},\\ H_0\Longrightarrow T_p\sim t_{n_1+n_2-2}. \end{gathered}

두 n이 같아야만 이 결과가 성립하는 것은 아닙니다. 대신 공통 모분산과 정규 표집 조건이 핵심입니다. 모분산이 다르면 두 잔차 항의 척도가 달라져 이 합을 같은 σ²의 χ²로 묶는 증명을 그대로 쓸 수 없습니다.

Optional theory:independent iid normal groups, n₁, n₂≥2, with common positive σ² have independent residual chi-square sums. Their sum is chi-square with n₁+n₂−2 degrees of freedom, and independent of the group means.

(n1+n2−2)sp2σ2∼χn1+n2−22,Tp=Δ^−Δ0sp1/n1+1/n2,H0⟹Tp∼tn1+n2−2.\begin{gathered} \frac{(n_1+n_2-2)s_p^2}{\sigma^2} \sim\chi^2_{n_1+n_2-2},\\ T_p=\frac{\widehat\Delta-\Delta_0} {s_p\sqrt{1/n_1+1/n_2}},\\ H_0\Longrightarrow T_p\sim t_{n_1+n_2-2}. \end{gathered}

Equal sample sizes are not required. Common variance and normal sampling are the key conditions. Unequal variances give differently scaled residual terms, invalidating this direct common-scale chi-square proof.

기초Foundations

13. 작은 집단의 큰 분산을 지우면 분모가 달라진다13. Pooling can obscure a large variance in a small group

가정 표본에서 n₁=25, s₁=2, n₂=10, s₂=4라 합시다. 각 집단 분산을 유지하면 V̂=4/25+16/10=1.76입니다. pooled 방식은 서로 다른 식을 줍니다.

sp2=24⋅4+9⋅1633=8011V^pooled=8011(1/25+1/10)=5655V^separate=44/25=1.76\begin{gathered}s_p^2=\frac{24\cdot4+9\cdot16}{33}=\frac{80}{11}\\\widehat V_{\rm pooled}\\=\frac{80}{11}(1/25+1/10)=\frac{56}{55}\\\widehat V_{\rm separate}=44/25=1.76\end{gathered}

두 분모가 같지 않습니다. 이 숫자만으로 모분산을 증명할 수는 없지만, 공통 분산 가정을 넣는 일이 단순한 편의가 아님을 보여 줍니다. 어느 절차가 이 자료 법칙에서 맞는 오류를 갖는지는 생성 조건과 근사 범위를 따져야 합니다.

Take hypothetical n₁=25, s₁=2, n₂=10, s₂=4. Keeping separate variances gives V̂=4/25+16/10=1.76. Pooling gives another expression.

sp2=24⋅4+9⋅1633=8011V^pooled=8011(1/25+1/10)=5655V^separate=44/25=1.76\begin{gathered}s_p^2=\frac{24\cdot4+9\cdot16}{33}=\frac{80}{11}\\\widehat V_{\rm pooled}\\=\frac{80}{11}(1/25+1/10)=\frac{56}{55}\\\widehat V_{\rm separate}=44/25=1.76\end{gathered}

The denominators differ. These observed numbers do not prove population variances, but show that the common-variance assumption is consequential. Error performance still depends on the generating law and approximation scope.

기초Foundations

14. Welch는 집단별 분산 기여를 따로 유지한다14. Welch retains separate group variance contributions

독립 두 집단의 평균 차이를 추정할 때 Welch 통계량은 s₁²/n₁와 s₂²/n₂를 더한 SE를 사용합니다. 각 n≥2이고 전체 추정 분산이 양수라고 둡니다.

V^=v1+v2vj=sj2/nj,TW=Δ^−Δ0V^.\begin{gathered} \widehat V=v_1+v_2\\v_j=s_j^2/n_j,\\ T_W=\frac{\widehat\Delta-\Delta_0}{\sqrt{\widehat V}}. \end{gathered}

Welch라고 적었다고 모든 모형에서 정확 t법칙이 생기는 것은 아닙니다. 다음의 Satterthwaite 자유도는 분모의 변동을 χ²와 모멘트로 맞추는 근사입니다. 일반 이분산 정규 표본에서도 유한 표본 t참조는 보통 근사입니다. 비정규 자료에서는 추가로 평균 근사의 조건과 이상값·꼬리를 살펴야 합니다.

Welch uses separate contributions s₁²/n₁ and s₂²/n₂ for the SE. Require n₁, n₂≥2 and positive total estimated variance.

V^=v1+v2vj=sj2/nj,TW=(Δ^−Δ0)/V^.\begin{gathered} \widehat V=v_1+v_2\\v_j=s_j^2/n_j,\\ T_W=(\widehat\Delta-\Delta_0)/\sqrt{\widehat V}. \end{gathered}

The label does not create an exact t law under every model. Satterthwaite degrees of freedom use a moment-matched chi-square approximation. In general unequal-variance normal samples, the finite-sample t reference is still approximate. Nonnormal sources additionally require assessment of mean approximation, tails and influential observations.

대학원 연결Graduate bridge

15. 분모의 두 모멘트를 맞춰 자유도를 유도한다15. Match two denominator moments to derive degrees of freedom

선택 심화입니다. n₁, n₂≥2인 독립 정규 집단이고 V=σ₁²/n₁+σ₂²/n₂>0이라고 합시다. sⱼ²의 분산은 2σⱼ⁴/(nⱼ−1)입니다. V̂=s₁²/n₁+s₂²/n₂의 기대값 V와 분산을 계산하고, Vχ²_ν/ν의 두 모멘트에 맞춥니다.

V=σ12/n1+σ22/n2,Var⁡(V^)=2∑j=12σj4nj2(nj−1),Var⁡(Vχν2/ν)=2V2/ν.\begin{gathered} V=\sigma_1^2/n_1+\sigma_2^2/n_2,\\ \operatorname{Var}(\widehat V) =2\sum_{j=1}^2\frac{\sigma_j^4}{n_j^2(n_j-1)},\\ \operatorname{Var}(V\chi_\nu^2/\nu)=2V^2/\nu. \end{gathered}

알 수 없는 σ²를 표본 s²로 바꾸면 실제로 계산하는 Welch–Satterthwaite 자유도를 얻습니다. 평균만 맞춘 것이 아니라 분산도 맞춘 근사입니다.

ν^=(v1+v2)2v12/(n1−1)+v22/(n2−1).\widehat\nu= \frac{(v_1+v_2)^2} {v_1^2/(n_1-1)+v_2^2/(n_2-1)}.

두 모멘트가 같다고 전체 분포가 같아지는 것은 아닙니다. 또 ν̂ 자체가 표본에 따라 달라집니다. 이 두 점 때문에 일반적인 유한 정규 표본에서 이 t보정을 정확 피벗이라고 부르지 않습니다.

Optional theory:take independent normal groups with n₁, n₂≥2 and V=σ₁²/n₁+σ₂²/n₂>0. Then Var(sⱼ²)=2σⱼ⁴/(nⱼ−1). Match the mean and variance of V̂=s₁²/n₁+s₂²/n₂ to Vχ²_ν/ν.

V=σ12/n1+σ22/n2,Var⁡(V^)=2∑j=12σj4nj2(nj−1),Var⁡(Vχν2/ν)=2V2/ν.\begin{gathered} V=\sigma_1^2/n_1+\sigma_2^2/n_2,\\ \operatorname{Var}(\widehat V) =2\sum_{j=1}^2\frac{\sigma_j^4}{n_j^2(n_j-1)},\\ \operatorname{Var}(V\chi_\nu^2/\nu)=2V^2/\nu. \end{gathered}

Replacing unknown population variances by their sample estimates gives

ν^=(v1+v2)2v12/(n1−1)+v22/(n2−1).\widehat\nu= \frac{(v_1+v_2)^2} {v_1^2/(n_1-1)+v_2^2/(n_2-1)}.

Matching two moments does not equate entire distributions, and ν̂ is itself sample-dependent. These are reasons not to claim a generally exact finite-sample pivot.

학부 연결 · 선택Undergraduate bridge · optional

16. 분수 자유도는 반올림하지 않아도 된다16. Fractional degrees of freedom need not be rounded

ν̂는 독립 원관측 수를 직접 센 정수만을 뜻하지 않습니다. 분모 변동을 맞춘 양수 실수이며 t법칙은 양의 실수 자유도에도 정의됩니다. 현대 계산에서는 정수로 내리지 않고 이 값을 그대로 쓸 수 있습니다.

v₁, v₂≥0이고 합이 양수라면 다음 범위에 놓입니다. nⱼ≥2라는 조건이 분모의 0을 막습니다.

min⁡(n1−1,n2−1)≤ν^≤n1+n2−2.\min(n_1-1,n_2-1) \le\widehat\nu\le n_1+n_2-2.

위쪽은 Cauchy–Schwarz로 v₁²/d₁+v₂²/d₂≥(v₁+v₂)²/(d₁+d₂)를 얻어 보입니다. 아래쪽은 각 dⱼ가 최소 d 이상이므로 분모가 (v₁+v₂)²/min d 이하임을 사용합니다. 정수 표에서 아래 정수로 읽는 보수적 근사와 소프트웨어의 실수 자유도 결과는 숫자가 다를 수 있습니다.

ν̂ is a positive real number matching denominator variation, not simply a count of original observations. A t distribution is defined for positive real degrees of freedom, so numerical software need not round it down.

For nonnegative v₁, v₂ with positive sum and nⱼ≥2,

min⁡(n1−1,n2−1)≤ν^≤n1+n2−2.\min(n_1-1,n_2-1) \le\widehat\nu\le n_1+n_2-2.

Cauchy–Schwarz gives the upper bound via v₁²/d₁+v₂²/d₂≥(v₁+v₂)²/(d₁+d₂). For the lower bound, the denominator is at most (v₁+v₂)²/min d. A rounded-down printed-table approximation can differ from software using fractional df.

기초Foundations

17. 자유도 792/73을 그대로 계산한다17. Calculate degrees of freedom 792/73 without rounding

앞의 가정 표본 n₁=25, s₁=2, n₂=10, s₂=4에서 v₁=4/25, v₂=8/5입니다. 합은 44/25이고 Welch 자유도는 다음과 같습니다.

ν^=(44/25)2(4/25)2/24+(8/5)2/9=79273≈10.84931507.\begin{gathered} \widehat\nu =\frac{(44/25)^2} {(4/25)^2/24+(8/5)^2/9}\\ =\frac{792}{73}\approx10.84931507. \end{gathered}

pooled 자유도 33과 다릅니다. 단순히 전체 원소가 35개이므로 33을 모든 분모에 붙이지 않습니다. 큰 분산 기여가 작은 둘째 집단에서 와서 분모 추정이 덜 안정적이라는 사실을 ν̂가 반영합니다. 이는 관측 요약에서 만든 근사 자유도이지 새로 관측한 사람 수가 아닙니다.

For hypothetical n₁=25, s₁=2, n₂=10, s₂=4, the contributions are 4/25 and 8/5. Their sum is 44/25.

ν^=(44/25)2(4/25)2/24+(8/5)2/9=792/73≈10.84931507.\begin{gathered} \widehat\nu =\frac{(44/25)^2} {(4/25)^2/24+(8/5)^2/9}\\ =792/73\approx10.84931507. \end{gathered}

This differs from pooled df 33. A smaller group supplies the larger variance contribution, making the denominator less stable. Fractional df summarizes that moment-based approximation; it is not a new count of people.

기초Foundations

18. Welch 실습: 분모와 자유도를 함께 비교한다18. Welch lab: compare the denominator and degrees of freedom together

집단별 s와 n을 바꾸며 v₁, v₂를 먼저 읽으세요. 같은 관측 차이라도 Welch와 공통분산 pooled의 SE·자유도·p값·구간이 달라질 수 있습니다. 둘 중 유리한 p값을 골라 보고하는 기능으로 사용하지 않습니다.

기본값에서 V̂=1.76,ν̂≈10.849315를 재현하세요. 한 표본 s가 0이어도 다른 기여가 양수면 식은 계산되지만, 관측 0분산을 그 집단의 알려진 상수법칙으로 단정하지 않습니다. 둘 다 0이면 양의 SE 검정통계량은 미정의입니다.

Change group SDs and sizes, and inspect v₁, v₂ first. Welch and common-variance pooled calculations can give different SEs, df, p-values and intervals for the same observed contrast. Do not choose a method by which p-value is more favorable.

Reproduce V̂=1.76 and ν̂≈10.849315. A zero observed SD in one sample still permits arithmetic if the other contribution is positive, but does not establish a known constant population. Two zero contributions leave the positive-SE pivot undefined.

기초Foundations

19. 분산 검정의 비기각을 등분산 증명으로 쓰지 않는다19. A variance-test nonrejection does not prove equal variances

‘먼저 분산 같음 검정을 하고 비기각이면 pooled를 쓰자’는 규칙도 자료에 따른 선택을 포함합니다. 앞 장에서 배운 것처럼 비기각은 같은 분산의 증명이 아닙니다. 전체 두 단계 절차의 오류는 각 단계 하나의 명목 수준만으로 정해지지 않습니다.

관측 단위와 표집·정규 조건을 먼저 판단하고 공통 분산의 실질적 근거가 있는지 살핍니다. Welch는 그 공통성 가정을 강제하지 않는 선택이지만 모든 의존·결측·극단 꼬리·아주 작은 표본의 문제를 자동 해결하지는 않습니다. 방법 이름 대신 질문과 조건을 보고합니다.

“First test variances, then use pooling after nonrejection” is itself a data-dependent two-stage rule. Nonrejection does not prove common variance, and the entire rule’s error is not determined by a single stage’s nominal level.

Assess units, sampling and distributional assumptions first. Welch avoids imposing common variance, but does not automatically solve dependence, missingness, extreme tails or every very-small-sample problem. Report questions and conditions, not only a method name.

기초Foundations

20. 같은 사람의 전후는 변화 하나로 묶는다20. A before/after pair contributes one change

같은 단위 i의 before를 Xᵢ, after를 Yᵢ라 하고 Dᵢ=Yᵢ−Xᵢ로 정합니다. n개의 완전한 같은 짝에서 평균 변화는 after 평균−before 평균과 같습니다.

D‾=1n∑i=1n(Yi−Xi)=Y‾−X‾.\overline D=\frac1n\sum_{i=1}^n(Y_i-X_i) =\overline Y-\overline X.

이 항등식은 같은 짝·같은 분모를 사용할 때 성립합니다. before가 있는 사람 전부와 after가 있는 사람 전부를 따로 평균하면 구성원이 달라질 수 있습니다. 그 차이는 완전 짝의 평균 변화와 다른 표적입니다. 실제 같은 시점·대상 대응 관계를 확인하고 줄을 맞춥니다.

Let Xᵢ be before and Yᵢ after for the same unit, and define Dᵢ=Yᵢ−Xᵢ. For the same n complete pairs, the mean change equals the difference of paired means.

D‾=1n∑i(Yi−Xi)=1n∑iYi−1n∑iXi\begin{gathered}\overline D=\frac1n\sum_i(Y_i-X_i)\\=\frac1n\sum_iY_i-\frac1n\sum_iX_i\end{gathered}

The identity uses the same records and denominator. Separately averaging every available before and every available after value can change membership and target. Verify actual correspondence before aligning rows.

기초Foundations

21. 짝 공분산은 변화의 분산 안에 남는다21. Pair covariance remains in the change variance

n≥2개의 같은 완전 짝에서 표본분산과 공분산의 분모를 모두 n−1로 맞추고 제곱을 전개하면 다음 항등식을 얻습니다. 이 단계는 표본의 대수이며 표집 독립을 필요로 하지 않습니다.

sD2=sY2+sX2−2sXY,SE⁡^(D‾)2=sD2/n.\begin{gathered} s_D^2=s_Y^2+s_X^2-2s_{XY},\\ \widehat{\operatorname{SE}}(\overline D)^2=s_D^2/n. \end{gathered}

마지막 줄을 추정 표집분산으로 읽을 때는 iid 짝 같은 추가 작업 가정을 사용합니다. 양의 공분산은 차이 분산을 낮추고 음의 공분산은 높입니다. 짝을 유지하는 것이 언제나 독립 표본보다 작은 SE를 보장한다는 뜻은 아닙니다. 설계가 허용하는 실제 의존을 제대로 계산하는 것이 목적입니다.

For n≥2 identical complete pairs, use denominator n−1 in both sample variances and covariance. Expanding centered squares gives an algebraic identity without a sampling-independence assumption.

sD2=sY2+sX2−2sXY,SE⁡^(D‾)2=sD2/n.\begin{gathered} s_D^2=s_Y^2+s_X^2-2s_{XY},\\ \widehat{\operatorname{SE}}(\overline D)^2=s_D^2/n. \end{gathered}

The second line additionally uses a working sampling assumption such as iid pairs. Positive covariance lowers difference variance and negative covariance raises it. Correct pairing is about the actual design, not a universal promise of smaller SE.

기초Foundations

22. 네 짝의 차이 1,2,0,1을 손으로 푼다22. Work through four paired changes1, 2, 0, 1

가정 before=(1,2,3,4), after=(2,4,3,5)입니다. 같은 위치가 실제 같은 단위라는 가정으로 D=(1,2,0,1)을 만듭니다. 0 변화도 가용 관측이어서 분모에 들어갑니다.

D‾=1∑(Di−D‾)2=02+12+(−1)2+02=2sD2=2/3SE⁡^2=1/6t0=1/1/6=6\begin{gathered}\overline D=1\\\sum(D_i-\overline D)^2\\=0^2+1^2+(-1)^2+0^2=2\\s_D^2=2/3\\\widehat{\operatorname{SE}}^2=1/6\\t_0=1/\sqrt{1/6}=\sqrt6\end{gathered}

iid 정규 변화라는 작업 모형이면 자유도 3의 t참조를 씁니다. 같은 짝에서 sX²=sY²=5/3, sXY=4/3이므로 변화 분산 2/3이 맞는지도 독립 검산할 수 있습니다. before와 after를 독립으로 바꾸면 10/3이라는 다른 분산을 쓰게 됩니다.

Toy before values are (1, 2, 3, 4), after (2, 4, 3, 5), with positions declared to identify the same units. Changes are (1, 2, 0, 1). Zero change is an available observation.

D‾=1∑(Di−D‾)2=02+12+(−1)2+02=2sD2=2/3SE⁡^2=1/6t0=1/1/6=6\begin{gathered}\overline D=1\\\sum(D_i-\overline D)^2\\=0^2+1^2+(-1)^2+0^2=2\\s_D^2=2/3\\\widehat{\operatorname{SE}}^2=1/6\\t_0=1/\sqrt{1/6}=\sqrt6\end{gathered}

A working iid-normal-changes model gives t₃ calibration. Verify the algebra separately using sX²=sY²=5/3 and sXY=4/3. Treating the waves as independent instead substitutes variance 10/3.

학부 연결 · 선택Undergraduate bridge · optional

23. 정확 짝 t는 변화의 정규성을 가정한다23. Exact paired t calibration assumes normal changes

표적은 D의 평균입니다. D₁,…, D_n이 iid N(μD, σD²), n≥2, σD>0이면 한 표본 t증명을 그대로 적용합니다. X와 Y가 짝 안에서 독립이어야 하는 것은 아닙니다.

D‾−Δ0sD/n ∼H0 tn−1.\frac{\overline D-\Delta_0}{s_D/\sqrt n} \ \stackrel{H_0}{\sim}\ t_{n-1}.

before와 after 각각의 정규 주변분포만으로 D의 정규성이 자동 증명되지는 않습니다. 결합 정규 모형이면 선형 차이의 정규성이 따라오지만, 주변분포만 정규인 다른 결합법칙도 가능합니다. 큰 표본 근사에서는 변화의 꼬리와 짝 사이 의존을 살펴야 합니다.

The target is the mean of D. If D₁,…, D_n are iid N(μD, σD²), n≥2, σD>0, the one-sample t proof applies. Independence of X and Y within a pair is unnecessary.

D‾−Δ0sD/n ∼H0 tn−1.\frac{\overline D-\Delta_0}{s_D/\sqrt n} \ \stackrel{H_0}{\sim}\ t_{n-1}.

Normal marginal distributions of X and Y alone do not establish a normal difference. Joint normality would justify the linear transformation, but other dependence structures can share normal marginals. For asymptotic methods, inspect change tails and between-pair dependence.

기초Foundations

24. 한쪽 결측을 따로 지우면 짝이 바뀔 수 있다24. Separately dropping missing waves can break pairs

가정 before=(1, 미관측,3), after=(2,4, 미관측)을 보세요. 각 열의 결측을 따로 지우면 (1,3)과 (2,4)를 만들지만, 둘째 줄의 3과 4는 같은 단위가 아니었습니다. 이 둘을 짝 차이로 계산하면 가짜 대응이 생깁니다.

완전 짝은 첫 줄 하나뿐입니다. 평균 변화 1은 계산되지만 표본변화분산을 추정하는 n−1 분모는 0이어서 t절차는 미정의입니다. 실제 실습은 원행 위치를 유지하고 어느 한쪽이 미관측인 줄을 완전짝 계산에서 함께 제외합니다. 제외가 모집단의 대표성을 보장하는지는 별도 결측 가정의 문제입니다.

Take before=(1, missing, 3), after=(2, 4, missing). Dropping each column’s markers separately creates (1, 3) and (2, 4), but three and four were not the same unit. Pairing them invents a correspondence.

Only the first row is complete. Its change mean is 1, but n−1 is zero and the sample-variance t procedure is undefined. The lab preserves source positions and jointly excludes incomplete rows. Complete-pair selection does not automatically ensure population representativeness.

기초Foundations

25. 짝 실습: 각 원행의 after−before부터 확인한다25. Paired lab: inspect after minus before for every source row

before와 after를 같은 줄에 적고 차이 표를 읽으세요. 0은 실제 수치이며, 미관측 표식과 다릅니다. 완전 짝 수·제외 수·변화 평균·변화 분산·짝 공분산을 차례로 확인합니다.

기본 네 짝의 2/3 변화 분산을 재현하세요. after 열의 순서만 바꾸면 서로 다른 짝을 만든 것이므로 원자료의 대응이 유지되는지 먼저 판단해야 합니다. 임의 정렬로 더 작은 p값을 얻는 것이 분석 개선은 아닙니다.

Enter before and after on matched source rows. Read changes first, then complete/incomplete counts, mean change, variance and covariance. Zero is numeric data, not a missing marker.

Reproduce the default change variance 2/3. Reordering only the after column changes pairs. Check provenance rather than using arbitrary alignment to obtain a smaller p-value.

기초Foundations

26. 가정 상관은 설계에 따른 차이 정밀도를 바꾼다26. Assumed correlation changes difference precision under a design

같은 단위의 두 측정이 양의 σX, σY와 상관 ρ를 가진다는 가정 모형에서, 차이의 분산은 σX²+σY²−2ρσXσY입니다. iid 짝 n개 평균에는 이를 n으로 나눕니다.

VD=σX2+σY2−2ρσXσY,Var⁡(D‾)=VD/n.\begin{gathered} V_D=\sigma_X^2+\sigma_Y^2-2\rho\sigma_X\sigma_Y,\\ \operatorname{Var}(\overline D)=V_D/n. \end{gathered}

σX=σY=2,ρ=.8, n=25이면 VD=1.6이고 SE≈.2529822입니다. 독립인 두 집단 각 25개의 참조는 SE=√(8/25)≈.5656854입니다. 같은 분포의 주변 변동이라도 설계가 다르면 차이의 정밀도가 달라질 수 있습니다.

어느 σ가 0이면 표준 상관계수는 미정의이며 공분산은 0입니다. 입력 ρ를 그대로 ‘정의된 상관’이라고 표시하지 않습니다. 두 σ가 양수이고 ρ=1, 두 σ가 같으면 차이 분산 0인 유효한 가정 모형도 가능합니다. 이것은 표본 sD=0만 보고 원법칙을 상수라고 단정하는 것과 다릅니다.

For an assumed pair with positive σX, σY and correlation ρ, the difference variance is σX²+σY²−2ρσXσY. Divide by n for an iid-pair mean.

VD=σX2+σY2−2ρσXσY,Var⁡(D‾)=VD/n.\begin{gathered} V_D=\sigma_X^2+\sigma_Y^2-2\rho\sigma_X\sigma_Y,\\ \operatorname{Var}(\overline D)=V_D/n. \end{gathered}

At σX=σY=2,ρ=.8, n=25, VD=1.6 and SE ≈.2529822. An independent-two-group reference with 25 per group has SE ≈.5656854. Equal marginal variation does not imply equal design precision.

If either SD is zero, correlation is undefined and covariance zero. An input ρ must not be reported as a defined correlation there. With positive equal SDs and ρ=1, a genuinely degenerate difference is a valid assumed model, distinct from inferring a constant population solely from observed sD=0.

기초Foundations

27. 설계 실습: 상관을 가정한 값과 관측 추정을 나눈다27. Design lab: distinguish an assumed correlation from an observed estimate

같은 n과 두 σ에서 ρ를 −1부터 1까지 바꾸어 보세요. 양수 상관과 음수 상관이 차이의 분산에 반대로 작용하는지 확인합니다. 이 ρ는 실제 기록에서 추정한 값이 아니라 선택한 모형 입력입니다.

독립 참조는 공분산을 0으로 놓은 다른 설계입니다. 표본 수와 모집단 조건을 맞추고 두 분산을 비교하되, 같은 비용이나 같은 사람 수의 최적 설계가 무엇인지까지 이 그림 하나가 정해 주지는 않습니다. 측정 비용·탈락·대응 가능성도 필요합니다.

Hold n and both SDs fixed while moving ρ from −1 to 1. Positive and negative correlations have opposite effects on difference variance. This ρ is a selected model input, not estimated from actual records.

The independent reference is another design with zero covariance. Match conditions before comparing precision. The figure alone does not determine the optimal same-cost design; measurement costs, attrition and correspondence also matter.

기초Foundations

28. 같은 사람을 비교해도 시간의 다른 변화는 남는다28. Comparing the same units does not remove every time change

짝은 개인별 고정 차이를 일부 상쇄할 수 있지만, 전후 시간에 함께 바뀐 다른 원인을 제거하지 않습니다. 계절·경기·학습·측정 도구 변화가 평균 변화에 들어갈 수 있습니다.

임의로 짝을 만들거나 짝 t의 작은 p값을 얻었다고 특정 처치의 인과효과가 식별되는 것은 아닙니다. 무작위 배정·대조집단·추가 추세 가정 등 어떤 설계가 비교를 인과 질문으로 연결하는지 따로 설명해야 합니다. 이 장은 표집 불확실성과 기술 차이 계산을 먼저 익힙니다.

Pairing can cancel some stable unit differences, but not every cause changing over time. Season, economic conditions, learning and measurement changes can contribute to an observed mean change.

A small paired-test p-value does not identify a particular treatment effect. Explain the assignment, control group or trend assumptions linking comparison to causality. First learn the descriptive contrast and its sampling uncertainty.

기초Foundations

29. 두 비율은 각각의 분모를 유지한다29. Two proportions retain their own denominators

독립 집단의 성공 개수 K₁, K₂와 크기 n₁, n₂에서 p̂₁=K₁/n₁, p̂₂=K₂/n₂를 만듭니다. 표적은 p₁−p₂입니다. n이 다르다고 성공 개수만 비교하면 원래 확률 차이와 다른 질문이 됩니다.

Δ^p=K1n1−K2n2H0:p1=p2.\begin{gathered}\widehat\Delta_p=\frac{K_1}{n_1}-\frac{K_2}{n_2}\\H_0:p_1=p_2.\end{gathered}

한 사람이 두 번 성공 여부를 가진 짝 이진 자료라면 두 집단 독립 공식이 아닙니다. 그 경우 대응하는 성공·실패의 교차 구조를 유지해야 하며 다음 범주형 장과 연결합니다.

For independent binomial groups, estimate p₁ and p₂ using their own K/n denominators. The target is p₁−p₂. Comparing success counts alone when sizes differ asks another question.

Δ^p=K1/n1−K2/n2H0:p1=p2.\begin{gathered}\widehat\Delta_p=K_1/n_1-K_2/n_2\\H_0:p_1=p_2.\end{gathered}

Paired binary before/after outcomes do not follow the independent-group formula. Preserve their joint success/failure structure; the next categorical chapter develops that connection.

기초Foundations

30. 일반 비율 차이의 분산과 추정 표준오차30. General variance and estimated SE for a proportion difference

독립 이항 집단에서 Kⱼ의 분산은 nⱼpⱼ(1−pⱼ)입니다. 각각 nⱼ²로 나누고 더하면 차이 분산입니다. 이 단계는 p₁=p₂를 가정하지 않습니다.

Var⁡(Δ^p)=p1(1−p1)n1+p2(1−p2)n2,V^unpooled=p^1(1−p^1)n1+p^2(1−p^2)n2.\begin{gathered} \operatorname{Var}(\widehat\Delta_p) =\frac{p_1(1-p_1)}{n_1} +\frac{p_2(1-p_2)}{n_2},\\ \widehat V_{\rm unpooled} =\frac{\widehat p_1(1-\widehat p_1)}{n_1} +\frac{\widehat p_2(1-\widehat p_2)}{n_2}. \end{gathered}

아래는 일반 차이를 추정할 때의 plug-in 분산입니다. 각 p̂를 넣는 것이 참 p를 안다는 뜻은 아닙니다. 극단 표본 p̂=0 또는 1에서는 한 기여가 0이 되어 Wald 근사가 불안정할 수 있습니다.

For independent binomial groups, divide Var(Kⱼ)=nⱼpⱼ(1−pⱼ) by nⱼ² and add. This does not assume equal probabilities.

Var⁡(Δ^p)=p1(1−p1)n1+p2(1−p2)n2,V^unpooled=p^1(1−p^1)n1+p^2(1−p^2)n2.\begin{gathered} \operatorname{Var}(\widehat\Delta_p) =\frac{p_1(1-p_1)}{n_1}+\frac{p_2(1-p_2)}{n_2},\\ \widehat V_{\rm unpooled} =\frac{\widehat p_1(1-\widehat p_1)}{n_1} +\frac{\widehat p_2(1-\widehat p_2)}{n_2}. \end{gathered}

The second line estimates general difference variance. A fitted p̂ does not reveal true p. Boundary sample proportions can give zero contributions and poor Wald behavior.

학부 연결 · 선택Undergraduate bridge · optional

31. 같은 확률 귀무에서는 성공과 시행을 합쳐 p를 추정한다31. Under the equal-probability null, pool successes and trials

독립 이항 두 집단의 H₀:p₁=p₂=p 아래에서는 공통 p가 미지 방해모수입니다. 이항 가능도를 곱하면 p^(k₁+k₂)(1−p)^(n₁+n₂−k₁−k₂)에 비례합니다. 내부해에서 로그 가능도를 미분하면 다음 추정값을 얻습니다. 전체 성공 0 또는 전부 성공이면 경계해입니다.

p^0=k1+k2n1+n2.\widehat p_0=\frac{k_1+k_2}{n_1+n_2}.

두 p̂의 단순 반반 평균이 아닙니다. (n₁p̂₁+n₂p̂₂)/(n₁+n₂)라는 시행 수 가중평균입니다. 같은 확률이라는 귀무 제약 아래의 추정이라는 점이 일반 차이의 unpooled 분산과 다릅니다.

For independent binomial groups under H₀:p₁=p₂=p, the common p is unknown. The joint likelihood is proportional to p^(k₁+k₂)(1−p)^(n₁+n₂−k₁−k₂). Differentiating its log gives the interior fit; all-failure or all-success samples put the fit on a boundary.

p^0=(k1+k2)/(n1+n2).\widehat p_0=(k_1+k_2)/(n_1+n_2).

This is trial-count weighted, not the simple average of two proportions. It estimates within the equal-probability null constraint, unlike the general unpooled variance estimate.

기초Foundations

32. 두 비율의 정규 귀무검정은 pooled 분모를 쓴다32. The normal equal-proportion test uses a pooled-null denominator

같은 p 귀무에서 이론 차이 분산은 p(1−p)(1/n₁+1/n₂)입니다. 미지 p에 p̂₀를 넣어 정규 참조 z를 만듭니다. 0<p̂₀<1이고 두 n이 양수여야 이 양의 분모를 사용합니다.

V^0=p^0(1−p^0)(1/n1+1/n2),z0=(p^1−p^2)/V^0.\begin{gathered} \widehat V_0=\widehat p_0(1-\widehat p_0)(1/n_1+1/n_2),\\ z_0=(\widehat p_1-\widehat p_2)/\sqrt{\widehat V_0}. \end{gathered}

가정 성공 20/30 대 10/30이면 차이는 1/3, p̂₀=.5, V̂₀=1/60, z≈2.581989입니다. 정규 참조는 유한 이항의 보편적 정확 검정이 아닙니다. 기대 성공·실패가 적거나 끝점 근처이면 근사 조건을 주의 깊게 봐야 합니다. n≥특정 정수라는 단일 규칙이 모든 p에서 정확성을 보장하지 않습니다.

Under equal p, the variance is p(1−p)(1/n₁+1/n₂). Substitute fitted p̂₀ for a normal-reference statistic, requiring positive n and 0< p̂₀<1.

V^0=p^0(1−p^0)(1/n1+1/n2),z0=(p^1−p^2)/V^0.\begin{gathered} \widehat V_0=\widehat p_0(1-\widehat p_0)(1/n_1+1/n_2),\\ z_0=(\widehat p_1-\widehat p_2)/\sqrt{\widehat V_0}. \end{gathered}

Toy 20/30 versus 10/30 gives difference 1/3, pooled .5, V̂₀=1/60 and z≈2.581989. This normal reference is not universally exact for finite binomial samples. Small expected counts or boundary probabilities need particular care; one integer sample-size threshold does not guarantee accuracy for every p.

기초Foundations

33. 일반 차이의 Wald 구간에는 unpooled 추정 분산을 쓴다33. A general-difference Wald interval uses unpooled estimated variance

p₁−p₂가 어떤 값인지 추정하는 구간에서는 두 p가 같다는 귀무 제약을 미리 넣지 않습니다. 일반 추정 분산을 사용한 단순 Wald 구간은 다음과 같습니다.

V^E=p^1(1−p^1)n1+p^2(1−p^2)n2,CWald=Δ^p±z1−α/2V^E.\begin{gathered} \widehat V_E =\frac{\widehat p_1(1-\widehat p_1)}{n_1} +\frac{\widehat p_2(1-\widehat p_2)}{n_2},\\ C_{\rm Wald} =\widehat\Delta_p\pm z_{1-\alpha/2}\sqrt{\widehat V_E}. \end{gathered}

이 구간은 근사이며 참 차이의 범위 [−1,1] 밖으로 나가거나 끝점 표본에서 폭이 0이 될 수 있습니다. 단순히 끝을 잘랐다고 모든 유한 표본의 명목 포함률이 보장되는 것은 아닙니다. 이 장의 실습은 원래 Wald 값을 보여 주고 한계를 명시합니다.

Estimating a general p₁−p₂ should not first impose equal probabilities. The simple unpooled Wald interval is

V^E=p^1(1−p^1)n1+p^2(1−p^2)n2,CWald=Δ^p±z1−α/2V^E.\begin{gathered} \widehat V_E =\frac{\widehat p_1(1-\widehat p_1)}{n_1} +\frac{\widehat p_2(1-\widehat p_2)}{n_2},\\ C_{\rm Wald}=\widehat\Delta_p\pm z_{1-\alpha/2}\sqrt{\widehat V_E}. \end{gathered}

This approximation can extend beyond [−1, 1] or collapse at boundary samples. Clipping endpoints alone does not guarantee nominal finite-sample coverage. The lab displays the raw Wald calculation and its limitations.

기초Foundations

34. 같은 화면의 검정과 구간이 언제나 정확히 반전되는 것은 아니다34. A test and interval on one screen need not be exact inversions

앞의 p₁=p₂ 검정은 귀무에 맞춘 pooled 분모이고, 일반 차이의 Wald 구간은 unpooled 분모입니다. 그러므로 구간이 0을 포함하는지와 pooled 검정의 결정을 항상 같은 부등식이라고 말하면 틀립니다.

정확 반전을 원하면 각 후보 차이에서 맞는 제약 추정과 판정을 반복해 후보집합을 만들어야 합니다. 이 장의 화면은 두 계산의 역할을 나란히 설명하며 반전 일치를 주장하지 않습니다. 소프트웨어와 비교할 때는 연속성 보정·구간 방식·끝점 자름·양쪽 정의도 확인하세요. 같은 ‘비율 검정’이라는 이름만으로 숫자가 같아야 하는 것은 아닙니다.

The equal-proportion test uses a pooled-null denominator; the general Wald interval uses an unpooled denominator. Their zero-inclusion and rejection decisions are therefore not always the same inequality.

Exact inversion would repeat a suitable constrained decision for each candidate difference. Here both roles are displayed without claiming exact inversion. When comparing software, check continuity correction, interval method, clipping and two-sided definitions rather than only the procedure’s name.

기초Foundations

35. 비율 실습: 귀무 분모와 추정 분모를 따로 읽는다35. Proportion lab: read null and estimation denominators separately

두 집단 성공 개수와 시행 수를 입력하고 각 비율·차이·pooled 비율을 먼저 확인하세요. 귀무 검정 SE와 추정 구간 SE가 왜 다를 수 있는지 두 분산 항을 직접 대조합니다.

기본 20/30 대 10/30을 재현한 다음 표본 크기가 다른 경우를 봅니다. 성공 0개나 전부 성공인 표본도 살펴보되, 추정 Wald 폭 0을 확정 증거라고 부르지 않습니다. 두 집단이 같은 고객의 전후라면 이 독립 모형이 아니라 짝 이진 구조를 써야 합니다.

Enter successes and trials for both groups. Read proportions, difference and pooled proportion before comparing null-test and estimation-interval SEs.

Reproduce 20/30 versus 10/30, then unequal sizes. Inspect zero/all-success samples without treating a zero fitted Wald width as certainty. Repeated outcomes on the same customers require a paired-binary structure instead.

기초Foundations

36. 모든 성공률이 0이면 양의 귀무 분모도 사라진다36. All-zero sample proportions remove the positive null denominator

두 집단 모두 성공이 없으면 p̂₀=0이라 pooled SE가 0입니다. Δ̂도 0이므로 정규 통계량은 0/0입니다. 이 양의 분산 공식을 p=1로 채우지 않습니다. 귀무 p가 실제로 0이라고 알려진 것과 두 표본에서 성공을 못 본 것은 다릅니다.

한 집단 전부 성공, 다른 집단 전부 실패면 unpooled 추정분산은 0이어도 pooled 귀무 분산은 양수일 수 있습니다. 두 분모는 다른 제약에서 계산되기 때문입니다. 이런 끝점은 단순 Wald 추정의 취약함을 보여 줍니다. 적은 기대 셀에는 정확·보정 방법이 필요할 수 있으며 다음 범주형 장에서 표 구조를 더 다룹니다.

With no successes in either sample, p̂₀=0, the pooled SE is zero and the normal statistic is 0/0. Do not fill this positive-variance formula with p=1. Observing no successes differs from knowing population probability zero.

All-success versus all-failure groups can give zero unpooled fitted variance but positive pooled-null variance. The denominators use different constraints. These cases expose simple Wald limitations. Sparse expected cells can need exact or adjusted methods; the next categorical chapter develops table structure.

기초Foundations

37. 퍼센트포인트 차이와 상대 비율을 구별한다37. Distinguish percentage-point differences from relative ratios

성공률 .2와 .1의 차이는 .1, 즉 10퍼센트포인트입니다. 상대 비율은 .2/.1=2, 상대 증가율은 (.2−.1)/.1=1, 즉 100%입니다. 세 숫자는 서로 다른 표적입니다.

Δp=p1−p2,RR=p1/p2(p2>0),relative change=(p1−p2)/p2.\begin{gathered} \Delta_p=p_1-p_2,\\ RR=p_1/p_2\quad(p_2>0),\\ \text{relative change}=(p_1-p_2)/p_2. \end{gathered}

기준 확률 p₂=0이면 상대 비율의 일반 유한 공식은 미정의입니다. 차이가 정의된다는 이유로 모든 비율도 정의되는 것은 아닙니다. 원수준 비율·분모·확률차를 먼저 보고하고 어떤 상대 척도를 썼는지 밝힙니다.

Probabilities .2 and .1 differ by .1, or ten percentage points. Their ratio is 2 and relative increase 100%. These are distinct targets.

Δp=p1−p2,RR=p1/p2(p2>0),relative change=(p1−p2)/p2.\begin{gathered} \Delta_p=p_1-p_2,\\ RR=p_1/p_2\quad(p_2>0),\\ \text{relative change}=(p_1-p_2)/p_2. \end{gathered}

At p₂=0, the ordinary finite ratio is undefined. A defined difference does not define every ratio. Report both probabilities and denominators before relative summaries.

기초Foundations

38. 로그 평균 차이는 기하 중심 비율과 연결된다38. A log-mean difference relates to a geometric-center ratio

같은 원단위의 양의 Y에서 W=log Y를 비교하면 Δlog=E[W₁]−E[W₂]입니다. exp(Δlog)=exp(EW₁)/exp(EW₂)는 기하 중심의 비율입니다. 일반적으로 E[Y₁]/E[Y₂]와 같지 않습니다.

exp⁡(μlog⁡,1−μlog⁡,2)=exp⁡(μlog⁡,1)exp⁡(μlog⁡,2)\begin{gathered}\exp(\mu_{\log,1}-\mu_{\log,2})\\=\frac{\exp(\mu_{\log,1})}{\exp(\mu_{\log,2})}\end{gathered}

로그정규라면 산술평균에는 각 집단 분산의 절반이 추가되어 exp(μlog+σlog²/2)가 됩니다. 두 분산이 다르면 비율도 바뀝니다. 실제 가용 로그 평균 차이를 지수화했을 때에도 개인별 상승률이나 거주지의 인과수익률로 바꾸어 부르지 않습니다.

For positive values in compatible units, compare W=log Y. Exponentiating the log-mean difference gives a ratio of geometric centers, not generally E[Y₁]/E[Y₂].

exp⁡(μlog⁡,1−μlog⁡,2)=exp⁡(μlog⁡,1)exp⁡(μlog⁡,2)\begin{gathered}\exp(\mu_{\log,1}-\mu_{\log,2})\\=\frac{\exp(\mu_{\log,1})}{\exp(\mu_{\log,2})}\end{gathered}

For lognormal laws, the arithmetic mean also includes σlog²/2. Different log variances change the ratio. An available-record geometric comparison is not an individual gain or causal return to residence.

대학원 연결Graduate bridge

39. 같은 총 표본 수에서 어느 집단을 더 뽑을까39. Which group receives more observations at fixed total size?

선택 심화입니다. 독립 설계에서 알려진 양의 σ₁, σ₂, 같은 관측 비용, 총수 N=n₁+n₂를 가정합니다. 연속적인 n₁ 선택으로 V=σ₁²/n₁+σ₂²/(N−n₁)를 줄이는 문제를 풀어 봅시다.

V′(n1)=−σ12/n12+σ22/(N−n1)2,V′(n1)=0⟹n1/n2=σ1/σ2.\begin{gathered} V'(n_1)=-\sigma_1^2/n_1^2+\sigma_2^2/(N-n_1)^2,\\ V'(n_1)=0\Longrightarrow n_1/n_2=\sigma_1/\sigma_2. \end{gathered}

변동이 큰 집단에 더 많이 배정하는 결과입니다. 0<n₁<N에서 둘째 미분이 양수라 이 내부점은 최소입니다. 정수 표본수·최소 가용수·서로 다른 비용·군집·σ 추정이 있으면 그 조건에 맞게 문제를 다시 풀어야 합니다. 이 공식이 대표성이나 정책적 배분 기준을 정하지는 않습니다.

Optional theory:assume independent designs, known positive SDs, equal observation costs and total N=n₁+n₂. Treat n₁ continuously to minimize V=σ₁²/n₁+σ₂²/(N−n₁).

V′(n1)=−σ12/n12+σ22/(N−n1)2,V′(n1)=0⟹n1/n2=σ1/σ2.\begin{gathered} V'(n_1)=-\sigma_1^2/n_1^2+\sigma_2^2/(N-n_1)^2,\\ V'(n_1)=0\Longrightarrow n_1/n_2=\sigma_1/\sigma_2. \end{gathered}

More observations go to the more variable group. Positive second derivative gives an interior minimum. Integer counts, costs, clusters, minimum group sizes or estimated SDs require another constrained calculation. This precision criterion does not determine representativeness or policy allocation.

기초Foundations

40. 서로 다른 집단 이름이 독립 표집을 증명하지 않는다40. Different group labels do not establish independent sampling

거주지·불만 여부·정책 지역이 다르면 집단은 구별되지만, 같은 가구·학교·지점·날짜의 기록은 서로 의존할 수 있습니다. 집단 간 관측 중복이 있으면 독립 분산합을 다시 확인해야 합니다.

Welch가 분산의 이질성을 다룬다고 모든 군집·시간의존을 해결하지는 않습니다. 가중 설문이나 군집 표본에는 해당 설계의 평균·분산 추정이 필요합니다. 단순 가용 평균의 차이와 목표 모집단의 차이가 연결되는 근거도 밝혀야 합니다.

Residence, complaint or region labels distinguish groups but do not prove independent records. Shared households, schools, branches or dates can create dependence; overlap between groups changes the variance argument.

Welch addresses variance heterogeneity, not every cluster or time dependence. Weighted surveys and clustered samples need matching mean/variance estimators. Also justify the link from available-record contrasts to the intended populations.

기초Foundations

41. 개별 구간 겹침 대신 직접 차이의 구간을 만든다41. Use an interval for the difference instead of interval-overlap rules

독립 정규 평균 추정값이 0과 3, 각 알려진 SE가 1이라고 합시다. 개별 95% 구간은 약 [−1.96,1.96]과 [1.04,4.96]로 겹칩니다. 그러나 둘째−첫째 차이 SE는 √2입니다.

Δ^=3z=3/2≈2.1213>1.96.\begin{gathered}\widehat\Delta=3\\z=3/\sqrt2\approx2.1213>1.96.\end{gathered}

직접 차이 검정은 양쪽 .05에서 기각합니다. 두 개별 구간의 겹침 여부와 차이의 구간은 다른 계산입니다. 의존 추정값이면 공분산을 더 고려해야 하므로 그림만으로 통계적 차이를 단정하지 않습니다.

Independent normal mean estimates 0 and 3 each have known SE 1. Their individual 95% intervals overlap, but the second-minus-first difference has SE √2.

Δ^=3z=3/2≈2.1213>1.96.\begin{gathered}\widehat\Delta=3\\z=3/\sqrt2\approx2.1213>1.96.\end{gathered}

The direct two-sided .05 test rejects. Individual overlap and a difference interval are different calculations. Dependence would also require covariance, so a plot alone does not settle the comparison.

기초Foundations

42. 직접 차이도 효과·불확실성·선택 내역을 함께 보고한다42. Report direct effects with uncertainty and analysis choices

작은 p값은 원단위 차이를 크게 만들지 않습니다. 반대로 비기각은 두 집단이 실질적으로 같음을 증명하지 않습니다. 효과 구간 전체가 미리 정한 의미 있는 허용폭 안에 있는지 묻는 문제는 등가성의 별도 설계입니다.

여러 집단·변수·방법을 시도하고 유리한 결과만 남겼다면 선택도 보고해야 합니다. 어느 집단이 먼저인지, 짝인지 독립인지, 분산 가정과 자유도, 가용 분모, 구간 방식·수준을 적습니다. 표 하나를 재현했다는 사실만으로 무작위 배정·대표성·인과효과가 인증되지는 않습니다.

A small p-value does not enlarge the raw effect; nonrejection does not establish practical equality. Equivalence with a prechosen margin requires its own design and calibration.

Report attempted groups, variables and methods rather than only favorable results. State order, pairing/independence, variance assumptions, df, valid counts and interval method/level. Reproducing a table does not certify randomization, representativeness or causality.

기초Foundations

43. 실제 주택지수는 같은 분기끼리 네 짝을 만든다43. Actual housing indices form four same-quarter pairs

실제 한국 실질 주택지수의 2023년 평균은 891869/8000=111.483625,2024년 평균은 862133/8000=107.766625입니다. 같은 분기의 2024−2023을 네 짝으로 만들면 고정 평균 변화는 −3.717 지수포인트입니다.

D‾F=−3.717,sD2=621791791/150000000,SE⁡^paired≈1.017997864.\begin{gathered} \overline D_F=-3.717,\\ s_D^2=621791791/150000000,\\ \widehat{\operatorname{SE}}_{\rm paired} \approx1.017997864. \end{gathered}

같은 분기끼리의 표본공분산은 약 1.017318263 지수포인트²입니다. 이를 버린 독립 참조 SE는 약 1.242971755로 다릅니다. 다만 네 쌍은 모두 관측된 고정 연도 프레임이며 그 평균 변화는 이미 알려져 있습니다. t구간은 가정한 iid 정규 짝법칙의 작업 계산이지 원래 네 분기의 실제 표집 불확실성을 인증한 것이 아닙니다.

Actual KOR real housing-index means are 111.483625 for 2023 and 107.766625 for 2024. Same-quarter 2024-minus 2023 gives four pairs with fixed-frame mean change −3.717 index points.

D‾F=−3.717,sD2=621791791/150000000,SE⁡^paired≈1.017997864.\begin{gathered} \overline D_F=-3.717,\\ s_D^2=621791791/150000000,\\ \widehat{\operatorname{SE}}_{\rm paired} \approx1.017997864. \end{gathered}

Dropping same-quarter covariance changes the reference SE to about 1.242971755. All four pairs are already observed; their frame mean is known. The t calculation is a working iid-normal-pairs reference, not certified sampling uncertainty for the original quarterly process.

기초Foundations

44. 실제 거주 지표별 로그 임금을 Welch로 비교한다44. Compare actual residential-group log wages with Welch

Card 원행 3613개 중 가용 로그 임금은 3010개입니다. 실제 1976년 SMSA 지표 1 집단은 전체 2510·가용 2146·미관측 364개,0 집단은 전체 1103·가용 864·미관측 239개입니다. 지표 1−0의 무가중 가용 로그 평균 차이를 표적으로 정합니다.

Δ^log⁡≈.2301100976,SE⁡^W≈.01721842695,ν^≈1627.022893,tW≈13.36417654,ptwo≈9.95486037×10−39.\begin{gathered} \widehat\Delta_{\log}\approx .2301100976,\\ \widehat{\operatorname{SE}}_W\approx .01721842695,\\ \widehat\nu\approx1627.022893,\\ t_W\approx13.36417654,\\ p_{\rm two}\approx9.95486037\times10^{-39}. \end{gathered}

95% Welch 작업구간은 약 [.1963374773,.2638827178] 로그 단위입니다. exp(차이)≈1.258738586은 가용 기하 중심의 비율과 연결되며 산술 임금의 비율이나 대도시 거주의 인과효과가 아닙니다. 로그는 1976년 원 시간당 센트 임금의 공표 정리 변수라는 출처와, 미관측·가중·원표집 조건의 한계를 유지합니다.

Of 3613 Card rows, 3010 log wages are available. Actual 1976 SMSA group 1 has 2510 total, 2146 available and 364 unavailable; group 0 has 1103, 864 and 239. Target the unweighted available log-mean difference, group 1 minus 0.

Δ^log⁡≈.2301100976,SE⁡^W≈.01721842695,ν^≈1627.022893,tW≈13.36417654,ptwo≈9.95486037×10−39.\begin{gathered} \widehat\Delta_{\log}\approx .2301100976,\\ \widehat{\operatorname{SE}}_W\approx .01721842695,\\ \widehat\nu\approx1627.022893,\\ t_W\approx13.36417654,\\ p_{\rm two}\approx9.95486037\times10^{-39}. \end{gathered}

The working 95% Welch interval is about [.1963374773, .2638827178] in log coordinates. Exponentiation gives a geometric-center ratio about 1.258738586, not an arithmetic-wage ratio or causal residence effect. Preserve source hourly-cent logs, missingness, weights and sampling limitations.

기초Foundations

45. 실제 불만 집단의 이탈 차이는 큰 연관이지만 무작위 처치가 아니다45. Actual complaint-group churn differs strongly without randomized treatment

UCI Iranian Churn의 실제 3150고객에서 첫 9개월 불만 기록이 있는 집단은 241개 중 말월 이탈 200개, 없는 집단은 2909개 중 이탈 295개입니다. 전체 495/3150=11/70은 귀무의 pooled 추정값입니다. 실제 수집의 정확한 달력 연도는 확인되지 않았습니다.

p^C=200/241p^N=295/2909,Δ^p=510705/701069≈.7284660996,SE⁡^null≈.02439490905,z0≈29.86139846,ptwo≈6.24413716×10−196.\begin{gathered} \widehat p_C=200/241\\\widehat p_N=295/2909,\\ \widehat\Delta_p=510705/701069\approx.7284660996,\\ \widehat{\operatorname{SE}}_{\rm null}\approx.02439490905,\\ z_0\approx29.86139846,\\ p_{\rm two}\approx6.24413716\times10^{-196}. \end{gathered}

원차이는 약 72.8466퍼센트포인트입니다. unpooled 추정 SE≈.02484237114이며 단순 95% Wald 구간은 [.6797759469,.7771562523]입니다. 두 SE를 같다고 쓰지 않습니다.

불만은 무작위 배정된 처치가 아니고 원고객의 iid 표집도 확인된 것은 아닙니다. 강한 관측 연관을 불만이 이탈을 일으키는 크기라고 단정하지 않습니다. 비교 집단의 조건·선택·시간 순서와 예측·인과의 차이를 유지합니다.

In 3150 actual UCI Iranian Churn customer records, first-nine-month complaint group has 200 churn outcomes among 241 records; no-complaint group has 295 among 2909. Total 495/3150=11/70 gives the pooled-null fit. Exact calendar years are unverified.

p^C=200/241p^N=295/2909,Δ^p≈.7284660996,SE⁡^null≈.02439490905,z0≈29.86139846,ptwo≈6.24413716×10−196.\begin{gathered} \widehat p_C=200/241\\\widehat p_N=295/2909,\\ \widehat\Delta_p\approx .7284660996,\\ \widehat{\operatorname{SE}}_{\rm null}\approx .02439490905,\\ z_0\approx29.86139846,\\ p_{\rm two}\approx6.24413716\times10^{-196}. \end{gathered}

The difference is about 72.8466 percentage points. The unpooled estimation SE is about .02484237114 and simple 95% Wald interval [.6797759469, .7771562523]. The two SEs are not interchangeable.

Complaint status was not randomized and original iid customer sampling is unverified. Strong observed association is not the causal effect of complaints. Preserve group selection, timing and the distinction between prediction and intervention.

기초Foundations

46. 실제 자료 실습: 같은 공식 이름보다 자료 구조를 먼저 고른다46. Actual-data lab: choose the data structure before the formula label

국가는 같은 분기 짝, 사람은 두 SMSA 집단의 로그 평균, 기업은 불만 여부별 이탈 비율입니다. 먼저 어느 표적인지 말한 뒤 각 가용 분모·원단위·차이 방향을 확인하세요. 짝 공분산이나 Welch 분수 자유도, 귀무/추정 비율 SE를 각각 읽습니다.

같은 페이지에 작은 p값과 큰 p값이 있다고 연구의 가치가 그 숫자 순서대로 정해지는 것은 아닙니다. 실제 질문·데이터 품질·효과크기·불확실성·추론 조건을 함께 판단합니다. 자료가 실제라는 점과 귀무 참조법칙의 현장 타당성은 서로 다른 근거입니다.

Country data use same-quarter pairs; person data compare SMSA log means; company data compare complaint-group churn proportions. State the target, denominators, units and direction before reading covariance, fractional df or null/estimation SEs.

P-value order is not a ranking of research value. Judge question, quality, effect, uncertainty and assumptions together. Actual input provenance differs from field validity of a reference sampling law.

기초Foundations

47. 실제 국가·사람·고객의 비교 사례47. Comparison cases with actual country, person and customer records

국가 사례 · 두 연도의 네 분기는 독립 표본 여덟 개일까?

BIS의 한국 전국 실질 주택지수에서 2023년과 2024년의 네 분기를 읽습니다. 두 해 모두 완전히 관측한 고정 자료이며 기준은 2010년 평균=100입니다. 같은 분기끼리 묶으면 “2023년 1분기→2024년 1분기”처럼 전년 동기 지수포인트 차이를 얻습니다. 이 계산은 가격의 원화 차이나 인플레이션율이 아닙니다. 시간 순서와 경기·계절 의존성이 있는 자료라는 점도 유지합니다.

같은 분기로 맞춘 실제 변화
분기2023 실제 지수2024 실제 지수차이: 2024−2023 지수포인트각 분기의 전년 동기 %
1114.8287108.3502-6.4785-5.6419
2111.7513107.7932-3.9581-3.5419
3110.0125107.4475-2.5650-2.3316
4109.3420107.4756-1.8664-1.7069
D‾=Y‾−X‾sD2=sY2+sX2−2sXY.\begin{gathered}\overline D=\overline Y-\overline X\\s_D^2=s_Y^2+s_X^2-2s_{XY}.\end{gathered}

평균 차이의 항등식은 언제나 성립하지만, 그 표준오차는 자료 구조에 의존합니다. 서로 독립인 쌍이 iid라는 작업모형을 가정하면 SE(평균 D)=sD/√4입니다. 이 실제 시계열 네 쌍이 독립이라는 근거는 확보하지 않았습니다. 따라서 아래 수치는 공식의 역할을 비교하는 계산이며 실제 시계열에 대한 신뢰구간 인증으로 사용하지 않습니다. 알려진 두 해의 평균 자체는 이미 계산이 끝났습니다.

공분산을 보존했을 때의 계산
항목값
실제 평균 차이-3.717000 지수포인트
짝 차이 표본분산4.145279
두 해의 짝 표본공분산1.017318
iid 쌍을 가정한 SE 공식1.017998
짝을 무시한 독립식 SE 참고값1.242972
먼저 생각한 뒤 풀이 보기: 순서를 바꾸어 짝지어도 평균 차이는 같은데 문제가 있나요?

모든 값을 한 번씩 쓰면 평균 차이는 같습니다. 그러나 각 D와 공분산·차이의 분산은 바뀝니다. 같은 분기라는 관측 의미와 짝의 구조를 잃기 때문입니다. 평균의 숫자가 같다는 이유로 표준오차나 검정까지 같다고 생각하면 안 됩니다.

먼저 생각한 뒤 풀이 보기: 평균 지수포인트 차이를 평균 % 변화라고 부를 수 있나요?

없습니다. 분기별 % 변화는 100×(2024값/2023값−1)입니다. 두 연도 평균의 비율, 분기 % 변화의 평균, 지수포인트 차이는 서로 다른 통계량입니다. %와 %포인트도 구별하세요. 이 자료의 완전 관측 요약을 미래 분기의 불확실성과 섞지 않습니다.

개인 자료 사례 · 도시권 두 집단의 평균 log 임금과 Welch 방법

Card의 1976년 청년 남성 공개자료를 원 코드북의 SMSA76R로 나눕니다. SMSA는 당시 통계상 대도시권이며, 공개 CSV의 metro는 그 1976년 지표입니다. 도시 거주자가 더 높은 임금을 받는 원인을 이 비교로 식별하지 않습니다. 나이·학력·직업·지역·이주 선택 등이 다를 수 있고, 원 조사 가중치는 사용하지 않습니다. 두 집단은 같은 사람의 전후 기록이 아니라 서로 다른 사람의 기록입니다.

원래 결측을 보존한 두 집단
1976 SMSA전체 기록log 임금 관측log 임금 결측관측 평균 log표본분산
1251021463646.3278830.188570
011038642396.0977730.180234
vj=sj2/njTW=L‾1−L‾0v1+v0ν=(v1+v0)2v12/(n1−1)+v02/(n0−1)\begin{gathered}v_j=s_j^2/n_j\\T_W=\frac{\overline L_1-\overline L_0}{\sqrt{v_1+v_0}}\\\nu=\frac{(v_1+v_0)^2}{v_1^2/(n_1-1)+v_0^2/(n_0-1)}\end{gathered}

Welch 방법은 두 모분산이 같다는 가정을 먼저 넣지 않습니다. 각 집단 표본분산을 따로 사용하고 Welch–Satterthwaite 유효 자유도로 t 분포를 근사합니다. 자유도가 정수가 아니어도 괜찮으며 소수점을 임의로 버리지 않습니다. 집단 내·집단 간 독립 같은 표집 조건은 여전히 필요합니다. Welch의 t 참조는 일반적인 이분산 정규 표본에서도 근사이지, 모든 분포에 대한 정확 정리는 아닙니다.

SMSA=1 − SMSA=0의 작업모형 계산
항목값
실제 평균 log 차이0.230110098
Welch SE0.017218427
유효 자유도1,627.022893
Welch t13.364177
양측 p9.9548604e-39
95% 차이 구간[0.196337, 0.263883]
등분산을 가정했을 때의 SE 참고값0.017385055
먼저 생각한 뒤 풀이 보기: 두 집단 평균의 개별 95% 구간이 겹치는지 보면 차이의 검정이 되나요?

차이 자체의 SE와 구간을 계산해야 합니다. 독립이면 분산을 더하고, 짝 자료라면 공분산까지 필요합니다. 개별 구간의 단순 겹침은 지정한 차이 검정과 동일하지 않습니다. 여기 차이의 구간은 집단1−집단0 순서이며 순서를 바꾸면 부호와 양끝이 함께 바뀝니다.

먼저 생각한 뒤 풀이 보기: 양의 log 차이는 도시로 이사하면 임금이 그만큼 오름을 뜻하나요?

아닙니다. 관측 집단의 평균 log 차이입니다. exp(차이)≈1.25874는 관측 기하 중심의 비율이며 평균 시급 비율도 인과적 이주 효과도 아닙니다. 603개 결측, 원자료 절단과 조사 설계의 한계도 남습니다.

먼저 생각한 뒤 풀이 보기: Welch가 등분산을 요구하지 않으니 아무 조건도 확인하지 않아도 되나요?

아닙니다. 독립성·집단 정의·극단값·결측과 표집 과정을 확인해야 합니다. 모든 값을 기계적으로 두 집단으로 나눠 작은 p값을 얻는 것이 연구 설계를 대체하지 않습니다. 여기의 구간·p값은 명시한 작업모형 아래 계산이며 모집단 대표성의 인증이 아닙니다.

기업 고객 사례 · 불만 기록 두 집단의 이탈 비율은 얼마나 다른가?

UCI Iranian Churn의 실제 통신사 고객 3150개 기록을 사용합니다. 첫 9개월의 불만 지표와 12개월 시점의 이탈 라벨 사이에 3개월 계획 간격이 있다는 공식 설명을 따릅니다. 구체적인 수집 연도는 공개 메타데이터에 명시되지 않았으며 2020년 공개일을 수집 연도로 부르지 않습니다. 추가한 row_id는 CSV 행 번호이지 실제 장기 추적 고객 식별자가 아닙니다.

실제 불만×이탈 2×2 집계
불만 지표이탈비이탈전체관측 이탈 비율
120041241200/241
029526142909295/2909
Δ^=p^1−p^0SEestimate2=p^1(1−p^1)n1+p^0(1−p^0)n0SE02=p^(1−p^)(1n1+1n0).\begin{gathered}\widehat\Delta=\widehat p_1-\widehat p_0\\SE_{\rm estimate}^2=\frac{\widehat p_1(1-\widehat p_1)}{n_1}+\frac{\widehat p_0(1-\widehat p_0)}{n_0}\\SE_0^2=\widehat p(1-\widehat p)\left(\frac1{n_1}+\frac1{n_0}\right).\end{gathered}

동일비율 H0:p1=p0의 검정에서는 합친 이탈비율 p̂=(200+295)/(241+2909)를 사용한 귀무 SE0를 쓸 수 있습니다. 차이 자체를 추정하는 단순 Wald 구간은 두 관측 비율을 따로 넣은 SEestimate를 씁니다. 둘은 서로 다른 계산 목적입니다. 이 사례의 네 셀 관측 수는 모두 10 이상이지만, 충분한 수가 있다는 것만으로 실제 고객들의 독립·대표 표집이 증명되지는 않습니다. Wald 구간은 근사이며 극소 셀·경계 비율에는 더 적절한 구간을 선택해야 합니다.

비율 차이의 추정과 귀무 검정 계산
항목값
불만−무불만의 관측 비율 차이0.728466100
같은 차이의 %포인트72.846610
별도 비율의 추정 SE0.024842371
동일비율 귀무의 합동 SE0.024394909
정규 참조 z29.861398
양측 꼬리확률 근사6.2441372e-196
차이의 95% Wald 근사 구간[0.679776, 0.777156]
먼저 생각한 뒤 풀이 보기: 불만 고객과 무불만 고객은 같은 사람의 전후 비율인가요?

아닙니다. 이 표는 서로 다른 기록을 불만 지표로 나눈 두 집단입니다. 같은 고객이 두 번 등장하는 짝 이진자료라면 이 두 독립 비율 공식을 그대로 적용하지 않고 불일치 쌍의 구조를 사용해야 합니다. 기록의 단위를 먼저 정하세요.

먼저 생각한 뒤 풀이 보기: 불만 처리 프로그램을 하면 이탈이 관측 차이만큼 줄까요?

이 자료에서 불만은 무작위 배정이 아닙니다. 서비스 문제·이용량·계약 특성 같은 공통 원인이 불만과 이탈에 함께 영향을 줄 수 있습니다. 시간 순서가 있다는 것만으로 인과가 되지는 않습니다. 이 표는 관측 연관성이지 불만 처리 개입의 효과나 미래 고객 예측의 성능이 아닙니다.

먼저 생각한 뒤 풀이 보기: 비율 차이가 .1이면 10% 차이인가요, 10%포인트 차이인가요?

비율 .1의 절대 차이는 10%포인트입니다. 상대 % 변화는 기준 비율로 다시 나눠야 하므로 별도 값입니다. 비율·%·%포인트의 단위를 섞지 않고, 어느 집단을 뺀 것인지도 반드시 표시합니다.

자료·가공·재현: actual2023-2024-real-housing-quarter-values.csv · actual-four-matched-quarter-changes.csv · actual-paired-quarter-moments-and-SE-formula-comparison.csv · actual-people-SMSA-groups-and-missing-log-wages.csv · actual-log-wage-two-group-moments.csv · actual-log-wage-Welch-comparison.csv · actual-customers-complaints-and-month12-churn.csv · actual-complaint-by-churn-two-group-counts.csv · actual-customer-two-proportion-comparison.csv · provenance

Country case · Are four quarters in each of two years eight independent observations?

Read four quarters in both 2023 and 2024 from the BIS Korea-wide real housing index, with 2010 average=100. Both years are completely observed fixed data. Match the same quarter across years to obtain year-over-year index-point changes, such as 2023-Q1→2024-Q1. These are neither KRW price changes nor inflation rates. Preserve the fact that the records have time order and possible business-cycle/seasonal dependence.

Actual changes after matching quarters
Quarter2023 actual index2024 actual index2024−2023 index pointsQuarter-specific year-over-year %
1114.8287108.3502-6.4785-5.6419
2111.7513107.7932-3.9581-3.5419
3110.0125107.4475-2.5650-2.3316
4109.3420107.4756-1.8664-1.7069
D‾=Y‾−X‾sD2=sY2+sX2−2sXY.\begin{gathered}\overline D=\overline Y-\overline X\\s_D^2=s_Y^2+s_X^2-2s_{XY}.\end{gathered}

The identity for mean differences is algebraic, but a standard error depends on data structure. A working model of independent iid pairs would give SE(mean D)=sD/√4. Independence of these four actual time-series pairs has not been established. The following numbers compare formulas, not certify an interval for a time series. The two fully observed annual averages are already known.

Calculations preserving paired covariance
QuantityValue
Actual mean difference-3.717000 index points
Sample variance of paired changes4.145279
Cross-year paired sample covariance1.017318
SE formula assuming iid pairs1.017998
Independent-wave SE ignoring pairing1.242972
Think first, then reveal: If rematching leaves the mean difference unchanged, does pairing matter?

Using every value once preserves the mean difference, but changes individual differences, covariance and variance of changes. It loses the observational meaning of matching the same quarter. Equal mean differences do not guarantee equal standard errors or tests.

Think first, then reveal: May we call the mean index-point change a mean percentage change?

No. A quarter’s percentage change is 100×(2024 value/2023 value−1). A ratio of annual averages, an average of quarterly percentage changes and an index-point difference are different statistics. Distinguish percent from percentage points, and known summaries from uncertainty about future quarters.

Person-record case · Compare mean log wages of two SMSA groups with Welch’s method

Split Card’s 1976 young-men records using SMSA76R in the original codebook; metro in the retained CSV denotes membership in the historical statistical metropolitan area in 1976. This comparison does not identify why wages differ. Age, schooling, occupation, region and migration selection may differ, and original survey weights are not used. These are different people in each group, not before/after records of the same people.

Two groups retaining original missingness
1976 SMSAAll recordsObserved log wagesMissing log wagesObserved mean logSample variance
1251021463646.3278830.188570
011038642396.0977730.180234
vj=sj2/njTW=L‾1−L‾0v1+v0ν=(v1+v0)2v12/(n1−1)+v02/(n0−1)\begin{gathered}v_j=s_j^2/n_j\\T_W=\frac{\overline L_1-\overline L_0}{\sqrt{v_1+v_0}}\\\nu=\frac{(v_1+v_0)^2}{v_1^2/(n_1-1)+v_0^2/(n_0-1)}\end{gathered}

Welch’s method does not first impose equal population variances. It uses each sample variance and approximates a t reference with Welch–Satterthwaite effective degrees of freedom. A noninteger df is valid and need not be arbitrarily rounded down. Within-group and between-group sampling independence still matter. Welch’s reference is an approximation even for general unequal-variance normal samples, not an exact theorem for all distributions.

Working-model calculation for SMSA=1 − SMSA=0
QuantityValue
Actual mean log difference0.230110098
Welch SE0.017218427
Effective df1,627.022893
Welch t13.364177
Two-sided p9.9548604e-39
95% difference interval[0.196337, 0.263883]
SE reference assuming equal variances0.017385055
Think first, then reveal: Can overlap of two separate 95% mean intervals replace a test of the difference?

Calculate an SE and interval for the difference itself. Independent samples add variances; paired data also require covariance. Simple interval overlap is not the same test. Here the direction is group1−group0; reversing it changes the sign and reverses the interval endpoints.

Think first, then reveal: Does the positive log difference predict that moving to an SMSA raises a person’s wage by that amount?

No. It compares observed group mean logs. exp(difference)≈1.25874 is a ratio of observed geometric centers, neither an arithmetic mean wage ratio nor a causal migration effect. The 603 missing wages, source trimming and survey-design limitations remain.

Think first, then reveal: Does avoiding equal variances mean Welch needs no assumptions?

No. Check independence, group definitions, extreme values, missingness and acquisition. Mechanically splitting records until obtaining a small p-value does not replace a study design. These intervals and p-values are calculations under a stated working model, not a certificate of population representativeness.

Customer case · How different are churn fractions in two complaint groups?

Use 3,150 actual telecom customer records in UCI Iranian Churn. Official metadata describe first-nine-month features and a month-12 churn label with a three-month planning gap. The specific collection years are not given; the 2020 release date is not a collection year. Added row_id denotes CSV row order, not a genuine longitudinal customer identifier.

Actual complaint×churn 2×2 counts
Complaint flagChurnNo churnTotalObserved churn fraction
120041241200/241
029526142909295/2909
Δ^=p^1−p^0SEestimate2=p^1(1−p^1)n1+p^0(1−p^0)n0SE02=p^(1−p^)(1n1+1n0).\begin{gathered}\widehat\Delta=\widehat p_1-\widehat p_0\\SE_{\rm estimate}^2=\frac{\widehat p_1(1-\widehat p_1)}{n_1}+\frac{\widehat p_0(1-\widehat p_0)}{n_0}\\SE_0^2=\widehat p(1-\widehat p)\left(\frac1{n_1}+\frac1{n_0}\right).\end{gathered}

For H0:p1=p0, a pooled-null SE0 uses p̂=(200+295)/(241+2909). A simple Wald interval estimating the difference uses the separate observed proportions in SEestimate. These serve different purposes. All four observed cells exceed ten here, but large counts alone do not prove independent or representative customer sampling. The Wald interval is approximate; sparse or boundary proportions call for a more suitable interval method.

Difference estimation and a pooled-null calculation
QuantityValue
Observed complaint−no-complaint fraction difference0.728466100
Same difference in percentage points72.846610
Separate-proportion estimation SE0.024842371
Equal-proportion pooled-null SE0.024394909
Normal-reference z29.861398
Approximate two-sided tail6.2441372e-196
Approximate 95% Wald interval for difference[0.679776, 0.777156]
Think first, then reveal: Are complaint and no-complaint fractions before/after proportions for the same people?

No. They are different records split by a complaint flag. Paired binary outcomes for the same customer require the discordant-pair structure rather than these independent-group formulas. Define the observational unit first.

Think first, then reveal: Would a complaint-handling program reduce churn by the observed difference?

Complaints were not randomly assigned. Shared causes such as service problems, usage and contract characteristics may affect both complaint and churn. Time ordering alone does not establish causation. This is an observed association, not an intervention effect or validated future prediction performance.

Think first, then reveal: Is a fraction difference of .1 a 10% difference or ten percentage points?

An absolute fraction difference of .1 is ten percentage points. A relative percentage change divides by a reference fraction and is a different quantity. Keep fractions, percentages and percentage points distinct and state the subtraction order.

Data, processing and reproduction: actual2023-2024-real-housing-quarter-values.csv · actual-four-matched-quarter-changes.csv · actual-paired-quarter-moments-and-SE-formula-comparison.csv · actual-people-SMSA-groups-and-missing-log-wages.csv · actual-log-wage-two-group-moments.csv · actual-log-wage-Welch-comparison.csv · actual-customers-complaints-and-month12-churn.csv · actual-complaint-by-churn-two-group-counts.csv · actual-customer-two-proportion-comparison.csv · provenance

기초Foundations

48. 공식 문서와 다음 범주형·여러 집단 비교의 연결48. Primary documentation and the next categorical/multigroup bridge

NIST 두 표본 t안내의 기호·pooled 잔차·Welch 분모를 읽되, 각 식을 이 장의 표집·분산·정규 조건에 맞춰 설명하세요. 이 장의 pooled 정확성에는 같은 n이 필요하지 않고, Welch 분수 자유도는 일반 이분산에서의 근사임을 유지합니다.

R 공식 t.test 문서의 var.equal·paired·결측 삭제를 확인하세요. 짝 자료의 줄을 맞춘 다음 삭제하는 것이 중요합니다. 현재 웹 문서 버전과 보관된 실제 R 실행 버전은 따로 기록합니다. 소프트웨어가 결과를 줬다는 사실만으로 모형 조건이 검증되지는 않습니다.

R 공식 prop.test 문서에서는 correct와 반환 구간의 방식을 읽습니다. 이 장의 무보정 pooled z와 단순 unpooled Wald 구간이 모든 기본 옵션과 같은 숫자를 내야 한다고 가정하지 마세요. 다음 장은 분할표·χ²·기대도수와 여러 집단 분산분석을 단계적으로 유도합니다.

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

Read notation, pooled residuals and Welch denominators in the NIST two-sample t guide. Match formulas to sampling, variance and normality assumptions. Exact pooled calibration does not require equal n; general Welch finite-sample calibration remains approximate.

Inspect var.equal, paired and pairwise missing-value removal in the official R t.test documentation. Align pairs before deletion. Distinguish current documentation from the retained R runtime version. A software result does not validate its assumptions.

In official R prop.test documentation, inspect correction and interval methods. This chapter’s uncorrected pooled z and simple unpooled Wald interval need not match every default option. The next chapter builds contingency tables, chi-square expected counts and multigroup variance analysis.

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 stat13-reproduce.py
Rscript --vanilla --encoding=UTF-8 stat13-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.

MIT · 모수 검정의 가정과 임계값 이어 보기MIT · Parametric hypotheses and calibration

MIT OCW · Philippe Rigollet, 18.650 Lecture8

심화 연결 영상입니다. 검정통계량의 기준 분포를 정하려면 어떤 모형을 가정하는지 찾아보세요. Welch 공식 자체의 짧은 설명 영상으로 간주하지 않고 아래 NIST 식과 연결합니다.This is a deeper bridge: identify the model behind a statistic’s reference distribution. Pair it with the NIST formulas below rather than treating it as a short dedicated Welch tutorial.

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

보고 읽은 뒤 답하기Respond after watching/reading 서로 다른 두 분산을 한 분산으로 합칠 때 어떤 추가 가정이 들어가나요?What extra assumption enters when pooling two variances?

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

두 집단의 모분산이 같다는 가정입니다. Welch는 이를 먼저 강제하지 않고 유효 자유도의 근사를 사용합니다.Equal population variances are assumed; Welch does not impose that first and instead uses an effective-df approximation.

B. L. 웰치 · 서로 다른 모집단 분산의 문제B. L. Welch · The unequal-population-variance problem

Biometrika / Oxford University Press ·1947 paper bibliographic record

1947년 논문의 저자·제목·게재 정보를 읽으며 같은 “두 평균 비교”라도 분산 가정에 따라 문제가 달라짐을 생각합니다. 상세 유도는 공개 NIST의 식과 본문에서 공부합니다.Read the author, title and 1947 publication record to see why comparing means changes when population variances differ. Study the actual formulas through the public NIST reading and this chapter.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading Welch 자유도는 왜 꼭 n1+n0−2가 아닌가요?Why need Welch df differ from n1+n0−2?

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

각 집단이 별도로 추정한 분산의 불확실성을 합친 비율을 근사하기 때문입니다. 등분산 합동식과 같은 계산이 아닙니다.It approximates a ratio involving uncertainty in separately estimated variances, rather than using the equal-variance pooled calculation.

NIST · 짝 자료·독립 자료·Welch 식NIST · Paired data, independent groups and Welch formulas

NIST/SEMATECH e-Handbook

첫 세 구분과 Welch–Satterthwaite 식까지만 읽습니다. 실제 적용에서는 독립성과 표집 조건도 확인하고, 기각하지 못함을 동등성의 증명으로 해석하지 않습니다.Read the opening distinctions through the Welch–Satterthwaite formula. Check independence and sampling, and do not read a failure to reject as proof of equivalence.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 표의 n이 같으면 자동으로 짝 자료인가요?Do equal sample sizes automatically make data paired?

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

아닙니다. 같은 사람·점포·관측 의미의 일대일 대응이 있어야 합니다.No. Pairing requires a meaningful one-to-one relationship between units or measurements.

Penn State · 두 비율의 추정 SE와 귀무 SEPenn State · Estimation SE and null SE for two proportions

Penn State Department of Statistics · STAT200 §9.1

9.1.1의 구간 식과 이어지는 동일비율 검정의 합동 SE 식만 지정해 읽습니다. 단순 Wald의 큰 표본 조건과 두 집단의 독립 조건을 함께 확인합니다.Read only §9.1.1’s interval formula and the following pooled-null SE formula; check the large-sample and independent-group conditions.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 차이의 구간에서도 p1=p0를 강제로 넣나요?Do we impose p1=p0 when estimating an interval for their difference?

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

여기 단순 Wald 추정 구간은 관측한 두 비율을 따로 사용합니다. 동일비율 귀무검정과 계산 목적이 다릅니다.This simple Wald estimation interval uses separate observed proportions; it has a different purpose from an equal-proportion null test.

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

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

1. 직접 차이의 질문The direct difference question

A평균이 10, B평균이 9입니다. A−B의 관측 차이를 구하고, 각 집단을 0과 따로 검정하는 일이 같은 질문인지 설명하세요.

Observed means are A=10, B=9. Find A−B and explain whether two separate versus-zero tests ask the same question.

풀이와 확인할 이유Solution and explanation

관측 차이는 1입니다. 집단별 평균이 0인지와 두 평균의 차이가 0인지는 다른 귀무입니다. 직접 차이의 SE와 구간을 계산해야 합니다.

The difference is 1. Each mean versus zero and their difference versus zero are distinct hypotheses. Calculate the contrast’s own SE and interval.

2. 차이 방향의 반전Reverse the contrast order

첫째−둘째 차이의 CI가 [1,4]입니다. 집단 순서를 바꾸면 차이와 CI는 어떻게 변하나요? 양쪽 p값은 같은가요?

A first-minus-second difference has CI [1, 4]. Reverse groups. How do the contrast, CI and two-sided p-value change?

풀이와 확인할 이유Solution and explanation

차이는 부호가 반대이고 구간은 [−4,−1]입니다. 동일 대칭 참조와 같은 SE의 양쪽 검정에서는 |통계량|이 같아 p값도 같습니다. 한쪽 방향은 귀무·대안도 일관되게 바꿔야 합니다.

The contrast reverses sign and CI becomes[−4,−1]. Under the same symmetric reference and SE, absolute statistic and two-sided p-value remain equal. One-sided hypotheses must also reverse consistently.

3. 서로 다른 단위를 먼저 맞춘다Align units before subtraction

집단1 평균은 4kg, 집단2 평균은 3500g입니다. 4−3500을 차이라고 써도 되나요? kg 단위 차이를 구하세요.

Group 1 mean is 4kg and group 2 mean 3500g. Is 4−3500 a valid difference? Give the difference in kg.

풀이와 확인할 이유Solution and explanation

그대로 빼면 안 됩니다. 3500g=3.5kg이므로 차이는 .5kg입니다. SD·SE·구간도 같은 척도로 함께 변환해야 합니다.

No. Convert 3500g to 3.5kg, then subtract to get .5kg. Convert spreads and uncertainty consistently too.

4. 같은 길이가 짝을 만드는가Do equal lengths create pairs?

서로 다른 학생 집단의 점수 두 열이 각각 30행입니다. 같은 줄 번호라는 이유로 짝 t검정을 써도 되나요?

Two score columns for different student groups each have 30 rows. Does matching row number justify a paired t test?

풀이와 확인할 이유Solution and explanation

안 됩니다. 실제 대응 관계가 있어야 합니다. 같은 길이는 같은 사람·짝 설계의 증거가 아닙니다. 관측 단위와 표집 설계를 확인하고 독립 여부도 따로 판단합니다.

No. Actual correspondence is required. Equal length does not establish shared units or a matching design. Assess both observation units and sampling independence.

5. 불편성에는 집단 간 독립이 필요한가Does contrast unbiasedness require independence?

E[X̄₁]=μ₁, E[X̄₂]=μ₂가 성립하고 두 평균이 의존할 수 있습니다. 그 차이는 Δ=μ₁−μ₂에 불편한가요?

If E[X̄₁]=μ₁ and E[X̄₂]=μ₂ but means may depend, is their difference unbiased for Δ=μ₁−μ₂?

풀이와 확인할 이유Solution and explanation
E[X‾1−X‾2]=E[X‾1]−E[X‾2]=Δ.E[\overline X_1-\overline X_2]=E[\overline X_1]-E[\overline X_2]=\Delta.

그렇습니다. 기대값 선형성은 독립을 요구하지 않습니다. 분산을 단순히 더하려면 공분산 조건이 추가로 필요합니다.

E[X‾1−X‾2]=Δ.E[\overline X_1-\overline X_2]=\Delta.

Yes. Linearity of expectation needs no independence. A variance sum additionally requires a covariance argument.

6. 독립 차이의 분산 유도Derive independent-difference variance

집단별 iid 유한분산 σ₁², σ₂²이고 집단 사이도 독립입니다. 평균 차이의 분산을 구하세요. 정규성이 필요한가요?

Each group is iid with finite variance σⱼ² and the groups are independent. Find the mean-difference variance. Is normality required for this identity?

풀이와 확인할 이유Solution and explanation
Var⁡(X‾1−X‾2)=σ12/n1+σ22/n2.\operatorname{Var}(\overline X_1-\overline X_2)=\sigma_1^2/n_1+\sigma_2^2/n_2.

분산 항등식에는 정규성이 필요하지 않습니다. 정확 정규 피벗과 t참조를 주장할 때 추가 분포 조건을 확인합니다.

Var⁡(X‾1−X‾2)=σ12/n1+σ22/n2.\operatorname{Var}(\overline X_1-\overline X_2)=\sigma_1^2/n_1+\sigma_2^2/n_2.

The identity needs no normality; exact reference distributions add their own conditions.

7. 공분산이 있다면A nonzero covariance

두 평균 분산이 4와 9이고 공분산이 3입니다. 차이 분산과 SE를 구하세요. 공분산이 0이라는 데 독립이 필요조건인가요?

Two mean variances are 4 and 9, their covariance 3. Find difference variance and SE. Is independence necessary for zero covariance?

풀이와 확인할 이유Solution and explanation
Var⁡(X‾1−X‾2)=4+9−2(3)=7SE⁡=7.\begin{gathered}\operatorname{Var}(\overline X_1-\overline X_2)=4+9-2(3)=7\\\operatorname{SE}=\sqrt7.\end{gathered}

독립은 0공분산의 충분조건이지 필요조건은 아닙니다. 이 문제에서는 주어진 3을 버리지 않습니다.

V=7SE⁡=7.\begin{gathered}V=7\\\operatorname{SE}=\sqrt7.\end{gathered}

Independence is sufficient, not necessary, for zero covariance. Here retain the given covariance 3.

8. 표준오차를 그냥 더하지 않는다Do not add SEs directly

독립 두 평균의 SE는 .4와 .6입니다. 차이 SE를 계산하고 .4+.6과 비교하세요.

Independent means have SEs .4 and .6. Calculate the difference SE and compare with their sum.

풀이와 확인할 이유Solution and explanation
SE⁡diff=.42+.62=.52≈.7211103\begin{gathered}\operatorname{SE}_{\rm diff}=\sqrt{.4^2+.6^2}\\=\sqrt{.52}\approx .7211103\end{gathered}

독립에서는 분산을 더한 뒤 제곱근을 취합니다. SE 자체를 더한 1과 다릅니다.

SE⁡diff=.52≈.7211103.\operatorname{SE}_{\rm diff}=\sqrt{.52}\approx .7211103.

Add variances, then take the square root; rather than adding SEs to obtain 1.

9. 알려진 σ의 두 집단 검정A known-SD two-group test

독립 iid 정규 집단에서 평균 10과 9, 알려진 σ₁=2, σ₂=3, n₁=n₂=25입니다. 귀무 차이 0의 z를 구하고 양쪽 .05 결정을 쓰세요.

Independent iid normal groups have observed means 10 and 9, known SDs 2 and 3, and 25 observations each. Find z against zero and decide two-sided .05.

풀이와 확인할 이유Solution and explanation
z=14/25+9/25≈1.3867505<1.959964\begin{gathered}z=\frac{1}{\sqrt{4/25+9/25}}\\\approx1.3867505<1.959964\end{gathered}

비기각입니다. 차이가 정확 0이라는 증명은 아닙니다.

z≈1.3867505<1.959964.z\approx1.3867505<1.959964.

Do not reject; this does not prove exactly zero difference.

10. 한 집단만 크게 늘릴 때Increasing only one group size

독립 두 집단에서 양의 σ₂²와 n₂를 고정하고 n₁만 무한히 늘립니다. 차이 분산이 0으로 가나요?

In independent groups, hold positive σ₂² and n₂ fixed while n₁ grows without bound. Does difference variance vanish?

풀이와 확인할 이유Solution and explanation
σ12/n1+σ22/n2⟶σ22/n2>0.\sigma_1^2/n_1+\sigma_2^2/n_2\longrightarrow\sigma_2^2/n_2>0.

둘째 집단 평균의 불확실성이 남습니다. 전체 행 수만 늘었다는 사실로 차이가 임의로 정밀해진다고 말하지 않습니다.

V⟶σ22/n2>0.V\longrightarrow\sigma_2^2/n_2>0.

Uncertainty in the second group mean remains.

11. pooled 분산의 가중치Weights in the pooled variance

n₁=3, s₁²=1, n₂=5, s₂²=4입니다. 공통분산 모형의 pooled 추정값을 구하고 단순 평균 2.5와 비교하세요.

With n₁=3, s₁²=1, n₂=5, s₂²=4, find the common-variance pooled estimate and compare with the simple average 2.5.

풀이와 확인할 이유Solution and explanation
sp2=2(1)+4(4)6=3.s_p^2=\frac{2(1)+4(4)}6=3.

각 집단의 잔차 자유도로 가중하여 3입니다. 단순 반반 평균과 다릅니다.

sp2=[2(1)+4(4)]/6=3.s_p^2=[2(1)+4(4)]/6=3.

Residual degrees of freedom supply the weights.

12. pooled 자유도는 두 평균 추정을 반영한다Pooled df accounts for two estimated means

독립 정규 공통분산 집단의 크기가 12와 20입니다. pooled 잔차 자유도와 그 이유를 쓰세요. n이 달라서 정확 t가 불가능한가요?

Independent normal common-variance groups have sizes 12 and 20. Give pooled residual df and explain whether unequal sizes prevent exact t calibration.

풀이와 확인할 이유Solution and explanation

자유도는 12+20−2=30입니다. 각 집단 평균 하나를 추정해 잔차 자유도를 하나씩 씁니다. 공통 양의 모분산과 독립 iid 정규 조건이 맞으면 n이 달라도 pooled t증명은 성립합니다.

Df is 30, one residual constraint for each fitted mean. Unequal sizes do not prevent exact pooled t under common positive variance and the stated normal independence conditions.

13. 정확 pooled 피벗의 조건Derive the exact pooled pivot

n₁, n₂≥2인 독립 iid 정규 두 집단이 같은 양의 σ²를 가집니다. 귀무 μ₁−μ₂=Δ₀ 아래에서, Q₁, Q₂가 각 잔차 제곱합/σ²라면 합의 법칙과 평균 차이와의 관계를 써 pooled t를 유도하세요.

Independent iid normal groups, n₁, n₂≥2, share positive σ². Under H₀:μ₁−μ₂=Δ₀, let Qⱼ be each residual sum/σ². Derive the pooled t law using their sum and the mean contrast.

풀이와 확인할 이유Solution and explanation
Q=Q1+Q2ν=n1+n2−2Q∼χν2Z0=Δ^−Δ0σ1/n1+1/n2Z0∼N(0,1)Z0⊥QZ0Q/ν∼tν\begin{gathered}Q=Q_1+Q_2\\\nu=n_1+n_2-2\\Q\sim\chi^2_\nu\\Z_0=\frac{\widehat\Delta-\Delta_0}{\sigma\sqrt{1/n_1+1/n_2}}\\Z_0\sim N(0,1)\\Z_0\perp Q\\\frac{Z_0}{\sqrt{Q/\nu}}\sim t_\nu\end{gathered}

n₁, n₂≥2를 전제합니다. 서로 다른 σ²의 항을 같은 공통 척도로 묶을 수는 없습니다.

Q=Q1+Q2ν=n1+n2−2Q∼χν2Z0=Δ^−Δ0σ1/n1+1/n2Z0∼N(0,1)Z0⊥QZ0Q/ν∼tν\begin{gathered}Q=Q_1+Q_2\\\nu=n_1+n_2-2\\Q\sim\chi^2_\nu\\Z_0=\frac{\widehat\Delta-\Delta_0}{\sigma\sqrt{1/n_1+1/n_2}}\\Z_0\sim N(0,1)\\Z_0\perp Q\\\frac{Z_0}{\sqrt{Q/\nu}}\sim t_\nu\end{gathered}

The common variance supplies one chi-square scale. Different population scales do not support this same proof.

14. 서로 다른 분산을 pooled에 넣으면Compare separate and pooled variance estimates

가정 n₁=25, s₁=2, n₂=10, s₂=4에서 separate 분산과 pooled 분산을 각각 계산하세요.

For hypothetical n₁=25, s₁=2, n₂=10, s₂=4, calculate separate and pooled difference variances.

풀이와 확인할 이유Solution and explanation
V^separate=4/25+16/10=44/25sp2=80/11V^pooled=(80/11)(1/25+1/10)=56/55\begin{gathered}\widehat V_{\rm separate}=4/25+16/10\\=44/25\\s_p^2=80/11\\\widehat V_{\rm pooled}\\=(80/11)(1/25+1/10)=56/55\end{gathered}

추정 표준오차는 각각 이 분산의 제곱근입니다. 어느 생성 모형을 가정했는지 없이 유리한 숫자만 고르지 않습니다.

V^separate=44/25sp2=80/11V^pooled=56/55.\begin{gathered}\widehat V_{\rm separate}=44/25\\s_p^2=80/11\\\widehat V_{\rm pooled}=56/55.\end{gathered}

SEs are their square roots. A favorable number does not justify its generating assumptions.

15. 같은 n이면 SE가 같아질 수 있다Equal sizes can produce equal SEs

n₁=n₂=n≥2입니다. pooled와 Welch의 차이 추정분산이 모두 (s₁²+s₂²)/n임을 보이세요. 자유도와 p값도 항상 같나요?

For n₁=n₂=n≥2, show both pooled and Welch estimated difference variances equal (s₁²+s₂²)/n. Must df and p-values also agree?

풀이와 확인할 이유Solution and explanation
sp2=(s12+s22)/2,sp2(2/n)=(s12+s22)/n=V^W.\begin{gathered} s_p^2=(s_1^2+s_2^2)/2,\\ s_p^2(2/n)=(s_1^2+s_2^2)/n=\widehat V_W. \end{gathered}

SE는 같지만 Welch 자유도는 표본 분산에 따라 달라져 p값과 구간이 일반적으로 다를 수 있습니다. 등분산 가정이 없어졌거나 정확 t법칙이 증명된 것은 아닙니다.

sp2=(s12+s22)/2V^p=V^W.\begin{gathered}s_p^2=(s_1^2+s_2^2)/2\\\widehat V_p=\widehat V_W.\end{gathered}

No. Welch’s fitted df depends on sample variances. Equal SEs need not give equal p-values or establish a common population variance.

16. 분산 모멘트를 맞춘 νMoment-matched degrees of freedom

n₁, n₂≥2인 독립 정규 두 집단에서 V=σ₁²/n₁+σ₂²/n₂>0, Var(V̂)=2Σσⱼ⁴/[nⱼ²(nⱼ−1)]입니다. Vχ²_ν/ν와 모멘트를 맞춘 ν를 구하고 표본 대체식을 쓰세요.

Independent normal groups with n₁, n₂≥2 have V=σ₁²/n₁+σ₂²/n₂>0 and Var(V̂)=2Σσⱼ⁴/[nⱼ²(nⱼ−1)]. Match Vχ²_ν/ν and then replace unknown variances by sample estimates.

풀이와 확인할 이유Solution and explanation
νmoment=V2∑jσj4/[nj2(nj−1)],ν^=(v1+v2)2v12/(n1−1)+v22/(n2−1),vj=sj2/nj.\begin{gathered} \nu_{\rm moment} =\frac{V^2}{\sum_j\sigma_j^4/[n_j^2(n_j-1)]},\\ \widehat\nu =\frac{(v_1+v_2)^2}{v_1^2/(n_1-1)+v_2^2/(n_2-1)},\\ v_j=s_j^2/n_j . \end{gathered}

전체 분포의 정확 일치가 아니라 기대값·분산 맞춤입니다. ν̂도 표본에 따라 달라집니다.

νmoment=V2∑jσj4nj2(nj−1)ν^=(v1+v2)2v12/(n1−1)+v22/(n2−1)\begin{gathered}\nu_{\rm moment}=\frac{V^2}{\displaystyle\sum_j\frac{\sigma_j^4}{n_j^2(n_j-1)}}\\\widehat\nu=\frac{(v_1+v_2)^2}{v_1^2/(n_1-1)+v_2^2/(n_2-1)}\end{gathered}

These match two moments, not the entire distribution; the fitted df is random.

17. 분수 자유도 792/73Fractional df 792/73

n₁=25, s₁=2, n₂=10, s₂=4에서 v₁, v₂와 Welch 자유도를 구하세요. 전체 원소 수−2를 대신 넣어도 되나요?

For n₁=25, s₁=2, n₂=10, s₂=4, find v₁, v₂ and Welch df. May total count minus two replace it?

풀이와 확인할 이유Solution and explanation
v1=4/25v2=8/5ν^=(v1+v2)2v12/24+v22/9=792/73≈10.84931507\begin{gathered}v_1=4/25\\v_2=8/5\\\widehat\nu=\frac{(v_1+v_2)^2}{v_1^2/24+v_2^2/9}\\=792/73\approx10.84931507\end{gathered}

단순히 33을 넣지 않습니다. 모멘트 맞춤의 분모를 반영한 자유도입니다.

v1=4/25v2=8/5ν^=792/73.\begin{gathered}v_1=4/25\\v_2=8/5\\\widehat\nu=792/73.\end{gathered}

No. Total count minus two is pooled df, not this moment-matched quantity.

18. 자유도의 위쪽 상계 증명Prove the upper df bound

dⱼ=nⱼ−1>0, vⱼ≥0, 합 v₁+v₂>0입니다. Cauchy–Schwarz를 써 ν̂≤d₁+d₂를 보이세요.

Let dⱼ=nⱼ−1>0, vⱼ≥0 and v₁+v₂>0. Prove ν̂≤d₁+d₂ using Cauchy–Schwarz.

풀이와 확인할 이유Solution and explanation
(v1+v2)2≤(d1+d2)(v12/d1+v22/d2),ν^≤d1+d2.\begin{gathered} (v_1+v_2)^2 \le(d_1+d_2)(v_1^2/d_1+v_2^2/d_2),\\ \widehat\nu\le d_1+d_2. \end{gathered}

벡터 (√d₁,√d₂)와 (v₁/√d₁, v₂/√d₂)에 적용합니다. 양의 분모이므로 나눌 수 있습니다.

(v1+v2)2≤(d1+d2)(v12/d1+v22/d2).(v_1+v_2)^2\le(d_1+d_2)(v_1^2/d_1+v_2^2/d_2).

Apply the inequality to(√d₁,√d₂) and (v₁/√d₁, v₂/√d₂), then divide by the positive denominator.

19. 자유도의 아래쪽 상계가 아니라 하계Prove the lower df bound

같은 dⱼ, vⱼ 조건에서 m=min(d₁, d₂)라 두고 ν̂≥m을 증명하세요.

With the same positive dⱼ, nonnegative vⱼ and positive sum, let m=min(d₁, d₂). Prove ν̂≥m.

풀이와 확인할 이유Solution and explanation
v12/d1+v22/d2≤(v12+v22)/m≤(v1+v2)2/m.\begin{gathered} v_1^2/d_1+v_2^2/d_2 \le(v_1^2+v_2^2)/m\\ \le(v_1+v_2)^2/m. \end{gathered}

분모의 상계로 비율의 하계 m을 얻습니다. vⱼ≥0이라 마지막 제곱합 부등식이 성립합니다.

A=v12/d1+v22/d2A≤(v12+v22)/m≤(v1+v2)2/m\begin{gathered}A=v_1^2/d_1+v_2^2/d_2\\A\le(v_1^2+v_2^2)/m\\\le(v_1+v_2)^2/m\end{gathered}

An upper bound on the denominator gives the lower bound m for the ratio.

20. 분산 검정의 비기각Nonrejection of a variance test

표본이 작아 분산 같음 검정을 기각하지 못했습니다. 그래서 공통 모분산이 참이며 pooled 절차의 조건이 증명되었다고 해도 되나요?

A small sample gives nonrejection in an equal-variance test. Does that prove the common-variance premise for pooling?

풀이와 확인할 이유Solution and explanation

안 됩니다. 비기각은 등분산 증명이 아닙니다. 사전 설계·분산의 실질적 근거·방법 선택 내역을 고려하고, 두 단계 선택을 한다면 전체 절차의 오류를 판단해야 합니다.

No. Nonrejection is not proof. Consider design and substantive variance assumptions, and account for the entire procedure if a data-dependent preliminary test chooses the final method.

21. 같은 짝의 평균 항등식Mean identity for the same pairs

n≥1개의 완전 같은 짝에서 Dᵢ=Yᵢ−Xᵢ입니다. D̄=Ȳ−X̄를 유도하세요. 서로 다른 가용 행으로 각 평균을 만들면 항상 같은가요?

For n≥1 complete aligned pairs, Dᵢ=Yᵢ−Xᵢ. Prove D̄=Ȳ−X̄. Does it always hold for separately chosen available-record means?

풀이와 확인할 이유Solution and explanation
D‾=1n∑i(Yi−Xi)=1n∑iYi−1n∑iXi\begin{gathered}\overline D=\frac1n\sum_i(Y_i-X_i)\\=\frac1n\sum_iY_i-\frac1n\sum_iX_i\end{gathered}

같은 짝과 분모에서 성립합니다. 구성원이 달라진 두 가용 평균의 차이는 일반적으로 완전짝 평균 변화와 다릅니다.

D‾=n−1∑i(Yi−Xi)=Y‾−X‾.\overline D=n^{-1}\sum_i(Y_i-X_i)=\overline Y-\overline X.

The identity uses matching records and denominator. Different available subsets generally target another contrast.

22. 짝 분산을 전개한다Expand paired sample variance

같은 n≥2 완전짝, 모든 표본 제곱합의 분모 n−1에서 sD²=sY²+sX²−2sXY를 보이세요. SE²=sD²/n에는 무엇이 더 필요한가요?

For the same n≥2 complete pairs, all moment denominators n−1, prove sD²=sY²+sX²−2sXY. What is additionally needed for SE²=sD²/n?

풀이와 확인할 이유Solution and explanation
ui=Yi−Y‾vi=Xi−X‾Di−D‾=ui−vi∑(Di−D‾)2=∑ui2+∑vi2−2∑uivi\begin{gathered}u_i=Y_i-\overline Y\\v_i=X_i-\overline X\\D_i-\overline D=u_i-v_i\\\sum(D_i-\overline D)^2\\=\sum u_i^2+\sum v_i^2-2\sum u_iv_i\end{gathered}

n−1로 나누면 항등식입니다. 이를 평균의 표집 SE로 읽을 때에는 iid짝 같은 작업 가정이 추가됩니다.

ui=Yi−Y‾vi=Xi−X‾Di−D‾=ui−vi∑(Di−D‾)2=∑ui2+∑vi2−2∑uivi\begin{gathered}u_i=Y_i-\overline Y\\v_i=X_i-\overline X\\D_i-\overline D=u_i-v_i\\\sum(D_i-\overline D)^2\\=\sum u_i^2+\sum v_i^2-2\sum u_iv_i\end{gathered}

Divide by n−1 for the algebraic identity. Reading sD²/n as an estimated sampling variance additionally needs a design assumption such as iid pairs.

23. 네 짝의 차이 목록List four paired changes

before=(1,2,3,4), after=(2,4,3,5)입니다. 같은 위치가 같은 단위일 때 변화 목록·평균·제곱편차합을 구하세요.

Matched before=(1, 2, 3, 4), after=(2, 4, 3, 5). Find changes, mean and squared-deviation sum.

풀이와 확인할 이유Solution and explanation

D=(1,2,0,1), 평균은 1, 제곱편차합은 0+1+1+0=2입니다. 변화 0도 가용 기록이므로 길이는 4입니다. 0을 결측처럼 제외하면 다른 계산이 됩니다.

Changes are (1, 2, 0, 1), mean 1 and squared-deviation sum 2. Zero change remains available data, so the count is 4.

24. 네 짝의 t작업 계산Working t calculation for four changes

같은 네 변화 (1,2,0,1)이 iid 정규 변화 표본이라는 작업 모형입니다. 귀무 평균 변화 0의 sD²·SE·t·자유도를 구하세요.

Treat (1, 2, 0, 1) as an iid normal-changes sample. Test mean change zero:find sample variance, SE, t and df.

풀이와 확인할 이유Solution and explanation
sD2=2/3SE⁡^=1/6,t=6≈2.4494897ν=3.\begin{gathered} s_D^2=2/3\\\widehat{\operatorname{SE}}=\sqrt{1/6},\\ t=\sqrt6\approx2.4494897\\\nu=3. \end{gathered}

양쪽 작업 p값은 약 .0917211입니다. 네 변화의 크기와 작은 표본 불확실성을 함께 봅니다.

sD2=2/3SE⁡^=1/6t=6ν=3.\begin{gathered}s_D^2=2/3\\\widehat{\operatorname{SE}}=\sqrt{1/6}\\t=\sqrt6\\\nu=3.\end{gathered}

The working two-sided p-value is about .0917211.

25. 음의 짝 공분산Negative pair covariance

before=(1,2,3), after=(3,2,1)입니다. 표본분산 두 개·표본공분산·변화분산을 구하고 독립 참조와 비교하세요.

Matched before=(1, 2, 3), after=(3, 2, 1). Find both variances, covariance and change variance, then compare an independent reference.

풀이와 확인할 이유Solution and explanation
sX2=sY2=1sXY=−1sD2=1+1−2(−1)=4.\begin{gathered}s_X^2=s_Y^2=1\\s_{XY}=-1\\s_D^2=1+1-2(-1)=4.\end{gathered}

독립 참조는 2를 쓰므로 작습니다. 짝이 있다고 언제나 작은 분산이 되는 것은 아닙니다. 실제 대응은 유지해야 합니다.

sX2=sY2=1sXY=−1sD2=4.\begin{gathered}s_X^2=s_Y^2=1\\s_{XY}=-1\\s_D^2=4.\end{gathered}

The independent reference would use 2. Pairing does not always reduce variance; it preserves actual correspondence.

26. 순서를 바꾸면 무엇이 보존되나What reversing the difference preserves

같은 완전 짝에서 after−before를 before−after로 바꿉니다. 변화 평균·분산·양쪽 p값·CI [L, U]는 어떻게 변하나요?

For identical complete pairs, replace after −before by before−after. Transform the mean, variance, two-sided p-value and CI [L, U].

풀이와 확인할 이유Solution and explanation

평균과 통계량은 부호가 반대, 변화 분산과 SE는 같습니다. 동일 대칭 참조 양쪽 p값은 같고 CI는 [−U,−L]입니다. 행 대응을 바꾼 것이 아니라 차이 방향만 일관되게 뒤집은 것입니다.

Mean and statistic reverse sign; variance and SE remain equal. With the same symmetric reference, the two-sided p-value is unchanged and CI becomes[−U,−L]. Pair identities remain fixed.

27. 정규 주변분포만으로 차이 정규성이 나오나Do normal marginals force a normal difference?

X∼N(0,1), X와 독립인 S가 ±1을 각 확률 1/2로 가지고 Y=SX라 합시다. Y의 주변법칙과 D=Y−X의 0 원자 질량을 구해 정규 차이라는 주장을 검토하세요.

Let X∼N(0, 1), independent S take ±1 equally, and Y=SX. Find Y’s marginal law and the atom at zero in D=Y−X.

풀이와 확인할 이유Solution and explanation

정규 대칭성으로 Y도 N(0,1)입니다. 그러나 S=1이면 D=0이므로 P(D=0)=1/2입니다(S=−1의 연속 부분은 0에 점질량이 없습니다). D는 확률 절반의 0과 −2X 부분의 혼합으로 비퇴화 정규가 아닙니다. 두 주변 정규만으로 결합 정규를 결론낼 수 없습니다.

Symmetry gives Y∼N(0, 1). But S=1 makes D=0, so P(D=0)=1/2; the S=−1 branch is continuous. This mixture is not a nondegenerate normal difference. Normal marginals do not establish joint normality.

28. 두 열 결측을 따로 지운 결과Dropping missing waves separately

before=(1, 미관측,3), after=(2,4, 미관측)입니다. 각 열을 따로 줄여 (1,3)과 (2,4)를 짝지으면 왜 틀리나요? 실제 완전짝 수를 쓰세요.

Before=(1, missing, 3), after=(2, 4, missing). Why is pairing the separately filtered (1, 3) and (2, 4) invalid? Count complete pairs.

풀이와 확인할 이유Solution and explanation

3과 4는 서로 다른 원행입니다. 완전짝은 첫 행 하나뿐입니다. 그 변화 1은 계산되지만 표본 변화분산의 n−1=0이므로 t절차는 미정의입니다. 원행 키를 유지하고 같은 줄을 함께 제외합니다.

Three and four came from different source rows. Only the first pair is complete. Its change 1 exists, but sample change variance has zero residual df, so the t procedure is undefined.

29. 0과 미관측은 다르다Zero differs from missing

before=(0,1), after=(0,3)은 둘 다 가용 수치입니다. 완전짝 수·변화 목록·평균을 구하세요. 0을 자동 제외해도 되나요?

Before=(0, 1), after=(0, 3) are fully available. Find complete-pair count, changes and mean. May zero be automatically excluded?

풀이와 확인할 이유Solution and explanation

완전짝 2개, D=(0,2), 평균 1입니다. 0을 제외하면 가용 기록을 잃어 다른 표적·분모가 됩니다. 지정 결측 표식만 계약에 맞게 처리합니다.

There are 2 pairs, changes (0, 2) and mean 1. Excluding observed zero alters the denominator and target. Follow an explicit marker contract.

30. after만 정렬한다면Sorting only the after column

실제 대응이 있는 before와 after에서 after 열만 크기순 정렬한 뒤 짝 t를 계산했습니다. 개별 열의 평균이 같으므로 결과도 같아야 하나요?

Sort only the after column of actual paired records. Since each marginal mean is unchanged, must the paired result be unchanged?

풀이와 확인할 이유Solution and explanation

아닙니다. 열별 평균과 분산은 보존돼도 짝 공분산과 변화 분산은 달라질 수 있습니다. 원래 대응을 바꾼 가짜 짝은 다른 자료입니다. 전체 행을 함께 이동시키거나 원행 키로 다시 맞춰야 합니다.

No. Pair covariance and change variance can change even when marginal summaries remain equal. Move whole records together or realign by source key.

31. 양의 상관의 가정 설계An assumed positive-correlation design

iid짝 n=25, 양의 σX=σY=2,ρ=.8인 가정 모형입니다. 변화분산과 평균 SE를 계산하세요.

Assume n=25 iid pairs, positive σX=σY=2 and ρ=.8. Find change variance and mean SE.

풀이와 확인할 이유Solution and explanation
VD=4+4−2(.8)(2)(2)=1.6SE⁡(D‾)=1.6/25≈.2529822\begin{gathered}V_D=4+4-2(.8)(2)(2)=1.6\\\operatorname{SE}(\overline D)=\sqrt{1.6/25}\\\approx .2529822\end{gathered}

ρ는 선택한 모형의 값이며 실제 자료에서 추정된 상관이라고 부르지 않습니다.

VD=1.6SE⁡=1.6/25≈.2529822.\begin{gathered}V_D=1.6\\\operatorname{SE}=\sqrt{1.6/25}\approx .2529822.\end{gathered}

The correlation is a chosen model input, not an observed estimate.

32. 음의 상관이면A negative correlation

같은 n=25, σX=σY=2에서 ρ=−.8로 바꿉니다. 변화분산과 독립 참조 분산 8을 비교하세요.

With n=25, σX=σY=2, change ρ to −.8. Compare change variance with the independent reference 8.

풀이와 확인할 이유Solution and explanation
VD=8−2(−.8)(4)=14.4>8.V_D=8-2(-.8)(4)=14.4>8.

짝 평균 SE는 √(14.4/25)입니다. 실제 설계의 음의 상관을 지우면 분산을 작게 잘못 계산할 수 있습니다.

VD=14.4>8.V_D=14.4>8.

The paired mean SE is√(14.4/25). Discarding a real negative covariance can understate variance.

33. 가정한 차이분산 0A model with zero difference variance

양의 σX=σY=2이고 ρ=1인 유한분산 가정 모형입니다. D의 분산은 얼마이며 표본 sD=0만 관측한 상황과 어떻게 다른가요?

Assume positive σX=σY=2 and ρ=1 with finite moments. What is Var(D), and how does it differ from merely observing sample sD=0?

풀이와 확인할 이유Solution and explanation

VD=4+4−8=0이므로 D는 그 모형에서 거의 확실히 상수입니다. 이것은 원법칙을 알고 가정한 결과입니다. 표본에서 sD=0을 본 것만으로 그 모분산이나 상수성을 알 수는 없습니다. 양의 SE 피벗으로 0/0을 계산하지 않습니다.

Var(D)=0, so D is almost surely constant under that stated law. Observed zero sample variance alone does not establish the population law. A positive-SE pivot still must not evaluate 0/0.

34. 표준편차 0의 상관Correlation with zero SD

σX=0, σY=2입니다. Cov(X, Y)와 보통 상관계수는 무엇인가요? ρ 슬라이더 .8을 그대로 관측 상관이라고 표시해도 되나요?

Let σX=0, σY=2. Give covariance and ordinary correlation. May a selected ρ=.8 be displayed as a defined correlation?

풀이와 확인할 이유Solution and explanation

X가 거의 확실히 상수여서 공분산은 0입니다. 상관은 0인 σX로 나누므로 미정의입니다. 입력한 ρ와 수학적으로 정의된 상관을 분리해 표시해야 합니다. 변화분산은 4입니다.

Covariance is zero because X is almost surely constant; ordinary correlation is undefined due to division by zero SD. Preserve that distinction. Difference variance is 4.

35. 성공 개수만 비교하지 않는다Do not compare only success counts

집단1은 성공 20/100, 집단2는 성공 10/20입니다. 성공 개수가 더 많은 집단이 성공확률 추정도 더 큰가요?

Group 1 has 20 successes among 100 and group 2 has 10 among 20. Does the larger success count imply the larger estimated probability?

풀이와 확인할 이유Solution and explanation

아닙니다. p̂₁=.2, p̂₂=.5로 첫째−둘째 차이는 −.3입니다. 집단 크기가 다르므로 성공 개수만의 비교는 확률 차이와 다른 질문입니다.

No. The estimates are .2 and .5, with first-minus-second difference −.3. Unequal denominators matter.

36. pooled 비율은 반반 평균이 아니다The pooled proportion is not an equal-group average

독립 이항 두 집단에서 k₁=1, n₁=10, k₂=90, n₂=100입니다. 같은 p 귀무의 pooled 추정과 두 비율의 단순 평균을 비교하세요.

Independent binomial groups have 1/10 and 90/100 successes. Compare the common-p pooled fit with the unweighted average of proportions.

풀이와 확인할 이유Solution and explanation
p^0=91/110≈.8272727(p^1+p^2)/2=(.1+.9)/2=.5.\begin{gathered}\widehat p_0=91/110\approx .8272727\\(\widehat p_1+\widehat p_2)/2=(.1+.9)/2=.5.\end{gathered}

pooled는 시행 수 가중평균입니다. 두 집단에 동일 가중치를 준 별도 평균과 다릅니다.

p^0=91/110(p^1+p^2)/2=.5.\begin{gathered}\widehat p_0=91/110\\(\widehat p_1+\widehat p_2)/2=.5.\end{gathered}

Pooling weights by numbers of trials.

37. 20/30 대 10/30의 귀무 분모Null denominator for 20/30 versus 10/30

독립 이항 집단에서 20/30과 10/30을 비교합니다. p₁=p₂ 귀무의 pooled 비율·분산·z를 계산하세요.

Independent binomial groups have 20/30 and 10/30 successes. Find pooled probability, null variance and z for equal proportions.

풀이와 확인할 이유Solution and explanation
p^0=30/60=.5V^0=.5(.5)(1/30+1/30)=1/60z=(1/3)/1/60=20/3≈2.581989\begin{gathered}\widehat p_0=30/60=.5\\\widehat V_0=.5(.5)(1/30+1/30)=1/60\\z=(1/3)/\sqrt{1/60}=\sqrt{20/3}\\\approx2.581989\end{gathered}

정규 참조의 양쪽 p는 약 .00982327입니다. 정확 유한 이항 보장이라고 부르지 않습니다.

p^0=.5V^0=1/60z=20/3.\begin{gathered}\widehat p_0=.5\\\widehat V_0=1/60\\z=\sqrt{20/3}.\end{gathered}

The normal-reference two-sided p is about .00982327, not a universal exact finite-binomial guarantee.

38. 같은 자료의 추정 구간 분모Estimation denominator for the same data

독립 집단 20/30과 10/30의 일반 비율 차이 Wald 구간에 쓸 unpooled 분산을 구하세요. 귀무의 1/60과 같나요?

For independent groups 20/30 and 10/30, find the unpooled variance for a general-difference Wald interval. Is it the null variance 1/60?

풀이와 확인할 이유Solution and explanation
V^E=(2/3)(1/3)/30+(1/3)(2/3)/30=2/135≠1/60.\begin{gathered} \widehat V_E =(2/3)(1/3)/30+(1/3)(2/3)/30\\ =2/135\ne1/60. \end{gathered}

명목 95% 단순 Wald 구간은 약 [.0947741,.5718926]입니다. pooled 검정과 동일한 분모를 반전한 구간이 아닙니다.

V^E=2/135≠1/60.\widehat V_E=2/135\ne1/60.

The simple nominal 95% Wald interval is about [.0947741, .5718926], not an inversion using the same pooled denominator.

39. 두 집단 전부 성공 0개No successes in either group

n₁, n₂>0이고 두 성공 개수 모두 0입니다. pooled 비율·귀무 SE·z의 정의 여부를 쓰세요.

Both positive-size groups observe zero successes. State pooled probability, null SE and whether the normal statistic is defined.

풀이와 확인할 이유Solution and explanation

pooled는 0, 귀무 SE도 0이며 차이도 0이라 z는 0/0으로 미정의입니다. p=1을 공식에 임의로 넣지 않습니다. 실제 p₁=p₂=0이 알려진 것과 두 표본에서 성공을 못 본 사실을 구별합니다.

Pooled probability and SE are zero; the difference is zero, so z is 0/0 and undefined. Do not fill the formula with p=1 or infer known population probabilities zero.

40. 한쪽 전부 성공·한쪽 전부 실패All successes versus all failures

독립 집단에서 k₁=n₁>0, k₂=0, n₂>0입니다. unpooled 추정분산과 pooled 귀무분산의 양수 여부를 비교하세요.

Independent groups have k₁=n₁>0, k₂=0, n₂>0. Compare unpooled estimated variance with pooled-null variance.

풀이와 확인할 이유Solution and explanation

두 p̂가 1과 0이라 unpooled 분산은 0입니다. pooled는 n₁/(n₁+n₂)로 0과 1 사이이므로 귀무 분산은 양수입니다. 단순 Wald 구간 [1,1]이 확률 차이 1을 확정하는 것은 아닙니다. 서로 다른 제약의 분산이며 끝점 근사의 취약함을 드러냅니다.

The unpooled variance is zero; pooled p lies strictly between zero and one, so null variance is positive. A degenerate fitted Wald interval [1, 1] is not certainty about the true difference.

41. 10퍼센트포인트와 100%Ten percentage points versus 100%

성공률 .2와 .1의 확률 차이·퍼센트포인트 차이·위험비·상대 증가율을 각각 구하세요.

For probabilities .2 and .1, find probability difference, percentage-point difference, risk ratio and relative increase.

풀이와 확인할 이유Solution and explanation
Δp=.1100Δp=10 percentage pointsRR=2(.2−.1)/.1=1=100%\begin{gathered}\Delta_p=.1\\100\Delta_p=10\text{ percentage points}\\RR=2\\(.2-.1)/.1=1=100\%\end{gathered}

10%p와 100% 상대 증가를 혼동하지 않습니다. 기준 확률 .1이라는 분모를 함께 보고합니다.

Δp=.110 percentage pointsRR=2100% increase.\begin{gathered}\Delta_p=.1\\10\text{ percentage points}\\RR=2\\100\%\text{ increase}.\end{gathered}

The relative calculation uses reference probability .1. Percentage points and percent change differ.

42. 같은 고객의 두 이진 결과Two binary outcomes on the same customers

같은 고객 100명의 전후 이탈 의향을 두 번 조사했습니다. 각 열에 100개이므로 독립 두 비율 z를 사용해도 되나요?

The same 100 customers answer a binary intention question twice. Do two columns of 100 justify an independent two-proportion z test?

풀이와 확인할 이유Solution and explanation

안 됩니다. 같은 고객의 두 이진값에는 대응과 의존이 있습니다. 전후가 일치·불일치한 교차 구조를 보존해야 합니다. 단순 독립 비율 차이 분산을 넣기 전에 설계를 확인합니다. 다음 분할표 장과 연결되는 문제입니다.

No. Preserve the paired joint outcomes, including agreements and disagreements. Equal column length does not remove dependence. The next table chapter develops the paired-binary connection.

43. 로그 차이를 지수화한 표적The target of an exponentiated log contrast

같은 원단위 양의 변수 두 집단의 로그 평균 차이는 Δlog입니다. exp(Δlog)의 표적을 쓰고 산술평균 비율과 언제 다른지 설명하세요.

Two positive variables in compatible units have log-mean difference Δlog. Identify exp(Δlog) and explain why it need not equal an arithmetic-mean ratio.

풀이와 확인할 이유Solution and explanation
exp⁡(Δlog⁡)=exp⁡(E[log⁡Y1])exp⁡(E[log⁡Y2])\begin{gathered}\exp(\Delta_{\log})\\=\frac{\exp(E[\log Y_1])}{\exp(E[\log Y_2])}\end{gathered}

기하 중심의 비율입니다. 로그정규의 산술평균 비율에는 추가로 exp((σlog,1²−σlog,2²)/2)가 들어가므로 일반적으로 다릅니다. 지수화만으로 인과효과가 되지도 않습니다.

exp⁡(Δlog⁡)=exp⁡(E[log⁡Y1])exp⁡(E[log⁡Y2])\begin{gathered}\exp(\Delta_{\log})\\=\frac{\exp(E[\log Y_1])}{\exp(E[\log Y_2])}\end{gathered}

It is a ratio of geometric centers. Under lognormal laws, the arithmetic ratio additionally contains exp((σlog, 1²−σlog, 2²)/2). Neither is automatically causal.

44. 같은 비용의 연속 배분 해Continuous allocation at equal cost

독립 두 집단의 알려진 양의 σ₁=1, σ₂=2, 총수 N=30, 관측비용 동일입니다. 연속 최소분산 조건으로 n₁, n₂를 구하고 15/15 배분과 분산을 비교하세요.

Independent groups have known positive σ₁=1, σ₂=2, total N=30 and equal costs. Find the continuous variance-minimizing allocation and compare with 15/15.

풀이와 확인할 이유Solution and explanation
n1/n2=1/2(n1,n2)=(10,20),Vallocated=1/10+4/20=.3,Vbalanced=1/15+4/15=1/3.\begin{gathered} n_1/n_2=1/2\\(n_1,n_2)=(10,20),\\ V_{\rm allocated}=1/10+4/20=.3,\\ V_{\rm balanced}=1/15+4/15=1/3. \end{gathered}

이 예는 연속 해가 정수라 그대로 가능합니다. 양의 둘째 미분이 최소를 보장합니다. 비용·군집·최소 n조건이 달라지면 같은 배분을 자동 사용하지 않습니다.

(n1,n2)=(10,20)V=.3<1/3.\begin{gathered}(n_1,n_2)=(10,20)\\V=.3<1/3.\end{gathered}

The continuous optimum is integer here. Strict convexity on the positive allocation interval establishes its minimum. Other costs or constraints require another optimization.

45. 실제 네 분기 평균 차이Actual four-quarter mean change

실제 한국 주택지수의 고정 연평균은 2023년 111.483625,2024년 107.766625입니다. 2024−2023 평균 차이와 그 단위를 구하세요. 지수포인트와 퍼센트는 같은가요?

Actual KOR housing-index annual frame means are 111.483625 for 2023 and 107.766625 for 2024. Find 2024−2023 and its units. Is an index-point change a percent change?

풀이와 확인할 이유Solution and explanation
107.766625−111.483625=−3.717 index points\begin{gathered}107.766625-111.483625\\=-3.717\text{ index points}\end{gathered}

지수포인트 차이입니다. 퍼센트 변화를 원하면 기준 2023년 평균으로 나누는 다른 계산이 필요합니다. 네 분기 전체를 이미 관측한 고정 프레임 차이는 알려진 기술값입니다.

ΔF=−3.717 index points.\Delta_F=-3.717\text{ index points}.

No. A percent change divides by a declared baseline. The fully observed four-quarter frame difference is a known descriptive quantity.

46. 실제 분기 짝의 작업 SEWorking SE for actual paired quarters

네 실제 같은 분기 변화의 표본분산은 621791791/150000000 지수포인트²입니다. iid 정규 변화의 작업 가정 아래 평균 SE와 t자유도를 구하세요. 원시계열의 정확 CI로 인증되나요?

Four actual same-quarter changes have sample variance 621791791/150000000 index-points². Under an iid-normal-changes working model, find mean SE and t df. Is this a certified time-series CI?

풀이와 확인할 이유Solution and explanation
SE⁡^=621791791/600000000≈1.017997864ν=3\begin{gathered}\widehat{\operatorname{SE}}\\=\sqrt{621791791/600000000}\\\approx1.017997864\\\nu=3\end{gathered}

이것은 작업 표집 참조입니다. 모든 분기를 이미 아는 고정 평균의 값에 추가 불확실성을 만든 것이 아니며, 원분기들이 iid 정규라는 사실을 검증하지 않습니다.

SE⁡^≈1.017997864ν=3.\begin{gathered}\widehat{\operatorname{SE}}\approx1.017997864\\\nu=3.\end{gathered}

No. It is a working sampling reference, not validation of iid normal quarters or additional uncertainty in the already known frame mean.

47. 실제 로그 집단의 두 분모Actual log-group denominators

SMSA1 집단은 원행 2510·가용 2146·미관측 364, 집단0은 1103·864·239입니다. 전체 수와 가용 수를 검산하고 Welch의 n을 정하세요.

SMSA 1 has 2510 source rows, 2146 available logs, 364 unavailable; SMSA 0 has 1103, 864, 239. Verify totals and choose Welch sample sizes.

풀이와 확인할 이유Solution and explanation

원행 2510+1103=3613, 가용 2146+864=3010, 미관측 364+239=603입니다. 이 가용 로그 비교의 n은 2146과 864입니다. 결측 로그를 0으로 채우거나 원행 전체를 그 평균의 분모로 쓰지 않습니다.

Totals are 3613 source, 3010 available and 603 unavailable. Use 2146 and 864 for this available-log comparison, without zero-filling missing logs.

48. 실제 Welch의 분수 자유도Fractional df in the actual Welch comparison

실제 가용 로그 집단1−0의 차이는 약 .2301100976, Welch SE .01721842695, 자유도 1627.022893입니다. 통계량과 양쪽 p≈9.95486×10⁻³⁹의 해석 범위를 쓰세요.

The actual available-log contrast is about .2301100976, Welch SE .01721842695 and df 1627.022893. Find t and qualify the two-sided p near 9.95486×10⁻³⁹.

풀이와 확인할 이유Solution and explanation
tW≈.2301100976/.01721842695≈13.36417654\begin{gathered}t_W\approx .2301100976/.01721842695\\\approx13.36417654\end{gathered}

분수 자유도의 근사 t꼬리를 사용한 작업 비교입니다. 아주 작은 p값은 원표집의 독립성·대표성·결측 조건을 검증하거나 거주지 인과효과를 증명하지 않습니다.

tW≈13.36417654.t_W\approx13.36417654.

It is a working approximate t-tail comparison, not certification of sampling independence, representativeness, missingness or a causal residence effect.

49. 실제 로그 구간을 변환한다Transform the actual log interval

로그 평균 차이의 95% 작업구간은 [.1963374773,.2638827178]입니다. 지수화하면 어떤 구간인가요? 차이 추정의 지수값은 약 1.258738586입니다.

A 95% working log-contrast interval is[.1963374773, .2638827178], with exponentiated estimate about 1.258738586. What interval does exponentiation produce?

풀이와 확인할 이유Solution and explanation
[exp⁡(.1963374773),exp⁡(.2638827178)].[\exp(.1963374773),\exp(.2638827178)].

엄격 증가함수이므로 해당 로그 차이의 지수 표적, 즉 가용 기하 중심 비율의 구간으로 변환합니다. 산술 임금평균 비율이나 개인 임금 인과상승률 구간은 아닙니다. 원래 Welch 근사의 조건도 그대로 남습니다.

[e.1963374773,e.2638827178].[e^{.1963374773},e^{.2638827178}].

The strictly increasing transform targets the geometric-center ratio. It does not create an arithmetic-wage ratio or causal individual-gain interval, and retains the original approximation conditions.

50. 실제 고객 비율 차이Actual customer proportion difference

실제 불만 집단은 이탈 200/241, 비불만 집단은 295/2909입니다. 첫째−둘째 확률차를 정확 분수와 퍼센트포인트로 구하세요.

Actual complaint-group churn is 200/241 and no-complaint churn 295/2909. Find first minus second as a fraction and in percentage points.

풀이와 확인할 이유Solution and explanation
Δ^p=200241−2952909=510705701069≈.7284660996≈72.84660996 percentage points.\begin{gathered} \widehat\Delta_p =\frac{200}{241}-\frac{295}{2909}\\ =\frac{510705}{701069}\approx.7284660996\\ \approx72.84660996\text{ percentage points}. \end{gathered}

약 72.85%의 상대 증가라는 말과 다릅니다. 원비율과 분모를 함께 보고합니다.

Δ^p=510705/701069≈.7284660996.\widehat\Delta_p=510705/701069\approx.7284660996.

This is about 72.8466 percentage points, not the same number as relative percent increase.

51. 실제 고객의 pooled 귀무 추정The actual pooled-null estimate

같은 실제 고객 두 집단의 성공 수는 200과 295, 크기는 241과 2909입니다. p1=p2 귀무의 pooled p를 구하세요. 개별 비율을 단순 평균하면 같나요?

The actual groups have 200 and 295 successes out of 241 and 2909. Find the equal-probability pooled fit. Is it their unweighted proportion average?

풀이와 확인할 이유Solution and explanation
p^0=200+295241+2909=495/3150=11/70\begin{gathered}\widehat p_0=\frac{200+295}{241+2909}\\=495/3150=11/70\end{gathered}

단순 반반 평균과 다릅니다. 귀무에서 시행 수로 가중한 추정값이며 불만이 무작위 처치였다는 뜻은 아닙니다.

p^0=495/3150=11/70.\widehat p_0=495/3150=11/70.

No. Pooling weights by trial counts. It does not imply randomized complaint status.

52. 실제 두 비율 SE를 구별한다Distinguish the two actual proportion SEs

실제 고객 비교의 귀무 pooled SE는 .02439490905, 일반 추정 unpooled SE는 .02484237114입니다. 검정 z와 단순 Wald 구간에 각각 무엇을 쓰나요?

The actual customer comparison has pooled-null SE .02439490905 and unpooled-estimation SE .02484237114. Assign each to its test or simple Wald interval.

풀이와 확인할 이유Solution and explanation

같은 확률 귀무의 z에는 pooled SE를, 일반 차이의 단순 Wald 구간에는 unpooled SE를 씁니다. 서로 다른 제약의 계산입니다. 그 구간과 검정이 하나의 정확한 반전쌍이라고 주장하지 않습니다.

Use the pooled SE for the equal-probability null test and unpooled SE for the general-difference Wald interval. They are not one exact inversion pair.

53. 아주 작은 비영 p값An extremely small nonzero p-value

실제 고객의 정규 참조 양쪽 p≈6.24413716×10⁻¹⁹⁶입니다. 화면이 소수점 아래 몇 자리만 보여 0으로 보이면 수학적 p=0인가요?

The customer normal-reference two-sided p is about 6.24413716×10⁻¹⁹⁶. If a short decimal display shows zero, is it mathematically zero?

풀이와 확인할 이유Solution and explanation

아닙니다. 주어진 참조의 양수 근사 확률입니다. 과학적 표기와 로그 확률을 보며 정확 0·표시 반올림·수치 underflow를 구별합니다. 작은 p도 원법칙의 독립성이나 인과 설명을 인증하지 않습니다.

No. Use scientific notation/log probability and distinguish exact zero, rounding and numerical underflow. A small reference tail does not certify independence or causality.

54. 불만을 처치라고 부를 수 있나Is complaint status a randomized treatment?

불만 집단의 이탈률이 훨씬 높고 p도 매우 작습니다. 불만을 제기하도록 시키면 이탈이 그 차이만큼 증가한다고 결론낼 수 있나요?

Complaint-group churn is much higher with a tiny p-value. Does inducing a complaint raise churn by that observed difference?

풀이와 확인할 이유Solution and explanation

안 됩니다. 불만은 무작위 처치가 아니며 고객 상태·문제 경험·선택 같은 다른 원인이 관련될 수 있습니다. 관측 연관은 예측에 유용할 수 있지만 개입 효과에는 별도 식별 설계와 가정이 필요합니다.

No. Complaint status was not randomized. Customer conditions, experiences and selection may differ. Association can aid prediction without identifying an intervention effect.

55. 고객 시점을 함께 읽는다Read customer timing together

기업 사례의 집단 변수는 첫 9개월 불만, 결과는 12개월 말 이탈입니다. 이 순서만으로 무작위 배정이나 정확한 달력 연도를 알 수 있나요?

Groups use first-nine-month complaints and outcomes end-of-month-twelve churn. Does that timing establish randomization or an exact calendar year?

풀이와 확인할 이유Solution and explanation

아닙니다. 관측 창의 순서와 3개월 간격은 알지만 무작위 배정을 뜻하지 않습니다. 출처의 정확한 달력 연도도 확인되지 않았으므로 임의로 최신 연도를 붙이지 않습니다. 시점·선택·인과 조건을 각각 기록합니다.

No. It establishes the stated observation windows and gap, not randomized assignment. Exact source calendar years remain unverified. Record timing separately from selection and causal assumptions.

56. 공통 분산도 정규성을 대신하지 않는다Common variance does not replace normality

두 집단의 모분산이 같다는 근거는 있지만 자료가 독립 iid 정규라는 근거는 없습니다. pooled t가 모든 유한 표본에서 정확한가요?

Population variances are known equal, but independent iid normal sampling is unsupported. Is pooled t exact for every finite sample?

풀이와 확인할 이유Solution and explanation

아닙니다. 공통 분산은 정확 pooled t증명의 한 조건일 뿐입니다. 독립 정규 평균과 잔차 χ² 구조를 추가로 사용했습니다. 비정규 자료에서는 적절한 근사·설계 기반 절차와 그 조건을 판단해야 합니다.

No. Common variance is one premise, not the entire proof. Exact calibration also uses independent normal means and residual chi-square structure. Other laws need justified approximations or design-based procedures.

57. 여러 그룹에서 유리한 비교만 남긴다Retaining only the favorable comparison

여러 지역·기간·공식으로 비교한 뒤 가장 작은 p값 하나만 보고했습니다. 직접 차이를 올바로 계산했으니 선택은 문제없나요?

After many regions, periods and formulas, only the smallest p-value is reported. Does correct arithmetic for that contrast settle selection validity?

풀이와 확인할 이유Solution and explanation

아닙니다. 한 비교의 산술 정확성과 자료 의존 선택의 오류 보장은 다릅니다. 시도한 집단·기간·방법·중단을 밝히고 질문에 맞는 다중·선택 후 보장을 판단해야 합니다.

No. Arithmetic correctness differs from error control after data-dependent selection. Disclose attempted comparisons and use a suitable multiplicity/selection argument.

58. 개별 구간이 겹쳐도 직접 차이를 본다Overlap does not settle the direct difference

독립 정규 평균 추정은 0과 3, 각 알려진 SE=1입니다. 개별 95% CI는 겹치지만 직접 차이는 유의할 수 있음을 계산하세요.

Independent normal mean estimates 0 and 3 each have known SE 1. Show overlapping individual 95% CIs can accompany rejection of the direct difference.

풀이와 확인할 이유Solution and explanation
C1≈[−1.96,1.96]C2≈[1.04,4.96],SE⁡diff=2z=3/2>1.96.\begin{gathered} C_1\approx[-1.96,1.96]\\C_2\approx[1.04,4.96],\\ \operatorname{SE}_{\rm diff}=\sqrt2\\z=3/\sqrt2>1.96. \end{gathered}

주어진 정규·독립 조건에서 양쪽 .05 직접 차이는 기각됩니다. 개별 CI겹침은 그 차이 검정과 같은 기준이 아닙니다.

SE⁡diff=2z=3/2≈2.1213>1.96.\begin{gathered}\operatorname{SE}_{\rm diff}=\sqrt2\\z=3/\sqrt2\approx2.1213>1.96.\end{gathered}

Intervals [−1.96, 1.96] and [1.04, 4.96] overlap, yet the direct difference rejects two-sided .05.

59. 0이 아닌 비율차 귀무에 같은 pool을 쓸 수 있나A nonzero proportion-difference null

독립 비율의 귀무를 p1−p2=.1로 바꿨습니다. 같은 p의 추정값 (k1+k2)/(n1+n2)를 그대로 대입하면 되나요?

Change the independent-proportion null to p1−p2=.1. May the equal-p pooled fit be used unchanged?

풀이와 확인할 이유Solution and explanation

일반적으로 안 됩니다. p1=p2라는 귀무 제약과 다릅니다. .1 차이라는 제약 아래 두 확률과 방해모수의 추정·분산을 새로 정해야 합니다. 이 장의 pooled 두 비율 실습은 차이 0 귀무만을 계산합니다.

Generally no. The constraint differs from equality. Estimate nuisance probabilities and variance under the new constraint. This lab’s pooled test concerns zero difference only.

60. 두 집단 비교의 보고서 감사Audit a two-group comparison report

실제 두 집단 비교 결과를 보고하기 전 여섯 가지 점검 질문을 쓰세요. 데이터 출처와 검정 이름만 적으면 충분한가요?

Give six audit questions before reporting an actual comparison. Are a source citation and test name sufficient?

풀이와 확인할 이유Solution and explanation

①직접 표적·차이 방향·원단위는 무엇인가? ②독립 집단인가 실제 짝인가, 원행·가용 분모는 무엇인가? ③분산·공분산·정규/근사·설계 조건은 무엇인가? ④pooled/Welch·자유도·비율 귀무/추정 SE를 구별했나? ⑤효과·구간·p값·실무 문턱을 함께 보고했나? ⑥결측·가중·다중 선택·인과 해석에 추가 근거가 필요한가? 출처와 이름만으로 이 조건들이 채워지지 않습니다.

Ask about target/order/units; independent groups or real pairs and valid counts; variance/covariance/distribution/design assumptions; pooled versus Welch and null versus estimation SE; effect/interval/p-value/substantive margin; and missingness/weights/selection/causal limits. A citation and label do not answer them.

자료와 출처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